/* croutons.ai — story scroll, booking calendar and page parts. */

/* Example ledger */
.ledger { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ledger { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.02em; }
.stat span { color: var(--ink-2); font-size: .9rem; }

/* Session cards with price */
a.card.session, .session { display: flex; flex-direction: column; height: 100%; }
.session .chip { align-self: flex-start; margin-bottom: 14px; }
.session h3 { margin: 0 0 6px; }
.session .price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 20px; }
.session .price b { font-size: 1.5rem; letter-spacing: -.02em; }
.session .price span { color: var(--ink-3); font-size: .9rem; }
.session p { color: var(--ink-2); margin: 0; }
.session .btn { margin-top: 14px; align-self: flex-start; }

/* Booking calendar */
/* Phones: intro → calendar → details, so booking is one scroll away. */
.book-layout { display: grid; gap: 24px; grid-template-areas: "intro" "panel" "details"; }
.book-intro { grid-area: intro; }
.book-details { grid-area: details; }
.book-panel { grid-area: panel; }
.book-intro .price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.book-intro .price b { font-size: 1.6rem; letter-spacing: -.02em; }
.book-intro .price span { color: var(--ink-3); font-size: .9rem; }
@media (min-width: 960px) {
  .book-layout { grid-template-columns: 1fr 420px; grid-template-areas: "intro panel" "details panel"; align-items: start; row-gap: 8px; }
  .book-panel { position: sticky; top: 84px; }
}
.book-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.book-panel h2 { font-size: 1.15rem; margin-bottom: 4px; }
.book-steps { display: flex; gap: 6px; margin: 4px 0 16px; font-size: .8rem; color: var(--ink-3); }
.book-steps span { flex: 1; padding-top: 8px; border-top: 3px solid var(--line); }
.book-steps span.on { border-color: var(--action); color: var(--ink); font-weight: 600; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-size: 1rem; }
.cal-nav { display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: .72rem; color: var(--ink-3); font-weight: 600; padding: 4px 0; }
.day { aspect-ratio: 1; min-height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-3); font: 500 .95rem var(--font); cursor: default; position: relative; }
.day.open { background: var(--action-soft); color: var(--action-ink); font-weight: 650; cursor: pointer; }
.day.open:hover { outline: 1.5px solid var(--action); }
.day.sel { background: var(--action); color: var(--on-action); }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.tz { font-size: .82rem; color: var(--ink-3); margin: 10px 0 0; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.time { min-height: 46px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 .95rem var(--font); cursor: pointer; }
.time:hover { border-color: var(--action); color: var(--action-ink); }
.time.sel { background: var(--action); border-color: var(--action); color: var(--on-action); }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: .95rem; }
.picked button { background: none; border: 0; color: var(--action-ink); font: 600 .9rem var(--font); cursor: pointer; padding: 6px; }
.empty { color: var(--ink-3); font-size: .95rem; padding: 12px 0; }
.ts-box { min-height: 65px; margin: 6px 0 14px; }
.done-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 10px; }

/* Machine-friendly blocks */
.code-block { font: 13px/1.55 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; white-space: pre; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
/* Phones: each row becomes a small labelled block instead of a wide scroll. */
@media (max-width: 640px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { padding: 3px 0; border: 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
  table.stack td:first-child::before { display: none; }
  table.stack td:first-child { font-size: 1.02rem; }
}
th, td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }

/* Bands */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-box { text-align: center; padding: 48px 20px; }
.cta-box h2 { max-width: 20ch; margin: 0 auto 10px; }
.cta-box p { color: var(--ink-2); max-width: 48ch; margin: 0 auto 22px; }
.cta-box .actions { justify-content: center; }
.split { display: grid; gap: 24px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.is-not li::before { background: var(--line-strong); }

/* ── Home: chrome mascot hero ─────────────────────────────────────────── */
:root { --dots: rgb(0 0 0 / .07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dots: rgb(255 255 255 / .06); } }
:root[data-theme="dark"] { --dots: rgb(255 255 255 / .06); }

.hero2 { position: relative; text-align: center; padding: 64px 0 8px; overflow: hidden; isolation: isolate; }
@media (min-width: 720px) { .hero2 { padding-top: 112px; } }
/* Halftone dot field, faded at the edges. */
.hero2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(var(--dots) 1px, transparent 1.4px) 0 0 / 14px 14px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%); mask: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%); }
.hero2 h1 { font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; margin: 0 auto 20px; }
.hero2 h1 .dim { color: var(--ink-3); }
.hero2 .lead { max-width: 46ch; margin: 0 auto 30px; color: var(--ink-2); }
.hero2 .actions { justify-content: center; }

.rig { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px; align-items: center; margin-top: 64px; }
.rig .stage2 { order: -1; grid-column: 1 / -1; }
/* Phone: the model names in two columns under the mascot. */
.models { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; text-align: center; }
.models li { margin: 0; font-size: 1.05rem; color: var(--ink-2); }
.wires { display: none; }
@media (max-width: 899px) { .rig-side { align-self: start; } }
@media (min-width: 900px) {
  .rig { grid-template-columns: 1fr 400px 1fr; gap: 0; margin-top: 80px; }
  .rig .stage2 { order: 0; grid-column: auto; }
  .rig-side { display: grid; height: 380px; }
  .rig-side.in { grid-template-columns: auto 1fr; }
  .rig-side.out { grid-template-columns: 1fr auto; }
  .rig-side.out .models { order: 1; }
  .models { display: grid; grid-auto-rows: 1fr; gap: 0; }
  .models li { display: flex; align-items: center; text-align: left; font-size: 1.2rem; font-weight: 350; letter-spacing: -.01em; }
  .in .models li { justify-content: flex-end; padding-right: 14px; }
  .out .models li { padding-left: 14px; }
  .wires { display: block; width: 100%; height: 100%; overflow: visible; }
}
.wires path { fill: none; stroke: var(--ink); stroke-opacity: .22; stroke-width: 1; vector-effect: non-scaling-stroke; }
/* A short bright bead runs along each wire into the case. */
.wires .pulse { stroke: var(--signal); stroke-opacity: 1; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 7 93; stroke-dashoffset: 100; opacity: 0; filter: drop-shadow(0 0 3px var(--signal)); }
@media (prefers-reduced-motion: no-preference) {
  .wires .pulse { animation: wire-run 8.5s linear infinite; }
  @keyframes wire-run { 0% { stroke-dashoffset: 100; opacity: 0; } 8% { opacity: 1; } 42% { opacity: 1; } 50% { stroke-dashoffset: -7; opacity: 0; } 100% { stroke-dashoffset: -7; opacity: 0; } }
}

/* The mascot in a dark glass case, in both themes: chrome reads best on black. */
.stage2 { margin: 0; }
.stage2 .frame { position: relative; aspect-ratio: 1 / 1.08; border-radius: 28px; max-width: min(400px, 82vw); margin: 0 auto;
  background: radial-gradient(circle at 50% 40%, rgb(255 255 255 / .11), transparent 60%), radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1.4px) 0 0 / 12px 12px, #070707; }
.stage2 img { position: relative; width: 72%; height: auto; margin: 11% auto 0; filter: drop-shadow(0 26px 26px rgb(0 0 0 / .6)); }
@media (prefers-reduced-motion: no-preference) {
  .stage2 img { animation: hover 6s ease-in-out infinite; }
  @keyframes hover { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
}

/* "Give this to your agent": dark glass, both themes. */
.agentbar { max-width: 720px; margin: 80px auto 0; background: #070707; color: #ededed; border-radius: 22px; padding: 18px 14px 14px; text-align: center; }
.agentbar p { margin: 0 0 12px; font-weight: 500; font-size: .95rem; color: #d6d6d6; }
.agentbar-cmd { display: flex; align-items: center; gap: 10px; background: #121212; border: 1px solid #222; border-radius: 14px; padding: 8px 8px 8px 16px; text-align: left; }
.agentbar code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 .95rem var(--font); color: #ededed; }
.copy { flex: none; background: #ededed; color: #070707; border: 0; border-radius: 10px; padding: 11px 22px; font: 500 .9rem var(--font); cursor: pointer; }
.copy:hover { background: #fff; }

.section.slim { padding-top: 56px; }

/* ── Inner pages: the home page's aura ─────────────────────────────────
   The same dot field sits behind the breadcrumbs and page title, the title
   is set large and light, and the shared parts lose their boxes and bullets. */
.crumbs { position: relative; isolation: isolate; }
.crumbs::before { content: ""; position: absolute; z-index: -1; top: -80px; left: 50%; width: 100vw; height: 640px; margin-left: -50vw; pointer-events: none;
  background: radial-gradient(var(--dots) 1px, transparent 1.4px) 0 0 / 14px 14px;
  -webkit-mask: radial-gradient(ellipse 62% 55% at 50% 42%, #000 28%, transparent 75%); mask: radial-gradient(ellipse 62% 55% at 50% 42%, #000 28%, transparent 75%); }
.crumbs:has(+ .page-hero) ol { justify-content: center; }
.page-hero { text-align: center; }
@media (min-width: 720px) { .page-hero { padding-top: 72px; padding-bottom: 88px; } }
.page-hero h1 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); line-height: 1.02; max-width: 16ch; margin: 0 auto 22px; font-weight: 300; letter-spacing: -.045em; }
.page-hero .lead, .page-hero .plain { max-width: 52ch; margin-left: auto; margin-right: auto; }
.page-hero .actions { justify-content: center; }
.plain { background: none; border: 0; border-radius: 0; padding: 0; font-size: 1.2rem; line-height: 1.5; color: var(--ink); }

/* Lists: hairline rows that light up on hover, no coloured bars. */
.rows { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: visible; }
.row { padding: 18px 6px; transition: background .2s; }
a.row:hover { background: var(--signal-soft); }
.row .bar { display: none; }
.row h3 { font-weight: 500; font-size: 1.08rem; }

/* Bullets: a small quiet dot instead of diamonds. */
.ticks li { padding-left: 20px; }
.ticks li::before { left: 3px; top: .68em; width: 5px; height: 5px; border-radius: 50%; transform: none; background: var(--ink-3); }
.ticks.gold li::before, .ticks.gray li::before { background: var(--line-strong); }

/* Status chips: plain text behind a small glint dot. */
.chip { padding: 0; border: 0; border-radius: 0; gap: 8px; color: var(--ink-3); font-size: .85rem; font-weight: 400; letter-spacing: 0; }
.chip::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.kv dt { font-size: .9rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.card { border-radius: 16px; }

/* The closing call to action gets the same dot field, so every page ends as it starts. */
.cta-box { position: relative; isolation: isolate; }
.cta-box::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(var(--dots) 1px, transparent 1.4px) 0 0 / 14px 14px;
  -webkit-mask: radial-gradient(ellipse 45% 70% at 50% 50%, #000 20%, transparent 72%); mask: radial-gradient(ellipse 45% 70% at 50% 50%, #000 20%, transparent 72%); }
.cta-box h2 { font-weight: 300; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; }
.foot .foot-h { text-transform: none; letter-spacing: 0; font-weight: 500; }
.book-intro h1 { font-weight: 300; letter-spacing: -.045em; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.04; }

/* ── Use cases hub: one spacing scale ──────────────────────────────────
   Every gap on the page is a step of 4 / 8 / 16 / 24 / 32 / 64 / 96.
   Sections sit one --hub-section apart; everything shares the left edge
   of the 1080px container (16px gutter on phones). */
.crumbs:has(+ .hub) ol { justify-content: center; }
.hub { --hub-section: 64px; }
@media (min-width: 720px) { .hub { --hub-section: 96px; } }
.hub .section { padding-block: var(--hub-section) 0; }
.hub .page-hero { padding-bottom: 0; }
.hub .page-hero h1 { margin-bottom: 24px; }
.hub .page-hero .plain, .hub .page-hero .lead { max-width: 600px; margin: 0 auto; }
.hub .page-hero .plain + .lead { margin-top: 16px; }
.hub h2 { margin-bottom: 16px; }
.hub .lead { margin-bottom: 0; }

/* "Croutons is / is not" */
.hub .split { gap: 16px; }
.hub .card { padding: 16px; }
@media (min-width: 720px) { .hub .card { padding: 24px; } }
.hub .split h2 { font-size: 1.2rem; margin-bottom: 16px; }
.hub .ticks { margin: 0; }
.hub .ticks li { margin: 8px 0 0; }
.hub .ticks li:first-child { margin-top: 0; }

/* Area rows line up with the heading above them. */
.hub .rows { margin-top: 32px; }
.hub .row { padding: 16px 0; gap: 16px; }
.hub .row h3 { margin-bottom: 4px; }

/* Use-case detail cards */
.hub .uc { margin-top: 16px; }
.hub .uc h3 { margin: 16px 0 8px; }
.hub .uc > p { margin: 0; color: var(--ink-2); }
.hub .uc .kv { gap: 0; margin-top: 24px; }
.hub .uc .kv dt { margin-top: 16px; }
.hub .uc .kv dt:first-child { margin-top: 0; }
.hub .uc .kv dd { margin-top: 4px; }
.hub .uc .btn { margin-top: 24px; padding: 0 16px; }

/* FAQ shares the page's left edge; the text keeps a readable measure. */
.hub #faq .wrap.read { max-width: var(--max); }
.hub #faq h2, .hub .faq { max-width: var(--read); }
.hub .faq summary { padding-block: 16px; }
.hub .faq summary::after { top: 24px; }
.hub .faq details[open] summary::after { top: 28px; }
.hub .faq .a { padding-bottom: 16px; }
.hub .faq .a p { margin: 0; }

/* Closing call: same rhythm, same gutter as the rest. */
.hub .cta-box { padding: var(--hub-section) 0; }
.hub .cta-box h2 { margin-bottom: 16px; }
.hub .cta-box p { margin-bottom: 24px; }
.hub .cta-box .actions { gap: 12px; }
.hub .cta-box .btn-lg { padding: 0 24px; }
