:root {
  --ink: #071219;
  --ink-2: #10242c;
  --paper: #f4efe3;
  --paper-2: #fffaf0;
  --line: #d8c9ae;
  --gold: #d3b574;
  --red: #8f2f2a;
  --green: #506d67;
  --text: #1a1713;
  --muted: #6c604f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 72px;
  padding: 0 3rem;
  color: var(--paper-2);
  background: rgba(7, 18, 25, 0.82);
  border-bottom: 1px solid rgba(211, 181, 116, 0.28);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--paper-2);
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  font-size: 0.96rem;
  color: rgba(255, 250, 240, 0.84);
}

.main-nav a,
.header-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover {
  color: var(--gold);
}

.header-cta {
  padding: 0 1rem;
  background: var(--red);
  border-radius: 6px;
  color: var(--paper-2);
  font-weight: 700;
}

.hero {
  min-height: 94vh;
  position: relative;
  display: flex;
  align-items: center;
  background-image: url("./jiming-hero-bg.png");
  background-size: cover;
  background-position: center;
  color: var(--paper-2);
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 25, 0.46);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding-top: 4rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Malgun Gothic", serif;
  font-size: 5.5rem;
  line-height: 1;
  font-weight: 800;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 1.2rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--paper-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.primary-action,
.submit-button {
  background: var(--red);
  color: var(--paper-2);
}

.secondary-action {
  border-color: rgba(255, 250, 240, 0.46);
  color: var(--paper-2);
  background: rgba(7, 18, 25, 0.36);
}

.primary-action:hover,
.submit-button:hover,
.header-cta:hover {
  background: #a63a34;
}

.secondary-action:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.3rem 0 0;
  padding: 0;
}

.hero-facts div {
  width: 150px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(211, 181, 116, 0.5);
  border-radius: 8px;
  background: rgba(7, 18, 25, 0.48);
}

.hero-facts dt {
  margin: 0 0 0.25rem;
  color: var(--gold);
  font-size: 0.82rem;
}

.hero-facts dd {
  margin: 0;
  color: var(--paper-2);
  font-weight: 800;
}

section {
  padding: 5.5rem 3rem;
}

.section-heading {
  width: min(840px, 100%);
  margin: 0 auto 2.2rem;
  text-align: center;
}

.section-heading h2,
.impact-copy h2,
.report-copy h2,
.pricing-section h2,
.community-inner h2,
.final-cta h2 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.2;
  color: var(--ink);
}

.section-heading p,
.report-copy p,
.pricing-section p,
.community-inner p {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.intake-section {
  background: var(--paper-2);
}

.intake-form {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcf6ea;
  box-shadow: 0 20px 50px rgba(54, 38, 18, 0.13);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.field span,
.fieldset legend {
  color: #4b3a29;
  font-size: 0.92rem;
  font-weight: 800;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"] {
  width: 100%;
  height: 48px;
  padding: 0 0.85rem;
  border: 1px solid #cbbda4;
  border-radius: 6px;
  color: var(--text);
  background: var(--paper-2);
}

.field input:focus,
.segmented label:focus-within,
.check-field:focus-within {
  outline: 3px solid rgba(211, 181, 116, 0.45);
  outline-offset: 2px;
}

.fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 48px;
  border: 1px solid #cbbda4;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
}

.segmented label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  cursor: pointer;
}

.segmented label + label {
  border-left: 1px solid #cbbda4;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  color: #4b3a29;
}

.segmented input:checked + span {
  background: var(--ink);
  color: var(--paper-2);
}

.date-row,
.time-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.time-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(160px, 1fr);
}

.check-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cbbda4;
  border-radius: 6px;
  background: var(--paper-2);
  color: #4b3a29;
  font-weight: 700;
}

.check-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.leap-field {
  visibility: hidden;
}

.leap-field.is-visible {
  visibility: visible;
}

.consent-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.65rem;
  padding-top: 0.4rem;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}

.submit-button {
  border: 0;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.form-status {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--red);
}

.impact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 2rem;
  background: #ebe0cb;
}

.impact-copy {
  align-self: center;
}

.comparison-grid,
.feature-grid,
.steps {
  display: grid;
  gap: 1rem;
}

.comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison-grid article,
.feature-grid article,
.steps article {
  min-height: 188px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.comparison-grid article.highlight {
  border-color: var(--red);
  background: #fff4ea;
}

.comparison-grid h3,
.feature-grid h3,
.steps h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.comparison-grid p,
.feature-grid p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.feature-section {
  background: var(--paper);
}

.feature-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-index {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--red);
  font-weight: 900;
}

.report-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
  background: var(--ink);
  color: var(--paper-2);
}

.report-copy h2,
.report-copy p {
  color: var(--paper-2);
}

.report-copy p {
  color: rgba(255, 250, 240, 0.78);
}

.report-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  counter-reset: report;
}

.report-list li {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(211, 181, 116, 0.42);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
}

.report-list li::before {
  counter-increment: report;
  content: counter(report, decimal-leading-zero);
  color: var(--gold);
  font-weight: 900;
}

.use-section {
  background: var(--paper-2);
}

.steps {
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-weight: 900;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: center;
  background: #e8dcc6;
}

.price-panel {
  padding: 1.6rem;
  border: 1px solid #c8b18d;
  border-radius: 8px;
  background: var(--paper-2);
}

.price-panel span {
  color: var(--muted);
  font-weight: 800;
}

.price-panel strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 2.4rem;
  color: var(--ink);
}

.price-panel p {
  margin: 0.35rem 0 1.2rem;
  color: var(--muted);
}

.community-section {
  background: var(--green);
  color: var(--paper-2);
}

.community-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.community-inner h2,
.community-inner p {
  color: var(--paper-2);
}

.community-inner p {
  color: rgba(255, 250, 240, 0.82);
}

.final-cta {
  text-align: center;
  background: var(--paper-2);
}

.quote {
  margin: 0 0 0.8rem;
  color: var(--red);
  font-weight: 900;
}

.final-cta h2 {
  margin-bottom: 1.6rem;
}

.site-footer {
  display: grid;
  gap: 0.4rem;
  padding: 2rem 3rem;
  background: var(--ink);
  color: rgba(255, 250, 240, 0.76);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1020px) {
  .site-header {
    padding: 0 1.25rem;
  }

  .main-nav {
    display: none;
  }

  .hero {
    background-position: 40% center;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .impact-section,
  .report-section,
  .pricing-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .comparison-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 88vh;
    background-position: 32% center;
  }

  .hero-content {
    width: min(100% - 2rem, 560px);
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-copy {
    font-size: 1.16rem;
  }

  .hero-facts div {
    width: 100%;
  }

  section {
    padding: 4.2rem 1rem;
  }

  .section-heading h2,
  .impact-copy h2,
  .report-copy h2,
  .pricing-section h2,
  .community-inner h2,
  .final-cta h2 {
    font-size: 1.85rem;
  }

  .intake-form {
    padding: 1rem;
  }

  .form-grid,
  .date-row,
  .time-row,
  .feature-grid,
  .comparison-grid,
  .steps,
  .report-list {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-button {
    width: 100%;
  }

  .price-panel strong {
    font-size: 2rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }
}
