/* Butter landing: hero pin, mockup internals, bento art. Same tokens as site.css. */

/* ---------- hero pin ---------- */
.hero { padding: 0; height: 320svh; overflow: visible; }
.hero-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero-top { position: absolute; left: 0; right: 0; top: 0; height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 14px; padding: 76px var(--gut) 0; transform-origin: 50% 40%; }
.hero-top .mark-big { width: clamp(76px, min(9vw, 13svh), 120px); margin-bottom: 0; }
.hero-top h1 { margin: 0; font-size: clamp(88px, min(19vw, 26svh), 260px); line-height: .84; padding: 0 .04em .06em 0; }
.hero-top .sub { font: 600 clamp(19px, 2.2vw, 28px)/1.2 var(--sans); letter-spacing: -.02em; margin: 6px 0 0; }
.hero-top .promise { margin: 0 0 8px; font-size: clamp(15px, 1.5vw, 19px); color: var(--ink-muted); }
.hero-top .promise b { color: var(--ink); font-weight: 600; }
.stage { position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: 0 var(--gut); display: grid; justify-items: center; transform-origin: 50% 0; perspective: none; will-change: transform; }
.stage::before { top: 10%; }
.win-fit { width: var(--fw, 1280px); height: var(--fh, 800px); aspect-ratio: auto; max-width: none; }

/* ---------- window internals ---------- */
.win { display: flex; flex-direction: column; }
.win .h2 { font: 600 15px/1.2 var(--sans); letter-spacing: -.01em; margin: 0; }
.win .fld { display: flex; flex-direction: column; gap: 6px; }
.win .inp { height: 32px; border-radius: 8px; background: var(--surface-raised); display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--ink); white-space: nowrap; }
.hw-body { flex: 1; display: flex; gap: 16px; padding: 4px 16px 0; min-height: 0; }
.hw-l { width: 260px; flex: none; padding: 12px; display: flex; flex-direction: column; gap: 4px; height: 560px; }
.hw-r { width: 300px; flex: none; padding: 16px; display: flex; flex-direction: column; gap: 16px; height: 560px; }
.hw-c { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.li { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; border-radius: 8px; color: var(--ink); font-size: 13px; }
.li em { margin-left: auto; color: var(--ink-muted); font-size: 12px; }
.li.on { background: var(--surface-raised); }
.li .th { width: 40px; height: 24px; border-radius: 5px; overflow: hidden; flex: none; position: relative; display: block; }
.th svg, .th .sc { position: absolute; inset: 0; width: 100%; height: 100%; }
.hw-try { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--surface-raised); display: grid; gap: 4px; }
.hw-try b { font-size: 12px; font-weight: 600; } .hw-try span { color: var(--ink-muted); font-size: 12px; }
.hw-frame { width: 100%; height: 470px; border-radius: 12px; }
.hw-bt { position: absolute; left: 0; right: 0; top: 12%; text-align: center; font: 900 128px/.9 var(--sans); letter-spacing: -.03em; color: #fff; z-index: 1; }
.hw-subj { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 86%; z-index: 2; }
.hw-cap { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; z-index: 3; font: 800 30px/1.1 var(--sans); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); letter-spacing: -.02em; }
.hw-cap span { color: #F4D35E; }
.hw-tr { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.hw-tl { margin: 12px 16px 16px; height: 252px; padding: 8px 0; flex: none; position: relative; }
.sfx { position: absolute; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-raised); box-shadow: inset 0 0 0 1.5px var(--ink-muted); display: block; }
.b.cr { clip-path: polygon(0 0, 100% 0, calc(100% - var(--h)) 100%, 0 100%); border-radius: 6px 0 0 6px; }
.b.cl { clip-path: polygon(var(--h) 0, 100% 0, 100% 100%, 0 100%); border-radius: 0 6px 6px 0; }
.hw-l .seg span, .hw-r .seg span { height: 26px; }

/* ---------- commands marquee ---------- */
.marq-sec { padding: clamp(36px, 6vw, 80px) 0 0; display: grid; gap: 6px; }

/* ---------- says ---------- */
.says { padding: clamp(80px, 12vw, 170px) 0 clamp(60px, 9vw, 120px); }
.says-t { font: 700 clamp(30px, 5vw, 68px)/1.06 var(--sans); letter-spacing: -.04em; max-width: 17em; margin: 20px auto 0; text-align: center; text-wrap: balance; color: var(--ink-muted); }
.says-t .em, .says-t .em .sw2 { color: var(--ink); }

/* ---------- say demo extras ---------- */
.tx-wrap { padding: 22px 24px 18px; display: grid; align-content: start; min-height: 0; overflow: hidden; }
.prev-cap { position: absolute; left: 5%; right: 5%; bottom: 12%; text-align: center; font: 800 clamp(18px, 2vw, 28px)/1.1 var(--sans); letter-spacing: -.025em; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.55); z-index: 2; }
.prev .fr .tag { z-index: 2; }
.track .c.base { left: 0; width: 100%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.track .c.base::after { content: "13.8 s of raw footage"; position: absolute; left: 12px; top: 0; color: var(--ink-muted); font: 500 12px/40px var(--sans); }
.track .c { transition: none; }
.track .playhead { top: -6px; bottom: -6px; }

/* ---------- find demo extras ---------- */
.cc .fr .rng { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.cc .fr .rng i { position: absolute; top: 0; bottom: 0; background: #fff; border-radius: 3px; }
.cc .why { display: flex; gap: 5px; flex-wrap: wrap; }
.cc .loc { position: absolute; left: 8px; top: 8px; z-index: 2; font: 600 10px/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.cc .loc.off { opacity: .7; }

/* ---------- bento art ---------- */
.cap-demo { height: 250px; border-radius: 16px 16px 0 0; margin: 0 28px; }
.cap-demo .capt { bottom: 14%; }
.cap-demo .faceb { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); width: 88px; height: 98px; border: 1.5px dashed rgba(255,255,255,.7); border-radius: 12px; font: 600 10px/1 var(--sans); color: #fff; padding: 6px 0 0 0; text-align: center; }
.behind { height: 280px; border-radius: 16px 16px 0 0; margin: 0 28px; }
.behind .subj { height: 92%; }
.bx.yel .fr { background: #2a2622; }
.bx.yel .chip .v { background: rgba(20,19,15,.12); color: #14130F; }

.sound-art { padding: 0 28px 28px; gap: 8px; }
.kf { display: grid; grid-template-columns: 220px 1fr; gap: 14px; padding: 0 28px 28px; align-items: end; }
.kf-prev { aspect-ratio: 16/10; border-radius: 12px; }
.kf-prev .lt { position: absolute; left: 10%; bottom: 14%; display: grid; gap: 1px; padding: 6px 10px; background: rgba(0,0,0,.55); border-left: 3px solid #F4D35E; color: #fff; font: 500 10px/1.2 var(--sans); }
.kf-prev .lt b { font: 700 13px/1.1 var(--sans); }
.kf-grid { display: grid; gap: 6px; }
.kf-r { display: grid; grid-template-columns: 78px 1fr 40px; gap: 10px; align-items: center; height: 28px; font: 500 12px/1 var(--sans); }
.kf-r span, .kf-r em { color: var(--ink-muted); }
.kf-r em { text-align: right; font: 500 12px/1 var(--mono); }
.kf-t { position: relative; height: 24px; border-radius: 8px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--hairline); }
.kf-t i { position: absolute; top: 50%; width: 9px; height: 9px; background: var(--indicator); transform: translate(-50%, -50%) rotate(45deg); border-radius: 1px; }
:root[data-theme="butter"] .kf-t i { background: var(--ink); }
.kf-ease { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
@media (max-width: 720px) { .kf { grid-template-columns: 1fr; } }

.style-art, .chk-art { padding: 0 24px 24px; display: grid; gap: 6px; }
.st-row { display: grid; grid-template-columns: 1fr auto 40px; gap: 10px; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--hairline); font: 600 13px/1 var(--sans); }
.st-row em { color: var(--ink-muted); font: 500 12px/1 var(--mono); }
.sw { position: relative; width: 36px; height: 20px; border-radius: 99px; background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border-strong); display: block; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-muted); transition: transform .3s var(--ease); }
.sw.on { background: var(--indicator); box-shadow: none; } .sw.on::after { transform: translateX(16px); background: var(--on-indicator); }
.ck { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--hairline); font: 500 13px/1.2 var(--sans); }
.ck i { width: 10px; height: 10px; border-radius: 50%; flex: none; display: block; background: var(--positive); }
.ck.warn i { background: var(--caution); }

.phone-art { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; padding: 0 20px 0 28px; }
.phone-art .phone { margin-bottom: -150px; width: 200px; height: 420px; }
.ph-scr { padding: 34px 10px 10px; gap: 8px; }
.ph-top { display: flex; align-items: center; justify-content: space-between; }
.ph-fr { flex: 1; border-radius: 12px; min-height: 0; }
.ph-bt { position: absolute; left: 0; right: 0; top: 12%; text-align: center; font: 900 36px/.9 var(--sans); letter-spacing: -.03em; color: #fff; z-index: 1; }
.ph-subj { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 70%; z-index: 2; }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font: 800 12px/1.1 var(--sans); color: #fff; z-index: 3; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ph-cap b { color: #F4D35E; font-weight: 800; }
.ph-tl { position: relative; height: 22px; border-radius: 6px; background: var(--surface); }
.ph-tl i { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: var(--surface-raised); display: block; }
.ph-tl i:nth-child(2) { background: var(--indicator); }
.ph-tools { display: flex; gap: 4px; font: 500 10px/1 var(--sans); }
.ph-tools span { padding: 6px 8px; border-radius: 99px; background: var(--surface-raised); } .ph-tools .on { background: var(--action); color: var(--on-action); font-weight: 600; }
.ph-in { display: flex; align-items: center; height: 30px; padding: 0 4px 0 12px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); font: 400 11px/1 var(--sans); color: var(--ink-muted); }
.ph-in i { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--action); color: var(--on-action); display: grid; place-items: center; } .ph-in i .ico { width: 12px; height: 12px; }
.la { align-self: start; margin-top: 8px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 22px; background: #000; color: #F5F5F7; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.4); font-size: 12px; line-height: 1.3; }
.la b { display: block; font-size: 13px; } .la span { color: #AEAEB4; display: block; }
.la-bar { height: 4px; border-radius: 3px; background: #303034; margin-top: 8px; overflow: hidden; } .la-bar i { display: block; height: 100%; width: 62%; background: #F4D35E; border-radius: 3px; }
.la-mark img { border-radius: 6px; }
@media (max-width: 960px) { .phone-art { grid-template-columns: 1fr; justify-items: center; } .phone-art .phone { margin-bottom: -100px; } .la { justify-self: stretch; } }

.bx.src { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; min-height: 0; }
.src-l { display: grid; gap: 14px; }
.src-r { display: grid; gap: 8px; }
.sc-card { display: grid; grid-template-columns: 10px auto 1fr auto; gap: 12px; align-items: center; height: 56px; padding: 0 18px; border-radius: 16px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 14px; }
.sc-card b { font-weight: 600; } .sc-card span { color: var(--ink-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sc-card em { color: var(--ink-muted); }
.sc-card.off { opacity: .72; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; } .dot.g { background: var(--positive); } .dot.a { background: var(--caution); }
@media (max-width: 960px) { .bx.src { grid-template-columns: 1fr; } }

ul.plain { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
ul.plain li { position: relative; padding-left: 22px; color: var(--ink); font-size: 16px; line-height: 1.45; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 2px; background: var(--indicator); transform: rotate(-45deg); border-radius: 1px; }
:root[data-theme="butter"] ul.plain li::before { background: var(--ink); }
.term pre { min-height: 330px; }
.term pre .cur { display: inline-block; width: 8px; height: 1.1em; background: #F4D35E; vertical-align: -.2em; animation: blink 1s steps(1) infinite; }

/* find: preview panel */
.find { position: relative; }
#fgrid { position: relative; }
.fprev { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 18px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-md); opacity: 0; z-index: 3; }
.fp-l .fr { aspect-ratio: 16 / 8; }
.fp-r { display: grid; gap: 8px; align-content: center; font-size: 14px; } .fp-r > b { font: 700 22px/1.1 var(--sans); letter-spacing: -.025em; }
.fp-note { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--hairline); }
.fp-note .dot { margin-top: 6px; } .fp-note b { display: block; font-weight: 600; } .fp-note span { color: var(--ink-muted); font-size: 13px; }
@media (max-width: 760px) { .fprev { grid-template-columns: 1fr; } .fp-l { display: none; } }
.faceb { z-index: 2; }
.hero-pin { perspective: 2400px; }

/* say: wide timeline row, log */
.say { grid-template-rows: minmax(0, 1fr) auto; }
.prev-tl.wide { grid-column: 1 / -1; padding: 16px 20px 14px; }
.prev { min-height: 0; grid-template-rows: minmax(0, 1fr); }
.tx-wrap { display: flex; flex-direction: column; padding: 22px 24px 18px; }
.tx { font-size: clamp(16px, 1.55vw, 21px); line-height: 1.7; }
.log { display: grid; gap: 6px; margin-top: 16px; }
.lgr { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--hairline); font: 500 13px/1 var(--sans); opacity: 0; }
.lgr i { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); display: block; }
.lgr .data { margin-left: auto; color: var(--ink-muted); }
.tx-meta { margin-top: auto; }
.wave { height: 22px; margin-top: 10px; }
.d-head h2 { font-size: clamp(28px, 3.6vw, 48px); }
.hw-l .seg span, .hw-r .seg span { white-space: nowrap; }
.capt span { margin: 0 .06em; }
.fprev { height: 224px; padding: 14px; gap: 20px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.fp-l .fr { height: 100%; aspect-ratio: auto; }
.fp-l { min-height: 0; }
.fp-r { gap: 6px; }
.cc .fr { aspect-ratio: 16 / 9; }
.term pre { min-height: 280px; }
.says-t .sw2 { display: inline; opacity: .2; }

/* small screens: demos stop pinning and show their finished state, in normal flow */
@media (max-width: 860px) {
  .demo, .demo.short { height: auto; }
  .pin { position: relative; height: auto; overflow: visible; }
  .pin-in { position: relative; inset: auto; display: grid; gap: 22px; padding: 70px var(--gut) 50px; max-width: none; }
  .dstage { display: block; }
  .ghost, .steps { display: none; }
  .say { grid-template-columns: 1fr; grid-template-rows: auto; overflow: visible; height: auto; }
  .prev .fr { height: auto; aspect-ratio: 16 / 10; }
  .find { height: auto; }
  .grid { overflow: visible; }
  .cc[data-m="0"] { display: none; }
  .fprev { position: relative; top: auto !important; height: auto; grid-column: 1 / -1; opacity: 1 !important; transform: none !important; filter: none !important; margin-top: 8px; }
  .cc { opacity: 1 !important; transform: none !important; filter: none !important; }
  .cc .why, .cc .rng { opacity: 1 !important; transform: none !important; }
  .tx { font-size: 17px; }
  .hero-top h1 { font-size: clamp(88px, 28vw, 140px); }
}

/* bento: art sits at the bottom of the card in flow, so it can never cover the copy */
.bx { display: flex; flex-direction: column; gap: 14px; }
.bx .art { position: relative; left: auto; right: auto; bottom: auto; margin: auto -32px -32px; padding-top: 10px; }
@media (max-width: 960px) { .bx .art { margin: auto -24px -24px; } .phone-art .phone { margin-bottom: -120px; } }
.bx.src { display: grid; }
.phone-art .phone { width: 176px; height: 370px; }
.la span { font-size: 11px; }
