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

/* Hero echoes the app's "Finished" screen: meta line, big sentence, two buttons, team dots. */
.hero { text-align: center; padding-block: 56px 24px; }
@media (min-width: 720px) { .hero { padding-block: 104px 40px; } }
.hero .meta-line { color: var(--ink-3); font-size: .95rem; margin-bottom: 14px; }
.hero h1 { max-width: 17ch; margin: 0 auto 16px; }
.hero h1 em { font-style: normal; color: var(--crust); }
.hero .lead { max-width: 46ch; margin: 0 auto 28px; }
.hero .actions { justify-content: center; }
.hero .steps { max-width: 620px; margin: 56px auto 0; }
.hero .steps-title { margin-top: 48px; color: var(--ink-2); font-size: .95rem; }
.hero .steps { margin-top: 14px; }

/* Story scroll */
.story { position: relative; }
.story-grid { display: block; }
.stage { position: sticky; top: 64px; height: 42vh; min-height: 260px; z-index: 2; background: var(--paper); box-shadow: 0 14px 14px -6px var(--paper); pointer-events: none; }
.stage svg { width: 100%; height: 100%; }
.chapters { position: relative; z-index: 1; padding-bottom: 10vh; }
.chapter { min-height: 78vh; display: flex; align-items: flex-start; padding-top: 4vh; }
.chapter .card { width: 100%; box-shadow: var(--shadow); }
.chapter .num { font: 600 .8rem/1 var(--mono); color: var(--crust); letter-spacing: .06em; margin-bottom: 10px; display: block; }
.chapter h3 { font-size: clamp(1.45rem, 4.2vw, 2.1rem); letter-spacing: -.02em; }
.chapter p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: .6em; }
.chapter p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
  .stage { top: 12vh; height: 76vh; background: none; box-shadow: none; order: 2; }
  .chapters { order: 1; padding: 6vh 0 18vh; }
  .chapter { min-height: 88vh; align-items: center; padding-top: 0; }
  .chapter .card { background: transparent; border: 0; box-shadow: none; padding: 0; }
  .chapter p { font-size: 1.15rem; }
}

.crumb { fill: var(--line-strong); transform-box: fill-box; transform-origin: center; transition: transform .9s cubic-bezier(.2,.75,.2,1), fill .6s ease, opacity .6s ease; }
.crumb.gold { fill: var(--crust); }
.crumb.blue { fill: var(--action); }
.crumb.green { fill: var(--brand); }
.crumb.gray { fill: var(--ink-3); }
.stage text { font: 600 13px var(--font); fill: var(--ink-2); opacity: 0; transition: opacity .5s ease; }
.stage text.code { font: 500 11px var(--mono); fill: var(--ink-3); }
.stage text.big { font: 700 28px var(--font); fill: var(--ink); letter-spacing: -.02em; }
.stage [data-show].on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .stage[data-scene="0"] .crumb { animation: drift 7s ease-in-out infinite alternate; }
}
@keyframes drift { to { translate: 0 -6px; } }

/* Five crouton units */
.units { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .units { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .units { grid-template-columns: repeat(5, 1fr); } }
.unit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.unit .code { font: 500 .72rem var(--mono); color: var(--ink-3); }
.unit h3 { margin: 8px 0 4px; font-size: 1rem; }
.unit .q { color: var(--crust); font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.unit p { color: var(--ink-2); font-size: .9rem; margin: 0; }
.cube { width: 22px; height: 22px; border-radius: 4px; transform: rotate(45deg); background: var(--brand); margin: 4px 0 10px 4px; position: relative; }
.cube::after { content: ""; position: absolute; inset: 6px; border: 2px solid var(--surface); border-radius: 2px; }

/* 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 */
.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(--alert); }
