/* blurt's landing page (/): the page's own CSS, loaded after the kit (system.css and the rest in public/assets).
   The :root blocks are start.mjs brand's, run on blurt's light and dark colours (the same tokens as the app).
   The rest sits inside the page's visuals: the hero's window (bw-*) and card (bc-*), the app frame (ba-*), the
   card fragments (bf-*), the comparison table (cmp) and the marquee row (lp-row). */
:root {
  --p-bg: #f6f5f1; --p-surface: #eceae3; --p-ink: #151513; --p-muted: #5f5d56;
  --p-accent: #d9381e; --p-accent-ink: #ffffff; --p-action: #151513; --p-action-ink: #f6f5f1;
  --p-inv-bg: #151513; --p-inv-surface: #22221f; --p-inv-ink: #f6f5f1; --p-inv-muted: #a19f96;
  --p-inv-accent: #ff6a4d; --p-inv-accent-ink: #1a0b07; --p-inv-action: #f6f5f1; --p-inv-action-ink: #151513;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.028em;
  --display-tracking-xl: -0.036em;
  --display-stretch: 96%;
  --ly-scale: 1.04;
  --b-cut: #d9381e; --b-fix-bg: rgb(217 56 30 / .1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --p-bg: #121211; --p-surface: #1d1d1b; --p-ink: #f4f3ee; --p-muted: #a19f96;
    --p-accent: #ff6a4d; --p-accent-ink: #1a0b07; --p-action: #f4f3ee; --p-action-ink: #121211;
    --p-inv-bg: #f4f3ee; --p-inv-surface: #e4e2dc; --p-inv-ink: #121211; --p-inv-muted: #5f5d56;
    --p-inv-accent: #d9381e; --p-inv-accent-ink: #ffffff; --p-inv-action: #121211; --p-inv-action-ink: #f4f3ee;
    --b-cut: #ff6a4d; --b-fix-bg: rgb(255 106 77 / .16);
    color-scheme: dark;
  }
}

.lp-mark { display: inline-flex; color: var(--accent); --mark-ink: var(--bg); }
.nav__logo { gap: 8px; }

/* ---------------------------------------------------------------- the take's marks (hero, app frame, cards) */
:is(.bw__text, .ba__text, .bf__out) del { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--b-cut); text-decoration-thickness: 2px; margin-right: .1em; }
:is(.bw__text, .ba__text, .bf__out) ins { text-decoration: none; background: var(--b-fix-bg); box-shadow: inset 0 -2px 0 var(--b-cut); border-radius: 3px; padding: 0 1px; }

/* ---------------------------------------------------------------- hero: the lit sand frame, the window and the card */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.hero__art > .bw { bottom: calc(-1 * var(--ly-cut)); }
.bw { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md); background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 30px 60px -28px rgb(0 0 0 / .45); font: 400 15px/1.5 var(--font-text); }
.bw__bar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 var(--ly-cut-room) 0 18px; border-bottom: 1px solid var(--line); }
.bw__brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); --mark-ink: var(--bg); }
.bw__brand svg { color: var(--accent); }
.bw__chip { margin-left: auto; font: 400 12px/1 var(--font-mono); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.bw__set { font-weight: 500; font-size: 14px; }
.bw__pad { padding: 24px var(--ly-cut-room) 0 26px; min-height: 230px; }
.bw__pad.is-live .bw__eyebrow { color: var(--accent); }
.bw__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 30px; margin-bottom: 12px; }
.bw__eyebrow, .ba__eyebrow { font: 400 12.5px/1.4 var(--font-mono); color: var(--muted); }
.bw__seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.bw__seg i { font-style: normal; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.bw__seg i.is-on { background: var(--ink); color: var(--bg); }
.bw__text { margin: 0; font-size: 30px; letter-spacing: -0.02em; line-height: 1.45; letter-spacing: -0.01em; white-space: pre-wrap; color: var(--ink); }
.bw__interim { color: var(--muted); }
.bw__foot { margin-top: auto; display: grid; justify-items: center; gap: 8px; padding: 22px 0 calc(26px + var(--ly-cut)); border-top: 1px solid var(--line); }
.bw__meter { display: flex; gap: 4px; height: 20px; align-items: center; opacity: .25; }
.bw__meter i { width: 4px; height: 20px; border-radius: 2px; background: var(--accent); transform: scaleY(.2); }
.bw__meter.is-on { opacity: 1; }
.bw__meter.is-on i { animation: bw-lvl .5s ease-in-out infinite alternate; }
.bw__meter.is-on i:nth-child(2) { animation-delay: -.2s; } .bw__meter.is-on i:nth-child(3) { animation-delay: -.35s; }
.bw__meter.is-on i:nth-child(4) { animation-delay: -.1s; } .bw__meter.is-on i:nth-child(5) { animation-delay: -.42s; }
@keyframes bw-lvl { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.bw__mic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: background-color .2s, transform .2s, box-shadow .2s; }
.bw__mic.is-on { background: var(--accent); color: var(--accent-ink); transform: scale(1.06); box-shadow: 0 0 0 7px var(--b-fix-bg); }
.bw__hint { font-size: 13px; color: var(--muted); }
.bw__hint kbd { font: 500 12px var(--font-mono); padding: 1px 6px 2px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--bg); }
.hero__art > .bw__pause { position: absolute; right: 16px; top: 16px; z-index: 3; }

.hero__art > .ly-piece--note { left: calc(var(--s-8) + var(--s-5)); bottom: var(--s-6); width: 300px; z-index: 2; }
.bc { background: #fff; color: #16181a; border-radius: 14px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 18px 40px -18px rgb(0 0 0 / .45); }
.bc__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.bc__row b { font-weight: 600; }
.bc__chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12.5px; font-weight: 500; background: #fbe6e1; color: #a3271b; white-space: nowrap; }
.bc__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
.bc__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fbe6e1; color: #a3271b; font-style: normal; font-size: 11px; font-weight: 700; }
.bc__line b { font-weight: 500; color: #16181a; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1023px) {
  .hero__art > .ly-piece--note { left: calc(var(--s-6) + var(--s-4)); bottom: var(--s-4); width: 270px; }
}
@media (max-width: 639px) {
  .bw__bar { height: 48px; padding-left: 14px; }
  .bw__set { display: none; }
  .bw__pad { padding: 14px var(--ly-cut-room) 16px 16px; min-height: 0; }
  .bw__seg { display: none; }
  .bw__text { font-size: 18px; }
  .bw__foot { display: none; }
  .hero__art > .bw__pause { right: 12px; top: auto; bottom: 12px; }
}

/* ---------------------------------------------------------------- #cleanup: the app-frame (sections-library) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.ba { --fx-bg: var(--bg); --fx-ink: var(--ink); --fx-muted: var(--muted); --fx-accent: var(--accent); --fx-accent-ink: var(--accent-ink); font: 14px/1.45 var(--font-text); color: var(--u-ink); }
.ba__list { padding: 18px 0 0; }
.ba__head { display: flex; align-items: baseline; gap: 8px; padding: 0 20px; font-size: 16px; }
.ba__head span { color: var(--u-muted); }
.ba__day { margin: 12px 20px 6px; font: 400 12px var(--font-mono); color: var(--u-muted); }
.ba__list ul { list-style: none; margin: 0; padding: 0 10px; display: grid; gap: 2px; }
.ba__list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.ba__list li.is-on { background: color-mix(in oklab, var(--u-ink) 6%, transparent); }
.ba__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba__meta { font: 400 11.5px var(--font-mono); color: var(--u-muted); }
.ba__open { padding: 22px 28px 0; display: flex; flex-direction: column; gap: 16px; }
.ba__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ba__text { margin: 0; font-size: 22px; line-height: 1.5; white-space: pre-wrap; letter-spacing: -0.01em; }
.ba__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ba__btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: color-mix(in oklab, var(--u-ink) 7%, transparent); font-weight: 500; }
.ba__btn--primary { background: var(--u-ink); color: var(--u-bg); }
.ba__btn--ghost { background: transparent; }
.ba__where { margin: 0; color: var(--u-muted); font-size: 13px; max-width: 52ch; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .ba__list { max-height: 252px; }
  .app > .ba__list::after { display: none; }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .ba__list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .ba__open { padding: 16px 16px 0; }
  .ba__text { font-size: 18px; }
}

/* ---------------------------------------------------------------- #features: the card fragments */
#features .panel { --p-h: 300px; }
.bf { --fx-bg: var(--bg); --fx-ink: var(--ink); --fx-muted: var(--muted); --fx-accent: var(--accent); --fx-accent-ink: var(--accent-ink);
  display: grid; gap: 12px; padding: 20px; border-radius: 16px; background: var(--u-bg); border: 1px solid var(--u-border); box-shadow: var(--u-shadow);
  font: 13.5px/1.45 var(--font-text); color: var(--u-ink); justify-items: start; }
.bf__title { font: 600 16px/1.3 var(--font-text); }
.bf__seg { justify-self: stretch; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border: 1px solid var(--u-line); border-radius: 999px; }
.bf__seg i { font-style: normal; display: grid; place-items: center; min-height: 30px; border-radius: 999px; font-weight: 500; white-space: nowrap; color: var(--u-muted); }
.bf__seg i.is-on { background: var(--u-ink); color: var(--u-bg); }
.bf__out { justify-self: stretch; padding: 12px 14px; border-radius: 10px; background: color-mix(in oklab, var(--u-ink) 5%, transparent); font-size: 15px; line-height: 1.5; }
.bf__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bf__chips i { font-style: normal; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--u-line); font: 400 12.5px var(--font-mono); }
.bf__snip { justify-self: stretch; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; }
.bf__say { font: 400 12.5px var(--font-mono); padding: 4px 10px; border-radius: 999px; background: color-mix(in oklab, var(--u-ink) 7%, transparent); white-space: nowrap; }
.bf__arrow { color: var(--u-muted); }
.bf__to { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf__h { justify-self: stretch; display: flex; justify-content: space-between; align-items: baseline; }
.bf__h small, .bf__row small { color: var(--u-muted); font: 11.5px var(--font-mono); }
.bf__row { justify-self: stretch; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-top: 1px solid var(--u-line); }
.bf__row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf__links { display: flex; gap: 14px; color: var(--u-muted); }
.bf__links i { font-style: normal; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
#features .group > .grid { row-gap: var(--gutter); }
#features .card--open > .panel { min-height: var(--p-h); }
@media (min-width: 1024px) {
  #features .wrap > .group { flex: 1 1 auto; }
  #features .group > .grid { flex: 1 1 auto; min-height: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  #features .group > .grid > .card { display: flex; flex-direction: column; min-height: 0; }
  #features .group > .grid > .card > .panel { flex: 1 1 auto; --p-h: 300px; }
  #features .panel > .stage { -webkit-mask: none; mask: none; }
  #features .panel > .stage > .at-rise { top: 50%; translate: 0 -50%; }
}
@media (min-width: 1280px) { #features .panel > .stage > .at-rise { zoom: 1.2; } }
@media (max-width: 1023px) {
  #features .wrap > .group { margin-block: auto; }
  #features .card--open > .panel { flex: none; height: var(--p-h); }
}
@media (max-width: 639px) { #features .panel { --p-h: 210px; } #features .group > .grid { row-gap: var(--s-6); } }

/* ---------------------------------------------------------------- #paste: the marquee row */
#paste > .wrap { display: flex; flex-direction: column; }
.lp-row { margin-top: auto; padding-top: var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.lp-row > * { min-width: 0; }
.lp-row .mo-mq__track li { font: 500 clamp(24px, 2.4vw, 34px)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
@media (max-width: 639px) { .lp-row { padding-top: var(--s-7); } .lp-row .mo-mq__track li { font-size: 24px; } }

/* ---------------------------------------------------------------- #compare and #questions: one panel on the lit ground */
.lp-panel { position: relative; display: grid; place-items: center; padding: 40px; aspect-ratio: auto; height: auto; min-height: 0; }
.lp-panel > .bf { position: relative; inset: auto; width: 100%; max-width: 520px; }
.lp-panel--ai { margin-top: var(--s-4); padding: 28px; }
.lp-panel--ai > .bf { max-width: 400px; }
.bf--cmp { gap: 0; padding: 8px 20px; }
.bf__cr { justify-self: stretch; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--u-line); font-size: 14px; }
.bf__cr:first-child { border-top: 0; }
.bf__cr > span:first-child { color: var(--u-muted); }
.bf__cr--head { font-weight: 600; font-size: 15px; }
.bf__check { display: flex; align-items: center; gap: 10px; }
.bf__check i { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--u-ink); color: var(--u-bg); }
.bf__key { justify-self: stretch; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--u-line); font: 13px var(--font-mono); color: var(--u-muted); }
.bf__note { color: var(--u-muted); font-size: 12.5px; }
@media (max-width: 639px) { .lp-panel { padding: 16px; } .bf--cmp { padding: 4px 14px; } .bf__cr { font-size: 13px; gap: 8px; } }

/* ---------------------------------------------------------------- questions: the publik pitch */
.lp-pitch { font-size: var(--t-body); line-height: 1.6; color: var(--ink); }
.lp-pitch p { margin: 0 0 var(--s-3); max-width: 46ch; }
.lp-pitch a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); }
.lp-pitch a:hover { text-decoration-color: currentColor; }
.lp-pitch .pk-pitch-cta { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.lp-pending { margin: 0; max-width: 46ch; font-size: var(--t-small, 0.875rem); line-height: 1.5; color: var(--muted); }

#features .section-head > .link { justify-self: start; }

/* gate round 1: the phone keeps #features at two screens and
   #questions under two (the AI panel waits for a wider screen) */
@media (max-width: 639px) {
  #features .panel { --p-h: 192px; }
}
@media (max-width: 639px) { #questions { --h: 2; } .lp-panel { padding: 12px; } .bf--cmp .bf__cr { grid-template-columns: minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.1fr); padding: 9px 0; } }
/* a tablet holds the 2x2 on one screen */
@media (min-width: 640px) and (max-width: 1023px) { #features { --h: 1 !important; } }
@media (max-width: 639px) { .lp-panel--ai .bf__note, .lp-panel--ai .bf__key { display: none; } .lp-panel--ai { margin-top: 0; } }
/* the lit frame's own glow layer shares the one cell with the panel, so the panel sits centred */
.lp-panel::before, .lp-panel > .bf { grid-area: 1 / 1; }
.lp-panel { --ratio: 0px; }
/* the hero window: the live mic sits in the pad's head while you talk, so the Copied card covers no control */
.bw__live { display: inline-flex; align-items: center; gap: 12px; }
.bw__live .bw__mic { width: 40px; height: 40px; }
.bw__live .bw__mic svg { width: 18px; height: 18px; }
.bw__pad { flex: 1 1 auto; padding-bottom: 160px; }
@media (max-width: 639px) { .bw__live .bw__meter { display: none; } .bw__live .bw__mic { width: 30px; height: 30px; } .bw__pad { padding-bottom: 16px; } .bw__text { font-size: 19px; } }
/* a short window: the Copied card would sit on the take, so the window shows alone */
@media (max-height: 760px) and (min-width: 640px) { .hero__art > .ly-piece--note { display: none; } }

/* section rhythm: #compare and #questions run their lit panels down to the section's foot, so the
   space under them matches every other section (the comparison stays centred in its frame) */
@media (min-width: 1024px) {
  #compare > .wrap > .grid, #questions > .wrap > .grid { flex: 1 1 auto; min-height: 0; align-items: stretch; }
  #compare .lp-panel { align-self: stretch; }
  #questions .grid > .stack-5 { display: flex; flex-direction: column; }
  #questions .lp-panel--ai { flex: 1 1 auto; }
}
/* a phone: #questions is as tall as its content (at least one screen), not two screens */
@media (max-width: 639px) { #questions { --h: 1; } #questions > .wrap > .grid { row-gap: 40px; } }
@media (max-width: 639px) {
  #compare > .wrap > .grid { flex: 1 1 auto; grid-template-rows: auto 1fr; align-items: stretch; row-gap: 40px; }
}
