/* Oake & Honor mockup stylesheet. Client palette (navy / gold / dark navy, chosen by the client)
   expressed as OKLCH tokens converted from the client hex, hex kept in comments for hand-off.
   Type, spacing, motion and accessibility floors follow the Lattice Visual Language (LVL). */

:root {
  /* Client palette */
  --navy: oklch(0.277 0.057 264.7);        /* #1a2744 */
  --navy-2: oklch(0.354 0.082 262.9);      /* #243a66 hover / secondary */
  --gold: oklch(0.767 0.139 91.1);         /* #d4af37 accent, large display on navy only */
  --gold-soft: oklch(0.856 0.108 94.7);    /* #e6cf7a on dark, small labels */
  --gold-deep: oklch(0.460 0.092 87);      /* ~#6b5310 gold for text and rules on light (darkened for ivory canvas) */
  --dark: oklch(0.169 0.025 265.2);        /* #0a0f1a hero + footer canvas */
  /* Light theme surfaces */
  --paper: oklch(0.940 0.020 85);          /* ~#f0e9d8 page canvas: warm ivory, never white */
  --band: oklch(0.922 0.024 85);           /* ~#e9e0cc alternating section band, one step deeper */
  --surface: oklch(0.905 0.025 84);        /* ~#e6dcc4 cards, callouts, quotes (fields stay on --paper for contrast against cards) */
  --border: oklch(0.820 0.030 84);         /* ~#cbbf9f warm tan card edge */
  --ink: var(--navy);
  --ink-2: oklch(0.447 0.034 261.3);       /* #4a5568 secondary text */
  --mist: oklch(0.918 0.009 258.3);        /* #e0e4ea ink on dark */
  --success: oklch(0.55 0.13 150);
  --error: oklch(0.52 0.18 25);

  /* Type (LVL selection procedure: editorial/authoritative -> serif display; warm/human -> humanist sans body) */
  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Public Sans", "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spatial scale (LVL): 4 8 12 16 24 32 48 64 96 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px;
  --radius: 12px;
  --measure: 65ch;
  --container: 72rem;

  /* Motion (LVL: ease-out, no bounce) */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--s4);
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 1.2rem + 3.5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p, ul, ol { margin: 0 0 var(--s4); max-width: var(--measure); }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: var(--s2); }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
strong { font-weight: 600; }
small, .small { font-size: 0.875rem; }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: var(--s4); top: -100px;
  background: var(--navy); color: var(--paper); padding: var(--s3) var(--s4);
  border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { top: var(--s4); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Layout */
.container { width: min(100% - 2 * var(--s4), var(--container)); margin-inline: auto; }
.section { padding-block: var(--s12); }
.section-tight { padding-block: var(--s8); }
@media (min-width: 60rem) { .section { padding-block: var(--s16); } }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--s3);
}
.on-dark .eyebrow { color: var(--gold); }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.center { text-align: center; }
.center p, .center h2 { margin-inline: auto; }

.grid { display: grid; gap: var(--s6); }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Header */
.site-header {
  background: var(--dark);
  color: var(--mist);
  border-bottom: 1px solid oklch(0.3 0.03 265);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 72px; flex-wrap: wrap; padding-block: var(--s3);
}
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--mist); }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.02em; line-height: 1;
}
.brand-tag { display: block; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-top: var(--s1); }
.site-nav ul { list-style: none; display: flex; gap: var(--s2); margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  display: inline-block; color: var(--mist); text-decoration: none; padding: var(--s3) var(--s4);
  border-radius: var(--radius); min-height: 44px; line-height: 20px; font-weight: 500;
  transition: background var(--dur) var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: oklch(0.26 0.04 265); color: var(--paper); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }

/* Hero (dark) */
.hero {
  background: var(--dark);
  color: var(--mist);
  padding-block: var(--s16) var(--s12);
  position: relative; overflow: hidden;
}
.hero::after {
  /* quiet radial warmth, not a gradient band */
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%;
  background: radial-gradient(ellipse at center, oklch(0.35 0.06 90 / 0.22), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--paper); font-weight: 500; }
.hero h1 .gold { color: var(--gold); }
.hero p { color: var(--mist); font-weight: 350; }
.hero .lede { font-size: 1.25rem; color: var(--mist); }
.hero-grid { display: grid; gap: var(--s8); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } .hero { padding-block: var(--s24) var(--s16); } }
.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); }

/* Image placeholder: a labelled slot for real photography (LVL: no hand-drawn SVG scenes as hero art) */
.img-slot {
  border: 1px dashed oklch(0.55 0.06 90);
  background: oklch(0.22 0.03 265);
  color: var(--gold-soft);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center; text-align: center; padding: var(--s6);
  font-size: 0.9rem; line-height: 1.5;
}
.img-slot .label { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 600; color: var(--gold); margin-bottom: var(--s2); }
.img-slot.light { background: var(--surface); border-color: var(--gold-deep); color: var(--ink-2); }
.img-slot.light .label { color: var(--gold-deep); }
/* Hero photography (replaces the placeholder slot; the .img-slot rules stay for any remaining placeholders) */
.img-slot.hero-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover; object-position: center 45%;
  border: 1px solid oklch(0.35 0.04 90 / 0.6);
  padding: 0; border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px oklch(0.10 0.02 265 / 0.6);
}


/* Buttons: 44px floor, visible focus */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s6);
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-primary { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--paper); }
.btn-gold { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--surface); }
.on-dark .btn-outline { color: var(--paper); border-color: var(--mist); }
.on-dark .btn-outline:hover { background: oklch(0.26 0.04 265); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s6);
  display: flex; flex-direction: column; gap: var(--s3);
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); }
.card .card-foot { margin-top: auto; padding-top: var(--s3); }
.card-accent { border-top: 4px solid var(--gold); }
.card .icon { width: 40px; height: 40px; color: var(--gold-deep); }
.card-link { text-decoration: none; }
.card-link:hover { border-color: var(--navy); }

/* Steps strip */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); counter-reset: step; max-width: none; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s6); position: relative; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--paper); font-weight: 600; font-size: 0.9rem; margin-bottom: var(--s3);
}
.steps h3 { font-size: 1.1rem; margin-bottom: var(--s2); letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* Callouts */
.callout {
  border-left: 4px solid var(--gold-deep);
  background: var(--surface);
  padding: var(--s4) var(--s6);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 75ch;
}
.callout p:last-child { margin: 0; }
.quiet { color: var(--ink-2); }

/* Compliance blocks. Visually distinct on purpose: bordered, labelled, never styled away. */
.disclosure {
  border: 2px solid var(--navy);
  background: var(--paper);
  padding: var(--s4) var(--s6);
  border-radius: var(--radius);
  max-width: 75ch;
  font-size: 0.95rem;
  line-height: 1.55;
}
.disclosure .disclosure-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: var(--s2);
}
.disclosure p { margin: 0; max-width: none; }
.disclosure[data-review="counsel"]::after {
  content: "Text to be finalised by counsel (Cal. Civ. Code §1770(a)(25))";
  display: block; margin-top: var(--s2); font-size: 0.75rem; color: var(--ink-2); font-style: italic;
}
.licensee {
  font-size: 0.875rem; color: var(--ink-2); max-width: 75ch; line-height: 1.5;
  border-top: 1px solid var(--border); padding-top: var(--s3); margin-top: var(--s6);
}
.licensee .ph { background: oklch(0.90 0.06 92); color: var(--dark); padding: 0 4px; border-radius: 3px; font-family: ui-monospace, monospace; font-size: 0.85em; }
.on-dark .licensee { color: var(--mist); border-top-color: oklch(0.3 0.03 265); }

/* Placeholder marker */
.placeholder-note {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dark); background: oklch(0.90 0.06 92); padding: 2px 8px; border-radius: 4px;
}

/* Quotes (placeholder) */
.quotes { display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: var(--s6); }
.quote p { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); margin-bottom: var(--s3); }
.quote footer { font-size: 0.875rem; color: var(--ink-2); }

/* CTA band (light warm) */
.cta-band { background: var(--band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Forms */
.form { display: grid; gap: var(--s4); max-width: 40rem; }
.field { display: grid; gap: var(--s2); }
label, legend { font-weight: 600; font-size: 0.95rem; }
.hint { font-size: 0.85rem; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-2);
  border-radius: 8px; padding: var(--s3) var(--s4);
  min-height: 48px; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--navy); }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
fieldset legend { margin-bottom: var(--s3); padding: 0; }
.choices { display: grid; gap: var(--s2); }
@media (min-width: 40rem) { .choices-2 { grid-template-columns: repeat(2, 1fr); } .choices-3 { grid-template-columns: repeat(3, 1fr); } }
.choice {
  display: flex; align-items: flex-start; gap: var(--s3);
  background: var(--paper); border: 1.5px solid var(--ink-2); border-radius: var(--radius);
  padding: var(--s4); cursor: pointer; min-height: 48px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.choice:hover { border-color: var(--navy); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--surface); box-shadow: inset 0 0 0 1px var(--navy); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.choice .choice-text { display: grid; gap: 2px; }
.choice .choice-text small { color: var(--ink-2); }
.form-actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.form-note { font-size: 0.85rem; color: var(--ink-2); }
.form-status { margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: 8px; background: var(--surface); border-left: 4px solid var(--success); }
.form-status[hidden] { display: none; }

/* Two-column comparison */
.compare { display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .compare { grid-template-columns: repeat(2, 1fr); } }
.compare .card ul { margin: 0; color: var(--ink); }
.compare .card li { margin-bottom: var(--s2); }

/* Plan (multi-step) */
.plan-shell { display: grid; gap: var(--s8); }
@media (min-width: 60rem) { .plan-shell { grid-template-columns: 2fr 1fr; align-items: start; } }
.progress { display: flex; gap: var(--s1); margin-bottom: var(--s6); }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.progress span.done { background: var(--navy); }
.progress span.current { background: var(--gold-deep); }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); margin-bottom: var(--s6); }
.step-count { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.step[hidden] { display: none; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s6); position: sticky; top: var(--s4); }
.summary h3 { font-size: 1.1rem; }
.summary dl { margin: 0; display: grid; gap: var(--s2); }
.summary dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); font-weight: 700; }
.summary dd { margin: 0 0 var(--s2); color: var(--ink); }
.summary dd:empty::before { content: "Not answered yet"; color: var(--ink-2); font-style: italic; }
.paths { display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .paths { grid-template-columns: repeat(3, 1fr); } }
.paths .card { text-align: left; }
.paths .btn { width: 100%; border-radius: var(--radius); text-align: center; }

/* Footer (dark) */
.site-footer { background: var(--dark); color: var(--mist); padding-block: var(--s12) var(--s8); font-weight: 350; }
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: var(--s8); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--s2); }
.footer-grid li a { display: inline-block; padding: var(--s2) 0; min-height: 44px; line-height: 28px; text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid oklch(0.3 0.03 265); margin-top: var(--s8); padding-top: var(--s6); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); }
.footer-bottom ul { list-style: none; display: flex; gap: var(--s4); padding: 0; margin: 0; flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; padding: var(--s2) 0; display: inline-block; }
.footer-bottom a:hover { text-decoration: underline; }
.site-footer .brand .mark { width: 44px; height: 44px; }
.site-footer .brand-story { margin-top: var(--s4); color: var(--mist); max-width: 45ch; }

.on-dark p { color: var(--mist); }
.on-dark h2, .on-dark h3 { color: var(--paper); }

/* Compliance pages (contact, privacy, terms, sms-terms) */
.draft-banner {
  background: oklch(0.90 0.06 92);
  color: var(--dark);
  border-bottom: 2px solid var(--gold-deep);
  padding: var(--s3) 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.draft-banner .container { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.draft-banner .tag { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--dark); color: var(--paper); padding: 2px 8px; border-radius: 4px; }
.page-head { background: var(--dark); color: var(--mist); padding-block: var(--s12); }
.page-head h1 { color: var(--paper); font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 2.5vw, 2.75rem); margin: 0 0 var(--s3); }
.page-head p { color: var(--mist); font-weight: 350; margin: 0; }
.legal { display: grid; gap: var(--s8); }
@media (min-width: 60rem) { .legal { grid-template-columns: 16rem 1fr; align-items: start; } }
.toc { position: sticky; top: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4) var(--s6); }
.toc h2 { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: var(--s3); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: var(--s2) 0; text-decoration: none; font-size: 0.95rem; }
.toc a:hover { text-decoration: underline; }
.prose h2 { font-size: 1.4rem; margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--border); }
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: var(--s6); }
.prose .meta { color: var(--ink-2); font-size: 0.95rem; }
.info-panel { display: grid; gap: var(--s4); }
.info-panel .card h3 { font-size: 1.05rem; }
.info-panel .card p { color: var(--ink); }

/* Round 5: proof strip, quiz steps, hero call line */
.hero-call { margin-top: var(--s4); color: var(--paper); opacity: 0.92; font-size: 0.95rem; }
.hero-call a { color: var(--gold); text-decoration-thickness: 2px; }
.proof-band { padding: var(--s6) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s6); }
.proof-strip li { display: grid; gap: var(--s1); }
.proof-k { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 600; color: var(--gold-deep); }
.proof-v { color: var(--ink); font-size: 0.95rem; line-height: 1.45; }
@media (max-width: 60rem) { .proof-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 36rem) { .proof-strip { grid-template-columns: 1fr; } }
.step-indicator { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 600; color: var(--gold-deep); margin: 0 0 var(--s3); }
.form-step[hidden] { display: none; }
.choices-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s3); }
