/* ==========================================================================
   onllm.dev sub-pages - product pages (chat / bro)
   Built on site.css tokens. Interactive hero device, feature switch,
   BYOK toggle, use-case switcher, accordions.
   ========================================================================== */

/* ---------- HERO ---------- */
.p-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: clamp(104px, 15vh, 150px) var(--pad) clamp(54px, 9vh, 96px);
  background: radial-gradient(110% 90% at 72% 30%, var(--ink-2), var(--ink) 68%);
}
.p-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; touch-action: pan-y; }
.p-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--scrim),.88) 0%, rgba(var(--scrim),.5) 44%, rgba(var(--scrim),.12) 72%), linear-gradient(0deg, rgba(var(--scrim),.82), transparent 30%); }
.p-hero-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.p-hero-copy { max-width: 660px; }
.p-kicker { display: flex; align-items: center; gap: 10px; color: var(--on-ink-2); margin: 0 0 26px; }
.p-title {
  margin: 0; font-weight: 600; font-size: clamp(2.9rem, 6.4vw, 6.6rem);
  line-height: .92; letter-spacing: -.055em;
}
.p-title em { color: var(--dye-light); font-size: 1.06em; }
.p-sub { max-width: 44ch; margin: 28px 0 0; color: var(--on-ink-2); font-size: clamp(1.02rem, 1.3vw, 1.2rem); }
.p-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.p-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 38px 0 0; padding: 20px 0 0; border-top: 1px solid var(--ink-line); list-style: none; }
.p-facts li { display: flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-2); }
.p-facts li b { color: var(--on-ink); font-weight: 500; font-family: var(--f-sans); font-size: 14px; letter-spacing: -.01em; text-transform: none; }
.p-facts li i { width: 5px; height: 5px; border-radius: 50%; background: var(--dye); }

.p-hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.p-visual-halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--dye) 26%, transparent), transparent 66%); filter: blur(30px); pointer-events: none; }
.p-visual-ring { position: absolute; width: min(420px, 86%); aspect-ratio: 1; border-radius: 50%; border: 1px dashed color-mix(in oklab, var(--dye) 26%, transparent); animation: spin 46s linear infinite; pointer-events: none; }
.p-visual-ring::after { content: ''; position: absolute; top: 8%; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--dye); box-shadow: 0 0 18px var(--dye); }

/* ---------- phone ---------- */
.phone-wrap { position: relative; width: min(300px, 62vw); perspective: 1100px; z-index: 2; }
.phone {
  position: relative; width: 100%; aspect-ratio: 540 / 1126; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #2c2d34, #0b0b0f);
  box-shadow: 0 0 0 1.5px #3b3c44, 0 50px 100px -34px rgba(0,0,0,.85), 0 0 0 13px color-mix(in oklab, var(--dye) 11%, transparent), 0 0 70px color-mix(in oklab, var(--dye) 20%, transparent);
  transform: perspective(1100px) rotateY(var(--ry, -9deg)) rotateX(var(--rx, 3deg));
  transition: transform .7s var(--e-out);
  touch-action: pan-y;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #000; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .6s var(--e-out), transform 1s var(--e-out); }
.phone-screen img.is-on { opacity: 1; transform: none; }
.phone-island { position: absolute; top: 19px; left: 50%; width: 30%; height: 21px; margin-left: -15%; border-radius: 999px; background: #000; z-index: 3; }
.phone-tag { position: absolute; z-index: 4; right: -18px; bottom: 52px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--ink-line), 0 14px 30px -16px rgba(0,0,0,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-2); white-space: nowrap; }
.phone-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); }
.phone-nav { position: absolute; z-index: 4; left: 50%; bottom: -56px; transform: translateX(-50%); display: flex; gap: 8px; }
.phone-nav button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--ink-line); color: var(--on-ink-2); background: var(--card); backdrop-filter: blur(10px); transition: background-color .3s, color .3s, transform .3s; }
.phone-nav button:hover { background: var(--on-ink); color: var(--ink); }
.phone-nav button:active { transform: scale(.92); }

/* hero tabs under the phone */
.p-hero-visual .p-tabs { position: relative; z-index: 2; margin-top: 66px; }
.p-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.p-tabs button { position: relative; height: 36px; padding: 0 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-line); font-size: 12.5px; color: var(--on-ink-2); transition: background-color .3s, color .3s, box-shadow .3s, transform .3s; }
.p-tabs button:hover { color: var(--on-ink); }
.p-tabs button[aria-selected="true"] { background: var(--on-ink); color: var(--ink); box-shadow: none; }
.p-tabs button:active { transform: scale(.95); }
.p-visual-hint { margin: 14px 0 0; color: var(--on-ink-3); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; text-align: center; position: relative; z-index: 2; }
.p-visual-hint .hint-touch { display: none; }
@media (hover: none) { .p-visual-hint .hint-pointer { display: none; } .p-visual-hint .hint-touch { display: inline; } }

/* ---------- browser mockup (bro) ---------- */
.browser-wrap { position: relative; width: 100%; max-width: 600px; z-index: 2; perspective: 1200px; }
.browser {
  border-radius: 18px; overflow: hidden; background: #f7f5f0; color: var(--on-paper);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 60px 120px -44px rgba(0,0,0,.85), 0 0 80px -20px color-mix(in oklab, var(--dye) 30%, transparent);
  transform: perspective(1200px) rotateY(var(--ry, -5deg)) rotateX(var(--rx, 2deg));
  transition: transform .6s var(--e-out);
}
.browser-top { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 13px; background: #e9e5dc; border-bottom: 1px solid var(--paper-line); }
.b-dots { display: flex; gap: 6px; }
.b-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d2ccbf; }
.b-dots i:nth-child(1) { background: #ff5f57; } .b-dots i:nth-child(2) { background: #febc2e; } .b-dots i:nth-child(3) { background: #28c840; }
.b-url { flex: 1; min-width: 0; height: 25px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-radius: 7px; background: #fff; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .02em; color: var(--on-paper-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.b-url b { font-weight: 400; color: var(--on-paper); }
.b-url .b-lock { width: 8px; height: 9px; border-radius: 2px; border: 1.5px solid var(--dye-deep); position: relative; flex: none; }
.b-url .b-lock::before { content: ''; position: absolute; left: 50%; top: -5px; width: 6px; height: 6px; margin-left: -3px; border: 1.5px solid var(--dye-deep); border-bottom: 0; border-radius: 5px 5px 0 0; }
.b-agent { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: color-mix(in oklab, var(--dye) 14%, #fff); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dye-deep); white-space: nowrap; }
.b-agent i { width: 6px; height: 6px; border-radius: 50%; background: var(--dye-deep); animation: pulse 1.8s infinite; }
.b-tabs { display: flex; gap: 2px; padding: 8px 12px 0; background: #f2efe8; border-bottom: 1px solid var(--paper-line); overflow: hidden; }
.b-tab { display: flex; align-items: center; gap: 7px; max-width: 220px; padding: 8px 14px; border-radius: 9px 9px 0 0; font-size: 11px; color: var(--on-paper-3); background: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .3s, color .3s; }
.b-tab i { width: 12px; height: 12px; border-radius: 3px; background: #d8d2c5; flex: none; }
.b-tab.is-on { background: #fff; color: var(--on-paper); }
.b-tab.is-on i { background: var(--dye); }
.b-body { position: relative; background: #fff; padding: 16px; min-height: 310px; }
.b-step { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in oklab, var(--dye) 5%, #fff); border-left: 2px solid var(--dye); margin-bottom: 12px; }
.b-step-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--dye-deep); color: #fff; flex: none; font-family: var(--f-mono); font-size: 10px; }
.b-step-t { flex: 1; min-width: 0; }
.b-step-t strong { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 2px; }
.b-step-t span { font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-paper-3); }
.b-step.is-live .b-step-t strong::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.4s steps(4, end) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.b-results { display: grid; gap: 8px; }
.b-res { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f7f5f0; box-shadow: inset 0 0 0 1px rgba(20,22,32,.05); }
.b-res-logo { width: 28px; height: 28px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--paper-line); display: grid; place-items: center; font-family: var(--f-mono); font-size: 9px; color: var(--dye-deep); flex: none; }
.b-res-t { flex: 1; min-width: 0; }
.b-res-t strong { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-res-t span { font-size: 9.5px; color: var(--on-paper-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.b-res-price { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--on-paper); }
.b-summary { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--on-ink); }
.b-summary p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--on-ink-2); }
.b-summary b { color: var(--dye-light); font-weight: 500; }
.b-progress { height: 2px; background: var(--paper-line); margin-top: 14px; border-radius: 2px; overflow: hidden; }
.b-progress span { display: block; height: 100%; background: var(--dye-deep); transform-origin: left; transform: scaleX(var(--bp, .2)); transition: transform .8s var(--e-out); }

/* Android Bro preview: same machined edge and dye halo as the Chat phone. */
.browser-wrap:has(.bro-phone) { width: min(336px, 100%); }
.bro-phone { position: relative; border: 8px solid #17191f; border-radius: 43px; background: var(--ink-2); color: var(--on-ink); box-shadow: 0 0 0 1.5px #494b55, 0 40px 80px -30px #0009, 0 0 0 12px color-mix(in oklab, var(--dye) 10%, transparent); transform: perspective(1100px) rotateY(var(--ry, -9deg)) rotateX(var(--rx, 3deg)); }
.android-status { height: 34px; padding: 7px 18px 0; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; position: relative; }
.android-camera { position: absolute; left: calc(50% - 5px); top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #08090c; box-shadow: inset 0 0 0 2px #242833; }
.android-indicators { letter-spacing: 3px; }
.bro-phone .browser-top { height: 52px; padding: 0 12px; gap: 11px; background: var(--ink-2); border-color: var(--ink-line); }
.bro-phone .b-url { height: 34px; border-radius: 999px; background: var(--card-2); color: var(--on-ink-2); font-family: var(--f-sans); font-size: 12px; }
.bro-phone .b-url b { color: var(--on-ink); }
.bro-phone .b-lock, .bro-phone .b-lock::before { border-color: var(--dye-light); }
.android-home { font-size: 22px; line-height: 1; }
.android-tab-count { width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 4px; text-align: center; font-size: 10px; line-height: 15px; flex: none; }
.android-menu { font-size: 24px; line-height: 1; }
.bro-task { padding: 20px 19px 24px; background: radial-gradient(at top right, color-mix(in oklab, var(--dye) 16%, transparent), transparent); }
.bro-task > span { font-size: 8px; letter-spacing: .14em; color: var(--on-ink-3); }
.bro-task p { font-size: 22px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; margin: 10px 0 16px; }
.bro-sources { display: flex; gap: 5px; flex-wrap: wrap; }
.bro-sources span { font-size: 9px; border: 1px solid var(--ink-line); padding: 4px 7px; border-radius: 999px; color: var(--on-ink-2); }
.bro-phone .b-body { min-height: 0; padding: 22px 13px 13px; border-radius: 24px 24px 0 0; background: var(--ink); border-top: 1px solid var(--ink-line); }
.bro-phone .b-body::before { content: ''; position: absolute; width: 32px; height: 3px; border-radius: 3px; background: var(--on-ink-3); top: 7px; left: calc(50% - 16px); opacity: .5; }
.bro-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 14px; }
.bro-phone .b-agent { display: inline-flex; background: color-mix(in oklab, var(--dye) 14%, transparent); color: var(--dye-light); font-size: 8px; padding: 0 8px; }
.bro-phone .b-agent i { background: var(--dye-light); }
.bro-mode-state { font-size: 8px; color: var(--on-ink-2); }
.bro-phone .b-step { display: none; background: var(--card-2); padding: 10px; gap: 8px; min-height: 80px; }
.bro-phone .b-step.is-live { display: flex; }
.bro-phone .b-step-t strong { font-size: 12px; line-height: 1.3; }
.bro-phone .b-step-t span { font-size: 8px; letter-spacing: 0; color: var(--on-ink-2); }
.bro-phone .b-results { transition: opacity .6s; gap: 7px; }
.bro-phone .b-res { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; padding: 11px 8px; gap: 7px; background: var(--card-2); border: 1px solid var(--ink-line); }
.bro-phone .b-res-logo { width: 26px; background: var(--ink); color: var(--dye-light); }
.bro-phone .b-res-t strong { font-size: 10.5px; }
.bro-phone .b-res-t span { font-size: 8px; color: var(--on-ink-2); }
.bro-phone .b-res-price { font-size: 10px; color: var(--on-ink); }
.bro-phone .b-summary { background: color-mix(in oklab, var(--dye) 10%, var(--ink)); padding: 11px; }
.bro-phone .b-body .b-summary p { font-size: 11px; color: var(--on-ink-2); }
.bro-phone .b-body .b-summary { background: var(--ink-2); }
.bro-phone .b-body .b-summary b { color: var(--dye-light); }
@media (min-width: 1101px) and (max-height: 850px) {
  .browser-wrap:has(.bro-phone) { width: 290px; }
  body:has(.bro-phone) .p-hero { padding-top: 72px; padding-bottom: 48px; }
}
.bro-phone .b-progress { background: var(--ink-line); margin-top: 12px; }
.bro-phone .b-progress span { background: var(--dye); }
.android-gesture { height: 23px; display: grid; place-items: center; background: var(--ink); }
.android-gesture i { width: 94px; height: 4px; border-radius: 9px; background: var(--on-ink); }
/* Keep hero actions separate from the full-width closing CTA. */
.p-hero-copy > .p-cta { padding: 0; background: none; overflow: visible; text-align: left; }
.p-hero-copy > .p-cta::before { display: none; }
/* Bro's sections share one gutter, measure and vertical rhythm. */
body:has(.bro-phone) :is(.ps, .p-principles, .p-byok, .p-cases, .p-faq) { padding-block: clamp(56px, 7vw, 96px); }
body:has(.bro-phone) :is(.p-head, .ps-grid, .ps-note, .p-grid-3, .modes, .byok-benefits, .cases, .faq) { max-width: var(--maxw); margin-inline: auto; }
body:has(.bro-phone) .p-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); column-gap: 60px; margin-bottom: 38px; align-items: end; }
body:has(.bro-phone) .p-head .eyebrow { grid-column: 1 / -1; }
body:has(.bro-phone) .p-head .sec-lede { margin: 0; }
body:has(.bro-phone) .p-card { padding: 28px; }
body:has(.bro-phone) .p-card-n { margin-bottom: 28px; }
body:has(.bro-phone) .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
body:has(.bro-phone) .modes-mid { display: none; }
body:has(.bro-phone) .mode-n { width: 100%; }
.mode-feedback { color: var(--dye-light); font-size: 10px; margin: 20px 0 0; letter-spacing: .04em; }
body:has(.bro-phone) .p-cta-inner { max-width: var(--maxw); width: 100%; }
body:has(.bro-phone) #waitlist { display: block; margin-top: 0; padding-block: clamp(64px, 8vw, 104px); }
@media (max-width: 860px) {
  body:has(.bro-phone) .p-head { grid-template-columns: 1fr; gap: 16px; }
  body:has(.bro-phone) .modes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .browser-wrap:has(.bro-phone) { width: min(316px, calc(100% - 18px)); }
  .bro-phone { transform: none; border-width: 7px; border-radius: 39px; }
  body:has(.bro-phone) .p-hero-inner { gap: 28px; }
  body:has(.bro-phone) .p-visual-hint { max-width: 28ch; line-height: 1.6; margin-top: 26px; }
}

/* ---------- editorial statement band ---------- */
.p-statement { background: var(--paper); color: var(--on-paper); padding: clamp(70px, 11vh, 130px) var(--pad); position: relative; }
.p-statement::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--dye) 0 2px, transparent 2px 7px); opacity: .85; }
.p-statement-inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.p-statement .mono { color: var(--on-paper-3); margin: 6px 0 0; }
.p-statement blockquote { margin: 0; font-weight: 500; font-size: clamp(1.5rem, 3.3vw, 2.6rem); line-height: 1.18; letter-spacing: -.03em; }
.p-statement blockquote em { color: var(--dye-deep); }
.p-statement .quote-mark { display: block; font-family: var(--f-serif); font-size: 4rem; line-height: .6; color: var(--dye); margin-bottom: 14px; }
.p-statement .quote-src { margin: 24px 0 0; font-family: var(--f-sans); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.7; letter-spacing: 0; text-transform: none; color: var(--on-paper-2); max-width: 62ch; }

/* ---------- solution / principle cards ---------- */
.p-principles { background: var(--ink); padding: clamp(80px, 12vh, 140px) var(--pad); }
.p-head { max-width: 840px; margin-bottom: clamp(42px, 7vh, 76px); }
.p-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.p-card {
  position: relative; overflow: hidden; padding: clamp(24px, 3vw, 38px); border-radius: 20px;
  background: linear-gradient(160deg, var(--panel-a), var(--panel-b));
  box-shadow: inset 0 0 0 1px var(--ink-line);
  transition: transform .6s var(--e-out), box-shadow .5s, background-color .4s;
  isolation: isolate; text-align: left;
}
.p-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--dye) 18%, transparent), transparent 65%); opacity: 0; transition: opacity .5s; }
.p-card:hover::before, .p-card:focus-visible::before { opacity: 1; }
.p-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--dye) 36%, transparent), 0 30px 60px -40px color-mix(in oklab, var(--dye-deep) 70%, transparent); }
.p-card-n { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-3); margin-bottom: clamp(38px, 6vh, 70px); }
.p-card-n i { width: 7px; height: 7px; border-radius: 50%; background: var(--dye); }
.p-card h3 { margin: 0 0 12px; font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.p-card p { margin: 0; color: var(--on-ink-2); font-size: 15px; }
.p-card-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in oklab, var(--dye) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--dye) 22%, transparent); color: var(--dye-light); margin-bottom: 22px; }
.p-card:hover .p-card-icon { color: #fff; background: var(--dye-deep); }

/* ---------- feature switcher ---------- */
.p-features { background: var(--paper); color: var(--on-paper); padding: clamp(84px, 12vh, 150px) var(--pad); position: relative; }
.p-features::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--dye) 0 2px, transparent 2px 7px); opacity: .85; }
.feat { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 70px); align-items: stretch; }
.feat-list { display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--paper-line); }
.feat-btn { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: baseline; text-align: left; padding: 18px 0 18px 16px; border-bottom: 1px solid var(--paper-line); color: var(--on-paper-2); transition: color .3s, padding .5s var(--e-out); }
.feat-btn::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; transition: background-color .3s, transform .5s var(--e-spring); }
.feat-btn b { font-family: var(--f-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; }
.feat-btn span { font-size: clamp(1.05rem, 1.55vw, 1.35rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.feat-btn:hover { color: var(--on-paper); }
.feat-btn[aria-selected="true"] { color: var(--on-paper); padding-left: 26px; }
.feat-btn[aria-selected="true"]::before { background: var(--dye-deep); transform: scale(1.8); }
.feat-btn[aria-selected="true"] b { color: var(--dye-deep); }
.feat-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: 0; }
.feat-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; grid-area: 1 / 1 / -1 / -1; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .5s var(--e-out), transform .6s var(--e-out), visibility 0s .5s; }
.feat-panel.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .05s, .05s, 0s; }
.feat-shot {
  position: relative; margin: 0 auto; width: auto; height: min(500px, 58vh); aspect-ratio: 540 / 1126;
  border-radius: 38px; padding: 9px; background: linear-gradient(145deg, #2c2d34, #0b0b0f);
  box-shadow: 0 0 0 1.5px #3b3c44, 0 34px 70px -30px rgba(17,19,27,.55), 0 0 0 12px color-mix(in oklab, var(--dye) 10%, transparent);
  overflow: visible;
}
.feat-shot img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); border-radius: 30px; object-fit: cover; object-position: top center; background: #000; }
.feat-shot::after { content: ''; position: absolute; inset: 9px; border-radius: 30px; background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,.5)); pointer-events: none; }
.feat-shot .feat-shot-tag { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(9,12,24,.82); backdrop-filter: blur(10px); color: #cfd3e2; font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.feat-shot .feat-shot-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--dye); }
.feat-copy { padding: 0 2px; }
.feat-copy h3 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -.04em; line-height: 1.03; font-weight: 600; }
.feat-copy p { margin: 0; color: var(--on-paper-2); font-size: 16px; max-width: 56ch; }
.feat-copy .feat-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.feat-copy .feat-tags li { padding: 6px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--paper-line); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-paper-3); }
.feat-mobile-shot { display: none; }

/* ---------- stat band ---------- */
.p-stats { background: var(--dye-deep); color: #fff; padding: clamp(50px, 8vh, 84px) var(--pad); position: relative; overflow: hidden; }
.p-stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 90% at 78% 10%, color-mix(in oklab, var(--dye) 55%, transparent), transparent 70%); pointer-events: none; }
.p-stats-inner { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--maxw); margin: 0 auto; }
.p-stat { display: flex; flex-direction: column; gap: 6px; padding-right: 24px; border-right: 1px solid rgba(255,255,255,.2); }
.p-stat:last-child { border-right: 0; }
.p-stat b { font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: .95; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.p-stat > span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.p-stat b span { font: inherit; letter-spacing: inherit; color: inherit; }

/* ---------- BYOK ---------- */
.p-byok { background: var(--ink); padding: clamp(80px, 12vh, 140px) var(--pad); }
.modes { display: grid; grid-template-columns: minmax(0,1fr) 64px minmax(0,1fr); gap: 0; align-items: stretch; max-width: 980px; }
.mode {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(24px, 3vw, 38px); border-radius: 22px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--ink-line);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--e-out);
}
.mode:hover { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--dye) 40%, transparent); }
.mode[aria-pressed="true"] { background: linear-gradient(165deg, color-mix(in oklab, var(--dye) 16%, var(--panel-a)), var(--panel-b)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--dye) 55%, transparent), 0 30px 70px -46px color-mix(in oklab, var(--dye-deep) 90%, transparent); }
.mode-n { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-3); }
.mode-n i { width: 30px; height: 17px; border-radius: 999px; background: var(--card-2); position: relative; transition: background-color .3s; flex: none; }
.mode-n i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--on-ink-3); transition: transform .4s var(--e-spring), background-color .3s; }
.mode[aria-pressed="true"] .mode-n i { background: var(--dye); }
.mode[aria-pressed="true"] .mode-n i::after { transform: translateX(13px); background: #fff; }
.mode h3 { margin: 8px 0 0; font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -.035em; }
.mode p { margin: 0; color: var(--on-ink-2); font-size: 15px; }
.mode-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklab, var(--dye) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--dye) 25%, transparent); color: var(--dye-light); margin-top: 10px; }
.modes-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--on-ink-3); }
.modes-mid span { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; writing-mode: vertical-rl; }
.modes-mid i { width: 1px; height: 34px; background: linear-gradient(transparent, var(--dye), transparent); }
.byok-benefits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 26px; max-width: 980px; }
.benefit { padding: 22px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--ink-line); background: var(--card); }
.benefit h4 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; }
.benefit p { margin: 0; color: var(--on-ink-2); font-size: 14px; }
.benefit h4::before { content: '✓'; display: inline-block; margin-right: 9px; color: var(--dye); font-family: var(--f-sans); font-size: 12px; vertical-align: 1px; }

/* ---------- problem / solution split ---------- */
.ps { background: var(--paper); color: var(--on-paper); padding: clamp(76px, 11vh, 130px) var(--pad); position: relative; }
.ps::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--dye) 0 2px, transparent 2px 7px); opacity: .85; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); max-width: 1120px; margin: 0 auto; align-items: stretch; }
.ps-col { padding: clamp(24px, 3vw, 38px); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--paper-line); background: var(--card); }
.ps-col.bad { background: color-mix(in oklab, #c2455c 5%, var(--paper-3)); }
.ps-col.good { background: color-mix(in oklab, var(--dye-light) 24%, var(--paper-3)); }
.ps-col h3 { margin: 0 0 20px; display: flex; align-items: center; gap: 11px; font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -.03em; font-weight: 600; }
.ps-col h3 i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; flex: none; }
.ps-col.bad h3 i { background: color-mix(in oklab, #c2455c 14%, transparent); color: #a3374b; }
.ps-col.good h3 i { background: var(--dye-deep); color: #fff; }
.ps-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ps-col li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--paper-line); color: var(--on-paper-2); font-size: 15px; line-height: 1.5; }
.ps-col li:first-child { border-top: 0; }
.ps-col.bad li::before { content: '✕'; position: absolute; left: 2px; top: 12px; color: #a3374b; font-size: 12px; }
.ps-col.good li::before { content: '✓'; position: absolute; left: 2px; top: 12px; color: var(--dye-deep); font-size: 12px; }
.ps-note { max-width: 1120px; margin: 22px auto 0; color: var(--on-paper-3); font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- use cases ---------- */
.p-cases { background: var(--ink); padding: clamp(80px, 12vh, 140px) var(--pad); }
.cases { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1120px; }
.case-tabs { display: flex; flex-direction: column; gap: 6px; }
.case-tab { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px transparent; color: var(--on-ink-3); transition: color .3s, background-color .3s, box-shadow .3s; }
.case-tab b { font-family: var(--f-mono); font-size: 9.5px; font-weight: 400; letter-spacing: .12em; color: var(--on-ink-3); }
.case-tab span { font-size: 15.5px; font-weight: 500; letter-spacing: -.02em; }
.case-tab:hover { color: var(--on-ink-2); }
.case-tab[aria-selected="true"] { color: var(--on-ink); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--ink-line); }
.case-tab[aria-selected="true"] b { color: var(--dye); }
.case-stage { position: relative; display: grid; min-height: 360px; }
.case-panel { grid-area: 1 / 1; padding: clamp(24px, 3.4vw, 42px); border-radius: 22px; background: linear-gradient(160deg, var(--panel-a), var(--panel-b)); box-shadow: inset 0 0 0 1px var(--ink-line); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s var(--e-out), transform .6s var(--e-out), visibility 0s .45s; }
.case-panel.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .04s, .04s, 0s; }
.case-panel .case-prompt { display: flex; gap: 11px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--ink-line); margin-bottom: 24px; }
.case-prompt .prompt-mark { font-family: var(--f-mono); color: var(--dye); font-size: 14px; line-height: 1.4; flex: none; }
.case-prompt p { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.3; color: var(--on-ink); }
.case-prompt .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: var(--dye); vertical-align: -.16em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.case-steps { list-style: none; margin: 0; padding: 0; counter-reset: cs; display: grid; gap: 2px; }
.case-steps li { position: relative; padding: 13px 0 13px 36px; border-top: 1px solid var(--ink-line); color: var(--on-ink-2); font-size: 15px; counter-increment: cs; }
.case-steps li:first-child { border-top: 0; }
.case-steps li::before { content: counter(cs, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--dye); }
.case-panel .case-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.case-panel .case-out span { padding: 6px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-line); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-3); }

/* ---------- FAQ ---------- */
.p-faq { background: var(--paper); color: var(--on-paper); padding: clamp(80px, 12vh, 140px) var(--pad); position: relative; }
.p-faq::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--dye) 0 2px, transparent 2px 7px); opacity: .85; }
.faq { max-width: 940px; border-top: 1px solid var(--paper-line); }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; text-align: left; padding: 22px 0; font-size: clamp(1.02rem, 1.5vw, 1.22rem); font-weight: 500; letter-spacing: -.02em; color: var(--on-paper); transition: color .25s; }
.faq-q:hover { color: var(--dye-deep); }
.faq-q i { position: relative; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--paper-line); flex: none; transition: background-color .3s, transform .5s var(--e-out), box-shadow .3s; }
.faq-q i::before, .faq-q i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; background: currentColor; transition: transform .4s var(--e-out); }
.faq-q i::after { transform: rotate(90deg); }
.faq-item.is-open .faq-q i { background: var(--dye-deep); box-shadow: none; color: #fff; transform: rotate(180deg); }
.faq-item.is-open .faq-q i::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--e-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 44px 24px 0; color: var(--on-paper-2); font-size: 15.5px; line-height: 1.7; max-width: 68ch; }

/* ---------- CTA / waitlist ---------- */
.p-cta { position: relative; overflow: hidden; background: var(--ink); padding: clamp(84px, 13vh, 160px) var(--pad) clamp(90px, 14vh, 170px); text-align: center; }
.p-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 0%, color-mix(in oklab, var(--dye) 20%, transparent), transparent 70%); pointer-events: none; }
.p-cta-inner { position: relative; max-width: 800px; margin: 0 auto; }
.p-cta .sec-title { font-size: clamp(2.5rem, 6.2vw, 5.6rem); }
.p-cta p { color: var(--on-ink-2); max-width: 46ch; margin: 20px auto 0; }
.p-cta .p-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.waitlist-form { display: flex; gap: 8px; max-width: 480px; margin: 30px auto 0; padding: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-line); background: var(--card); }
.waitlist-form input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0 16px; font-size: 16px; }
.waitlist-form button { height: 46px; padding: 0 20px; border-radius: 999px; background: var(--dye); color: #fff; font-weight: 500; white-space: nowrap; transition: background-color .3s, color .3s, transform .3s; }
.waitlist-form button:hover { background: #fff; color: var(--ink); }
.waitlist-form button:active { transform: scale(.96); }
.waitlist-form button:disabled { opacity: .55; }
.waitlist-msg { min-height: 1.4em; margin: 14px 0 0; color: var(--dye-light); font-size: 14px; }
.waitlist-msg.is-bad { color: #ff8b8b; }
.p-cta .p-cta-tag { margin-top: 26px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-3); }

/* contact mini-form (bro) */
.contact-mini { max-width: 1120px; margin: clamp(50px, 8vh, 84px) auto 0; padding: clamp(24px, 3.4vw, 36px); border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--ink-line); text-align: left; display: grid; grid-template-columns: 260px minmax(0,1fr); gap: clamp(20px, 4vw, 48px); }
.contact-mini h3 { margin: 0 0 8px; font-size: 1.4rem; letter-spacing: -.03em; }
.contact-mini p { margin: 0; color: var(--on-ink-2); font-size: 14.5px; max-width: 30ch; }
.mini-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-form .fld { position: relative; display: block; }
.mini-form .fld.full { grid-column: 1 / -1; }
.mini-form .fld span { position: absolute; left: 15px; top: 15px; color: var(--on-ink-3); font-size: 14px; pointer-events: none; transition: transform .35s var(--e-out), color .3s; }
.mini-form input, .mini-form textarea { width: 100%; border: 0; border-radius: 12px; padding: 22px 14px 9px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--ink-line); outline: none; resize: vertical; font-size: 15px; transition: box-shadow .3s; }
.mini-form textarea { min-height: 84px; }
.mini-form input:focus, .mini-form textarea:focus { box-shadow: inset 0 0 0 1.5px var(--dye); }
.mini-form .fld:focus-within span, .mini-form .fld.has-val span { transform: translateY(-8px) scale(.78); color: var(--dye-light); }
.mini-form .fld.is-bad input, .mini-form .fld.is-bad textarea { box-shadow: inset 0 0 0 1.5px #ff6b6b; }
.mini-form .mini-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.mini-form .mini-msg { margin: 0; min-height: 1.3em; color: var(--dye-light); font-size: 14px; }
.mini-form .mini-msg.is-bad { color: #ff8b8b; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .p-hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .p-hero-copy { max-width: 100%; }
  .p-hero-visual { margin-top: 10px; }
  .feat { grid-template-columns: 1fr; }
  .feat-stage { min-height: 0; }
  .feat-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; justify-items: center; gap: 24px; }
  .feat-panel .feat-shot { justify-self: center; height: min(460px, 52vh); }
  .feat-panel .feat-copy { align-self: center; width: 100%; text-align: left; }
  .cases { grid-template-columns: 1fr; }
  .case-tabs { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
  .case-tabs::-webkit-scrollbar { display: none; }
  .case-tab { flex: none; }
  .contact-mini { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .p-grid-3 { grid-template-columns: 1fr; }
  .ps-grid { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; gap: 12px; max-width: 560px; }
  .modes-mid { flex-direction: row; }
  .modes-mid span { writing-mode: horizontal-tb; }
  .modes-mid i { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--dye), transparent); }
  .byok-benefits { grid-template-columns: 1fr; }
  .p-stats-inner { grid-template-columns: 1fr; gap: 20px; }
  .p-stat { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .p-stat:last-child { border-bottom: 0; padding-bottom: 0; }
  .p-statement-inner { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .p-hero { min-height: auto; padding-top: 92px; }
  .p-title { font-size: clamp(2.5rem, 12.5vw, 4rem); }
  .p-cta .btn { --h: 52px; flex: 1 1 100%; justify-content: space-between; }
  .p-facts { gap: 8px 18px; }
  .p-facts li b { font-size: 13px; }
  .p-visual-ring { width: 92%; }
  .phone-wrap { width: min(272px, 74vw); }
  .phone-tag { right: -10px; bottom: 40px; }
  .p-tabs button { height: 34px; padding: 0 11px; font-size: 12px; }
  .browser-top { gap: 8px; padding: 0 10px; }
  .b-agent { display: none; }
  .b-body { padding: 12px; min-height: 280px; }
  .b-tab { max-width: 160px; padding: 7px 10px; }
  .feat-btn { padding: 15px 0 15px 14px; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; }
  .feat-btn[aria-selected="true"] { padding-left: 20px; }
  .feat-shot { min-height: 0; }
  .feat-panel { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .feat-panel .feat-shot { height: min(400px, 56vh); }
  .p-cases { padding-left: var(--pad); padding-right: var(--pad); }
  .case-panel { padding: 22px; }
  .faq-q { padding: 18px 0; }
  .faq-a p { padding-right: 0; }
  .waitlist-form { flex-direction: column; border-radius: 16px; padding: 8px; }
  .waitlist-form input { height: 46px; }
  .waitlist-form button { width: 100%; }
  .mini-form { grid-template-columns: 1fr; }
  .mini-form .mini-foot { justify-content: stretch; }
  .mini-form .mini-foot .btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .feat-panel, .case-panel { transform: none !important; }
}
