/* Distribewt site. Direction: colour chapters (taste-skill seed 385519547).
   Product fragments ([data-ui]) follow the app sheet "Accent ladder" in post red. */

/* No visible scrollbars anywhere: the page still scrolls by wheel, trackpad, touch and keys. */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

:root {
  --bg: #e2dccf;
  --surface: #d7d0c1;
  --ink: #2a1110;
  --muted: #6b524c;
  --accent: #4a6f84;
  --accent-ink: #ffffff;
  --red: #dc1928;
  --maroon: #952625;
  --mustard: #e0a912;
  --slate: #4a6f84;
  --bone: #e2dccf;

  /* product fragments: white cards, the red at full strength only on small marks */
  --ui-card: #ffffff;
  --ui-ground: #fbf7f6;
  --ui-text: #2a1110;
  --ui-muted: #6b6461;
  --ui-tint: #fde7e8;
  --ui-tint-ink: #8a1019;

  /* scene tokens read by scenes/stage.css */
  --ground: var(--bg);

  --font-display: 'Cabinet Grotesk', system-ui, sans-serif;
  --font-text: 'Cabinet Grotesk', system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(4rem, 8.3vw, 8rem);

  --margin: 16px;
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, fieldset, legend, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 1rem; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
p { max-width: 62ch; text-wrap: pretty; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; }

.head { font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.035em; }
.display { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.035em; font-weight: 800; }
.lead-head { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .button:hover { background: #3c5c6e; } }

/* ---------- chapter 1: the name, stacked in two inks ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; column-gap: 40px; padding: 24px 40px 40px; background: var(--red); color: #fff; }
.bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--step-small); }
.bar-mark { font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.03em; text-decoration: none; }
.bar-links { display: flex; align-items: center; gap: 1.75rem; }
.bar-action { min-height: 44px; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }
.name { grid-column: 1; grid-row: 2; align-self: start; margin-top: 8svh; font-size: clamp(104px, 18vw, 240px); line-height: 0.82; letter-spacing: -0.04em; font-weight: 800; }
.name .ink-dark { color: var(--ink); }
.hero-cta { grid-column: 1 / -1; grid-row: 3; justify-self: end; display: grid; gap: 1.25rem; justify-items: end; width: min(100%, 560px); }
.standfirst { max-width: 34ch; font-size: max(18px, var(--step-body)); line-height: 1.4; text-align: right; }
.hero-note { font-size: var(--step-small); max-width: 40ch; text-align: right; opacity: 0.85; }
.lines .line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; white-space: nowrap; }

/* The agent: the full stop of "distribewt." drawn as a little suited dot in shades. The drawings
   (assets/buddy/*.svg) animate themselves; buddy.js only picks which one shows. */
.buddy { display: block; flex: none; height: auto; }
/* The <picture> around each drawing only picks the still for reduced motion; the img does the layout. */
.buddy-pic { display: contents; }
.buddy-pic source { display: none; }
/* In the hero he is the name's full stop, standing on its baseline. */
.buddy-dot { display: inline-block; width: 0.78em; height: 0.78em; margin-left: 0.02em; vertical-align: -0.03em; }

.notice { grid-column: 2; grid-row: 2; align-self: center; width: 360px; background: var(--ui-card); color: var(--ui-text); border-radius: 16px; padding: 18px; font-size: var(--step-small); }
.notice-top { display: flex; align-items: center; gap: 8px; color: var(--ui-muted); }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.notice-title { margin-top: 6px; font-size: var(--step-lead); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.notice-meta { margin-top: 4px; color: var(--ui-muted); }
.notice-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.notice-thumbs img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 8px; background: var(--ui-ground); }
.notice-go { margin-top: 14px; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; transition: transform var(--t-press) var(--ease-out); }
.notice-go:active { transform: scale(0.98); }

/* ---------- chapter 2: the month fills (scene) ---------- */
.month { background: var(--slate); color: #fff; --ground: var(--slate); --ink: #fff; }
.month .scene-stage { display: grid; grid-template-rows: auto auto; align-content: center; gap: 40px; padding: 6svh var(--margin); }
.month-text { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 2rem; align-items: end; }
.beats { display: grid; gap: 0.5rem; font-size: var(--step-body); line-height: 1.3; max-width: 26ch; }
.month-count { font-size: var(--step-lead); justify-self: end; text-align: right; }
.month-count b { display: block; font-size: var(--step-head); line-height: 0.9; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.month-grid { background: var(--ui-card); color: var(--ui-text); padding: 16px; border-radius: 14px; }
.month-name { font-weight: 800; margin-bottom: 12px; }
.days { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.days li { position: relative; aspect-ratio: 1 / 1; background: var(--ui-tint); border-radius: 6px; overflow: hidden; }
.days li span { position: absolute; left: 6px; top: 4px; font-size: 13px; font-weight: 500; color: var(--ui-tint-ink); }
.days img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.month.is-live .beats li { opacity: 0.45; transition: opacity 300ms ease; }
.month.is-live[data-beat="0"] [data-beat-line="0"],
.month.is-live[data-beat="1"] [data-beat-line="1"],
.month.is-live[data-beat="2"] [data-beat-line="2"] { opacity: 1; }

/* ---------- chapter 3: one control, blown up ---------- */
.decide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--mustard); color: var(--ink); padding: 96px var(--margin); transition: background-color 400ms ease, color 400ms ease; }
.decide[data-state="skip"] { background: var(--maroon); color: #fff; }
.decide[data-state="redo"] { background: var(--slate); color: #fff; }
.decide-text h2 { max-width: 8ch; }
.decide-text p { max-width: 34ch; margin-top: 1.25rem; }
.decide-buddy { width: clamp(140px, 14vw, 220px); margin-top: 2.5rem; }
.decide-ui { justify-self: end; width: min(100%, 520px); background: var(--ui-card); color: var(--ui-text); border-radius: 20px; padding: 20px; }
.draft-meta { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-small); color: var(--ui-muted); }
.draft-when { font-variant-numeric: tabular-nums; }
.draft-title { margin-top: 0.35rem; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.draft-slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; transition: opacity 300ms ease, filter 300ms ease; }
.draft-slides img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--ui-ground); }
.decide[data-state="skip"] .draft-slides { opacity: 0.35; filter: grayscale(1); }
.decide[data-state="redo"] .draft-slides { opacity: 0.6; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; gap: 4px; background: var(--ui-ground); border-radius: 14px; }
.seg-opt { min-height: 48px; padding: 0 8px; border-radius: 10px; font-weight: 700; color: var(--ui-muted); transition: background-color 300ms var(--ease-out), color 300ms ease, transform var(--t-press) var(--ease-out); }
.seg-opt[aria-checked="true"] { background: var(--ink); color: #fff; }
.seg-opt:active { transform: scale(0.98); }

/* ---------- chapter 4: accordion of tinted panels ---------- */
.how { padding: 120px var(--margin) 120px; }
.how-intro { display: grid; grid-template-columns: 5fr 1fr 5fr 1fr; align-items: end; }
.how-intro h2 { grid-column: 1; }
.how-intro p { grid-column: 3; }
.acc { margin-top: 64px; display: flex; height: 520px; }
.acc-panel { position: relative; flex: 1 1 0; min-width: 0; background: var(--c); color: var(--k); overflow: hidden; transition: flex-grow 450ms var(--ease-in-out); }
.acc-panel.is-open { flex-grow: 7; }
.acc-name { position: absolute; left: 20px; bottom: 20px; font-size: var(--step-lead); font-weight: 800; color: inherit; transform-origin: left bottom; transform: rotate(-90deg) translate(0, 100%); white-space: nowrap; }
.acc-panel.is-open .acc-name { top: 24px; bottom: auto; font-size: var(--step-head); letter-spacing: -0.035em; transform: none; pointer-events: none; }
.acc-body { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 250ms ease, visibility 0s 250ms; }
.acc-panel.is-open .acc-body { opacity: 1; visibility: visible; transition: opacity 400ms ease 200ms; }
.acc-body > p { align-self: end; max-width: 36ch; }
.acc-copy { align-self: end; display: grid; gap: 20px; justify-items: start; }
.acc-copy p { max-width: 36ch; }
.acc-buddy { width: clamp(96px, 9vw, 144px); }
.acc-body .card { align-self: center; }

/* product fragment cards */
.card { background: var(--ui-card); color: var(--ui-text); border-radius: 12px; padding: 18px; font-size: var(--step-small); }
.card-label { color: var(--ui-muted); }
.card-input { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #f3eeec; }
.card-note { margin-top: 10px; color: var(--ui-muted); }
.card-shots, .card-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.card-thumbs { margin-top: 0; }
.card-shots img, .card-thumbs img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 6px; background: var(--ui-ground); }
.rows { margin-top: 10px; }
.rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 9px 10px; border-radius: 8px; color: var(--ui-muted); }
.rows .ok span:last-child { color: var(--ui-tint-ink); background: var(--ui-tint); border-radius: 999px; padding: 0 10px; }
.rows .sel { background: var(--ui-ground); color: var(--ui-text); }
.pill { background: var(--red); color: #fff; border-radius: 999px; padding: 0 12px; font-weight: 500; }

/* ---------- chapter 5: swipe through one slideshow (scene) ---------- */
.swipe { background: var(--maroon); color: #fff; --ground: var(--maroon); --ink: #fff; }
.swipe .scene-stage { display: grid; grid-template-columns: 4fr 8fr; gap: 2rem; padding: 12svh var(--margin); align-items: center; }
.swipe-text { align-self: stretch; display: flex; flex-direction: column; }
.swipe-cap { margin-top: 2.5rem; font-size: var(--step-lead); line-height: 1.25; max-width: 20ch; }
.swipe-count { margin-top: auto; font-size: var(--step-lead); font-variant-numeric: tabular-nums; }
.swipe-view { min-width: 0; overflow: clip; }
.swipe-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.swipe-track img { flex: none; height: 66svh; width: auto; aspect-ratio: 9 / 16; scroll-snap-align: start; background: #fff; }
.swipe.is-live .swipe-track { overflow: visible; }

/* ---------- chapter 6: close-ups on a board ---------- */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; padding: 10px; }
.tile { position: relative; overflow: hidden; background: var(--c, var(--bg)); color: var(--k, var(--ink)); }
.t-head { grid-column: 1 / 7; grid-row: 1 / 3; padding: 20px; }
.t-head .head { max-width: 6ch; }
/* The agent at work in the corner of the board's title tile, clear of the heading. */
.board-buddy { position: absolute; right: 24px; bottom: 0; width: clamp(96px, 13vw, 196px); }
.t-chat { grid-column: 7 / 13; grid-row: 1 / 3; }
.t-qa { grid-column: 1 / 7; grid-row: 3 / 7; }
.t-time { grid-column: 7 / 10; grid-row: 3 / 7; }
.t-looks { grid-column: 10 / 13; grid-row: 3 / 7; }
.t-count { grid-column: 1 / 4; grid-row: 7 / 9; }
.t-hook { grid-column: 4 / 7; grid-row: 7 / 9; }
.t-shots { grid-column: 7 / 13; grid-row: 7 / 9; }
.cap { position: absolute; left: 20px; bottom: 18px; right: 20px; font-size: var(--step-small); line-height: 1.35; max-width: 32ch; }
.cap b { display: block; font-size: var(--step-body); font-weight: 500; }
.zoom { position: absolute; background: none; color: var(--ui-text); }
.t-chat .zoom { left: 20px; right: 20px; top: 22px; font-size: 26px; }
.bubble { background: var(--ui-card); padding: 0.6em 0.8em; border-radius: 0.8em 0.8em 0.2em 0.8em; max-width: 22em; line-height: 1.3; }
.t-qa .zoom { left: 20px; top: 18%; font-size: 40px; }
.status { display: inline-flex; align-items: center; gap: 0.35em; background: var(--ui-card); padding: 0.3em 0.6em; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.dot { width: 0.4em; height: 0.4em; border-radius: 50%; background: #1f8a4c; }
.status-sub { margin-top: 0.4em; font-size: 0.4em; color: #fff; }
.t-time .zoom { left: 20px; top: 16px; font-size: 96px; color: var(--ink); }
.time { font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.time small { font-size: 0.35em; margin-left: 0.1em; }
.t-looks .zoom { left: 18px; top: 22%; font-size: 40px; }
.looks { display: inline-flex; flex-direction: column; gap: 0.15em; background: var(--ui-card); padding: 0.15em; border-radius: 0.4em; }
.looks span { padding: 0.25em 0.6em; border-radius: 0.3em; color: var(--ui-muted); font-weight: 500; }
.looks .on { background: var(--ink); color: #fff; }
.t-count .zoom { right: -4%; top: -22%; font-size: 200px; color: #fff; }
.count { font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.t-hook .zoom { left: 20px; top: 18px; right: 20px; font-size: 24px; }
.hook { display: inline; background: #fff; color: #111; padding: 0.1em 0.3em; border-radius: 0.25em; line-height: 1.5; font-weight: 800; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.t-shots .zoom { right: 20px; top: 18px; display: flex; gap: 10px; }
.t-shots .zoom img { width: 120px; border-radius: 10px; }

/* ---------- chapter 7: plans that step up ---------- */
.pricing { background: var(--red); color: #fff; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; padding: 120px var(--margin) 0; }
.pricing-head { grid-column: 1 / 3; grid-row: 1; padding-bottom: 3rem; }
.pricing-head p { margin-top: 1.25rem; font-size: var(--step-lead); line-height: 1.3; max-width: 32ch; }
.billing { display: inline-flex; gap: 4px; margin-top: 1.5rem; padding: 4px; border-radius: 999px; background: rgba(20, 8, 8, 0.16); }
.billing-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; color: #fff; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.billing-opt[aria-pressed="true"] { background: #fff; color: var(--ink); }
.billing-tag { font-size: 12px; opacity: 0.72; }
.plan { display: flex; flex-direction: column; padding: 28px 28px 0; grid-row: 2; }
.plan h3 { font-size: var(--step-lead); }
.plan-best { opacity: 1; color: var(--mustard); font-weight: 500; }
/* The agent stands on the Pro plan, the tallest step. */
.pricing-buddy { grid-column: 3; grid-row: 1; align-self: end; justify-self: center; width: clamp(140px, 13vw, 200px); margin-bottom: -8px; }
.plan .price { margin-top: 0.25rem; font-size: clamp(1.9rem, 3.2vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan .price [data-per] { font-size: var(--step-body); font-weight: 500; letter-spacing: 0; }
.price-note { margin-top: 0.4rem; font-size: var(--step-small); opacity: 0.72; }
.price-note[hidden] { display: none; }
.plan ul { margin: 1.25rem 0 1.5rem; }
.plan li + li { margin-top: 0.3rem; }
.plan-action { margin: auto -28px 0; display: flex; align-items: center; min-height: 64px; padding: 0 28px; text-decoration: none; font-weight: 500; transition: background-color var(--t-hover) ease; }
.p1 { grid-column: 1; height: 400px; background: var(--bone); color: var(--ink); }
.p1 .plan-action { background: var(--surface); }
.p2 { grid-column: 2; height: 460px; background: var(--mustard); color: var(--ink); }
.p2 .plan-action { background: #c99710; }
.p3 { grid-column: 3; height: 540px; background: var(--ink); color: #fff; }
.p3 .plan-action { background: #000; }
.p4 { grid-column: 4; height: 480px; background: var(--slate); color: #fff; }
.p4 .plan-action { background: #3c5c6e; }
.pricing-note { grid-column: 1 / -1; grid-row: 3; max-width: 74ch; padding: 40px 0 56px; font-size: var(--step-small); opacity: 0.88; }
@media (hover: hover) and (pointer: fine) {
  .p1 .plan-action:hover { background: #cbc3b2; }
  .p2 .plan-action:hover { background: #b8890d; }
  .p3 .plan-action:hover { background: #1a0a0a; }
  .p4 .plan-action:hover { background: #2f4c5c; }
}

/* ---------- chapter 8: accordion of filled tiles ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 8px; padding: 120px var(--margin); }
.faq-head { grid-column: 1 / 5; align-self: start; position: sticky; top: 96px; }
.faq-list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq details { background: var(--surface); transition: background-color 250ms ease, color 250ms ease; }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq summary { position: relative; list-style: none; min-height: 72px; display: flex; align-items: center; padding: 0 64px 0 24px; font-size: var(--step-lead); font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 52ch; }

/* ---------- chapter 9: getting started, on your own app ---------- */
.join { background: var(--slate); color: #fff; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 8px; align-items: center; padding: 160px var(--margin); }
.join-text { grid-column: 1 / 6; }
.join-text p { margin-top: 1rem; max-width: 40ch; }
.join-buddy { width: clamp(140px, 16vw, 240px); margin-bottom: 1.5rem; }
.dialog { grid-column: 7 / 12; align-self: center; justify-self: start; width: min(560px, 100%); background: var(--ui-card); color: var(--ui-text); border-radius: 16px; padding: 24px; font-size: 15px; }
.dialog-title { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.01em; }
.join-needs { counter-reset: need; display: grid; gap: 12px; margin-top: 16px; }
.join-needs li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.join-needs li::before { counter-increment: need; content: counter(need); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ui-tint); color: var(--ui-tint-ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dialog-go { display: flex; align-items: center; justify-content: center; margin-top: 20px; width: 100%; min-height: 52px; border-radius: 10px; background: var(--red); color: #fff; text-align: center; text-decoration: none; font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.dialog-go:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .dialog-go:hover { background: #bd1422; } }

/* ---------- chapter 10: contact as the headline ---------- */
.foot { background: var(--red); color: #fff; display: flex; flex-direction: column; padding: 40px var(--margin) 24px; }
.foot-top { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step-small); }
.foot-notes { display: flex; gap: 2rem; flex-wrap: wrap; }
.foot-notes span:first-child { font-weight: 800; }
/* Off duty: he naps at the end of the address, on its baseline. */
.foot-close { margin-top: clamp(120px, 22svh, 240px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.foot-buddy { width: clamp(96px, 11vw, 168px); margin-bottom: 0.3vw; }
.foot-mail { text-decoration: none; font-size: clamp(3rem, 8.4vw, 9rem); line-height: 0.9; overflow-wrap: anywhere; transition: opacity var(--t-hover) ease; }
.mail-br { display: none; }
@media (hover: hover) and (pointer: fine) { .foot-mail:hover { opacity: 0.85; } .foot a:hover { text-decoration-thickness: 2px; } }
.foot-meta { margin-top: 2rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; font-size: var(--step-small); }
.foot-meta > :last-child { justify-self: end; }
.foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .name { font-size: 15vw; }
  .notice { width: 300px; }
  .month-text { grid-template-columns: 1fr 1fr; }
  .month-text h2 { grid-column: 1 / -1; }
  .decide { grid-template-columns: 1fr; }
  .decide-ui { justify-self: start; }
  .t-looks .zoom { font-size: 28px; }
  .t-qa .zoom { font-size: 26px; }
  .t-time .zoom { font-size: 64px; }
  .t-chat .zoom, .t-hook .zoom { font-size: 20px; }
  .t-count .zoom { font-size: 150px; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; align-content: start; padding: 16px var(--margin) 32px; }
  .bar-links .link:not(.bar-signin) { display: none; }
  .bar-links { gap: 1rem; }
  .name { grid-row: auto; margin-top: 10svh; font-size: 21vw; }
  .hero-cta { order: 1; grid-row: auto; justify-self: stretch; justify-items: stretch; width: 100%; margin-top: 1.5rem; }
  .standfirst, .hero-note { text-align: left; }
  .notice { grid-column: 1; grid-row: auto; order: 2; width: 100%; margin-top: 2rem; }
  .month .scene-stage, .swipe .scene-stage { grid-template-columns: 1fr; gap: 1.25rem; padding: 64px var(--margin); }
  .month-text { grid-template-columns: 1fr; gap: 1rem; }
  .month-count { justify-self: start; text-align: left; }
  .month-grid { justify-self: stretch; padding: 12px; }
  .month.is-live .beats li { display: none; }
  .month.is-live[data-beat="0"] [data-beat-line="0"], .month.is-live[data-beat="1"] [data-beat-line="1"], .month.is-live[data-beat="2"] [data-beat-line="2"] { display: list-item; }
  .days li { aspect-ratio: 3 / 4; }
  .days { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .days li span { font-size: 11px; }
  .beats { margin-top: 1rem; font-size: 18px; }
  .month-count { margin-top: 1rem; }
  .month-count b { font-size: 40px; }
  .decide { gap: 28px; padding: 56px var(--margin); }
  .decide-ui { padding: 14px; border-radius: 16px; }
  .seg-opt { font-size: var(--step-small); }
  .how { padding: 80px var(--margin); }
  .how-intro { grid-template-columns: 1fr; gap: 1rem; }
  .how-intro p { grid-column: 1; }
  .acc { flex-direction: column; height: auto; margin-top: 40px; }
  .acc-panel { flex: none; min-height: 64px; }
  .acc-name, .acc-panel.is-open .acc-name { position: static; display: block; width: 100%; text-align: left; padding: 20px; font-size: 18px; transform: none; pointer-events: auto; }
  .acc-body { position: static; display: none; grid-template-columns: 1fr; padding: 0 20px 20px; }
  .acc-panel.is-open .acc-body { display: grid; }
  .swipe-track img { height: 56svh; }
  .swipe-cap { margin-top: 1rem; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 28vw; gap: 6px; padding: 6px; }
  .t-head { grid-column: 1 / 3; grid-row: auto / span 2; }
  .t-head .head { font-size: 11vw; }
  .t-chat, .t-qa, .t-shots { grid-column: 1 / 3; grid-row: auto / span 3; }
  .t-time, .t-looks, .t-count, .t-hook { grid-column: auto / span 1; grid-row: auto / span 2; }
  .cap { left: 14px; bottom: 12px; right: 12px; }
  .t-time .zoom { font-size: 56px; left: 14px; top: 12px; }
  .t-count .zoom { font-size: 140px; top: -14%; }
  .t-looks .zoom { font-size: 28px; left: 12px; top: 12px; }
  .t-hook .zoom { font-size: 20px; left: 12px; top: 12px; }
  .t-qa .zoom { left: 14px; font-size: 24px; }
  .t-chat .zoom { font-size: 18px; left: 14px; right: 14px; }
  .t-shots .zoom img { width: 92px; }
  .pricing { grid-template-columns: 1fr; row-gap: 2.5rem; padding: 80px var(--margin) 0; }
  .pricing-head { grid-column: 1; grid-row: auto; padding-bottom: 1rem; }
  .plan, .p1, .p2, .p3, .p4 { grid-column: 1; grid-row: auto; height: auto; }
  .plan { padding: 24px 24px 0; }
  .plan-action { margin: auto -24px 0; padding: 0 24px; }
  .pricing-note { grid-row: auto; padding: 8px 0 48px; }
  .pricing-buddy { grid-column: 1; grid-row: auto; justify-self: start; width: 120px; margin-bottom: -2rem; }
  .decide-buddy { width: 120px; margin-top: 1.5rem; }
  .join-buddy { width: 128px; }
  .acc-buddy { width: 88px; }
  .faq { grid-template-columns: 1fr; padding: 112px var(--margin) 80px; }
  .faq-head { grid-column: 1; position: static; font-size: 11vw; margin-bottom: 1.5rem; }
  .faq-list { grid-column: 1; gap: 6px; }
  .faq summary { min-height: 64px; padding-left: 20px; }
  .faq details p { padding: 0 20px 20px; }
  .join { grid-template-columns: 1fr; align-content: start; padding: 96px var(--margin); }
  .join-text { grid-column: 1; align-self: start; }
  .join .display { font-size: 13vw; }
  .dialog { grid-column: 1; margin-top: 2rem; padding: 18px; }
  .foot-top { flex-direction: column; }
  .foot-notes { flex-direction: column; gap: 8px; }
  .foot-close { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
  .foot-mail { align-self: stretch; font-size: 12vw; }
  .foot-buddy { width: 88px; }
  .mail-br { display: inline; }
  .foot-meta { grid-template-columns: 1fr; gap: 6px; }
  .foot-meta > :last-child { justify-self: start; }
}

/* ---------- motion: content stays visible without JavaScript ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .js [data-rise] { opacity: 0; transform: translateY(16px); animation: rise 700ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* The plans only rise: they sit low on a long page, and a price must never be left invisible. */
  .js .pricing [data-reveal] { opacity: 1; }
  .js .tile[data-reveal] .zoom { transform: translateY(18px) scale(0.96); transition: transform 1100ms var(--ease-expo) 120ms; }
  .js .tile[data-reveal].is-in .zoom { transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- between the hero and the month: the agent, in chat ---------- */
/* Text, then the agent himself, then his chat window: he acts out the conversation as it plays. */
.chatdemo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 48px; align-items: end; background: var(--bg); color: var(--ink); padding: 120px var(--margin); }
.chatdemo-text { align-self: center; max-width: 46ch; }
.chatdemo-head { max-width: 11ch; }
.chatdemo-lead { margin-top: 1.5rem; max-width: 38ch; }
.chatdemo-buddy { justify-self: center; width: clamp(160px, 17vw, 260px); }
.chatdemo-panel { justify-self: end; width: min(100%, 380px); }
.chatdemo-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.chatdemo-window { background: var(--ui-card); color: var(--ui-text); border-radius: 22px; padding: 16px 16px 12px; font-size: var(--step-small); }
.chatdemo-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
.chatdemo-avatar { flex: none; width: 36px; height: 36px; }
.chatdemo-who { display: flex; align-items: center; gap: 8px; font-weight: 800; line-height: 1.1; }
.chatdemo-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--ui-muted); }
.chatdemo-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1f8a4c; }
.chatdemo-thread { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 6px; }
.chatdemo-step { position: relative; max-width: 86%; }
.chatdemo-user { align-self: flex-end; }
.chatdemo-agent { align-self: flex-start; }
.chatdemo-bubble { display: block; padding: 10px 13px; border-radius: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.chatdemo-user .chatdemo-bubble { border-bottom-right-radius: 4px; background: var(--ink); color: #fff; }
.chatdemo-agent .chatdemo-bubble { border-bottom-left-radius: 4px; background: #f3eeec; }
.chatdemo-agent .chatdemo-bubble > p { max-width: none; }
.chatdemo-card { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--ui-card); }
.chatdemo-card-title { font-weight: 800; line-height: 1.25; }
.chatdemo-card-detail { margin-top: 4px; color: var(--ui-muted); font-size: 13px; }
.chatdemo-card-actions { display: flex; align-items: center; gap: 14px; min-height: 38px; margin-top: 12px; }
.chatdemo-confirm { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 9px; background: var(--red); color: #fff; font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-press) ease; }
.chatdemo-confirm.is-pressed { background: #a8121e; transform: scale(0.96); }
.chatdemo-dismiss { color: var(--ui-muted); font-weight: 500; text-decoration: underline; text-underline-offset: 0.22em; }

/* /redeem: the free-week code entry. Sits on the page background, one column. */
.redeem-head { padding: 20px var(--margin); }
.redeem-head .bar { max-width: 1120px; margin: 0 auto; }
.redeem { max-width: 520px; margin: 0 auto; padding: clamp(40px, 10vh, 96px) var(--margin) 96px; }
.redeem-card { display: grid; gap: 1.25rem; }
.redeem-title { font-size: clamp(2.25rem, 1.4rem + 3.5vw, 3.5rem); line-height: 0.98; letter-spacing: -0.03em; font-weight: 800; }
.redeem-sub { font-size: var(--step-lead); line-height: 1.3; }
.redeem-form { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.redeem-label { font-size: var(--step-small); font-weight: 500; }
.redeem-input { width: 100%; min-height: 52px; padding: 0 1rem; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: var(--step-body); letter-spacing: 0.04em; text-transform: uppercase; }
.redeem-input::placeholder { color: var(--muted); text-transform: none; }
.redeem-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.redeem-error { color: var(--ui-tint-ink); font-size: var(--step-small); }
.redeem-go { width: 100%; }
.chatdemo-done { display: none; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--ui-tint); color: var(--ui-tint-ink); font-size: 11px; font-weight: 700; }
.chatdemo-card.is-done .chatdemo-done { display: inline-flex; }
.chatdemo-card.is-done .chatdemo-confirm, .chatdemo-card.is-done .chatdemo-dismiss { display: none; }
.chatdemo-compose { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #f6f1ef; color: var(--ui-muted); font-size: 13px; }

/* With script on, the final markup is rewound: later lines wait their turn and the
   card waits for its Confirm. Hidden lines keep their space, so the window never jumps. */
.chatdemo.is-scripted .chatdemo-step { opacity: 0; visibility: hidden; transform: translateY(10px); }
.chatdemo.is-scripted .chatdemo-step.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity 360ms var(--ease-out), transform 480ms var(--ease-expo); }
.chatdemo-step.is-typing > .chatdemo-bubble { visibility: hidden; }
.chatdemo-typing { position: absolute; left: 0; top: 0; display: inline-flex; gap: 5px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #f3eeec; }
.chatdemo-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ui-muted); }
@media (prefers-reduced-motion: no-preference) {
  .chatdemo-typing span { animation: chatdemo-blink 900ms ease-in-out infinite; }
  .chatdemo-typing span:nth-child(2) { animation-delay: 150ms; }
  .chatdemo-typing span:nth-child(3) { animation-delay: 300ms; }
}
@keyframes chatdemo-blink { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

@media (max-width: 1100px) {
  .chatdemo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .chatdemo-text { grid-column: 1 / -1; }
  .chatdemo-buddy { justify-self: start; }
}
@media (max-width: 760px) {
  .chatdemo { grid-template-columns: 1fr; align-items: start; padding: 80px var(--margin); }
  .chatdemo-head { max-width: none; }
  .chatdemo-buddy { width: 128px; }
  .chatdemo-panel { justify-self: stretch; }
}
