/* Diamond IQ — public website
   Design tokens live in :root. Change colours here, not throughout the file. */

:root {
  --bg: #101010;
  --surface: #151412;
  --surface-2: #1a1916;
  --ivory: #F5F0E8;
  --gold: #D4B574;
  --gold-soft: rgba(212, 181, 116, 0.14);
  --grey: #A9A296;          /* muted warm grey — 7.4:1 on --bg */
  --grey-dim: #8C867B;      /* 5.2:1 on --bg, small print only */
  --line: rgba(212, 181, 116, 0.24);
  --line-soft: rgba(245, 240, 232, 0.08);

  --serif: "Cormorant Garamond", "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 14px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.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;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--bg); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 16, 16, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; }
.brand:hover { color: var(--ivory); }
.brand-mark { width: 22px; height: 22px; color: var(--gold); flex: none; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.01em; line-height: 1; }
.brand-name em { font-style: normal; color: var(--gold); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--ivory); cursor: pointer; border-radius: 10px;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-menu {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  display: none;
}
.nav-menu.is-open { display: block; }
.nav-list { list-style: none; margin: 0 0 14px; padding: 0; }
.nav-list a {
  display: block; padding: 12px 2px; color: var(--ivory); text-decoration: none;
  font-size: 17px; border-bottom: 1px solid var(--line-soft);
}
.nav-list a[aria-current="page"] { color: var(--gold); }
.nav-list a:hover { color: var(--gold); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; display: flex !important; align-items: center; gap: 28px;
    background: none; border: 0; padding: 0;
  }
  .nav-list { display: flex; gap: 28px; margin: 0; }
  .nav-list a { padding: 6px 0; border: 0; font-size: 14px; color: var(--grey); letter-spacing: 0.01em; }
  .nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ivory); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 500 15px/1.2 var(--sans); letter-spacing: 0.01em;
  border-radius: 999px; border: 1px solid var(--gold);
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--ivory); border-color: var(--ivory); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 13.5px; }

/* "Coming soon" state — no href, not focusable, clearly labelled */
.btn.is-soon {
  background: var(--gold-soft); color: var(--ivory); border-color: var(--line);
  cursor: default;
}
.btn.is-soon:hover { background: var(--gold-soft); color: var(--ivory); border-color: var(--line); }
.soon-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap;
}
.btn:not(.is-soon) .soon-tag { display: none; }
.nav-menu .btn { width: 100%; }
@media (min-width: 820px) { .nav-menu .btn { width: auto; } }

/* ---------- Common section bits ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--line-soft); }
@media (min-width: 820px) { .section { padding: 88px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: .7; }

.section-title { font-size: clamp(32px, 6vw, 48px); max-width: 18ch; }
.section-lede { color: var(--grey); font-size: 17px; max-width: 60ch; margin-top: 16px; }
.section-head { margin-bottom: 36px; }
@media (min-width: 820px) { .section-head { margin-bottom: 48px; } }

.note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 28px; padding: 14px 16px;
  border: 1px solid var(--line-soft); border-left: 2px solid var(--gold);
  border-radius: 10px; background: var(--surface);
  color: var(--grey); font-size: 14.5px;
}
.note svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 56px; overflow: hidden; }
.hero::before {
  /* one quiet light source, not a glow effect */
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(212, 181, 116, 0.09), transparent 70%);
  pointer-events: none;
}
@media (min-width: 820px) { .hero { padding: 88px 0 96px; } }

.hero-inner { position: relative; max-width: 760px; }
.hero-mark { width: 44px; height: 44px; color: var(--gold); margin-bottom: 22px; }
.hero h1 { font-size: clamp(56px, 13vw, 104px); font-weight: 500; letter-spacing: -0.02em; line-height: 0.95; }
.hero-sub {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 4.6vw, 30px);
  color: var(--gold); margin-top: 10px;
}
.hero-copy { color: var(--grey); font-size: 17px; max-width: 58ch; margin-top: 22px; }
@media (min-width: 820px) { .hero-copy { font-size: 18.5px; } }

.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.cta-row .btn { width: 100%; }
@media (min-width: 560px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cta-row .btn { width: auto; }
}
.cta-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--grey); margin-top: 14px;
}
.cta-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft);
}
.cta-status[hidden] { display: none; }
.hero-fine { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--grey-dim); max-width: 60ch; }

/* ---------- Features ---------- */
.feature-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .feature-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }

.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px; transition: border-color .3s var(--ease);
}
.card:hover { border-color: var(--line); }
@media (min-width: 820px) { .card { padding: 30px; } }
.card-icon {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--gold); margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 25px; margin-bottom: 8px; }
.card p { color: var(--grey); font-size: 15.5px; }
.card .card-fine { margin-top: 12px; font-size: 13.5px; color: var(--grey-dim); padding-top: 12px; border-top: 1px solid var(--line-soft); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; }
.step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 820px) {
  .step { display: block; padding: 26px 0 0; }
  .step:last-child { border-bottom: 0; }
}
.step-num { font-family: var(--serif); font-size: 34px; color: var(--gold); line-height: 1; grid-row: span 2; }
@media (min-width: 820px) { .step-num { font-size: 44px; margin-bottom: 18px; } }
.step h3 { font-size: 24px; }
.step p { color: var(--grey); font-size: 15.5px; margin-top: 6px; }

/* ---------- Example questions ---------- */
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 820px) { .questions { grid-template-columns: 1fr 1fr; gap: 14px; } .questions li:last-child { grid-column: 1 / -1; } }
.question {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--surface), var(--bg));
}
.question .q-mark { font-family: var(--serif); font-size: 30px; line-height: .8; color: var(--gold); flex: none; padding-top: 4px; }
.question p { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.example-label { margin-top: 18px; font-size: 13.5px; color: var(--grey-dim); }

/* ---------- Benefits ---------- */
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } }
.benefits { list-style: none; margin: 0; padding: 0; }
.benefits li {
  display: flex; gap: 14px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif); font-size: 23px; line-height: 1.25;
}
.benefits li:first-child { border-top: 1px solid var(--line-soft); }
.benefits svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* ---------- Free access panel ---------- */
.panel {
  position: relative; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 22px; background: var(--surface); text-align: center;
}
@media (min-width: 820px) { .panel { padding: 56px 48px; } }
.panel .section-title { margin: 0 auto; max-width: 20ch; }
.panel p.panel-copy { color: var(--grey); font-size: 17px; max-width: 54ch; margin: 16px auto 0; }
.panel .cta-row { justify-content: center; }
.panel .cta-status { justify-content: center; }
.panel-fine { margin-top: 20px; font-size: 13.5px; color: var(--grey-dim); }

/* ---------- Disclosure ---------- */
.disclosure { padding: 36px 0 48px; border-top: 1px solid var(--line-soft); }
.disclosure p { font-size: 13.5px; color: var(--grey-dim); max-width: 78ch; }
.disclosure strong { color: var(--grey); font-weight: 500; }

/* ---------- Page (legal / support) ---------- */
.page-hero { padding: 48px 0 28px; }
@media (min-width: 820px) { .page-hero { padding: 72px 0 36px; } }
.page-hero h1 { font-size: clamp(42px, 9vw, 64px); }
.page-meta { color: var(--grey-dim); font-size: 14px; margin-top: 12px; }

.prose { max-width: 720px; padding-bottom: 72px; }
.prose h2 { font-size: 28px; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.prose h2:first-of-type { margin-top: 24px; }
.prose p, .prose ul { color: #D9D3C9; margin: 0 0 14px; font-size: 16px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--ivory); font-weight: 600; }

.toc { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.toc p { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 20px; columns: 1; }
@media (min-width: 680px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { font-size: 14.5px; margin-bottom: 4px; break-inside: avoid; }
.toc a { color: var(--grey); text-decoration: none; }
.toc a:hover { color: var(--gold); }

/* Draft / owner-review markers — remove from the HTML once each point is confirmed */
.draft-banner {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid rgba(232, 168, 92, 0.5); background: rgba(232, 168, 92, 0.08);
  color: #F2D3A8; border-radius: 12px; padding: 14px 16px; font-size: 14.5px; margin-top: 22px;
}
.draft-banner svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.review {
  display: block; border-left: 2px solid #E8A85C; background: rgba(232, 168, 92, 0.07);
  color: #F2D3A8 !important; padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14.5px !important;
}
.review::before { content: "Owner review: "; font-weight: 700; letter-spacing: .02em; }

/* ---------- Support ---------- */
.contact-card {
  display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 22px; background: var(--surface); max-width: 720px;
}
@media (min-width: 680px) { .contact-card { grid-template-columns: 1fr auto; align-items: center; padding: 32px; } }
.contact-card h2 { font-size: 28px; }
.contact-card p { color: var(--grey); margin-top: 6px; }
.email-link { font-family: var(--serif); font-size: 24px; color: var(--ivory); word-break: break-all; }

.faq { max-width: 720px; margin-top: 48px; padding-bottom: 72px; }
.faq h2 { font-size: 32px; margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:first-of-type { border-top: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--serif); font-size: 22px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--grey); padding: 0 0 20px; max-width: 62ch; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; padding: 64px 0; }
.notfound h1 { font-size: clamp(48px, 10vw, 80px); }
.notfound p { color: var(--grey); margin: 14px 0 28px; max-width: 48ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; background: #0C0C0C; }
.footer-top { display: grid; gap: 24px; }
@media (min-width: 820px) { .footer-top { grid-template-columns: 1fr auto; align-items: start; } }
.footer-by { color: var(--grey); font-size: 14px; margin-top: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--grey); text-decoration: none; font-size: 14px; display: inline-block; padding: 6px 0; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.footer-bottom p { font-size: 12.5px; color: var(--grey-dim); max-width: 90ch; }
