@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src:
    url("assets/fonts/newsreader-latin-variable.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --ink: #18221d;
  --muted: #626c65;
  --paper: #f3eee6;
  --surface: #fffdf8;
  --accent: #c4934f;
  --accent-dark: #6c4725;
  --line: #d9cec0;
  --soft: #e5ece7;
  --night: #101813;
  --night-soft: #1a241e;
  --shadow: 0 24px 70px rgba(24, 34, 29, 0.13);
  --warning: #785b21;
  --warning-bg: #fff6db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(196, 147, 79, 0.11), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
}

body[data-variant="five-phase"] {
  --accent: #91b4a4;
  --accent-dark: #315f50;
}

a {
  color: var(--accent-dark);
}

.page {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-decoration: none;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.brand-mark::after {
  position: absolute;
  inset: 7px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  content: "";
  transform: rotate(-35deg);
}

.variant-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 720px;
  padding: 88px 0 116px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fbf5ea;
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 61%;
  margin: 0;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(16, 24, 19, 0.83) 18%, transparent 67%),
    linear-gradient(0deg, rgba(16, 24, 19, 0.72), transparent 42%);
  content: "";
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.86) contrast(1.04);
}

.hero-copy-panel {
  position: relative;
  z-index: 1;
  width: min(59%, 660px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.03rem;
}

body[data-variant] .hero-copy-panel h1,
body[data-variant] .section h2,
.form-page .form-shell h1,
.form-story h2,
.document-layout .form-shell > h1,
.hero-note {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

body[data-variant] .hero-copy-panel h1,
.form-page .form-shell h1,
.document-layout .form-shell > h1 {
  font-weight: 475;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

body[data-variant] .section h2,
.form-story h2 {
  font-weight: 450;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.hero-copy {
  max-width: 660px;
  color: rgba(251, 245, 234, 0.77);
  font-size: 1.12rem;
}

.hero-note {
  margin: 22px 0 0;
  color: rgba(251, 245, 234, 0.58);
  font-weight: 450;
  letter-spacing: 0;
  font-style: italic;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--night);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: #e0b979;
  color: var(--night);
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(36, 95, 74, 0.28);
  outline-offset: 2px;
}

.preview-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.reset-preview {
  position: relative;
  z-index: 2;
  margin-top: -70px;
  padding-bottom: 18px;
}

.reset-preview > .eyebrow {
  margin-left: 28px;
  color: rgba(251, 245, 234, 0.72);
}

.preview-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.preview-step:last-child {
  border-right: 0;
}

.step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.section {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 700px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 36px rgba(24, 34, 29, 0.07);
}

.boundary {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  color: var(--muted);
}

.form-shell {
  width: 100%;
  margin: 0;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 32px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 82px;
}

.form-story {
  position: sticky;
  top: 24px;
  min-height: 720px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--night);
  box-shadow: var(--shadow);
  color: #fbf5ea;
}

.form-story::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 14, 11, 0.94), transparent 68%);
  content: "";
}

.form-story img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-story > div {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 32px;
  left: 30px;
}

.form-story h2 {
  font-weight: 450;
}

.form-story p {
  color: rgba(251, 245, 234, 0.75);
}

.form-shell h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
}

.form-intro {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.02rem;
}

#interest-form > label:first-of-type {
  margin-top: 12px;
}

.document-layout .form-shell {
  width: min(100%, 780px);
  margin: 64px auto 82px;
}

label {
  display: block;
  margin: 18px 0 7px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.notice,
.status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 7px;
  color: var(--warning);
  background: var(--warning-bg);
  font-size: 0.9rem;
}

.status:empty {
  display: none;
}

.footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.metrics {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .cards,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    --mobile-hero-overlap: 24px;
    --mobile-hero-visual-height: clamp(300px, 42vh, 372px);
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 18px 0 40px;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: var(--mobile-hero-visual-height);
    flex: 0 0 var(--mobile-hero-visual-height);
  }

  .hero-visual::after {
    background: linear-gradient(
      0deg,
      rgba(16, 24, 19, 0.7),
      transparent 34%
    );
  }

  .hero-visual img {
    display: block;
    object-position: center 40%;
  }

  .hero-copy-panel {
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin-top: calc(-1 * var(--mobile-hero-overlap));
    padding: 24px 20px 28px;
    border-radius: 18px 18px 0 0;
    background: var(--night-soft);
    box-shadow: 0 -12px 32px rgba(6, 12, 8, 0.24);
  }

  .hero-copy-panel h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 8.9vw, 2.7rem);
    line-height: 1.03;
  }

  .hero-copy {
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .hero-copy-panel .button {
    width: 100%;
    max-width: 100%;
  }

  .hero-note {
    display: none;
  }

  .reset-preview {
    margin-top: 0;
    padding-top: 28px;
  }

  .reset-preview > .eyebrow {
    margin-left: 0;
    color: var(--accent-dark);
  }

  .preview-card {
    grid-template-columns: 1fr;
    padding: 10px 22px;
  }

  .preview-step {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preview-step:last-child {
    border-bottom: 0;
  }

  .form-layout {
    padding-top: 28px;
  }

  .form-story {
    position: relative;
    top: auto;
    height: clamp(320px, 42vh, 360px);
    min-height: 0;
  }

  .form-shell {
    padding: 28px 22px;
  }

  .form-page .form-shell h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .form-intro {
    margin-bottom: 4px;
    line-height: 1.48;
  }

  #interest-form > label:first-of-type {
    margin-top: 10px;
  }

  .footer {
    flex-direction: column;
  }

  @supports (height: 1svh) {
    .hero {
      --mobile-hero-visual-height: clamp(300px, 42svh, 372px);
    }
  }

  @supports (height: 1svh) {
    .form-story {
      height: clamp(320px, 42svh, 360px);
    }
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 24px, 1040px);
  }

  .site-header {
    min-height: 72px;
  }

  .variant-label {
    max-width: 98px;
    text-align: right;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }
}
