/* The Compass Report — public landing page.
   Brand tokens below mirror src/styles.css (the approved report). intake/test/site.test.mjs
   fails if the light-theme values drift, so change them there first, then here.
   Brand: Deep Ocean #0F2838, Weathered Gold #B89361, Parchment #F1E9D9, Sea Blue #5C7380,
   Iron #2B2B2B; Montserrat (labels, UI) + Lora (headlines, body). */
:root {
  --paper: #F1E9D9;
  --surface: #FAF6EE;
  --ink: #0F2838;
  --ink-2: #3A5060;
  --ink-3: #526875;
  --sea: #5C7380;
  --iron: #2B2B2B;
  --rule: #DACDB4;
  --rule-soft: #E7DDCA;
  --course: #B89361;
  --course-ink: #7A5A2B;
  --course-soft: #ECDFC3;
  --ok: #356B4B;  --ok-soft: #DCE6D6;
  --bad: #A9432B; --bad-soft: #F1D8CD;
  --plate-bg: #0F2838; --plate-ink: #F1E9D9; --plate-ink-2: #AFC0C8; --plate-gold: #C9A56F; --plate-rule: #24435A;

  --f-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Lora", Georgia, "Times New Roman", serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F2838; --surface: #14334A; --ink: #F1E9D9; --ink-2: #CBC3B4; --ink-3: #9DB0BA; --sea: #9DB0BA; --iron: #F1E9D9;
    --rule: #28475C; --rule-soft: #1B3B51; --course: #C9A56F; --course-ink: #D9B985; --course-soft: #2B3B3D;
    --ok: #74C495; --ok-soft: #173A33; --bad: #F08A6C; --bad-soft: #3D2A2A;
    --plate-bg: #0A1E2B; --plate-rule: #1F3B4F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F2838; --surface: #14334A; --ink: #F1E9D9; --ink-2: #CBC3B4; --ink-3: #9DB0BA; --sea: #9DB0BA; --iron: #F1E9D9;
  --rule: #28475C; --rule-soft: #1B3B51; --course: #C9A56F; --course-ink: #D9B985; --course-soft: #2B3B3D;
  --ok: #74C495; --ok-soft: #173A33; --bad: #F08A6C; --bad-soft: #3D2A2A;
  --plate-bg: #0A1E2B; --plate-rule: #1F3B4F;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-serif); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--course); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--course); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: 2.5rem; padding-right: 2.5rem; } }

.label {
  font-family: var(--f-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--course-ink);
}
.kicker {
  font-family: var(--f-display); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--plate-gold);
}
.rule { display: block; width: 56px; height: 2px; background: var(--course); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--f-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); border-radius: 3px;
  background: var(--ink); color: var(--paper); padding: 0.95rem 1.4rem; min-height: 48px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-gold { background: var(--course); border-color: var(--course); color: #0F2838; }
.btn-gold:hover { background: #C9A56F; border-color: #C9A56F; }
.btn-ghost-light { background: transparent; color: var(--plate-ink); border-color: rgb(241 233 217 / 0.45); }
.btn-ghost-light:hover { background: transparent; border-color: var(--plate-gold); }
.btn-sm { padding: 0.6rem 0.95rem; min-height: 40px; font-size: 0.68rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Deep Ocean plates (same art as the report cover) */
.plate { position: relative; overflow: hidden; isolation: isolate; background: var(--plate-bg); color: var(--plate-ink); }
.plate-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.plate-art .contours {
  position: absolute; inset: 0; background: #B89361; opacity: 0.2;
  -webkit-mask: url("brand/contours.svg") center / cover no-repeat; mask: url("brand/contours.svg") center / cover no-repeat;
}
.plate-art .rose {
  position: absolute; width: 760px; height: 760px; right: -220px; top: 52%; transform: translateY(-50%);
  background: #B89361; opacity: 0.16;
  -webkit-mask: url("brand/rose.svg") center / contain no-repeat; mask: url("brand/rose.svg") center / contain no-repeat;
}
.plate :focus-visible { outline-color: var(--plate-gold); }

/* Hero */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.lockup { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.lockup-emblem { width: 44px; height: auto; }
.lockup-word { width: 150px; height: auto; }
.topbar-links { display: flex; align-items: center; gap: 1.25rem; }
.toplink { color: var(--plate-ink); font-family: var(--f-display); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-decoration-color: var(--plate-gold); }
.hero-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem 3rem;
  padding-top: clamp(2.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 10vw, 7.5rem);
}
.hero-text { display: flex; flex-direction: column; gap: 1.4rem; max-width: 40rem; }
.hero h1 {
  font-family: var(--f-serif); font-weight: 500; font-size: clamp(2.6rem, 7vw, 4.9rem);
  line-height: 1.04; letter-spacing: -0.02em; color: var(--plate-ink);
}
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: #DCD4C4; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.4rem; }
.hero-meta {
  font-family: var(--f-display); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; color: var(--plate-ink-2);
}
.hero-meta::before { content: ""; display: block; width: 56px; height: 2px; background: var(--course); margin-bottom: 0.9rem; }
.hero-emblem { width: clamp(180px, 24vw, 300px); filter: drop-shadow(0 14px 32px rgb(0 0 0 / 0.4)); }

/* Bands */
.band { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.band-surface { background: var(--surface); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.section-head, .split-head { display: flex; flex-direction: column; gap: 0.7rem; }
.section-head { margin-bottom: 2.5rem; }
.band h2 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; }
.split { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.lead { font-size: clamp(1.2rem, 2.3vw, 1.45rem); line-height: 1.55; color: var(--ink); max-width: 40rem; }

/* What you get */
.gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.gets li { background: var(--surface); padding: 1.75rem 1.6rem 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.band-surface .gets li { background: var(--paper); }
.gets h3 { font-family: var(--f-display); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.gets h3::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--course); margin-bottom: 1rem; }
.gets p { color: var(--ink-2); font-size: 1rem; }
.gets .gets-sample { padding: 0; background: var(--plate-bg) !important; }
.gets-sample a {
  position: relative; overflow: hidden; isolation: isolate; height: 100%;
  display: flex; flex-direction: column; gap: 0.5rem; padding: 1.75rem 1.6rem 2rem; text-decoration: none; color: var(--plate-ink);
}
.gets-sample a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #B89361; opacity: 0.18;
  -webkit-mask: url("brand/contours.svg") center / cover no-repeat; mask: url("brand/contours.svg") center / cover no-repeat;
}
.gets-sample .label { color: var(--plate-gold); }
.gets-sample-t { font-family: var(--f-serif); font-size: 1.45rem; line-height: 1.2; }
.gets-sample-d { color: var(--plate-ink-2); font-size: 0.95rem; }
.gets-sample .arrow { margin-top: auto; padding-top: 0.75rem; font-family: var(--f-display); font-size: 1.4rem; color: var(--plate-gold); transition: transform .15s; }
.gets-sample a:hover .arrow { transform: translateX(4px); }

/* What I look at */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 2.5rem; }
.areas li {
  display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
  font-family: var(--f-display); font-size: 1.02rem; font-weight: 500;
}
.areas .pt { flex: none; width: 12px; height: 12px; transform: rotate(45deg); background: var(--course); }

/* How it works: the brand "course" — a gold line through numbered control points */
.course { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 1.9rem; }
.course::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1.5px; background: var(--course); opacity: 0.8; }
.course li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.ctrl {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--course); background: var(--surface); color: var(--course-ink);
  font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.course li:first-child .ctrl { background: var(--course); color: #0F2838; }
.course h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; padding-top: 0.55rem; }
.course p { color: var(--ink-2); margin-top: 0.25rem; }

/* About */
.about { display: flex; flex-direction: column; gap: 1.1rem; max-width: 46rem; }
.about p:not(.label) { font-size: 1.15rem; line-height: 1.6; }
.about .about-pull { font-weight: 600; color: var(--ink); }
.about .about-more { font-family: var(--f-display); font-size: 0.95rem; }
.about-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--course); }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--course-ink); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.3rem 0; color: var(--ink-2); }

/* Closing + form */
.closing { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.closing:focus { outline: none; }
.closing-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem 4rem; align-items: start; }
.closing-head { display: flex; flex-direction: column; gap: 1.1rem; position: sticky; top: 2rem; }
.closing h1, .closing h2 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.015em; color: var(--plate-ink); }
.closing-sub { color: #DCD4C4; font-size: 1.1rem; }
.closing-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.closing-cta > * { max-width: 46rem; }
.closing-cta .cta-row { padding-top: 0.4rem; }

/* /start: the quote request page */
.start-plate .closing { padding-top: clamp(1rem, 3vw, 2.5rem); }
.start-price { color: #DCD4C4; font-size: 1.02rem; }
.start-price strong { color: var(--plate-ink); font-weight: 600; }
.receive { display: flex; flex-direction: column; gap: 0.8rem; padding-top: 1.1rem; border-top: 1px solid var(--plate-rule); }
.receive .label { color: var(--plate-gold); }
.receive ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.receive li { position: relative; padding-left: 1.4rem; color: #DCD4C4; font-size: 0.98rem; line-height: 1.5; }
.receive li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--plate-gold); }

.intake, .thanks {
  background: var(--surface); color: var(--ink); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.28);
}
.intake { display: flex; flex-direction: column; gap: 1.75rem; }
.intake :focus-visible { outline-color: var(--course); }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
legend {
  padding: 0 0 0.9rem; width: 100%; border-bottom: 1px solid var(--rule); margin-bottom: 0.3rem;
  font-family: var(--f-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--course-ink);
}
legend .req { letter-spacing: 0.04em; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field.narrow { max-width: 16rem; }
.field > label, .flabel { font-family: var(--f-display); font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.req { font-family: var(--f-display); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: none; color: var(--ink-3); margin-left: 0.3rem; white-space: nowrap; }
.help { font-size: 0.85rem; color: var(--ink-3); font-family: var(--f-display); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--rule); border-radius: 4px; padding: 0.7rem 0.8rem; min-height: 48px; width: 100%; min-width: 0;
}
textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
select { appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--course-ink) 50%), linear-gradient(135deg, var(--course-ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--course); box-shadow: 0 0 0 3px var(--course-soft); }
.choice { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 1rem; cursor: pointer; padding: 0.3rem 0; line-height: 1.4; }
.choice input { flex: none; width: 20px; height: 20px; margin: 0.05rem 0 0; accent-color: var(--ink); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 1.25rem; }
.invalid input, .invalid select, .invalid textarea, input.invalid, select.invalid { border-color: var(--bad); }
.err { color: var(--bad); font-family: var(--f-display); font-size: 0.85rem; font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; padding-top: 0.25rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.submit-row .btn { min-width: 14rem; }
.fine { font-size: 0.88rem; color: var(--ink-3); }
.form-status { border-radius: 4px; padding: 0.9rem 1rem; font-size: 0.98rem; background: var(--bad-soft); color: var(--ink); border-left: 3px solid var(--bad); }
.form-status.info { background: var(--course-soft); border-left-color: var(--course); }
.thanks { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.thanks:focus { outline: none; }
.thanks h3 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.3; }
.thanks p { font-family: var(--f-display); color: var(--ink-2); }

/* Footer */
.footer { padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); }
.footer-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-word { width: 150px; }
.footer p { font-family: var(--f-display); font-size: 0.85rem; color: var(--ink-3); }
.footer a { color: var(--ink-2); }
.dark-only { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dark-only { display: block; } :root:not([data-theme="light"]) .light-only { display: none; } }
:root[data-theme="dark"] .dark-only { display: block; } :root[data-theme="dark"] .light-only { display: none; }

/* Tablet */
@media (max-width: 960px) {
  .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .closing-body { grid-template-columns: minmax(0, 1fr); }
  .closing-head { position: static; }
}
/* Phone */
@media (max-width: 640px) {
  .toplink { display: none; }
  .lockup-word { width: 124px; }
  .lockup-emblem { width: 36px; }
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .hero-emblem { grid-row: 1; width: 96px; }
  .plate-art .rose { width: 480px; height: 480px; right: -240px; top: 30%; }
  .cta-row .btn { flex: 1 1 100%; }
  .gets, .areas, .row, .checks { grid-template-columns: minmax(0, 1fr); }
  .submit-row .btn { width: 100%; }
  .faq details p { padding-right: 0; }
}
