/* ==============================
   BOND — site styles (v3)
   Palette: Ink #2C3654 · Bone #EDEDDB · Sand #E1D9BC · Slate #ACBCC4 · Dust #7B8494
   Typography: FbMonopoly (Heb + Latin, 300/400/700/900)
   ============================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'FbMonopoly';
  src: url('fonts/FbMonopolyHeb-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: 'FbMonopoly';
  src: url('fonts/FbMonopolyHeb-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: 'FbMonopoly';
  src: url('fonts/FbMonopolyHeb-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: 'FbMonopoly';
  src: url('fonts/FbMonopolyHeb-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: 'FbMonopoly';
  src: url('fonts/FbMonopolyEn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'FbMonopoly';
  src: url('fonts/FbMonopolyEn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'FbMonopoly';
  src: url('fonts/FbMonopolyEn-Bold.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}

/* ---------- Tokens ---------- */
:root {
  --ink:   #2C3654;
  --bone:  #EDEDDB;
  --sand:  #E1D9BC;
  --slate: #ACBCC4;
  --dust:  #7B8494;
  --warn:  #d69b8a;
  --shell-max: 1320px;

  /* Soft, diffuse shadows — "luxury lobby" not theatrical */
  --shadow-card-dark: 0 24px 48px -12px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.10);
  --shadow-card-light: 0 24px 48px -12px rgba(44, 54, 84, 0.18), 0 2px 6px rgba(44, 54, 84, 0.06);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'FbMonopoly', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html { direction: rtl; }
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; }

/* =====================================================
   STAGE — full-viewport frame
   ===================================================== */
.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 36px 0 72px;
}
@media (min-width: 720px)  { .stage { padding: 56px 0 96px; } }
@media (min-width: 1080px) { .stage { padding: 72px 0 120px; } }

.stage.stage--ink  { background: var(--ink);  color: var(--bone); }
.stage.stage--bone { background: var(--bone); color: var(--ink);  }

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 480px)  { .shell { padding: 0 24px; } }
@media (min-width: 720px)  { .shell { padding: 0 48px; } }
@media (min-width: 1080px) { .shell { padding: 0 72px; } }

/* =====================================================
   LANDING — hero + copy + CTA
   ===================================================== */
.stage-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 980px) {
  .stage-main {
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
}

/* Hero column (right in RTL) */
.hero-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
@media (min-width: 980px) {
  .hero-col { gap: 28px; justify-content: flex-start; }
}

.hero-headline {
  margin: 0;
  font-weight: 900;
  font-size: clamp(44px, 11.5vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: inherit;
}
@media (min-width: 720px) {
  .hero-headline { letter-spacing: -0.025em; max-width: 14ch; }
}
.hero-headline .num {
  font-weight: 900; direction: ltr; display: inline-block;
}

.hero-solve {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3em;
  font-weight: 400;
  font-size: clamp(30px, 8vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
@media (min-width: 720px) {
  .hero-solve { max-width: 18ch; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; }
}
.hero-solve .wm {
  display: inline-flex;
  align-items: center;
  position: relative;
  top: 0.08em;
}
.hero-solve .wm svg {
  height: 0.88em;
  width: auto;
}

.hero-tag {
  margin: 6px 0 0;
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--sand);
  opacity: 0.88;
  max-width: 34ch;
}

/* Copy column (left in RTL) */
.copy-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.copy-card {
  background: var(--bone);
  color: var(--ink);
  border-radius: 8px;
  padding: clamp(18px, 5vw, 34px) clamp(20px, 5vw, 36px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}
@media (min-width: 720px) {
  .copy-card { box-shadow: var(--shadow-card-dark); }
}

.prose p {
  margin: 0;
  font-weight: 400;
  font-size: clamp(14.5px, 1.18vw, 17px);
  line-height: 1.58;
  color: var(--ink);
  opacity: 0.88;
}
.prose p.emph {
  font-weight: 700;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.45;
  opacity: 1;
  letter-spacing: -0.003em;
}
.prose p strong { font-weight: 700; opacity: 1; color: var(--ink); }
.prose p + p { margin-top: 10px; }
@media (min-width: 980px) { .prose p + p { margin-top: 12px; } }
.prose p.closer {
  font-weight: 700;
  font-size: clamp(16px, 1.35vw, 19px);
  letter-spacing: -0.005em;
  opacity: 1;
  margin-top: 14px;
}
/* Trim one paragraph on very narrow screens to reduce card height */
@media (max-width: 520px) {
  .prose p.desktop-only { display: none; }
}

/* Inline bond wordmark — usable anywhere */
.wm-inline {
  display: inline-block;
  vertical-align: -0.18em;
}
.wm-inline svg {
  height: 1.1em;
  width: auto;
  display: block;
}
.hero-solve .wm { /* covered above */ }
.why-title .wm-inline {
  vertical-align: -0.08em;
  margin-inline: 0.04em;
}
.why-title .wm-inline svg { height: 0.78em; }
.why-prose .wm-inline svg { height: 1em; }
.why-prose .outro .wm-inline { vertical-align: -0.08em; }
.why-prose .outro .wm-inline svg { height: 0.78em; }

/* CTA block (outside the copy card) */
.cta-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 4px 0;
}
.cta-line {
  margin: 0;
  font-weight: 400;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--bone);
  opacity: 0.95;
}
@media (min-width: 720px) { .cta-line { max-width: 34ch; } }

/* =====================================================
   Button system
   ===================================================== */
.btn {
  -webkit-appearance: none; appearance: none;
  border: 0; cursor: pointer;
  font: inherit;
  font-family: 'FbMonopoly', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.35vw, 18px);
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--ink);
  background: var(--bone);
  padding: 18px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;   /* push label + arrow to opposite ends */
  gap: 20px;
  min-width: 240px;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease;
  min-height: 52px;
  text-align: center;
}
.btn:hover { background: #f8f7e6; }
.btn:active { background: #f0edd1; }
.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink); color: var(--bone);
  flex-shrink: 0;
}
.btn .arrow svg { width: 12px; height: 12px; }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink .arrow { background: var(--bone); color: var(--ink); }
.btn--ink:hover { background: #243055; }
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(237, 237, 219, 0.28);
  font-weight: 400;
  padding: 17px 20px;
  min-width: 140px;
}
.btn--ghost .arrow { background: var(--bone); color: var(--ink); }
.btn--ghost:hover { background: rgba(237, 237, 219, 0.06); border-color: rgba(237, 237, 219, 0.5); }
.btn--ghost:disabled,
.btn[disabled] { opacity: 0.35; pointer-events: none; cursor: default; }

/* On tight mobile, make the landing CTA pill fill the card width for strength */
@media (max-width: 720px) {
  .cta-block .btn {
    align-self: stretch;
    justify-content: space-between;
  }
}

/* =====================================================
   Landing "anchor" block that wraps the hero bottom row
   (hero-tag lives right under the solve line)
   ===================================================== */

/* =====================================================
   WHY — editorial about section
   ===================================================== */
.why {
  background: var(--bone);
  color: var(--ink);
  padding: clamp(72px, 11vw, 160px) 0 clamp(80px, 13vw, 180px);
}
.why-head {
  max-width: 960px;
  margin: 0 auto clamp(36px, 5vw, 68px);
  text-align: center;
}
.why-title {
  margin: 0 auto;
  font-weight: 900;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
  text-align: center;
}

.why-prose {
  max-width: 78ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.why-prose p {
  margin: 0 auto;
  font-weight: 400;
  font-size: clamp(16.5px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--ink);
  max-width: 74ch;
}
.why-prose p.lead {
  font-weight: 700;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 60ch;
}
.why-prose p strong { font-weight: 700; color: var(--ink); }
.why-prose .outro {
  font-weight: 700;
  font-size: clamp(19px, 1.85vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin-top: 8px;
  max-width: 42ch;
}

/* On mobile, right-align long Hebrew body — centered ragged edges are hard to track */
@media (max-width: 720px) {
  .why-prose, .why-prose p, .why-prose p.lead, .why-prose .outro {
    text-align: right;
    margin-right: 0;
    margin-left: auto;
    max-width: none;
  }
  .why-prose { align-items: stretch; }
}

.why-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 720px) { .why-cta { margin-top: 44px; } }

/* =====================================================
   APPLY — balanced split
   ===================================================== */
.apply-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  align-content: center;
  padding: clamp(40px, 6vw, 80px) 0;
}
@media (min-width: 980px) {
  .apply-main {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 112px);
  }
}

.apply-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.apply-text .wordmark {
  height: 34px;
  margin-bottom: 10px;
  color: var(--ink);
}
@media (min-width: 720px)  { .apply-text .wordmark { height: 40px; margin-bottom: 14px; } }
@media (min-width: 1080px) { .apply-text .wordmark { height: 46px; margin-bottom: 18px; } }

.apply-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 12ch;
}
@media (min-width: 720px) { .apply-title { letter-spacing: -0.025em; } }

.apply-sub {
  margin: 0;
  font-weight: 300;
  font-size: clamp(17px, 1.9vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
  max-width: 30ch;
  opacity: 0.9;
}

/* Form box (dark Ink box with light form inside) */
.form-box {
  background: var(--ink);
  color: var(--bone);
  border-radius: 10px;
  padding: clamp(26px, 3vw, 40px) clamp(22px, 3vw, 40px);
  box-shadow: var(--shadow-card-light);
  width: 100%;
  max-width: 480px;
  justify-self: stretch;
  align-self: center;
  min-height: 420px;
}
@media (min-width: 980px) { .form-box { justify-self: end; } }

/* =====================================================
   Form — shared fields
   ===================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Step indicator / small eyebrow (inside form-box) */
.step-indicator {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.55;
  unicode-bidi: plaintext;
  display: inline-block;
  margin-bottom: 6px;
}

/* Field — label above, input below */
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2px;
}
.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.55;
  align-self: flex-start;
  transition: opacity 180ms ease;
}
.field:focus-within label { opacity: 0.85; }

.field input {
  font: inherit;
  font-family: 'FbMonopoly', system-ui, sans-serif;
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 400;
  color: var(--bone);
  -webkit-text-fill-color: var(--bone);    /* force text color even when spellcheck/autofill interfere */
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(237, 237, 219, 0.28);
  border-radius: 0;
  padding: 12px 0 14px;
  line-height: 1.2;
  width: 100%;
  outline: none;
  direction: rtl;
  text-align: right;
  transition: border-color 180ms ease;
  -webkit-appearance: none; appearance: none;
  caret-color: var(--bone);
  text-decoration-skip-ink: none;
  text-decoration-color: transparent;       /* hide the red spellcheck squiggle in some browsers */
}
.field input[type="email"], .field input[type="tel"] { direction: ltr; text-align: left; }
.field input::placeholder { color: rgba(237, 237, 219, 0.3); }
.field input:focus { border-bottom-color: var(--bone); }

/* Kill Chrome autofill blue fill — keep the dark surface */
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus,
.form input:-webkit-autofill:active,
.form textarea:-webkit-autofill,
.admin-gate input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--ink) inset !important;
  -webkit-text-fill-color: var(--bone) !important;
  caret-color: var(--bone) !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Textarea */
.form textarea {
  font: inherit;
  font-family: 'FbMonopoly', system-ui, sans-serif;
  font-size: clamp(16px, 1.35vw, 18px);
  font-weight: 400;
  color: var(--bone);
  background: rgba(237, 237, 219, 0.04);
  border: 1px solid rgba(237, 237, 219, 0.22);
  border-radius: 8px;
  padding: 14px 16px;
  width: 100%;
  outline: none;
  direction: rtl;
  text-align: right;
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
  transition: border-color 180ms ease, background 180ms ease;
  -webkit-appearance: none; appearance: none;
  caret-color: var(--bone);
}
.form textarea::placeholder { color: rgba(237, 237, 219, 0.35); }
.form textarea:focus { border-color: var(--bone); background: rgba(237, 237, 219, 0.07); }

/* Consent checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  cursor: pointer;
  font-size: clamp(12px, 1vw, 13.5px);
  line-height: 1.55;
  color: var(--bone);
  opacity: 0.82;
}
.consent input {
  appearance: none; -webkit-appearance: none; margin: 3px 0 0;
  width: 18px; height: 18px;
  border: 1px solid var(--bone);
  border-radius: 3px;
  background: transparent; flex-shrink: 0;
  cursor: pointer; position: relative;
  transition: background 160ms ease;
}
.consent input:checked { background: var(--bone); }
.consent input:checked::after {
  content: '';
  position: absolute;
  inset-inline-start: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; color: var(--bone); }

/* Step-1 submit button */
.form .btn {
  background: var(--bone); color: var(--ink);
  align-self: flex-start;
  margin-top: 4px;
}
.form .btn .arrow { background: var(--ink); color: var(--bone); }
.form .btn:hover { background: #f8f7e6; }

/* =====================================================
   Step 2 — one question per screen
   ===================================================== */
.q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.q-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.q-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(237, 237, 219, 0.22);
  transition: width 240ms ease, background 240ms ease, border-radius 240ms ease;
}
.q-dots .dot.done { background: rgba(237, 237, 219, 0.55); }
.q-dots .dot.active {
  background: var(--bone);
  width: 22px;
  border-radius: 3px;
}
.q-counter {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.55;
  direction: ltr;
  unicode-bidi: plaintext;
}

.q-screen {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: qFadeIn 260ms ease both;
}
@keyframes qFadeIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .q-screen { animation: none; }
}

.q-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 22ch;
}
.q-note {
  margin: -4px 0 0;
  font-size: 13.5px;
  color: var(--bone);
  opacity: 0.6;
  line-height: 1.5;
}

/* Price note inside Q5 */
.price-note {
  margin: 0 0 4px;
  font-size: clamp(14px, 1.1vw, 15.5px);
  color: var(--bone);
  opacity: 0.8;
  line-height: 1.55;
}
.price-note .fee {
  font-weight: 700;
  opacity: 1;
  display: block;
  margin-bottom: 4px;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  cursor: pointer;
  font-size: clamp(15px, 1.2vw, 16.5px);
  color: var(--bone);
  opacity: 0.85;
  transition: opacity 160ms ease;
  border-radius: 4px;
}
.radio:hover { opacity: 1; }
.radio input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 18px; height: 18px;
  border: 1px solid rgba(237, 237, 219, 0.5);
  border-radius: 50%;
  background: transparent; flex-shrink: 0;
  cursor: pointer; position: relative;
  transition: border-color 160ms ease;
}
.radio input:checked { border-color: var(--bone); }
.radio input:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--bone);
  border-radius: 50%;
}
.radio:has(input:checked) { opacity: 1; }

/* "Other" inline text field — proper bordered box */
.form input.other-input {
  display: none;
  margin: 10px 0 4px 30px;
  width: calc(100% - 30px);
  font: inherit;
  font-family: 'FbMonopoly', system-ui, sans-serif;
  font-size: 16px;
  color: var(--bone);
  background: rgba(237, 237, 219, 0.04);
  border: 1px solid rgba(237, 237, 219, 0.22);
  border-radius: 6px;
  padding: 10px 14px;
  outline: none;
  direction: rtl;
  text-align: right;
  transition: border-color 160ms ease, background 160ms ease;
  caret-color: var(--bone);
}
.form input.other-input::placeholder { color: rgba(237, 237, 219, 0.35); }
.form input.other-input:focus {
  border-color: var(--bone);
  background: rgba(237, 237, 219, 0.07);
  border-bottom-color: var(--bone);
}
.question:has(.radio input[value="other"]:checked) .other-input {
  display: block;
  animation: otherIn 200ms ease both;
}
@keyframes otherIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Nav row — back/next */
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(237, 237, 219, 0.14);
}
.q-nav .btn { margin-top: 0; }
.q-nav .btn--ghost .arrow-back { transform: scaleX(-1); }

/* =====================================================
   Thanks — final full-page centered moment
   ===================================================== */
.thanks-final {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: thanksIn 360ms ease both;
}
.thanks-final.open { display: flex; }
@keyframes thanksIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.thanks-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  text-align: center;
  max-width: 720px;
}
.thanks-logo {
  height: clamp(64px, 9vw, 118px);
  width: auto;
  color: var(--ink);
  margin-bottom: 8px;
}
.thanks-big {
  margin: 0;
  font-weight: 900;
  font-size: clamp(38px, 6.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch;
}
.thanks-sub {
  margin: 0;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  opacity: 0.7;
  letter-spacing: -0.005em;
  max-width: 32ch;
}

.form.hidden, .hidden { display: none !important; }

/* =====================================================
   TERMS page
   ===================================================== */
.terms-stage {
  background: var(--bone);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 0 80px;
}
.terms-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.terms-top .wordmark {
  height: 36px;
  color: var(--ink);
}
@media (min-width: 720px) { .terms-top .wordmark { height: 42px; } }
.terms-top .close-btn {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: 1px solid rgba(44, 54, 84, 0.18);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 160ms ease, border-color 160ms ease;
}
.terms-top .close-btn:hover { background: rgba(44, 54, 84, 0.05); border-color: rgba(44, 54, 84, 0.3); }
.terms-top .close-btn .x { font-size: 14px; line-height: 1; }

.terms-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(44, 54, 84, 0.12);
  flex-wrap: wrap;
}
.terms-tabs button {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(14px, 1.15vw, 16px);
  color: var(--ink);
  opacity: 0.45;
  padding: 14px 18px;
  cursor: pointer;
  position: relative;
  transition: opacity 180ms ease;
  white-space: nowrap;
}
.terms-tabs button:hover { opacity: 0.75; }
.terms-tabs button.active { opacity: 1; }
.terms-tabs button.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--ink);
}

.terms-doc {
  max-width: 68ch;
  margin: 0 auto;
  padding: 0 4px;
}
.terms-doc.hidden { display: none; }
.terms-doc h1 {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.terms-doc .updated {
  display: block;
  margin-bottom: 40px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dust);
  opacity: 0.85;
  unicode-bidi: plaintext;
}
.terms-doc h2 {
  margin: 40px 0 14px;
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.terms-doc p, .terms-doc li {
  margin: 0 0 14px;
  font-weight: 400;
  font-size: clamp(15.5px, 1.25vw, 17px);
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.9;
}
.terms-doc ul {
  margin: 0 0 18px 0;
  padding: 0;
  padding-inline-start: 24px;
  list-style-position: outside;
}
.terms-doc li { margin-bottom: 8px; }
.terms-doc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terms-doc strong { font-weight: 700; }
.terms-doc .contact-block {
  margin-top: 28px;
  padding: 22px 24px;
  background: rgba(44, 54, 84, 0.04);
  border: 1px solid rgba(44, 54, 84, 0.08);
  border-radius: 8px;
}
.terms-doc .contact-block p { margin: 0 0 6px; opacity: 0.95; }
.terms-doc .contact-block p:last-child { margin-bottom: 0; }

/* =====================================================
   ADMIN page  (scoped styles live in admin.html <style>, this file provides shared)
   ===================================================== */
