/* AI Signal prototype — Understand (story detail) and You (preferences).
   Story: a tinted cover, then seven short numbered sections. No walls of text: each block is capped in width
   and broken into lists or chips. Desktop gets a sticky left rail with the artwork and the read/listen/watch switch. */

.story { padding-top: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 40px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cover { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); background: var(--t); padding: 26px 22px 112px; display: grid; gap: 14px; margin-top: 6px; }
.cover-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--d); }
.cover-meta .demo-pill { color: var(--ink-2); height: 26px; font-size: 11px; }
.cover h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 8.6vw, 60px); line-height: 1; letter-spacing: -.032em; max-width: 15ch; }
.cover .hook { font: italic 500 19px/1.35 var(--serif); color: var(--ink-2); max-width: 28ch; }
.cover-art { position: absolute; z-index: -1; right: -14px; bottom: -22px; width: 54%; }
.modes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.modes .seg { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.modes .seg button { display: inline-flex; align-items: center; gap: 7px; }
.modes .seg .ic { width: 16px; height: 16px; }
.modes .round { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.modes .round[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.same { font-size: 12.5px; color: var(--ink-2); }

/* Inline listen: the narration script, cue by cue. Same words as the reel and the summary. */
.ln-bar { border-radius: var(--r-lg); background: var(--stage); color: var(--on-stage); padding: 18px 20px; display: grid; gap: 12px; margin-top: 12px; }
.ln-cap { font: 500 20px/1.3 var(--serif); min-height: 2.6em; }
.ln-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.ln-track i { display: block; height: 100%; background: var(--signal); width: calc(var(--p, 0) * 100%); }
.ln-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; opacity: .85; }

.blocks { display: grid; gap: 12px; margin-top: 12px; }
.block { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; display: grid; gap: 12px; align-content: start; }
.block-n { display: flex; align-items: baseline; gap: 10px; }
.block-n i { font: 600 13px var(--serif); color: var(--d); font-style: normal; font-variant-numeric: tabular-nums; }
.block p.big { font: 500 20px/1.4 var(--serif); letter-spacing: -.01em; max-width: 34ch; }
.block p { color: var(--ink-2); max-width: 52ch; }
.block.tint { background: var(--t); box-shadow: none; }
.rows li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--d); }
.who { display: grid; gap: 8px; }
.who li { border-radius: var(--r-md); background: var(--paper); padding: 14px 16px; display: grid; gap: 2px; }
.who b { font-size: 14.5px; font-weight: 600; } .who span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.takes { counter-reset: t; display: grid; gap: 14px; }
.takes li { counter-increment: t; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; font: 500 19px/1.25 var(--serif); }
.takes li::before { content: counter(t); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--d); color: var(--t); font: 600 17px var(--serif); }
.srcs li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.srcs li:first-child { border-top: 0; padding-top: 0; }
.srcs a { font-weight: 600; font-size: 15.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.srcs a::after { content: ""; position: absolute; inset: 0; }
.srcs span { grid-column: 1; font-size: 13px; color: var(--muted); }
.srcs .ic { grid-row: 1 / 3; grid-column: 2; color: var(--muted); }
.related { display: grid; gap: 10px; }
.rel { position: relative; border-radius: var(--r-lg); background: var(--t); padding: 18px; display: grid; gap: 8px; transition: transform .3s var(--ease); }
.rel:hover { transform: translateY(-3px); }
.rel small { font-size: 12.5px; font-weight: 600; color: var(--d); }
.rel b { font: 500 18px/1.2 var(--serif); }
.rel a::after { content: ""; position: absolute; inset: 0; }

/* You: interests, briefing length, and a plain explanation of what personalisation does and does not do. */
.prefs { display: grid; gap: 12px; }
.pref { border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 24px 22px; display: grid; gap: 16px; align-content: start; }
.pref > p { color: var(--ink-2); font-size: 15px; max-width: 54ch; }
.lanes { display: grid; gap: 20px; }
.lane { display: grid; gap: 8px; align-content: start; }
.pref .seg, .vs .lab { justify-self: start; }
.pref .state-actions { justify-content: flex-start; margin-top: 0; }
.lane > b { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--d); display: flex; align-items: center; gap: 8px; }
.lane > b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--d); }
.lane .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.lane .chip { background: var(--paper); }
.lane .chip[aria-pressed="true"] { background: var(--ink); }
.len { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.len button { border-radius: var(--r-md); padding: 16px 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; transition: box-shadow .2s, background .2s, color .2s; }
.len b { font: 500 21px/1.1 var(--serif); white-space: nowrap; } .len span { font-size: 12.5px; color: var(--muted); }
.len button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.len button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.now { border-radius: var(--r-md); background: var(--stage); color: var(--on-stage); padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.now b { font: 500 20px var(--serif); }
.versus { display: grid; gap: 10px; }
.vs { border-radius: var(--r-lg); background: var(--t); padding: 18px; display: grid; gap: 10px; align-content: start; }
.vs b { font: 500 19px/1.2 var(--serif); }
.vs p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

@media (min-width: 720px) {
  .who, .related { grid-template-columns: repeat(3, 1fr); }
  .versus { grid-template-columns: 1fr 1fr; }
  .cover { padding: 40px; }
}
@media (min-width: 1000px) {
  .story-grid { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; margin-top: 6px; }
  .story-rail { position: sticky; top: 92px; }
  .cover { margin-top: 0; min-height: 600px; align-content: start; padding: 32px 32px 200px; }
  .cover h1 { font-size: 44px; }
  .cover-art { width: 88%; right: -30px; bottom: -26px; }
  .blocks { margin-top: 0; grid-template-columns: 1fr 1fr; gap: 16px; }
  .block { padding: 28px; }
  .block.span { grid-column: 1 / -1; }
  .ln-bar { grid-column: 1 / -1; margin-top: 0; }
  .prefs { grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: start; }
  .pref { padding: 32px; }
  .pref.span { grid-column: 1 / -1; }
  .lanes { grid-template-columns: 1fr 1fr; gap: 22px 28px; }
}
