@font-face { font-family: "Work Sans"; src: url("/assets/fonts/WorkSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/WorkSans-Medium.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }

:root {
  --evergreen: #18332F;
  --evergreen-deep: #10241F;
  --canvas: #2D4844;
  --viridian: #6A8380;
  --sand: #D1B98D;
  --sand-bright: #E4D2AE;
  --on-sand: #14302C;
  --off: #F5F3EE;
  --muted: #C9D3CF;
  --line: rgba(209, 185, 141, 0.24);
  --glass: rgba(24, 51, 47, 0.62);
  --error: #FFB4A8;
  --ok: #B9E6C9;
  --radius: 20px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--evergreen-deep); }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 1rem/1.6 var(--sans);
  color: var(--off);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(209, 185, 141, 0.16), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(106, 131, 128, 0.28), transparent 60%),
    linear-gradient(180deg, var(--evergreen) 0%, var(--evergreen-deep) 100%);
  background-repeat: no-repeat;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sand-bright); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--sand-bright); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .6rem 1rem; background: var(--sand); color: var(--on-sand); border-radius: 10px; font-weight: 500; }
.skip:focus { top: 1rem; }

.site-header { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { width: 150px; height: auto; }
.header-help { color: var(--muted); text-decoration: none; font-size: .92rem; }
.header-help span { color: var(--sand-bright); font-weight: 500; }
.header-help:hover span { text-decoration: underline; }

.preview-banner { background: var(--sand); color: var(--on-sand); font-size: .9rem; padding: .55rem 0; }

.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid {
  display: grid; column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 0; align-items: start;
  grid-template-columns: 1.05fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: "copy card" "benefits card";
}
.hero-copy { grid-area: copy; }
.hero-grid > .card { grid-area: card; }
.hero-grid > .benefits { grid-area: benefits; }
.eyebrow { margin: 0 0 1rem; color: var(--sand); font-size: .82rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.01em; }
h1 em { color: var(--sand); font-style: italic; }
.lede { margin: 1.4rem 0 2.2rem; max-width: 32rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 30rem; }
.benefits li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.benefits svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--sand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.benefits strong { display: block; font-weight: 500; color: var(--off); }
.benefits span { color: var(--muted); font-size: .95rem; }

.card {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 1.3rem; }
.step-count { margin: 0 0 .4rem; color: var(--sand); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

.notice { margin: 0 0 1.2rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--sand); background: rgba(209, 185, 141, 0.12); }
.notice strong { display: block; font-weight: 500; color: var(--sand-bright); margin-bottom: .2rem; }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 500; margin-bottom: .25rem; }
.hint { margin: 0 0 .5rem; color: var(--muted); font-size: .9rem; }
.field-error { margin: 0 0 .5rem; color: var(--error); font-weight: 500; font-size: .95rem; }
.field-error::before { content: "! "; }
.phone-input { display: flex; align-items: stretch; border: 1.5px solid rgba(245, 243, 238, 0.45); border-radius: 12px; background: rgba(16, 36, 31, 0.6); overflow: hidden; }
.phone-input:focus-within { border-color: var(--sand-bright); box-shadow: 0 0 0 3px rgba(228, 210, 174, 0.25); }
.prefix { display: grid; place-items: center; padding: 0 .9rem; color: var(--muted); border-right: 1px solid rgba(245, 243, 238, 0.2); font-variant-numeric: tabular-nums; }
input[type="tel"], .code-input {
  width: 100%; min-height: 52px; padding: .75rem .9rem; border: 0; background: transparent; color: var(--off);
  font: 500 1.15rem/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
input[type="tel"]:focus, .code-input:focus { outline: none; }
.code-input { border: 1.5px solid rgba(245, 243, 238, 0.45); border-radius: 12px; background: rgba(16, 36, 31, 0.6); font-size: 1.6rem; letter-spacing: .5em; text-indent: .5em; text-align: center; max-width: 16rem; }
.code-input:focus { border-color: var(--sand-bright); box-shadow: 0 0 0 3px rgba(228, 210, 174, 0.25); }
.has-error .phone-input, .has-error .code-input { border-color: var(--error); }

.check { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); }
.has-error .check { border-color: var(--error); }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--sand); }
.check label { font-weight: 400; margin: 0; line-height: 1.5; }
.check [data-consent-phone] { font-weight: 500; color: var(--sand-bright); white-space: nowrap; }

.disclosure { margin: 0 0 .5rem; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.disclosure-links { margin: 0 0 1.25rem; font-size: .9rem; color: var(--muted); }
.turnstile { min-height: 65px; margin-bottom: 1.1rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: .8rem 1.4rem;
  border: 0; border-radius: 999px; background: var(--sand); color: var(--on-sand); cursor: pointer;
  font: 500 1.05rem/1 var(--sans); letter-spacing: .01em; box-shadow: 0 10px 30px -12px rgba(209, 185, 141, 0.7);
  transition: background .15s ease, transform .15s ease;
}
.button:hover { background: var(--sand-bright); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .6; cursor: progress; }
.step-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 1rem; }
.link-button { background: none; border: 0; padding: .4rem 0; color: var(--sand-bright); font: inherit; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sent-to { margin: -.6rem 0 1rem; color: var(--muted); }
.preview-code { margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 10px; border: 1px dashed var(--sand); color: var(--sand-bright); font-variant-numeric: tabular-nums; }

.error-summary { margin: 0 0 1.2rem; padding: .9rem 1.1rem; border-radius: 12px; border: 1.5px solid var(--error); background: rgba(255, 180, 168, 0.08); }
.error-summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }
.error-title { margin: 0 0 .3rem; font-weight: 500; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: var(--off); }

.done { text-align: center; }
.done-mark { width: 64px; height: 64px; margin: 0 auto 1rem; fill: none; stroke: var(--sand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { margin-bottom: .7rem; }
.receipt { margin: 1.4rem 0; padding: 0; text-align: left; border-top: 1px solid var(--line); }
.receipt div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.receipt dt { color: var(--muted); font-size: .9rem; }
.receipt dd { margin: 0; text-align: right; font-weight: 500; font-size: .95rem; }
.small { font-size: .9rem; color: var(--muted); }

.how { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.how h2, .privacy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.how-steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.how-steps li { padding: 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.how-steps h3 { font-size: 1.3rem; margin: .9rem 0 .4rem; }
.how-steps p { margin: 0; color: var(--muted); }
.num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sand); color: var(--on-sand); font-weight: 500; }

.privacy { padding: clamp(3rem, 6vw, 5rem) 0; background: rgba(16, 36, 31, 0.5); border-top: 1px solid var(--line); }
.privacy-grid { display: grid; gap: 1.5rem 4rem; grid-template-columns: .8fr 1.2fr; align-items: start; }
.privacy p { margin: 0; font-size: 1.08rem; color: var(--off); padding-left: 1.3rem; border-left: 2px solid var(--sand); }

.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 1.2rem 3rem; grid-template-columns: 1.3fr auto 1.2fr; align-items: start; }
.footer-grid p { margin: .7rem 0 0; }
.footer-grid nav { display: flex; gap: 1.4rem; margin-top: .3rem; }

/* Legal pages */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.doc h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; color: var(--sand-bright); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--off); font-weight: 500; }
.doc .meta { color: var(--sand); font-size: .9rem; }
.doc .quote { margin: 1rem 0; padding: 1rem 1.2rem; border-left: 2px solid var(--sand); background: rgba(255, 255, 255, 0.03); color: var(--off); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "card" "benefits"; row-gap: 2rem; }
  .privacy-grid, .footer-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .benefits { max-width: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { padding: 1rem 0; }
  .brand img { width: 124px; }
  .header-help { font-size: .85rem; }
  .header-help { white-space: nowrap; }
  .hero { padding-top: 2rem; }
  .lede { margin-bottom: 1.6rem; }
  .card { border-radius: 18px; padding: 1.35rem; }
  .benefits li { padding: .85rem .95rem; }
  .receipt div { flex-direction: column; gap: .1rem; }
  .receipt dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
