/* Hallmark · shape: Marquee Hero · genre: atmospheric · theme: Bloom (deal 3/3, seed customer-facing-studio-builds-custom-8ea9·6e4383c3·2026-11-14·r0) · job: try · draw: 0c9a7e
 * hero: Settled · nav: edge-aligned · footer: colophon block · imagery: the product · signature: the call console that rings your phone and fills with your own transcript
 * axes: light/grotesk-sans/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: E, the hero call is a sample conversation, so the console right under it carries the real one */
@import url("./tokens.css");
@import url("./base.css");

body {
  font-size: 1.0625rem;
  background:
    radial-gradient(60rem 40rem at 100% 0%, color-mix(in oklab, var(--color-accent) 8%, transparent), transparent 70%),
    radial-gradient(50rem 36rem at 0% 100%, color-mix(in oklab, var(--color-accent-2) 5%, transparent), transparent 70%),
    var(--color-paper);
  background-attachment: fixed;
}
:root { --container: 1240px; }
section { padding-block: var(--section-gap-s); }
.muted { color: var(--color-muted); }
.label { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }

/* --- nav --- */
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.wordmark { font-weight: 600; font-size: var(--text-lg); letter-spacing: var(--tracking-display); text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; }
.nav__links a:hover { text-decoration: underline; }
.skip { position: absolute; left: var(--space-md); top: -4rem; background: var(--color-sheet); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* --- controls --- */
.pill {
  display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 48px; padding: 0 var(--space-lg);
  border: 0; border-radius: var(--radius-pill); background: var(--color-sheet); color: var(--color-ink);
  box-shadow: 0 0 0 1px var(--shade-1), 0 8px 18px -10px var(--shade-2), inset 0 1px 0 var(--hi);
  font-weight: 500; font-size: var(--text-md); line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.pill:hover { background: var(--color-paper-2); }
.pill:active { transform: translateY(1px); }
.pill:disabled, .pill[aria-busy="true"] { background: var(--color-paper-3); color: var(--color-muted); cursor: progress; transform: none; }
.pill--umber { background: var(--umber); color: var(--color-accent-ink); box-shadow: 0 8px 18px -10px var(--shade-3), inset 0 1px 0 var(--shade-1); }
.pill--umber:hover { background: var(--color-ink-2); }
.pill--cap { min-height: 60px; padding: 0 var(--space-lg) 0 var(--space-xs); }
.rec { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 30%, var(--bezel), var(--color-paper-3)); box-shadow: inset 0 2px 3px var(--shade-2), 0 1px 0 var(--hi); }
.rec__cap { width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(120% 110% at 50% 18%, var(--rubber-hi), var(--rubber) 48%, var(--rubber-lo));
  box-shadow: inset 0 1px 0.5px var(--hi), 0 5px 9px -3px var(--shade-3); transition: transform var(--dur-micro) var(--ease-out); }
.pill--cap:active .rec__cap { transform: translateY(1px) scale(0.97); }
.pill--cap[aria-busy="true"] .rec__cap { animation: breathe 1.6s var(--ease-in-out) infinite; }
@keyframes breathe { 50% { transform: scale(0.88); opacity: 0.8; } }
.link { color: var(--color-accent); text-underline-offset: 0.2em; }

/* --- the working grid and its clips --- */
.roll { --beat: 44px; --row: 16px; background-color: var(--color-sheet);
  background-image: linear-gradient(to right, var(--grid-bar) 1px, transparent 1px), linear-gradient(to right, var(--grid-beat) 1px, transparent 1px), linear-gradient(to right, var(--grid-16) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-row) 1px, transparent 1px);
  background-size: calc(var(--beat) * 4) 100%, var(--beat) 100%, calc(var(--beat) / 4) 100%, 100% var(--row); }
.clip { --c: var(--lane-1); border-radius: var(--radius-clip); padding: var(--space-sm) var(--space-md);
  background: linear-gradient(color-mix(in oklab, var(--c) 14%, var(--color-sheet)), color-mix(in oklab, var(--c) 24%, var(--color-sheet)));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c) 42%, transparent), inset 0 1px 0 var(--hi); }
.clip--agent { --c: var(--lane-2); }
.clip--customer { --c: var(--lane-3); }
.clip .who { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); margin-bottom: var(--space-3xs); }

/* --- hero --- */
.hero { padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; min-height: calc(100dvh - 72px - var(--space-2xl) - var(--space-3xl)); max-height: 760px; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: var(--space-lg); max-width: 34ch; color: var(--color-ink-2); }
.hero__actions { margin-top: var(--space-xl); display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.stage { border-radius: var(--radius-card); box-shadow: var(--shadow-lift); padding: var(--space-lg); min-height: 520px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.stage__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-md); }
.stage__head strong { font-weight: 600; }
.ruler { display: flex; justify-content: space-between; font-family: var(--font-code); font-size: var(--text-xs); color: var(--color-muted); padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.stage__lanes { flex: 1; display: grid; align-content: space-evenly; gap: var(--space-sm); padding-block: var(--space-md); position: relative; }
.stage__lanes .clip { max-width: 72%; animation: settle var(--dur-long) var(--ease-out) both; }
.stage__lanes .clip--customer { justify-self: end; }
.stage__lanes .clip:nth-child(2) { animation-delay: 0.5s; } .stage__lanes .clip:nth-child(3) { animation-delay: 1s; }
.stage__lanes .clip:nth-child(4) { animation-delay: 1.5s; } .stage__lanes .clip:nth-child(5) { animation-delay: 2s; }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } }
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--color-ink); opacity: 0.5; animation: glide 3s var(--ease-in-out) both; }
@keyframes glide { from { transform: translateX(0); } to { transform: translateX(min(34vw, 420px)); } }

/* --- try: the stack of agents and the console --- */
.try__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.try__head .lead { color: var(--color-ink-2); }
.try__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl); align-items: start; }
.stack { display: grid; gap: var(--space-sm); }
.case { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: var(--space-md); width: 100%; min-height: 64px; padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-xs);
  border: 0; border-radius: var(--radius-inner); background: var(--case); color: var(--color-ink); text-align: left; cursor: pointer;
  box-shadow: 0 0 0 1px var(--shade-1), 0 6px 12px -8px var(--shade-2), inset 0 1px 0 var(--hi);
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.case:hover { background: var(--color-sheet); }
.case[aria-selected="true"] { background: var(--color-sheet); transform: translateX(var(--space-md)); box-shadow: 0 0 0 1px var(--shade-2), var(--shadow-card), inset 0 1px 0 var(--hi); }
.case__band { height: 48px; border-radius: var(--radius-clip); background: linear-gradient(var(--hi), transparent 40%), var(--c, var(--lane-1)); }
.case:nth-child(1) { --c: var(--lane-2); } .case:nth-child(2) { --c: var(--lane-1); } .case:nth-child(3) { --c: var(--lane-3); }
.case:nth-child(4) { --c: var(--rubber); } .case:nth-child(5) { --c: var(--lane-4); }
.case__name { font-weight: 500; display: block; line-height: 1.25; }
.case__biz { font-size: var(--text-sm); color: var(--color-muted); display: block; }

.console { background: var(--color-sheet); border-radius: var(--radius-card); box-shadow: var(--shadow-lift); padding: var(--space-xl); min-height: 480px; display: flex; flex-direction: column; gap: var(--space-lg); }
.panel h3 { font-size: var(--text-2xl); max-width: 24ch; margin-top: var(--space-2xs); }
.panel p { margin-top: var(--space-sm); max-width: 52ch; }
.panel .say { color: var(--color-ink-2); }
.callform { display: grid; gap: var(--space-md); margin-top: auto; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.callform__row { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }
.phone { display: flex; align-items: center; min-height: 60px; flex: 1 1 16rem; max-width: 22rem; border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-sheet); padding-inline: var(--space-lg); gap: var(--space-sm); }
.phone:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.phone span { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.phone input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--color-ink); font-size: var(--text-lg); font-variant-numeric: tabular-nums; outline: none; }
.phone input::placeholder { color: var(--color-muted); opacity: 0.7; }
.consent { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: var(--text-sm); color: var(--color-muted); max-width: 52ch; }
.consent input { accent-color: var(--color-accent); width: 18px; height: 18px; margin-top: var(--space-3xs); flex: none; }
.status { font-weight: 500; min-height: 1.6em; }
.status[data-tone="error"] { color: var(--color-error); }

.session { display: grid; gap: var(--space-lg); }
.session__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.transcript { list-style: none; margin: 0; padding: var(--space-md); display: grid; gap: var(--space-sm); border-radius: var(--radius-inner); max-height: 26rem; overflow-y: auto; box-shadow: inset 0 0 0 1px var(--color-rule); }
.transcript:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.transcript .clip { max-width: 80%; }
.transcript .clip--customer { justify-self: end; }
.transcript:empty::after { content: "The conversation will appear here."; color: var(--color-muted); padding: var(--space-lg); }
.summary { background: var(--color-paper-2); border-radius: var(--radius-inner); padding: var(--space-lg); white-space: pre-line; }
.summary strong { display: block; margin-bottom: var(--space-xs); font-weight: 600; }
.session__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }
.sid { font-family: var(--font-code); font-size: var(--text-xs); color: var(--color-muted); }

.callernote { margin: 0; }
.callernote strong { color: var(--color-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hint { background: var(--color-accent-soft); border-radius: var(--radius-inner); padding: var(--space-md) var(--space-lg); font-size: var(--text-sm); max-width: 60ch; }

/* --- steps --- */
.steps { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: var(--space-sm); align-content: start; }
.steps li::before { content: counter(step); font-family: var(--font-outlier); font-size: var(--text-3xl); line-height: 1; color: var(--color-accent); }
.steps h3 { font-size: var(--text-title); }
.steps p { color: var(--color-ink-2); }
.crop { height: 240px; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-lg); display: grid; align-content: center; gap: var(--space-xs); -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent); mask-image: linear-gradient(to bottom, black 70%, transparent); }
.crop .clip { padding: var(--space-xs); min-height: 28px; }
.crop .bar { height: 12px; border-radius: var(--radius-clip); background: var(--color-paper-3); }
.crop .case { min-height: 44px; cursor: default; pointer-events: none; }
.crop .case__band { height: 30px; }

/* --- statement and footer --- */
.statement p { font-family: var(--font-outlier); font-size: var(--text-section); line-height: 1.12; max-width: 28ch; letter-spacing: -0.01em; }
.statement .pill { margin-top: var(--space-xl); }
footer { padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
footer p { color: var(--color-muted); font-size: var(--text-sm); max-width: 72ch; }
footer p + p { margin-top: var(--space-sm); }

@media (max-width: 60rem) {
  .hero__grid, .try__head, .try__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; max-height: none; }
  .stage { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .case[aria-selected="true"] { transform: none; }
  .nav__links a:not(.pill) { display: none; }
  .console { padding: var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .stage__lanes .clip, .playhead, .pill--cap[aria-busy="true"] .rec__cap { animation: none; }
  .pill, .case, .rec__cap { transition: none; }
}
