/* ============================================================
   Coynitt — marketing sub-pages
   Ported from the Claude Design project "Coynitt Portal Design
   Overhaul" (Coynitt-Marketing-Pages.dc.html). One template,
   eleven pages, rendered from src/pages-data.js by
   src/build-pages.js.

   Shares the Makira base with home.css deliberately: each page
   makes exactly one stylesheet request rather than chaining an
   import.
   ============================================================ */
/* ---------- Makira, self-hosted (CSP: font-src 'self') ---------- */
@font-face { font-family: 'Makira'; src: url('/assets/fonts/Makira-Regular.woff2')   format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Makira'; src: url('/assets/fonts/Makira-Medium.woff2')    format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Makira'; src: url('/assets/fonts/Makira-SemiBold.woff2')  format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Makira'; src: url('/assets/fonts/Makira-Bold.woff2')      format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Makira'; src: url('/assets/fonts/Makira-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --cream:  #FDF6EC;
  --ink:    #102A49;
  --soft:   #45607E;
  --teal:   #2BA9B0;
  --tealBr: #43C5CC;
  --gold:   #74D6DB;
  --blue:   #124478;
  --blueSoft: #2C5C86;
  --deep:   #178A91;
  --green:  #1E9E6A;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Makira', system-ui, -apple-system, sans-serif;
  background: var(--cream); color: var(--ink);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--teal); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; color: inherit; }
::selection { background: rgba(67, 197, 204, .4); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
/* author display rules beat the UA stylesheet, so the hidden attribute
   needs teeth — the era CTAs rely on it. */
[hidden] { display: none !important; }
.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; }

@keyframes rise  { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@keyframes rise2 { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

/* ---------- shell ---------- */
.shell { position: relative; overflow: hidden; min-height: 100vh; }
.shell__aurora { position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; }
.shell__aurora coynitt-aurora { position: absolute; inset: 0; }
.shell__veil {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 45% 40%, rgba(253,246,236,.3), rgba(253,246,236,.7) 72%),
              linear-gradient(to bottom, rgba(253,246,236,0) 70%, var(--cream));
}

.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--deep); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; flex: 0 0 auto; }
.eyebrow--light { color: #B9F0F2; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 14px; z-index: 20; display: flex; justify-content: center; padding: 0 20px; }
.nav__pill {
  display: flex; align-items: center; gap: 18px; width: 100%; max-width: 1100px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(255,253,248,.62);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 18px 44px -22px rgba(16,38,66,.4), inset 0 1px 0 rgba(255,255,255,.7);
}
.nav__brand img { height: 22px; width: auto; display: block; }
.nav__links { display: flex; gap: 2px; flex: 1; justify-content: center; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  padding: 7px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--soft); white-space: nowrap; flex-shrink: 0; transition: background .25s ease, color .25s ease;
}
.nav__links a:hover { color: var(--ink); background: rgba(16,42,73,.06); }
.nav__links a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.nav__cta { padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 13px; white-space: nowrap; transition: transform .2s ease; }
.nav__cta:hover { transform: translateY(-2px); color: var(--cream); }
@media (max-width: 760px) {
  .nav__pill { flex-wrap: wrap; row-gap: 10px; gap: 12px; padding: 10px 12px 12px 16px; }
  .nav__brand { margin-right: auto; }
  .nav__links { order: 3; flex: 1 0 100%; justify-content: flex-start; }
}

/* ---------- page head ---------- */
.page { position: relative; max-width: 1180px; margin: 0 auto; padding: 72px 24px 0; animation: rise .5s cubic-bezier(.22,1,.36,1) both; }
.page__h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: .98; margin-top: 16px; max-width: 18ch; }
.page__lede { font-size: 18px; color: var(--soft); margin-top: 18px; max-width: 58ch; line-height: 1.5; }
.page__stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 28px; }
.page__stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--deep); }
.page__stats span { display: block; font-size: 12.5px; color: var(--soft); margin-top: 4px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 16px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.card {
  padding: 24px; border-radius: 26px; display: flex; flex-direction: column; gap: 10px;
  background: rgba(255,253,248,.62);
  -webkit-backdrop-filter: blur(16px) saturate(165%); backdrop-filter: blur(16px) saturate(165%);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 14px 34px -20px rgba(16,38,66,.4);
}
.card__n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--deep); }
.card__h { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.card__b { font-size: 14px; color: var(--soft); line-height: 1.55; }

/* ---------- story panel ---------- */
.story {
  position: relative; overflow: hidden; margin-top: 56px; padding: 44px 40px 40px; border-radius: 32px;
  color: var(--cream); background: linear-gradient(160deg, #0A1B31, #0F2C4E 55%, #14406A);
  box-shadow: 0 40px 90px -44px rgba(10,27,49,.8);
}
.story__b1 { position: absolute; width: 460px; height: 460px; border-radius: 999px; background: radial-gradient(circle, rgba(116,214,219,.26), transparent 70%); top: -180px; left: -140px; pointer-events: none; }
.story__b2 { position: absolute; width: 320px; height: 320px; border-radius: 999px; background: radial-gradient(circle, rgba(43,169,176,.22), transparent 70%); bottom: -140px; right: -60px; pointer-events: none; }
.story__tabs { position: relative; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.story__tab {
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: transparent; color: rgba(253,246,236,.72); border: 1px solid rgba(255,255,255,.16); transition: all .25s ease;
}
.story__tab[aria-current="true"] { background: rgba(116,214,219,.18); color: #B9F0F2; border-color: rgba(116,214,219,.45); }
.story__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: start; }
.story__h { font-size: clamp(30px, 3.4vw, 50px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-top: 14px; max-width: 20ch; }
.story__p { font-size: 16px; line-height: 1.6; margin-top: 16px; max-width: 56ch; color: rgba(253,246,236,.86); }
.story__stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 28px; }
.story__stats b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--gold); }
.story__stats span { display: block; font-size: 12.5px; font-weight: 600; margin-top: 5px; max-width: 18ch; color: rgba(253,246,236,.7); }
.story__foot { font-size: 12.5px; margin-top: 22px; color: rgba(253,246,236,.6); }
.story__log { display: flex; flex-direction: column; }
.story__row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.story__row:last-child { border-bottom: none; }
.story__t { font-family: var(--mono); font-size: 12.5px; color: var(--gold); }
.story__x { font-size: 14.5px; line-height: 1.5; color: rgba(253,246,236,.88); }
@media (max-width: 560px) { .story { padding: 30px 22px; } .story__row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- rows table ---------- */
.rows { margin-top: 56px; }
.rows__h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1; max-width: 26ch; }
.rows__box {
  margin-top: 22px; border-radius: 28px; overflow: hidden;
  background: rgba(255,253,248,.62);
  -webkit-backdrop-filter: blur(18px) saturate(165%); backdrop-filter: blur(18px) saturate(165%);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 18px 44px -22px rgba(16,38,66,.4);
}
.rows__head, .rows__row { display: grid; gap: 12px; }
.rows__head { padding: 14px 24px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: rgba(16,42,73,.55); border-bottom: 1px solid rgba(16,42,73,.08); }
.rows__row { padding: 15px 24px; border-bottom: 1px solid rgba(16,42,73,.06); font-size: 14.5px; align-items: center; }
.rows__row:last-of-type { border-bottom: none; }
.rows__a { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.rows__a img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rows__b { font-family: var(--mono); font-size: 13px; color: var(--blueSoft); }
.rows__c { font-family: var(--mono); font-size: 13px; color: var(--deep); font-weight: 600; }
.rows__d { font-size: 13px; color: var(--soft); }
.rows__note { font-size: 12px; color: rgba(16,42,73,.55); margin-top: 12px; max-width: 80ch; }
@media (max-width: 720px) {
  .rows__head { display: none; }
  .rows__row { grid-template-columns: 1fr !important; gap: 4px; }
  .rows__a { margin-bottom: 2px; }
}

/* ---------- feature panel ---------- */
.panel {
  position: relative; overflow: hidden; margin-top: 56px; padding: 40px; border-radius: 32px;
  color: var(--cream); box-shadow: 0 40px 90px -44px rgba(16,42,73,.75);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; align-items: center;
}
.panel__blob { position: absolute; width: 340px; height: 340px; border-radius: 999px; background: radial-gradient(circle, rgba(116,214,219,.32), transparent 70%); top: -110px; right: -80px; pointer-events: none; }
.panel__k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: #B9F0F2; }
.panel__h { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-top: 12px; }
.panel__b { font-size: 15px; line-height: 1.55; color: rgba(253,246,236,.82); margin-top: 14px; max-width: 52ch; }
.panel__rows { position: relative; display: flex; flex-direction: column; gap: 10px; }
.panel__row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 14px; }
.panel__row b { font-weight: 700; }
.panel__row span { font-family: var(--mono); font-size: 12.5px; color: #B9F0F2; text-align: right; }
@media (max-width: 560px) { .panel { padding: 28px 22px; } }

/* ---------- faq + form ---------- */
.tail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px; margin-top: 56px; align-items: start; }
.tail__h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.faq { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: 18px; background: rgba(255,253,248,.62); border: 1px solid rgba(255,255,255,.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--deep); }
.faq details[open] summary::after { content: "−"; }
.faq p { font-size: 14px; color: var(--soft); line-height: 1.55; padding: 0 18px 16px; margin-top: -4px; }

.form { padding: 28px; border-radius: 30px; background: rgba(255,253,248,.62); -webkit-backdrop-filter: blur(18px) saturate(165%); backdrop-filter: blur(18px) saturate(165%); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 18px 44px -22px rgba(16,38,66,.4); }
.form__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--deep); }
.form__h { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 8px; }
.form__b { font-size: 14px; color: var(--soft); margin-top: 8px; }
.form__fields { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.form__fields input, .form__fields textarea { padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.72); border: 1px solid rgba(16,42,73,.14); font-size: 14px; outline: none; }
.form__fields textarea { resize: vertical; }
.form__fields input:focus-visible, .form__fields textarea:focus-visible { border-color: var(--teal); }
.form__cta { padding: 14px 22px; border-radius: 999px; font-weight: 700; color: #fff; background: linear-gradient(140deg, var(--teal), var(--deep)); box-shadow: 0 16px 34px -16px rgba(23,138,145,.7); transition: transform .2s ease; }
.form__cta:hover { transform: translateY(-2px); }
.form__cta[disabled] { opacity: .7; transform: none; }
.form__note { font-size: 12px; color: rgba(16,42,73,.55); margin-top: 12px; }
.form__status { font-size: 13px; font-weight: 600; color: var(--deep); margin-top: 10px; min-height: 0; }

/* ---------- legal ---------- */
.legal { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 44px; align-items: flex-start; }
.legal__toc { flex: 1 1 200px; max-width: 260px; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.legal__updated { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--deep); padding: 0 12px 10px; }
.legal__toc a { padding: 8px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--soft); line-height: 1.35; transition: background .2s ease, color .2s ease; }
.legal__toc a:hover { background: rgba(255,253,248,.72); color: var(--ink); }
.legal__doc {
  flex: 1 1 420px; max-width: 760px; padding: 40px 44px; border-radius: 30px;
  background: rgba(255,253,248,.62);
  -webkit-backdrop-filter: blur(18px) saturate(165%); backdrop-filter: blur(18px) saturate(165%);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 18px 44px -22px rgba(16,38,66,.4);
}
.legal__sec { padding-top: 6px; margin-bottom: 34px; scroll-margin-top: 100px; }
.legal__sec:last-of-type { margin-bottom: 18px; }
.legal__sec h2 { font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.legal__sec p { font-size: 15px; line-height: 1.65; color: #2C4A6B; margin-top: 12px; text-wrap: pretty; }
.legal__sec ul { margin-top: 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal__sec li { font-size: 15px; line-height: 1.6; color: #2C4A6B; }
.legal__sec li::marker { color: var(--teal); }
.legal__sec strong { color: var(--ink); }
.legal__contact { font-size: 14px; color: var(--soft); padding-top: 18px; border-top: 1px solid rgba(16,42,73,.08); }
@media (max-width: 860px) { .legal__toc { position: static; max-width: none; flex-basis: 100%; } .legal__doc { padding: 28px 22px; } }

/* ---------- footer ---------- */
.foot { max-width: 1180px; margin: 72px auto 0; padding: 32px 24px 40px; border-top: 1px solid rgba(16,42,73,.08); display: flex; flex-direction: column; gap: 16px; }
.foot__links { display: flex; gap: 6px; flex-wrap: wrap; }
.foot__links a { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255,253,248,.5); color: var(--soft); border: 1px solid rgba(16,42,73,.1); transition: background .25s ease, color .25s ease; }
.foot__links a:hover { background: rgba(255,253,248,.9); color: var(--ink); }
.foot__links a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.foot__legal { font-size: 11.5px; color: rgba(16,42,73,.55); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- waitlist signup ---------- */
.wl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 36px; margin-top: 44px; align-items: start; }
.wl__card { padding: 30px; border-radius: 30px; background: rgba(255,253,248,.62); -webkit-backdrop-filter: blur(18px) saturate(165%); backdrop-filter: blur(18px) saturate(165%); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 18px 44px -22px rgba(16,38,66,.4); }
.wl__field { margin-top: 18px; }
.wl__field:first-child { margin-top: 0; }
.wl__label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.wl__hint { font-weight: 500; color: var(--soft); }
.wl__input, .wl__select { width: 100%; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.72); border: 1px solid rgba(16,42,73,.14); font-size: 14.5px; outline: none; }
.wl__input:focus-visible, .wl__select:focus-visible { border-color: var(--teal); }
.wl__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin-top: 10px; }
.wl__check { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 14px; background: rgba(255,255,255,.6); border: 1px solid rgba(16,42,73,.12); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.wl__check:hover { background: #fff; border-color: rgba(43,169,176,.5); }
.wl__check input { accent-color: var(--teal); width: 16px; height: 16px; }
.wl__check img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.wl__actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.wl__status { font-size: 13.5px; font-weight: 600; color: #B0341F; }
.wl__ref { font-family: var(--mono); font-size: 15px; background: rgba(43,169,176,.14); color: #0E6E74; padding: 6px 12px; border-radius: 8px; display: inline-block; }
.wl__done { padding: 34px; border-radius: 30px; color: var(--cream); background: linear-gradient(140deg, var(--teal), var(--deep) 55%, var(--blue)); box-shadow: 0 40px 90px -44px rgba(16,60,66,.7); }
.wl__doneH { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-top: 12px; }
.wl__doneP { font-size: 15.5px; line-height: 1.6; margin-top: 14px; opacity: .92; }

/* ---------- 404 ---------- */
.nf { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
.nf__code { font-size: clamp(90px, 18vw, 190px); font-weight: 800; letter-spacing: -.06em; line-height: .82; color: rgba(16,42,73,.12); }
.nf__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nf__links a { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; background: rgba(255,253,248,.7); border: 1px solid rgba(255,255,255,.7); color: var(--ink); transition: background .2s ease, transform .2s ease; }
.nf__links a:hover { background: #fff; transform: translateY(-2px); color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-size: 15px; font-weight: 700; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--teal { color: #fff; background: linear-gradient(140deg, var(--teal), var(--deep)); box-shadow: 0 16px 34px -16px rgba(23,138,145,.7); }
.btn--teal:hover { color: #fff; }
.btn--ghost { color: var(--ink); background: rgba(255,253,248,.7); border: 1px solid rgba(255,255,255,.7); }
.btn--ghost:hover { color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.note { font-size: 13px; color: rgba(16,42,73,.55); margin-top: 16px; line-height: 1.6; }
[hidden] { display: none !important; }
