/* Hushlab's tokens (same as the app): near-black neutrals, one gold accent. Dark only. */
:root {
    --bg: #0c0c0e;
    --fg: #ededef;
    --muted: #8d8d9a;
    --line: #26262c;
    --card: #141417;
    --gold: #e2b062;
    --ink: #1b1305;
    --success: #62c98a;
    --font: 'Instrument Sans', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --gutter: clamp(16px, 4vw, 40px);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
strong { font-weight: 500; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.muted { color: var(--muted); }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
/* The hero glow bleeds past the frame; clip it so phones never scroll sideways. */
main { overflow-x: clip; }

/* Header */
.top {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.top .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.brand .sub { font-weight: 400; color: var(--muted); margin-left: 2px; }
.mark { flex: none; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 14px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--gold); }
.top nav a.signin {
    height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px;
    display: inline-flex; align-items: center; color: var(--fg); font-weight: 500;
}
.top nav a.signin:hover { border-color: var(--muted); color: var(--fg); }

/* Type */
h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.intro { color: var(--muted); max-width: 48ch; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }

/* Sections */
.section { border-top: 1px solid var(--line); }
.section > .wrap { padding-block: clamp(64px, 8vw, 120px); display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px 48px; align-items: end; }
.section > .split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }

/* Hero (design v3, take A "Editorial") */
.hero { position: relative; overflow: hidden; }
.hero-copy { padding-top: clamp(48px, 8vw, 112px); display: flex; flex-direction: column; gap: clamp(22px, 3vw, 40px); }
h1 { font-size: clamp(46px, 8.8vw, 132px); line-height: .96; letter-spacing: -.04em; font-weight: 600; max-width: 13ch; text-wrap: balance; }
.h1-mark { width: 1.05em; height: 1.05em; vertical-align: -.14em; margin-right: .08em; }
.hero-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 48px; align-items: end; }
.lede { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.cta-block { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 6px; }
.cta { height: 54px; padding: 0 28px; border-radius: 8px; background: var(--gold); color: var(--ink); font-weight: 600; font-size: 17px; display: inline-flex; align-items: center; gap: 10px; }
.cta:hover { background: #ecc27c; color: var(--ink); }
.cta .mono { font-size: 15px; }
.note { font-size: 13px; color: var(--muted); }
/* Cut off by the next section's border, on purpose. */
.hero-shot { max-width: 1480px; margin: clamp(40px, 6vw, 88px) auto 0; padding-inline: clamp(0px, 2vw, 24px); }
.hero-shot .frame { aspect-ratio: 16 / 7; border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -30px 120px -40px color-mix(in oklab, var(--gold) 35%, transparent); }

/* Screenshot frames */
.frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); aspect-ratio: 16 / 10; }
.frame.wide { aspect-ratio: 16 / 9; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Cards */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 230px)), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.make .card { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.card p { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.card .body { display: flex; flex-direction: column; gap: 6px; }

/* Card illustrations (decorative) */
.art { height: 64px; display: flex; }
.pills { flex-wrap: wrap; gap: 6px; align-content: flex-start; height: auto; min-height: 64px; }
.pill { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; }
.pill.on { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 500; }
.frames { gap: 4px; }
.frames span { flex: 1; border-radius: 4px; position: relative; }
.frames span:nth-child(1) { background: linear-gradient(160deg, oklch(60% .09 60), oklch(28% .05 40)); }
.frames span:nth-child(2) { background: linear-gradient(160deg, oklch(58% .09 55), oklch(27% .05 45)); }
.frames span:nth-child(3) { background: linear-gradient(160deg, oklch(56% .09 50), oklch(26% .05 50)); }
.frames span:nth-child(4) { background: linear-gradient(160deg, oklch(54% .09 45), oklch(25% .05 55)); }
.frames span:nth-child(5) { background: linear-gradient(160deg, oklch(52% .09 40), oklch(24% .05 60)); }
.frames b { position: absolute; right: 4px; bottom: 4px; font: 400 10px var(--mono); color: #fff; background: rgba(0, 0, 0, .5); padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.chain { align-items: center; gap: 6px; }
.chain span { width: 52px; height: 52px; border-radius: 6px; flex: none; }
.chain i { flex: 1; height: 1px; background: var(--line); }
.chain span:nth-of-type(1) { background: linear-gradient(160deg, oklch(50% .06 240), oklch(20% .03 250)); }
.chain span:nth-of-type(2) { background: linear-gradient(160deg, oklch(48% .07 280), oklch(20% .03 290)); }
.chain span:nth-of-type(3) { background: linear-gradient(160deg, oklch(45% .07 320), oklch(20% .03 330)); }
.fix { gap: 10px; align-items: center; }
.fix .tile { width: 52px; height: 64px; border-radius: 6px; position: relative; background: linear-gradient(170deg, oklch(64% .1 75), oklch(30% .06 55)); }
.fix .tile::after { content: ''; position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 999px; border: 1.5px dashed var(--gold); }
.fix ul { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.fix li:first-child { color: var(--fg); }

/* In the studio (take A): alternating rows, each screenshot bleeding to the page edge. */
.studio { overflow: hidden; }
.studio > .wrap { gap: clamp(40px, 6vw, 88px); }
.studio .intro { font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; }
.shot-rows { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 104px); }
.row { --bleed: calc(-1 * max(var(--gutter), (100vw - 1280px) / 2)); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 48px); align-items: center; }
.row-shot { grid-column: span 2; min-width: 0; margin-left: var(--bleed); }
.row.flip .row-shot { order: 2; margin-left: 0; margin-right: var(--bleed); }
.row.flip figcaption { order: 1; }
.row .frame { border-radius: 16px; box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9); }
.row figcaption { display: flex; flex-direction: column; gap: 10px; }
.row figcaption span:first-child { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--fg); }
.row figcaption span:last-child { font-size: 17px; line-height: 1.5; text-wrap: pretty; max-width: 36ch; }
.more { align-self: flex-start; font-size: 17px; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
/* One column on a phone: no row to span, so the shot just bleeds to both edges. */
@media (max-width: 620px) {
    .row-shot, .row.flip .row-shot { grid-column: auto; order: 0; margin-inline: calc(-1 * var(--gutter)); }
    .row.flip figcaption { order: 1; }
}

/* Scroll reveal (script at the end of index.html adds .reveal; reduced motion never gets it). */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.hero-shot { transform: translateY(72px); transition-duration: 1.1s; }
.reveal.shown { opacity: 1; transform: none; }

/* Two ways */
.ways { --min: 320px; }
.ways .card { overflow: hidden; display: flex; flex-direction: column; }
.ways header p { font-size: 15px; line-height: 1.5; }
.ways header { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.ways h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--gold); flex: none; }
.dot.live { background: var(--success); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }
.rows { font-size: 14px; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { color: var(--muted); flex: none; width: 84px; }
.rows dd { text-align: right; flex: 1; min-width: 0; text-wrap: pretty; }
.rows dd.mono, .rows .num { font-size: 13px; }

/* People */
.people-copy { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.people-copy p { color: var(--muted); text-wrap: pretty; }
.marked { border-top: 1px solid var(--line); margin-top: 4px; font-size: 14px; }
.marked li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.marked li > span:first-child { font: 12px var(--mono); color: var(--muted); width: 20px; flex: none; padding-top: 2px; }
.person { padding: 18px; display: flex; flex-direction: column; gap: 16px; max-width: 440px; width: 100%; justify-self: center; }
.person .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 999px; background: linear-gradient(160deg, oklch(62% .09 60), oklch(28% .05 40)); flex: none; }
.person .name { display: flex; flex-direction: column; }
.person .name b { font-weight: 600; font-size: 15px; }
.person .name span { font-size: 12px; color: var(--muted); }
.chip { margin-left: auto; height: 24px; padding: 0 9px; border-radius: 999px; background: color-mix(in oklab, var(--success) 16%, transparent); color: var(--success); font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; }
.person .boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.person .box { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.person .box > span:first-child { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.person .box b { font-size: 13px; font-weight: 500; }
.person .box .mono { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.refs { display: flex; gap: 4px; }
.refs span { width: 22px; height: 22px; border-radius: 4px; }
.refs span:nth-child(1) { background: linear-gradient(160deg, oklch(60% .09 60), oklch(30% .05 40)); }
.refs span:nth-child(2) { background: linear-gradient(200deg, oklch(58% .08 50), oklch(28% .05 45)); }
.refs span:nth-child(3) { background: linear-gradient(140deg, oklch(56% .08 70), oklch(26% .05 50)); }

/* Private by default */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); }
.cols > div { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.cols h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.cols p { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* Pricing */
.section > .pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pricing-copy { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.pricing-copy p { color: var(--muted); text-wrap: pretty; }
.rates { overflow: hidden; font-size: 14px; }
.rates > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rates > div:last-child { border-bottom: 0; }
.rates dt { display: flex; flex-direction: column; gap: 2px; }
.rates dt b { font-weight: 500; }
.rates dt span { font-size: 12.5px; color: var(--muted); }
.rates dd { font-family: var(--mono); white-space: nowrap; text-align: right; }
.rates small { font-size: 12px; color: var(--muted); }
.rates dd.plain { font-size: 13px; color: var(--muted); }
.rates dd .sub { display: block; font-size: 11px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { padding-block: 48px 40px; display: flex; flex-direction: column; gap: 28px; }
.lockup { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lockup-mark { flex: none; }
.lockup div { display: flex; flex-direction: column; gap: 6px; }
.lockup div span:first-child { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.lockup div span:last-child { font-size: 14px; color: var(--muted); }
.lockup + nav { padding-top: 20px; border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--gold); }
.foot .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 12.5px; color: var(--muted); align-items: center; }
.foot .meta > span:first-child { display: flex; align-items: center; gap: 8px; }
.foot .tag { font: 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* Guides */
.docs { padding-block: clamp(28px, 4vw, 56px) 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; line-height: 1.55; }
.toc { grid-column: span 1; position: sticky; top: 76px; display: flex; flex-direction: column; gap: 18px; font-size: 14px; max-height: calc(100vh - 96px); overflow-y: auto; }
.toc div { display: flex; flex-direction: column; gap: 6px; }
.toc span { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc a { color: var(--muted); padding: 4px 0; }
.toc a:hover, .toc a.current { color: var(--fg); }
.guide { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); max-width: 720px; }
.guide > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.guide h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; max-width: none; }
.guide > div:first-child p { color: var(--muted); font-size: 17px; text-wrap: pretty; }
.guide section { scroll-margin-top: 84px; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.guide h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.015em; }
.guide section > p { color: var(--muted); }
.guide section > p strong { color: var(--fg); }
.guide section > p.small { font-size: 14px; }
.guide p a, .guide li a { color: var(--gold); }
.steps, .bullets { display: flex; flex-direction: column; gap: 10px; }
.steps li, .bullets li { display: flex; gap: 14px; }
.steps li > span:first-child { font: 12px var(--mono); color: var(--gold); width: 22px; flex: none; padding-top: 4px; }
.bullets li > span:first-child { width: 22px; flex: none; padding-top: 9px; }
.bullets li > span:first-child::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }
.callout { font-size: 14px; color: var(--muted); padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; font-size: 14px; }
.modes div { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.modes b { font-weight: 500; }
.modes span { color: var(--muted); }
.table { overflow: hidden; font-size: 14px; }
.table > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table > div:last-child { border-bottom: 0; }
.table dd { font: 13px var(--mono); text-align: right; }
.table dd.plain { font: inherit; color: var(--muted); }
@media (max-width: 700px) { .toc { position: static; max-height: none; } }
