/* Doors of Perception — site.css (single stylesheet, no build step) */
:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #0d0c0a;
  --bg-3: #12110e;
  --ink: #f3efe6;
  --muted: #a29c8f;
  --faint: #8a8478;
  --line: rgba(243, 239, 230, .09);
  --line-2: rgba(243, 239, 230, .16);
  --line-3: rgba(243, 239, 230, .26);
  --gold: #e9b45a;
  --gold-hi: #ffe2a3;
  --gold-lo: #c98a2c;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1160px;
  --gutter: 24px;
  --r: 16px;
  --header: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: rgba(233, 180, 90, .5); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
ul, ol { list-style: none; }
code, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code {
  padding: .12em .4em; border-radius: 6px;
  background: rgba(243, 239, 230, .06); border: 1px solid var(--line);
}
kbd {
  padding: .1em .45em; border-radius: 6px; border: 1px solid var(--line-2);
  border-bottom-width: 2px; background: var(--bg-3); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(233, 180, 90, .35); color: var(--ink); }
code.nw { white-space: nowrap; }
.sr { 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: 16px; top: -64px; z-index: 100;
  padding: 8px 16px; border-radius: 8px; background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; color: var(--bg); }

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

/* ---------- type ---------- */
h1, h2, h3, .h1, .h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; }
h1, .h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; }
h2, .h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
h1, h2 { text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; color: var(--gold-hi); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.lede { color: var(--muted); font-size: 19px; line-height: 1.6; }
.muted { color: var(--muted); }
.micro { color: var(--faint); font-size: 14px; }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #0a0a0a; }
.btn-primary:hover { background: var(--gold-hi); color: #0a0a0a; }
.btn-ghost { border-color: var(--line-3); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-gold { background: var(--gold); color: #0a0a0a; }
.btn-gold:hover { background: var(--gold-hi); color: #0a0a0a; }
.btn-sm { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(2px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); font-weight: 500; text-decoration: none; }
.link-arrow:hover { color: var(--gold-hi); }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 16px; height: 24px; flex: none; }
.nav-links ul { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-links summary {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  color: var(--muted); font-size: 15px; text-decoration: none; cursor: pointer; transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-links summary:hover, .nav-links details[open] > summary { color: var(--ink); background: rgba(243, 239, 230, .05); }
.nav-links a[aria-current="page"] { color: var(--ink); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.chev { width: 10px; height: 10px; transition: transform .2s; }
details[open] > summary .chev { transform: rotate(180deg); }
.dd { position: relative; }
.dd-menu {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  width: 340px; padding: 8px; border-radius: 14px;
  background: #0f0e0b; border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.nav-links .dd-menu a {
  display: flex; align-items: center; gap: 14px; height: auto; padding: 12px; border-radius: 10px; color: var(--ink);
}
.dd-menu img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.dd-menu b { display: block; font-weight: 500; font-size: 15px; }
.dd-menu small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* mobile menu (details/summary — works without JS) */
.mnav { display: none; }
.mnav > summary {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-2);
}
.burger, .burger::before, .burger::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.mnav[open] .burger { background: transparent; }
.mnav[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.mnav[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.mnav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 8px var(--gutter) 24px; background: #070706; border-bottom: 1px solid var(--line-2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
  max-height: calc(100vh - var(--header)); overflow-y: auto;
}
.mnav-panel a:not(.btn) {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; color: var(--ink);
}
.mnav-panel a[aria-current="page"] { color: var(--gold-hi); }
.mnav-panel img { width: 28px; height: 28px; border-radius: 7px; }
.mnav-panel .mnav-label { padding: 16px 0 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.mnav-panel .btn { width: 100%; margin-top: 20px; }

/* ---------- sections ---------- */
.section { padding: 128px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head .eyebrow { margin: 0 0 16px; color: var(--gold); font-size: 13px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 112px; }
.hero::before { /* faint floor glow */
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy h1 { margin-top: 24px; }
.hero-copy h1 em { white-space: nowrap; }
.hero-copy .lede { margin-top: 24px; max-width: 34em; }
.hero-copy .btns { margin-top: 40px; }
.hero-copy .micro { margin-top: 24px; }
.hero-visual { position: relative; padding: 72px 0; }

/* the door: a thin band of gold light behind the window */
.door {
  position: absolute; z-index: 0; top: 0; bottom: 0; right: 20%; width: 60px;
  pointer-events: none;
}
.door-frame { position: absolute; inset: -8px -8px 0 -8px; border: 1px solid rgba(243, 239, 230, .14); border-bottom: 0; }
.door-light {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 68%, var(--gold-lo) 100%);
  box-shadow: 0 0 36px 4px rgba(255, 210, 130, .5), 0 0 120px 30px rgba(233, 180, 90, .2);
  transform: scaleX(.04); transform-origin: 50% 50%;
  animation: door-open 2s cubic-bezier(.65, 0, .2, 1) .25s forwards;
}
.door-glow {
  position: absolute; inset: -12% -180%;
  background: radial-gradient(closest-side, rgba(233, 180, 90, .22), rgba(233, 180, 90, 0));
  opacity: 0; animation: door-glow 1.4s ease 1.2s forwards, door-breathe 6s ease-in-out 2.6s infinite;
}
@keyframes door-open { to { transform: scaleX(1); } }

/* home hero: a thin vertical streak of light running behind the centre of the window */
.hero-visual .door { top: 0; bottom: 0; left: 50%; right: auto; width: 8px; margin-left: -4px; }
.hero-visual .door-frame, .hero-visual .door-glow { display: none; }
.hero-visual .door-light {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-hi) 50%, var(--gold) 100%);
  box-shadow: 0 0 6px 1px rgba(255, 226, 163, .7), 0 0 24px 6px rgba(233, 180, 90, .4), 0 0 80px 20px rgba(233, 180, 90, .16);
  transform: scaleY(0); transform-origin: 50% 100%;
  animation: door-rise 1.6s cubic-bezier(.65, 0, .2, 1) .2s forwards, door-pulse 6s ease-in-out 1.8s infinite;
}
@keyframes door-rise { to { transform: scaleY(1); } }
@keyframes door-pulse {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(255, 226, 163, .7), 0 0 24px 6px rgba(233, 180, 90, .4), 0 0 80px 20px rgba(233, 180, 90, .16); }
  50% { box-shadow: 0 0 9px 2px rgba(255, 226, 163, .85), 0 0 34px 9px rgba(233, 180, 90, .5), 0 0 110px 30px rgba(233, 180, 90, .22); }
}
@keyframes door-glow { to { opacity: .8; } }
@keyframes door-breathe { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }

/* ---------- window frame for screenshots ---------- */
.window {
  position: relative; z-index: 1;
  border-radius: var(--r); overflow: hidden;
  background: #111; border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 40px 100px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .6);
}
.window-bar {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  background: #161513; border-bottom: 1px solid var(--line);
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(243, 239, 230, .16); }
.window-bar span { flex: 1; text-align: center; margin-right: 44px; font-size: 12px; color: var(--faint); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window img { width: 100%; }
figure figcaption { margin-top: 16px; color: var(--faint); font-size: 14px; }

/* ---------- trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { padding: 40px 24px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item b { display: block; font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.06; letter-spacing: -.025em; }
.trust-item span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- home products ---------- */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: center;
  padding: 56px; border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.product + .product { margin-top: 32px; }
.product.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.product.flip > .product-media { order: -1; }
.product-name { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.product-name img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.product-name h3 { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.06; letter-spacing: -.025em; }
.product .pitch { margin-top: 16px; color: var(--muted); }
.ticks { margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 6px; height: 11px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 10px rgba(233, 180, 90, .45);
}
.product .btns { margin-top: 32px; align-items: center; }
.product .link-arrow { margin-right: 8px; }

/* ---------- how it fits together ---------- */
.flow { border: 1px solid var(--line); border-radius: 24px; padding: 48px 40px 40px; background: var(--bg-2); }
.flow svg { width: 100%; height: auto; }
.flow .flow-v { display: none; max-width: 340px; margin: 0 auto; }
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 32px; counter-reset: step; }
.flow-steps li { counter-increment: step; color: var(--muted); font-size: 16px; }
.flow-steps li::before { content: "0" counter(step); display: block; margin-bottom: 8px; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; color: var(--gold); font-size: 22px; line-height: 1; }
.flow-steps b { color: var(--ink); font-weight: 600; }
.flow svg text { font-family: var(--sans); }

/* ---------- pricing cards ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2);
}
.price-card.best { border-color: rgba(233, 180, 90, .55); background: linear-gradient(180deg, rgba(233, 180, 90, .07), var(--bg-2) 45%); }
.price-card .badge { position: absolute; top: -12px; left: 32px; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  gap: .35em; font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  background: var(--gold); color: #0a0a0a;
}
.badge.outline { background: transparent; color: var(--muted); border: 1px solid var(--line-2); font-weight: 500; }
.price-card h3 { font-size: 18px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.price b { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.03em; }
.price span { color: var(--faint); font-size: 14px; }
.price-card .desc { margin: 12px 0 32px; color: var(--muted); font-size: 15px; }
.price-card .ticks { margin-top: -8px; margin-bottom: 32px; }
.price-card .ticks li { font-size: 15px; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-note { margin-top: 32px; text-align: center; color: var(--faint); font-size: 14px; }
.teaser-foot { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }

/* ---------- founder note ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
.founder .eyebrow { margin-bottom: 16px; }
.founder blockquote { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; letter-spacing: -.015em; color: var(--ink); }
.founder blockquote p + p { margin-top: 20px; }
.founder .sig { margin-top: 32px; display: flex; align-items: center; gap: 16px; font-size: 15px; color: var(--muted); }
.founder .sig::before { content: ""; width: 32px; height: 1px; background: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 112px 0; border-top: 1px solid var(--line); text-align: center; }
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 72px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-hi), rgba(233, 180, 90, 0));
  box-shadow: 0 0 24px 4px rgba(233, 180, 90, .35);
}
.cta-band h2 { max-width: 18ch; margin: 0 auto; }
.cta-band p { max-width: 560px; margin: 16px auto 0; color: var(--muted); }
.cta-band .btns { justify-content: center; margin-top: 40px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: #040404; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 48px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 26ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-cols h2 { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); line-height: 1.4; }
.footer-cols ul { margin-top: 16px; display: grid; gap: 10px; }
.footer-cols a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.footer-legal { margin-top: 8px; color: var(--faint); font-size: 13px; line-height: 1.55; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: 96px 0 80px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 20px; max-width: 20ch; }
.page-hero .lede { margin-top: 24px; max-width: 40em; }
.page-hero .btns { margin-top: 40px; }
.page-hero .micro { margin-top: 20px; }
.page-hero .door { right: 10%; width: 36px; top: 72px; bottom: 0; }
.page-hero.slim { padding: 80px 0 56px; }
.page-hero.slim h1 { max-width: none; }
.notice { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.notice p { padding: 16px 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.notice code { white-space: nowrap; }
.app-id { display: flex; align-items: center; gap: 16px; }
.app-id img { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.hero-copy-narrow { position: relative; z-index: 1; max-width: 920px; }
.hero-copy-narrow .lede { max-width: 40em; }

/* alternating features */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 128px; }
.feature.flip { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.feature.flip > figure { order: -1; }
.feature h2 { font-size: clamp(28px, 3.2vw, 40px); margin-top: 12px; }
.feature p { margin-top: 16px; color: var(--muted); }
.feature .ticks { margin-top: 20px; }
.sample-note { margin-top: 64px; color: var(--faint); font-size: 14px; text-align: center; }

/* tables */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: #0a0908; }
.compare th[scope="row"] { font-weight: 400; color: var(--ink); }
.compare .c { width: 96px; text-align: center; }
.compare .yes { color: var(--gold); font-weight: 600; }
.compare .no { color: var(--faint); }
.compare tbody tr.pro-start > * { border-top: 1px solid var(--line-2); }

/* two-column info grid */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
.split > :first-child h2 { position: sticky; top: calc(var(--header) + 32px); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq > div { padding: 28px 0; border-bottom: 1px solid var(--line); }
.faq h3 { font-size: 18px; }
.faq p { margin-top: 10px; color: var(--muted); }
.faq p + p { margin-top: 10px; }

/* cards grid */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cards > * { background: var(--bg); padding: 32px; }
.cards h3 { font-size: 18px; }
.cards p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.cards .num { display: block; margin-bottom: 12px; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; color: var(--gold); font-size: 22px; line-height: 1; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* code */
.code {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--r); background: #0a0908; overflow: hidden;
}
.code-bar { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--faint); font-family: var(--mono); }
.code pre { margin: 0; padding: 20px 24px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #d9d3c6; tab-size: 2; }
.code .k { color: var(--gold); }
.code .h { color: var(--gold-hi); }
.code .c { color: var(--faint); }

/* changelog */
.cl-month { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.cl-month:first-child { border-top: 0; padding-top: 0; }
.cl-month h2 { font-size: 30px; position: sticky; top: calc(var(--header) + 24px); align-self: start; }
.cl-list li { display: grid; grid-template-columns: 72px 132px 76px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.cl-list li:last-child { border-bottom: 0; }
.cl-list time { color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.cl-list .ver { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.cl-list .txt { color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; justify-self: start;
  font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pill.tt::before { background: var(--ink); }
.cl-first { margin-top: 48px; padding: 24px 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); color: var(--muted); }
.cl-first b { color: var(--ink); font-weight: 500; }

/* facts */
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--faint); font-size: 15px; }
.facts dd { color: var(--ink); }
.facts dd span { color: var(--muted); }
.deflist dt { color: var(--ink); font-weight: 600; font-size: 16px; }
.deflist dd { color: var(--muted); font-size: 16px; }
.deflist > div { grid-template-columns: 220px minmax(0, 1fr); padding: 20px 0; }

/* prose (legal, about) */
.prose { max-width: 720px; }
.prose h2 { font-size: 30px; margin-top: 64px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin-top: 16px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose ul { margin-top: 16px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.prose ol { margin-top: 16px; display: grid; gap: 10px; counter-reset: n; }
.prose ol li { position: relative; padding-left: 32px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; display: grid; place-items: center; color: var(--ink); top: .2em; }
.prose .updated { color: var(--faint); font-size: 14px; }

/* support blocks */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.help { padding: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); scroll-margin-top: calc(var(--header) + 24px); }
.help h2 { font-size: 28px; }
.help p, .help li { color: var(--muted); font-size: 16px; }
.help p { margin-top: 12px; }
.help ol, .help ul { margin-top: 12px; display: grid; gap: 8px; }
.help ol { list-style: decimal; padding-left: 20px; }
.help ol li::marker { color: var(--gold); }
.help .btns { margin-top: 20px; }
.help.wide { grid-column: 1 / -1; }
.mail-big {
  display: inline-block; margin-top: 16px; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(22px, 3.2vw, 34px);
  text-decoration: none; border-bottom: 1px solid rgba(233, 180, 90, .5); line-height: 1.3; word-break: break-word;
}
.mail-big:hover { border-color: var(--gold-hi); }

/* 404 */
.nf { position: relative; overflow: hidden; min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.nf .door { position: relative; right: auto; margin: 0 auto 48px; width: 72px; height: 150px; }
.nf .door-frame { display: block; }
.nf .btns { justify-content: center; margin-top: 40px; }
.nf .lede { margin: 20px auto 0; max-width: 32em; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .product { padding: 40px; gap: 40px; }
  .cl-list li { grid-template-columns: 64px 128px 72px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 960px) {
  .section { padding: 96px 0; }
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .product, .product.flip { grid-template-columns: minmax(0, 1fr); }
  .product.flip > .product-media { order: 0; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.flip > figure { order: 0; }
  .feature + .feature { margin-top: 96px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trust-item:nth-child(odd) { padding-left: 0; }
  .price-cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; gap: 32px; }
  .founder, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split > :first-child h2 { position: static; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards.two { grid-template-columns: minmax(0, 1fr); }
  .cl-month { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cl-month h2 { position: static; }
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { padding: 40px 24px 32px; }
  .flow .flow-h { display: none; }
  .flow .flow-v { display: block; }
  .flow-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .mnav { display: block; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .lede { font-size: 17px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .page-hero { padding: 64px 0 56px; }
  .page-hero.slim { padding: 56px 0 40px; }
  .hero-visual { padding: 64px 0; }
  .door { right: 14%; width: 44px; }
  .page-hero .door { display: none; }
  .product .btns .link-arrow { flex-basis: 100%; margin-bottom: 4px; }
  .trust-item { padding: 28px 16px; }
  .trust-item b { font-size: 24px; }
  .product, .product.flip { padding: 24px 20px; gap: 32px; border-radius: 20px; }
  .product-name h3 { font-size: 30px; }
  .product .btns .btn { flex: 1 1 auto; }
  .price-card { padding: 28px 24px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .compare { font-size: 15px; }
  .compare th, .compare td { padding: 12px 14px; }
  .compare .c { width: 56px; }
  .cl-list li { grid-template-columns: 52px auto minmax(0, 1fr); gap: 6px 12px; }
  .cl-list .txt { grid-column: 2 / -1; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .help { padding: 24px 20px; }
  .cards > * { padding: 24px 20px; }
  .code pre { padding: 16px; font-size: 12.5px; }
  .btns .btn { flex: 1 1 auto; }
  .cta-band { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .door-light { animation: none; transform: scaleX(1); }
  .door-glow { animation: none; opacity: .8; }
  .hero-visual .door-light { animation: none; transform: none; }
  .btn:hover { transform: none; }
}
