@font-face { font-family: "Sora"; src: url("fonts/sora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --terra: #c17a3a;
  --terra-dark: #8b4e1a;
  --terra-light: #e8c99a;
  --terra-pale: #f7ede0;
  --charcoal: #1e1a17;
  --charcoal-2: #2a2420;
  --charcoal-3: #3d3530;
  --mid: #7a6a5e;
  --muted: #a89a8e;
  --border: #e2d8cf;
  --cream: #faf6f0;
  --white: #ffffff;
  --green: #2e5e3e;
  --red: #c0392b;
  --display: "Sora", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --shadow-sm: 0 12px 34px rgba(30, 26, 23, 0.08);
  --shadow-lg: 0 30px 90px rgba(30, 26, 23, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

::selection { background: var(--terra-light); color: var(--charcoal); }

.site-shell,
.success-page {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 6%, rgba(193, 122, 58, 0.08), transparent 24%),
    linear-gradient(135deg, #fffdf9 0%, var(--cream) 56%, #f8f1e8 100%);
}

.site-shell::after,
.success-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.shell { width: min(calc(100% - 48px), 1320px); margin-inline: auto; }

.topbar {
  height: 92px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(139, 78, 26, 0.13);
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(18px);
}

.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--charcoal); font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: -0.045em; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(145deg, #d0843f, var(--terra-dark)); color: white; box-shadow: 0 12px 32px rgba(193, 122, 58, 0.28); }
.brand-mark svg { width: 28px; height: 28px; }

.program-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 18px; border: 1px solid rgba(193, 122, 58, 0.18); border-radius: 999px; background: rgba(247, 237, 224, 0.86); color: var(--terra-dark); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.program-badge b { color: var(--terra); }

.warm-glow { position: absolute; pointer-events: none; border-radius: 999px; filter: blur(8px); }
.warm-glow-one { width: 420px; height: 420px; left: -260px; top: 200px; background: rgba(232, 201, 154, 0.22); }
.warm-glow-two { width: 520px; height: 520px; right: -320px; bottom: -160px; background: rgba(193, 122, 58, 0.09); }

.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(550px, 1.1fr); gap: clamp(54px, 6vw, 92px); align-items: start; padding: 74px 0 86px; }
.hero-copy { position: sticky; top: 126px; padding-top: 24px; animation: fade-up 0.55s ease both; }
.hero-kicker { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 26px; color: var(--terra-dark); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 32px; height: 2px; background: var(--terra); }
.hero-copy h1 { max-width: 650px; margin: 0; font-family: var(--display); font-size: clamp(52px, 5vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -0.055em; }
.hero-copy h1 em { color: var(--terra); font-style: normal; }
.hero-lead { max-width: 600px; margin: 28px 0 0; color: var(--charcoal-3); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; }

.journey { max-width: 600px; margin-top: 38px; display: grid; grid-template-columns: auto minmax(28px, 1fr) auto minmax(28px, 1fr) auto; align-items: start; }
.journey-step { min-width: 108px; text-align: center; }
.journey-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 8px; border: 1px solid rgba(193, 122, 58, 0.22); border-radius: 50%; color: var(--terra-dark); background: linear-gradient(145deg, rgba(255,255,255,0.95), var(--terra-pale)); box-shadow: 0 10px 26px rgba(139, 78, 26, 0.08); }
.journey-icon svg { width: 27px; height: 27px; }
.journey-step strong { display: block; color: var(--terra); font-family: var(--display); font-size: 18px; }
.journey-step p { margin: 3px 0 0; color: var(--charcoal-3); font-size: 13px; font-weight: 600; white-space: nowrap; }
.journey-line { height: 1px; margin-top: 29px; border-top: 1px dashed rgba(193, 122, 58, 0.55); }

.primary-cta,
.panel-primary,
.secondary-button { border: 0; border-radius: 999px; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 26px; font-weight: 700; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.primary-cta { margin-top: 36px; color: white; background: var(--terra); box-shadow: 0 16px 36px rgba(193, 122, 58, 0.28); }
.primary-cta svg,
.panel-primary svg { width: 19px; height: 19px; }
.primary-cta:hover,
.panel-primary:hover { transform: translateY(-2px); background: var(--terra-dark); box-shadow: 0 20px 44px rgba(193, 122, 58, 0.3); }
.primary-cta:focus-visible,
.panel-primary:focus-visible,
.secondary-button:focus-visible { outline: 3px solid rgba(193, 122, 58, 0.28); outline-offset: 3px; }
.time-note { display: flex; align-items: center; gap: 10px; margin: 16px 0 0 10px; color: var(--mid); font-size: 14px; }
.time-note span { color: var(--terra-dark); font-size: 21px; }

.intake-panel { position: relative; min-width: 0; padding: 38px 40px 32px; border: 1px solid rgba(193, 122, 58, 0.18); border-radius: 26px; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-lg); animation: fade-up 0.55s 0.08s ease both; backdrop-filter: blur(18px); }
.panel-progress { padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.progress-row strong { font-family: var(--display); font-size: 15px; }
.progress-row span { color: var(--mid); font-size: 13px; font-weight: 600; }
.progress-track { height: 8px; margin-top: 15px; overflow: hidden; border-radius: 999px; background: var(--terra-pale); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--terra-dark), var(--terra), var(--terra-light)); transition: width 0.55s cubic-bezier(0.2, 0.75, 0.2, 1); }

.panel-heading { padding: 28px 0 25px; }
.panel-heading > span { display: block; margin-bottom: 8px; color: var(--terra); font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.panel-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(25px, 2.3vw, 32px); line-height: 1.14; letter-spacing: -0.035em; }
.panel-heading p { margin: 9px 0 0; color: var(--mid); font-size: 14px; line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; animation: field-enter 0.28s ease both; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.field-label-row label { color: var(--charcoal-2); font-size: 13px; font-weight: 700; }
.field-label-row span { color: var(--muted); font-size: 11px; }
.field input:not([type="checkbox"]),
.field select,
.field textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; outline: none; background: rgba(255,255,255,0.88); color: var(--charcoal); transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.field input:not([type="checkbox"]), .field select { min-height: 52px; padding: 0 15px; }
.field textarea { resize: vertical; min-height: 108px; padding: 14px 15px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #b2a69d; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--terra); background: white; box-shadow: 0 0 0 4px rgba(247, 237, 224, 0.9); }
.field input.input-error,
.field select.input-error,
.field textarea.input-error { border-color: rgba(192,57,43,0.6); }
.field-error { margin: 6px 2px 0; color: var(--red); font-size: 11.5px; line-height: 1.4; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice { min-height: 46px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 13px; display: flex; align-items: center; gap: 9px; text-align: left; color: var(--charcoal-3); background: rgba(255,255,255,0.82); font-size: 12.5px; font-weight: 600; line-height: 1.3; transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.choice:hover:not(:disabled) { border-color: var(--terra-light); transform: translateY(-1px); }
.choice.selected { border-color: rgba(193,122,58,0.55); background: var(--terra-pale); color: var(--terra-dark); }
.choice:disabled { opacity: 0.45; }
.choice-check { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: var(--terra-dark); background: white; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(193,122,58,0.18); }
.choice.selected .choice-check { color: white; background: var(--terra); box-shadow: none; }

.consent { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--border); border-radius: 14px; color: var(--charcoal-3); background: var(--cream); font-size: 12.5px; line-height: 1.55; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--terra); flex: 0 0 auto; }
.consent-error { border-color: rgba(192,57,43,0.55); }

.panel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.panel-primary { min-width: 150px; color: white; background: var(--terra); box-shadow: 0 12px 28px rgba(193, 122, 58, 0.24); }
.panel-primary:disabled { opacity: 0.62; transform: none; box-shadow: none; }
.secondary-button { min-width: 110px; border: 1px solid var(--border); color: var(--charcoal-3); background: white; }
.secondary-button:hover { border-color: var(--terra-light); background: var(--cream); }
.privacy-note { margin: 17px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.submit-error { margin-top: 20px; padding: 13px 15px; border: 1px solid rgba(192,57,43,0.22); border-radius: 12px; color: #9e2f24; background: #fdecea; font-size: 13px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-step { animation: field-enter 0.28s ease both; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: rgba(193,122,58,0.55); background: var(--terra-pale); color: var(--terra-dark); }
.choice:has(input:checked) .choice-check { color: white; background: var(--terra); box-shadow: none; }
.choice:has(input:checked) .choice-check::before { content: "✓"; }
.choice-check::before { content: "+"; }
.success-wrap { width: min(calc(100% - 48px), 760px); margin: 64px auto; position: relative; z-index: 2; }

.success-page { display: flex; flex-direction: column; }
.success-card { width: min(calc(100% - 48px), 760px); margin: auto; padding: 78px 54px 72px; position: relative; z-index: 2; text-align: center; border: 1px solid rgba(193,122,58,0.18); border-radius: 28px; background: rgba(255,255,255,0.88); box-shadow: var(--shadow-lg); }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%; color: white; background: var(--terra); box-shadow: 0 18px 40px rgba(193,122,58,0.28); font-family: var(--display); font-size: 31px; font-weight: 700; }
.eyebrow { color: var(--terra); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
.success-card h1 { margin: 16px auto 0; max-width: 620px; font-family: var(--display); font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.05em; }
.success-card > p:not(.eyebrow):not(.success-note) { max-width: 600px; margin: 24px auto 0; color: var(--mid); font-size: 17px; line-height: 1.65; }
.protocol { width: min(100%, 420px); margin: 30px auto 0; padding: 18px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--cream); }
.protocol span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.protocol strong { display: block; margin-top: 6px; color: var(--terra-dark); font-family: var(--display); font-size: 18px; }
.success-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; }

@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes field-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .hero-layout { grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr); gap: 42px; }
  .hero-copy h1 { font-size: clamp(46px, 5.2vw, 62px); }
  .journey-step { min-width: 94px; }
  .intake-panel { padding-inline: 30px; }
}

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 54px; padding-top: 52px; }
  .hero-copy { position: static; max-width: 740px; padding-top: 0; }
  .hero-copy h1 { max-width: 720px; font-size: clamp(50px, 8vw, 68px); }
  .hero-lead { max-width: 680px; }
  .journey { max-width: 620px; }
  .intake-panel { scroll-margin-top: 24px; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 32px), 1320px); }
  .topbar { height: 76px; }
  .brand { gap: 9px; font-size: 22px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .program-badge { min-height: 36px; padding: 0 12px; gap: 7px; font-size: 8.5px; letter-spacing: 0.1em; }
  .hero-layout { padding: 42px 0 58px; gap: 42px; }
  .hero-kicker { margin-bottom: 20px; font-size: 9px; }
  .hero-copy h1 { font-size: clamp(39px, 11.6vw, 52px); line-height: 1.03; letter-spacing: -0.048em; }
  .hero-lead { margin-top: 22px; font-size: 16.5px; line-height: 1.58; }
  .journey { margin-top: 32px; grid-template-columns: 1fr 20px 1fr 20px 1fr; }
  .journey-step { min-width: 0; }
  .journey-icon { width: 48px; height: 48px; }
  .journey-icon svg { width: 23px; height: 23px; }
  .journey-line { margin-top: 24px; }
  .journey-step p { font-size: 10.5px; white-space: normal; }
  .primary-cta { width: 100%; margin-top: 30px; }
  .time-note { justify-content: center; margin-left: 0; }
  .intake-panel { padding: 27px 20px 24px; border-radius: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .field-wide { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr; }
  .panel-heading { padding-block: 24px 22px; }
  .panel-heading h2 { font-size: 25px; }
  .panel-actions { align-items: stretch; flex-direction: column-reverse; }
  .panel-primary, .secondary-button { width: 100%; }
  .success-card { width: min(calc(100% - 32px), 760px); margin-block: 40px; padding: 52px 22px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
