/* ============================================================
   Effortless Scale — v2 UI system
   One stylesheet for /onboarding (wizard), /thank-you, /privacy-policy.

   Structure borrowed from the shadcn/ui form idiom (labels above,
   helper text below, bordered white inputs, soft focus ring, muted
   secondary text) re-tokenised onto the locked Effortless Scale brand:
   Midnight frame, Ivory surface, Gold accents, DM Serif Display + Inter.
   ============================================================ */

:root {
  /* Brand — exact values from the visual guide, non-negotiable */
  --midnight: #0f1b2d;
  --gold: #c8a24b;
  --gold-light: #e2c07a;
  --ivory: #fafaf7;
  --mist: #d7dce2;
  --smoke: #aeb9c6;
  --steel: #8c99a8;
  --slate: #6e7c8c;

  /* Semantic — light surface (the card) */
  --surface: var(--ivory);
  --surface-input: #ffffff;
  --surface-sunk: #f2f3ef;
  --border: #e2e4de;
  --border-strong: #d0d4cd;
  --ink: #0f1b2d;
  --ink-soft: #465363;
  --ink-faint: #6e7c8c;

  /* Semantic — feedback */
  --destructive: #b4423c;
  --destructive-bg: #fdf3f2;
  --ok: #3c8c5a;

  /* Focus ring — gold, shadcn-style 3px soft ring */
  --ring: rgba(200, 162, 75, 0.28);

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-lg: 16px;
  --radius: 8px;
  --shell: 760px;
  --card-pad: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Masthead (the Midnight frame) ────────────────────────── */

.masthead {
  padding: 30px 0 30px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 30px;
}

.es-mark {
  width: 24px;
  height: auto;
  display: block;
  flex: none;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  color: var(--ivory);
  letter-spacing: 0.005em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.masthead h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(27px, 5.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ivory);
  margin: 0 0 12px;
}

.masthead h1 em {
  font-style: italic;
  color: var(--gold);
}

.masthead .standfirst {
  font-size: 15px;
  line-height: 1.7;
  color: var(--smoke);
  margin: 0;
  max-width: 54ch;
}

/* ── Stepper (sits on Midnight, above the card) ───────────── */

.stepper-wrap {
  margin: 6px 0 22px;
}

.stepper {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.s-item {
  flex: 1;
  position: relative;
  text-align: center;
}

/* Connector line, drawn from each item to the one before it */
.s-item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(-50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: rgba(215, 220, 226, 0.16);
  transition: background 0.25s ease;
}

.s-item.is-done:not(:first-child)::before,
.s-item.is-active:not(:first-child)::before {
  background: var(--gold);
}

.step-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.s-item.is-done .step-btn {
  cursor: pointer;
}

/* Completed dots are tappable. The dot itself stays 32px (27px on mobile)
   for visual rhythm, so extend the hit area to 44x44 with an overlay —
   this adds no layout shift and leaves the connector lines untouched. */
.s-item.is-done .step-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(215, 220, 226, 0.3);
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  transition: all 0.22s ease;
}

.dot .dot-check {
  display: none;
  width: 14px;
  height: 14px;
}

.s-item.is-active .dot {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(200, 162, 75, 0.12);
  box-shadow: 0 0 0 5px rgba(200, 162, 75, 0.1);
}

.s-item.is-done .dot {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--midnight);
}

.s-item.is-done .dot .dot-num {
  display: none;
}

.s-item.is-done .dot .dot-check {
  display: block;
}

.s-item.is-done:hover .dot {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.step-btn:focus-visible .dot {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color 0.2s ease;
}

.s-item.is-active .step-label {
  color: var(--ivory);
}

.s-item.is-done .step-label {
  color: var(--smoke);
}

/* Mobile progress line under the dots */
.mobile-progress {
  display: none;
  margin-top: 16px;
}

.mp-text {
  font-size: 12.5px;
  color: var(--smoke);
  margin-bottom: 8px;
}

.mp-text strong {
  color: var(--ivory);
  font-weight: 500;
}

.mp-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(215, 220, 226, 0.14);
  overflow: hidden;
}

.mp-bar span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

@media (max-width: 600px) {
  .step-label {
    display: none;
  }
  .dot {
    width: 27px;
    height: 27px;
    font-size: 12px;
  }
  .s-item:not(:first-child)::before {
    top: 13px;
    left: calc(-50% + 20px);
    width: calc(100% - 40px);
  }
  .mobile-progress {
    display: block;
  }
}

/* ── The card (the luminous subject) ──────────────────────── */

.form-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 70px -24px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .form-card {
    padding: 30px 20px 26px;
    border-radius: 14px;
  }
}

/* ── Step panels ──────────────────────────────────────────── */

.step-panel {
  display: none;
}

.step-panel.is-active {
  display: block;
  animation: panelIn 0.28s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.block-head {
  margin-bottom: 26px;
}

.block-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 7px;
}

.block-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 6px;
  outline: none; /* focus target on step change; ring would be noise */
}

.block-head .block-hint {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin: 0;
}

/* ── Fields ───────────────────────────────────────────────── */

.field {
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

.field > label,
.field-legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  padding: 0;
}

.req {
  color: var(--gold);
  font-weight: 600;
  margin-left: 2px;
}

.optional {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-left: 5px;
}

.hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 9px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; /* 16px stops iOS zoom-on-focus */
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 13px;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--steel);
}

input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
  border-color: var(--steel);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--ring);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236e7c8c' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
  cursor: pointer;
}

/* Phone group with fixed +234 prefix */
.tel-group {
  display: flex;
  align-items: stretch;
}

.tel-prefix {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface-sunk);
  border: 1px solid var(--border-strong);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 13px;
  white-space: nowrap;
}

.tel-group input {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.tel-group input:focus {
  position: relative;
  z-index: 1;
}

/* ── Business pages repeater ──────────────────────────────── */

.page-rows {
  display: grid;
  gap: 9px;
}

.page-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.page-row select {
  flex: 0 0 138px;
  width: 138px;
}

.page-row input {
  flex: 1;
  min-width: 0;
}

.icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink-faint);
  cursor: pointer;
  transition: all 0.16s ease;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.icon-btn:hover {
  border-color: var(--destructive);
  color: var(--destructive);
  background: var(--destructive-bg);
}

.icon-btn:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--ring);
}

.page-row .icon-btn[hidden] {
  display: none;
}

.add-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  min-height: 44px; /* touch target */
  background: transparent;
  border: 0;
  padding: 6px 8px 6px 2px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: #8a6d27; /* gold, darkened for 4.5:1 on ivory */
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.16s ease;
}

.add-row svg {
  width: 15px;
  height: 15px;
}

.add-row:hover {
  color: var(--ink);
}

.add-row:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .page-row select {
    flex-basis: 116px;
    width: 116px;
  }
}

/* ── Choice grid (checkbox cards) ─────────────────────────── */

.choice-grid {
  display: grid;
  gap: 9px;
}

@media (min-width: 560px) {
  .choice-grid.two-up {
    grid-template-columns: 1fr 1fr;
  }
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--surface-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.03);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice:hover {
  border-color: var(--steel);
}

.choice input[type="checkbox"] {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 2.5px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.choice-label {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
}

.choice-note {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-faint);
  margin-top: 2px;
}

.choice:has(input:checked) {
  border-color: var(--gold);
  background: rgba(200, 162, 75, 0.07);
}

.choice:has(input:focus-visible) {
  box-shadow: 0 0 0 3px var(--ring);
}

/* ── "Please specify" reveal ──────────────────────────────── */

.reveal {
  margin-top: 10px;
}

.reveal:not([hidden]) {
  animation: revealIn 0.22s ease;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Character counter ────────────────────────────────────── */

.counter {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 7px;
}

.counter .count {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.counter.is-met .count {
  color: var(--ok);
}

/* ── Consent ──────────────────────────────────────────────── */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
}

.consent input[type="checkbox"] {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.consent-text label {
  cursor: pointer;
}

.consent-text a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-text a:hover {
  color: #8a6d27;
}

/* ── Validation ───────────────────────────────────────────── */

.error {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--destructive);
  margin-top: 6px;
}

.field.is-invalid .error {
  display: block;
}

.field.is-invalid input[type="text"],
.field.is-invalid input[type="email"],
.field.is-invalid input[type="tel"],
.field.is-invalid select,
.field.is-invalid textarea,
.field.is-invalid .tel-prefix,
.field.is-invalid .choice,
.field.is-invalid .consent {
  border-color: var(--destructive);
}

.form-error {
  display: none;
  background: var(--destructive-bg);
  border: 1px solid rgba(180, 66, 60, 0.32);
  border-left: 3px solid var(--destructive);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 13px 16px;
  margin-bottom: 22px;
}

.form-error.is-shown {
  display: block;
}

.form-error strong {
  display: block;
  font-size: 14px;
  color: var(--destructive);
  margin-bottom: 3px;
}

.form-error span {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── Wizard nav ───────────────────────────────────────────── */

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

/* When Back is hidden (step 1), Continue still sits on the right */
.wizard-nav .btn-gold {
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 12px 26px;
  min-height: 44px; /* touch target */
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-gold {
  color: var(--midnight);
  background: var(--gold);
  border: 1px solid var(--gold);
  min-width: 170px;
}

.btn-gold:hover:not(:disabled) {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-gold:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.btn-gold:focus-visible {
  outline: 2px solid var(--midnight);
  outline-offset: 3px;
}

.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--steel);
  background: var(--surface-sunk);
}

.btn-ghost:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--ring);
}

.nav-spacer {
  flex: 1;
}

.submit-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin: 14px 0 0;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(15, 27, 45, 0.28);
  border-top-color: var(--midnight);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .wizard-nav {
    flex-direction: column-reverse;
  }
  .wizard-nav .btn {
    width: 100%;
  }
}

/* ── Privacy policy modal ─────────────────────────────────── */

/* Opened from the consent link so the wizard never unloads (and never loses
   its state). The panel reuses .policy-card markup fetched from
   /privacy-policy — overrides below strip that card's standalone chrome. */

html.modal-open,
html.modal-open body {
  overflow: hidden;
}

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 27, 45, 0.78);
  animation: modalFade 0.18s ease;
}

.policy-modal[hidden] {
  display: none;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.policy-modal-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalRise 0.22s ease;
}

@keyframes modalRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.policy-modal-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.policy-modal-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  color: var(--ink);
  margin: 0;
}

.policy-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 30px;
}

/* The injected card already lives inside a padded, scrolling panel — its
   own standalone shadow/padding/radius would double up. */
.policy-modal-body .policy-card {
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}

/* Anchor jumps inside the panel need headroom so section titles don't land
   flush against the panel edge. */
.policy-modal-body section {
  scroll-margin-top: 12px;
}

/* Small screens: full sheet, no floating panel. */
@media (max-width: 640px) {
  .policy-modal {
    padding: 0;
  }
  .policy-modal-panel {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* ── Turnstile ────────────────────────────────────────────── */

/* Hidden until the server hands back a site key. `hidden` alone is enough,
   but display:flex on the shown state keeps the widget from sitting flush
   left against the label column above it. */
.turnstile-field[hidden] {
  display: none;
}

.turnstile-field {
  display: flex;
  justify-content: flex-start;
  min-height: 65px; /* reserve the widget's height so nothing jumps on load */
}

/* ── Honeypot ─────────────────────────────────────────────── */

.hp-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-foot {
  padding: 30px 0 44px;
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.7;
}

.site-foot a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-foot a:hover {
  color: var(--gold);
}

/* ── Thank-you page ───────────────────────────────────────── */

.thanks {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 56px;
}

.thanks-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(200, 162, 75, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 28px;
}

.thanks-badge svg {
  width: 22px;
  height: 22px;
}

.thanks h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ivory);
  margin: 0 0 20px;
}

.thanks h1 em {
  font-style: italic;
  color: var(--gold);
}

.thanks p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--smoke);
  margin: 0 0 16px;
  max-width: 54ch;
}

.thanks p strong {
  color: var(--mist);
  font-weight: 500;
}

.thanks-sign {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(215, 220, 226, 0.1);
}

.thanks-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  margin: 0;
}

/* ── Privacy policy page ──────────────────────────────────── */

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  font-size: 13px;
  color: var(--steel);
  margin: 0;
}

.policy-meta strong {
  color: var(--mist);
  font-weight: 500;
}

.policy-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 46px var(--card-pad) 40px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 70px -24px rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .policy-card {
    padding: 30px 20px;
    border-radius: 14px;
  }
}

.policy-toc {
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 38px;
}

.policy-toc h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
  font-family: var(--font-body);
}

.policy-toc ol {
  columns: 2;
  column-gap: 30px;
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.9;
}

@media (max-width: 560px) {
  .policy-toc ol {
    columns: 1;
  }
}

.policy-toc a {
  color: var(--ink-soft);
  text-decoration: none;
}

.policy-toc a:hover {
  color: #8a6d27;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-body {
  max-width: 64ch;
}

.policy-body section {
  margin-bottom: 34px;
  scroll-margin-top: 24px;
}

.policy-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}

.policy-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 8px;
}

.policy-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.policy-body ul,
.policy-body ol {
  padding-left: 22px;
  margin: 0 0 12px;
}

.policy-body li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.policy-body strong {
  color: var(--ink);
  font-weight: 600;
}

.policy-body a {
  color: #8a6d27;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-body a:hover {
  color: var(--ink);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--smoke);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color 0.16s ease;
}

.back-link svg {
  width: 14px;
  height: 14px;
}

.back-link:hover {
  color: var(--gold);
}

/* ── Utilities ────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
