/* MoreDone website: page layout and the sections of the landing page.
   The brand itself (fonts, tokens, type, buttons, form elements, icons, rich text) is in brand.css, loaded before this file. */

/* ---------- Layout ---------- */
.page { position: relative; }
.rails { position: absolute; inset: 0; z-index: 0; padding-inline: var(--inset); pointer-events: none; }
.rails__in { max-width: var(--max); height: 100%; margin-inline: auto; border-inline: 1px solid var(--line); }
.sec { position: relative; z-index: 1; padding: var(--sec) var(--inset); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.rule { position: relative; z-index: 1; height: 1px; padding-inline: var(--inset); background: var(--line); }
.rule__in { position: relative; max-width: var(--max); margin-inline: auto; height: 1px; }
.rule__in::before, .rule__in::after {
  content: ""; position: absolute; top: -5px; width: 11px; height: 11px;
  background:
    linear-gradient(var(--stone), var(--stone)) center / 100% 1px no-repeat,
    linear-gradient(var(--stone), var(--stone)) center / 1px 100% no-repeat;
}
.rule__in::before { left: -5px; }
.rule__in::after { right: -6px; }

.head { display: grid; gap: 1.5rem; }
.head--center { justify-items: center; text-align: center; }
.head--center .h2 { max-width: 20ch; }
.head--center .lead { max-width: 44ch; }
.head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: clamp(2rem, 6vw, 6rem); }
.head--split .head__main { display: grid; gap: 1.5rem; justify-items: start; }
.head--split .head__side { display: grid; gap: 1rem; color: var(--graphite); padding-bottom: 0.35rem; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-inline: var(--inset); transition: transform 0.7s var(--ease); }
.nav.is-hidden { transform: translateY(-101%); }
.nav__bar { position: relative; z-index: 2; max-width: var(--max); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; gap: 1rem;
  padding-left: var(--gutter); border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper); }
.logo { display: inline-flex; align-items: center; flex: none; min-height: 2.75rem; }
.logo svg { width: 8.5rem; height: auto; overflow: visible; }
.logo .logo__done { transition: transform 0.5s var(--ease); transform-origin: 0 100%; }
@media (hover: hover) and (pointer: fine) { .logo:hover .logo__done { transform: translateX(3px) skewX(-4deg); } }
.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 1.875rem); margin-inline: auto; }
.nav__links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--fs-small); color: var(--graphite); text-decoration: none; transition: color 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); }
.nav__cta { flex: none; margin-left: auto; }
.nav__links + .nav__cta { margin-left: 0; }
.nav__menu { flex: none; align-self: stretch; width: var(--nav-h); display: grid; place-content: center; gap: 5px; padding: 0; border: 0; border-left: 1px solid var(--line); background: transparent; transition: background-color 0.3s; }
.nav__menu:hover { background: rgb(var(--tint-ink) / 0.04); }
.nav__menu span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease-ui); }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
/* where the section links show in the bar, the menu button would only repeat them (D90): it shows from 68rem down */
@media (min-width: 68.01rem) {
  .nav__menu, .menu { display: none !important; }
  .nav__bar { padding-right: var(--gutter); }
}

.menu { position: absolute; left: var(--inset); right: var(--inset); top: 0; z-index: 1; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 0.45s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s 0.45s; }
.menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.7s var(--ease), visibility 0s; }
.menu__in { max-width: var(--max); margin-inline: auto; padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.25rem; background: var(--paper); border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgb(var(--tint-ink) / 0.4);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; max-height: 100vh; max-height: 100svh; overflow-y: auto; }
.menu__big { display: grid; gap: 0.125rem; }
.menu__big a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0.25rem; font-size: var(--fs-menu); line-height: 1.15; font-weight: var(--fw-medium); letter-spacing: -0.035em; text-decoration: none; }
.menu__side { display: grid; gap: 1.25rem; justify-items: start; }
.menu__small { display: grid; gap: 0.25rem; }
.menu__small a { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: var(--fs-small); color: var(--graphite); text-decoration: none; }
.menu__small a:hover { color: var(--ink); }
.menu__big a, .menu__side > * { opacity: 0; transform: translateY(24px); }
.menu.is-open .menu__big a, .menu.is-open .menu__side > * { opacity: 1; transform: none; transition: opacity 0.8s var(--ease) calc(0.12s + var(--i, 0) * 0.04s), transform 0.8s var(--ease) calc(0.12s + var(--i, 0) * 0.04s); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(2.25rem, 4vw, 3.25rem)); padding-bottom: clamp(0.75rem, 3vw, 2.75rem); }
.hero__head { display: grid; justify-items: center; text-align: center; gap: 1.125rem; }
.hero__cta .cta__note { max-width: none; }
.hero__h1 { max-width: 19ch; }
.hero__sub { font-size: var(--fs-h3); line-height: 1.25; font-weight: var(--fw-medium); letter-spacing: -0.025em; }
.hero__text { max-width: 43ch; margin-top: -0.75rem; text-wrap: balance; }
.hero__cta { margin-top: 0.5rem; }
/* wide screens: headline on two lines and tighter spacing, so the top of the map shows under the button (D71) */
@media (min-width: 62rem) {
  .hero { padding-top: calc(var(--nav-h) + clamp(1.5rem, 3vh, 2.75rem)); }
  .hero__head { gap: 0.875rem; }
  .hero__h1 { max-width: 23ch; }
  .hero__text { margin-top: -0.625rem; }
}

/* Hero map: one repipe estimate in four states. The markup holds the last one (data-state="4"): that is what shows without
   the script or with reduced motion, with the four states listed under the map. With the script, the scroll moves data-state
   from 1 to 4 and the rules below follow it; .is-pinned holds the block while the states play (wide, tall screens). */
.flow { position: relative; margin-top: clamp(1.25rem, 2.4vw, 1.75rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.flow.is-pinned { padding-bottom: 0; }
/* held under the navigation bar, which stays in view for the whole stretch (initNav), and centered on taller screens */
.flow.is-pinned .flow__pin { position: sticky; top: max(calc(var(--nav-h) + 0.5rem), calc(50vh - 14.375rem)); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ticket { position: relative; z-index: 3; display: flex; align-items: center; gap: 0.75rem; width: 100%; max-width: 37.5rem; min-height: 4rem; margin-inline: auto; padding: 0.5rem 0.5rem 0.5rem 1.125rem;
  background: var(--card); border-radius: var(--r-tile); text-align: left; font-size: var(--fs-small); line-height: 1.35;
  box-shadow: inset 0 0 0 1px var(--line-alpha-strong), 0 20px 40px -28px rgb(var(--tint-shadow) / 0.45); }
.ticket__text { flex: 1; min-width: 0; }
.ticket__tag { flex: none; display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 0.75rem; border-radius: var(--r-chip); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--graphite); font-size: var(--fs-label); font-weight: var(--fw-medium); }

/* one height at every width: the rows, and the band between them that the card moves in, never squeeze the text.
   Rows, from the top: Owner 0.1875 to 3.0625rem, Office / MoreDone / Techs 5.8125 to 8.6875rem, the band 8.6875 to 21.1875rem, the four areas below it. */
.flow__stage { position: relative; width: 100%; max-width: 71.875rem; height: 28.75rem; margin: 0.5rem auto 0; }
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow__lines--m { display: none; }
.flow__lines path { fill: none; stroke: var(--stone); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.flow__lines .is-md { stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 4 4; }
/* the lines the estimate has taken: orange for the step in progress, quieter for the steps already done */
.flow__lines .trace { stroke: var(--graphite); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.35s; }
.flow__lines .trace.is-live, .flow[data-state="2"] [data-seg="a"], .flow[data-state="3"] [data-seg="b"], .flow[data-state="4"] [data-seg="c"] { stroke: var(--orange); stroke-width: 2.5; }
.flow__dot { position: absolute; z-index: 1; left: 0; top: 0; width: 0.75rem; height: 0.75rem; margin: -0.375rem 0 0 -0.375rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--paper), 0 0 0 7px rgb(var(--tint-orange) / 0.18); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.flow__dot.is-on { opacity: 1; }
.node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2;
  display: flex; align-items: center; justify-content: center; width: 9.25rem; height: 2.875rem; border-radius: var(--r-s);
  background: var(--white); border: 1px solid var(--line-strong); font-size: var(--fs-small); line-height: 1.33; font-weight: var(--fw-medium);
  box-shadow: 0 1px 2px rgb(var(--tint-ink) / 0.04); transition: transform 0.35s var(--ease-ui), border-color 0.35s, box-shadow 0.35s var(--ease-ui); }
.node--md { border: 1.5px dashed var(--orange); background: var(--wash-soft); color: var(--orange-deep); }
/* Techs, Calls and Past customers are not part of this example: they step back, their labels stay readable */
.node.is-dim { background: var(--card); border-color: var(--line); color: var(--graphite); box-shadow: none; }
/* the stop the estimate is at: orange and lifted. The stops behind it keep a quieter outline. The nodes never move. */
.flow[data-state="2"] [data-node="md"], .flow[data-state="3"] [data-node="office"], .flow[data-state="4"] [data-node="owner"] { transform: translate(-50%, calc(-50% - 4px)) scale(1.04); border-color: var(--orange); border-style: solid; box-shadow: 0 16px 28px -18px rgb(var(--tint-shadow) / 0.55); }
.flow[data-state="3"] [data-node="md"], .flow[data-state="4"] [data-node="md"] { border-style: solid; }
.flow[data-state="4"] [data-node="office"] { border-color: var(--graphite); }
.tile { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; display: grid; justify-items: center; gap: 0.625rem; width: 8.5rem; }
.tile__icon { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: var(--r-tile); background: var(--white); border: 1px solid var(--line); color: var(--ink);
  transition: transform 0.35s var(--ease-ui), border-color 0.35s, box-shadow 0.35s var(--ease-ui), color 0.35s; }
.tile__icon svg { width: 1.75rem; height: 1.75rem; }
.tile__label { font-size: var(--fs-small); line-height: 1.33; color: var(--graphite); text-align: center; transition: color 0.35s; }
.tile.is-dim .tile__icon { opacity: 0.5; }
.flow[data-state="1"] [data-node="estimates"] .tile__icon, .flow[data-state="4"] [data-node="appts"] .tile__icon { transform: translateY(-4px) scale(1.06); border-color: var(--orange); color: var(--orange-deep); box-shadow: 0 16px 26px -16px rgb(var(--tint-shadow) / 0.5); }
.flow:not([data-state="1"]) [data-node="estimates"] .tile__icon { border-color: var(--graphite); }
.flow [data-node="estimates"] .tile__label, .flow[data-state="4"] [data-node="appts"] .tile__label { color: var(--ink); }

/* what the stage says: the card and the two notes at the nodes. Only the parts of the current state are in the layout, so one caption shows at a time. */
.flow[data-state="1"] .flow__stage [data-s]:not([data-s~="1"]), .flow[data-state="2"] .flow__stage [data-s]:not([data-s~="2"]), .flow[data-state="3"] .flow__stage [data-s]:not([data-s~="3"]), .flow[data-state="4"] .flow__stage [data-s]:not([data-s~="4"]) { display: none; }
.flow.is-scripted .flow__stage [data-s] { animation: cap-in 0.5s var(--ease-ui) backwards; }
/* the notes wait for the card to land; the office answers after the customer has asked */
.flow.is-scripted .flow__stage .fnote { animation-delay: 0.3s; }
.flow.is-scripted .flow__stage [data-s="3"] .fbubble--out { animation: cap-in 0.5s var(--ease-ui) 0.3s backwards; }
@keyframes cap-in { from { opacity: 0; translate: 0 6px; } }
.fnote { position: absolute; z-index: 3; padding: 0.375rem 0.75rem; border-radius: var(--r-chip); text-align: left; font-size: var(--fs-small); line-height: 1.33; font-weight: var(--fw-medium); pointer-events: none; }
.fnote--owner { left: calc(50% + 5.5rem); top: 5.65%; transform: translateY(-50%); white-space: nowrap; background: var(--ink); color: var(--white); }
.fnote--owner::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.5rem; border-radius: 50%; background: var(--orange-light); vertical-align: 0.12em; }
/* MoreDone's own line, in MoreDone's colors, under its node and clear of Office */
.fnote--md { right: calc(50% + 0.75rem); top: 9.4375rem; width: min(14.25rem, calc(26.96% - 5.5rem)); background: var(--wash-soft); color: var(--orange-deep); box-shadow: inset 0 0 0 1.5px var(--orange); }
/* the card: the paper estimate, its status and what is said at this stop. It moves inside the band, beside the line, with a tail toward the node it is at. */
.flow__card { position: absolute; z-index: 3; left: var(--cx); top: var(--cy); width: var(--cw); transform: translateY(var(--ct, 0%)); display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 0.75rem; align-items: start; padding: 0.75rem 0.875rem 0.75rem 0.75rem;
  border-radius: var(--r-tile); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-alpha-strong), 0 20px 40px -28px rgb(var(--tint-shadow) / 0.45); text-align: left; font-size: var(--fs-small); line-height: 1.33;
  transition: left 0.7s var(--ease), top 0.7s var(--ease), width 0.7s var(--ease), transform 0.7s var(--ease); }
.flow[data-state="1"] .flow__card { --cx: calc(37.13% - 12.25rem); --cy: 20.5625rem; --ct: -100%; --cw: 18.75rem; --tx: 12.25rem; }
.flow[data-state="2"] .flow__card { --cx: calc(50% + 0.75rem); --cy: 9.4375rem; --cw: 23rem; --tx: 1.75rem; }
.flow[data-state="3"] .flow__card { --cx: calc(23.04% - 8.125rem); --cy: 9.4375rem; --cw: 22.5rem; --tx: 8.125rem; }
.flow[data-state="4"] .flow__card { --cx: calc(62.87% - 6.25rem); --cy: 20.5625rem; --ct: -100%; --cw: 20.5rem; --tx: 6.25rem; }
.flow__card::before { content: ""; position: absolute; left: calc(var(--tx) - 0.3125rem); top: -0.3125rem; width: 0.625rem; height: 0.625rem; background: var(--card); box-shadow: inset 1px 1px 0 var(--line-alpha-strong); transform: rotate(45deg); }
.flow[data-state="1"] .flow__card::before, .flow[data-state="4"] .flow__card::before { top: calc(100% - 0.3125rem); transform: rotate(225deg); }
.flow__pic picture { display: block; }
.flow__pic img { width: 100%; filter: drop-shadow(0 5px 6px rgb(var(--tint-shadow) / 0.3)); }
.flow__body { display: grid; gap: 0.375rem; justify-items: start; min-width: 0; }
.flow__status { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 1.875rem; padding: 0 0.625rem; border-radius: var(--r-chip); background: var(--ink); color: var(--white); font-size: var(--fs-label); font-weight: var(--fw-medium); }
.flow__status .mark { width: 0.625rem; height: 0.625rem; border-color: rgb(var(--tint-white) / 0.85); }
.flow__status .mark.is-live { border-color: var(--orange-light); border-width: 2px; }
.flow__status .mark--done { background: var(--orange-light); border-color: var(--orange-light); }
.flow__txt { font-weight: var(--fw-medium); white-space: nowrap; }
.flow__sub { margin-top: -0.25rem; color: var(--graphite); }
.fbubble { display: flex; align-items: flex-start; gap: 0.5rem; max-width: 100%; padding: 0.4375rem 0.75rem; border-radius: var(--r-tile) var(--r-tile) var(--r-tile) 3px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fbubble svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--graphite); }
.fbubble--out { display: block; justify-self: end; border-radius: var(--r-tile) var(--r-tile) 3px var(--r-tile); background: var(--wash-soft); box-shadow: inset 0 0 0 1px rgb(var(--tint-orange) / 0.3); }
.fbubble b { display: block; font-weight: var(--fw-medium); color: var(--graphite); }
/* the four states as text. Shown under the map on narrow screens, with reduced motion and without the script; while the block is held it is only read aloud. */
.flow__story { display: grid; gap: 0.625rem; width: 100%; max-width: 37.5rem; margin: clamp(1.25rem, 4vw, 2rem) auto 0; counter-reset: fs; text-align: left; }
.flow__story li { counter-increment: fs; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0.25rem; align-content: start; padding: 0.875rem 1rem; border-radius: var(--r-tile);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-small); line-height: 1.45; color: var(--graphite); transition: box-shadow 0.35s, color 0.35s; }
.flow__story li::before { content: counter(fs); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: var(--fs-label); font-weight: var(--fw-semibold); color: var(--ink); transition: background-color 0.35s, border-color 0.35s, color 0.35s; }
.flow__story li > * { grid-column: 2; }
.flow__story b { color: var(--ink); }
.flow__state { font-size: var(--fs-text); line-height: 1.75rem; }
.flow__win { color: var(--ink); font-weight: var(--fw-medium); }
.flow__story li.is-current { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.flow__story li.is-current::before { background: var(--orange); border-color: var(--orange); color: var(--white); }
html:not(.js) .nav__menu, html:not(.js-on) .dock { display: none; }
html:not(.js) .nav__bar { padding-right: var(--gutter); }
html:not(.js-on) .nav__menu { visibility: hidden; }

/* below the wide layout the map is the small one, whole, with the path drawn; the card and the notes leave it and the list under it tells the four states */
@media not all and (min-width: 62rem) and (min-height: 40rem) {
  .flow__stage { height: auto; aspect-ratio: 340 / 430; max-width: 23rem; }
  .flow__lines--d, .flow__dot, .flow__card, .fnote { display: none; }
  .flow__lines--m { display: block; }
  .node { left: var(--mx); top: var(--my); width: 5.875rem; height: 2.75rem; }
  .tile { left: var(--mx); top: var(--my); width: 8.25rem; transform: translate(-50%, -1.5rem); gap: 0.375rem; }
  .tile__icon { width: 3rem; height: 3rem; }
  .tile__icon svg { width: 1.5rem; height: 1.5rem; }
}
@media (min-width: 62rem) and (min-height: 40rem) {
  /* not held (reduced motion, no script): the four states side by side under the map */
  .flow__story { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 71.875rem; }
  .flow__story li > :not(.flow__state) { grid-column: 1 / -1; }
  .flow.is-pinned .flow__story { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* until the script holds the block the list waits unseen, so it never flashes under the map; if the block is not held within 3 s, the list shows */
@media (min-width: 62rem) and (min-height: 40rem) and (prefers-reduced-motion: no-preference) {
  .js .flow:not(.is-pinned) .flow__story { opacity: 0; animation: failsafe 0.01s 3s forwards; }
}
@media (max-width: 39.99rem) {
  .ticket { padding-left: 0.875rem; }
}
@media (forced-colors: active) {
  .ticket, .ticket__tag, .flow__card, .fbubble, .fnote, .flow__status, .flow__story li { border: 1px solid CanvasText; }
}
@media print {
  .flow.is-pinned .flow__story { position: static; width: 100%; height: auto; margin: 2rem auto 0; overflow: visible; clip-path: none; white-space: normal; }
}

/* ---------- Section 2: Opportunity Review and report ---------- */
/* the title with the founder beside it, then the call on the left and the sample report on its desk on the right */
.review { padding-bottom: 0; }
.review__head { align-items: center; }
.review__head .h2 em { display: block; }
.review__who { display: grid; gap: 1.5rem; }
.review__fact { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.review__fact .num { font-size: var(--fs-numeral); }
.review__fact span:last-child { max-width: 18ch; font-size: var(--fs-body); line-height: 1.35; font-weight: var(--fw-medium); letter-spacing: -0.01em; }
.review__grid { margin: clamp(2.5rem, 6vw, 4.5rem) calc(var(--gutter) * -1) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-rows: auto 1fr; border-top: 1px solid var(--line); }
.review__grid .checks { padding: clamp(2rem, 4vw, 3.25rem) var(--gutter) 0; }
.review__cta { align-self: end; padding: 2rem var(--gutter) clamp(2rem, 4vw, 3.25rem); }
.review__page { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--sand); border-left: 1px solid var(--line); }
.sheet { width: 100%; max-width: 37.5rem; background: var(--white); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
.sheet__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.625rem 1rem; padding: 1.125rem 1.5rem; border-bottom: 1px solid var(--line); }
.sheet__top img { width: 5.75rem; height: auto; }
.sheet__rows { padding: 0.375rem 1.5rem 0.75rem; }
.sheet__rows > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding-block: 0.9375rem; }
.sheet__rows > div + div { border-top: 1px solid var(--line); }
.sheet__rows dt { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--graphite); }
.sheet__rows dd { font-size: var(--fs-text); line-height: 1.45; }
.checks { display: grid; gap: 1.25rem; align-content: start; justify-items: start; }
.checks__list { display: grid; gap: 1rem; }
.checks__list li { display: grid; grid-template-columns: auto 1fr; gap: 0.875rem; align-items: start; font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -0.01em; }
.checks__list .mark { margin-top: 0.36em; }
.motion-off .checks .mark, html:not(.js) .checks .mark { background: var(--orange); border-color: var(--orange); }
.founder { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1.5rem; align-content: center; }
.founder .portrait { grid-row: 1 / span 2; align-self: center; }
.founder__quote { align-self: end; font-size: var(--fs-quote); line-height: 1.16; text-wrap: balance; }
.portrait { flex: none; width: 6.5rem; height: 6.5rem; border-radius: 50%; overflow: hidden; background: var(--sand); box-shadow: 0 0 0 5px var(--card), 0 0 0 6px var(--line-strong); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 61.99rem) {
  .review .review__head { row-gap: 2.25rem; }
  .review__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .review__grid .checks { padding-bottom: clamp(2rem, 4vw, 3.25rem); }
  .review__page { grid-column: auto; grid-row: auto; order: -1; border-left: 0; border-bottom: 1px solid var(--line); }
  .review__cta { justify-items: center; text-align: center; padding-top: clamp(2rem, 4vw, 3.25rem); }
}
@media (min-width: 48rem) and (max-width: 61.99rem) {
  /* tablet: the founder and the 30 minutes share one row */
  .review__who { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 4vw, 2.5rem); }
  .review__fact { align-self: stretch; padding: 0 0 0 clamp(1.5rem, 4vw, 2.5rem); border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 47.99rem) {
  /* phone: a small portrait beside the name, then the sentence */
  .founder { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.875rem; row-gap: 1.125rem; }
  .founder .portrait { grid-row: 1; width: 3.5rem; height: 3.5rem; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line-strong); }
  .founder .founder__name { grid-row: 1; grid-column: 2; align-self: center; margin-top: 0; }
  .founder .founder__quote { grid-row: 2; grid-column: 1 / -1; }
  .review__page { padding: 1.25rem 0.75rem; }
  .sheet__rows > div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
}
.founder__name { margin-top: 0.75rem; align-self: start; font-size: var(--fs-small); color: var(--graphite); }
.num { font-size: var(--fs-stat); line-height: 0.85; font-weight: var(--fw-medium); letter-spacing: -0.06em; color: var(--orange); font-variant-numeric: tabular-nums; }

/* ---------- Section 3: a straight answer on AI ---------- */
.trio { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); }
.trio > li { padding: 0 var(--gutter) clamp(1.75rem, 3vw, 2.5rem); display: grid; align-content: start; gap: 0.625rem; }
.trio > li + li { border-left: 1px solid var(--line); }
.trio__art { position: relative; height: 10.5rem; margin: 0 calc(var(--gutter) * -1) 1.25rem; border-bottom: 1px solid var(--line); background: var(--card); overflow: hidden; }
.trio__n { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.trio h3 { font-size: var(--fs-h4); line-height: 1.3; font-weight: var(--fw-medium); letter-spacing: -0.02em; }
.trio p { color: var(--graphite); }
.after-note { margin: clamp(2.5rem, 5vw, 4rem) auto 0; display: grid; justify-items: center; gap: 0.75rem; max-width: 60ch; text-align: center; color: var(--ink-soft); text-wrap: balance; }

/* mini flow vignettes */
.mini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0; padding-inline: 1rem; }
.mini__t { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: var(--r-tile); background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.mini__t svg { width: 1.5rem; height: 1.5rem; }
.mini__t--md { border: 1.5px dashed var(--orange); background: var(--wash-soft); color: var(--orange-deep); }
.mini__t--end { border-color: var(--ink); }
.mini__l { position: relative; flex: 0 1 4.25rem; min-width: 1.5rem; height: 1.25px; background: var(--stone); overflow: hidden; }
.mini__l--dash { height: 0; background: none; border-top: 1.25px dashed var(--stone); overflow: visible; }
.mini__l--dash::after { top: -2px; }
.mini__l::after { content: ""; position: absolute; top: -1px; left: 0; width: 1.125rem; height: 3px; border-radius: 2px; background: var(--orange); transform: translateX(-120%); }
.is-live .mini__l::after { animation: mini-run 2.6s var(--d, 0s) cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes mini-run { 0% { transform: translateX(-120%); } 38%, 100% { transform: translateX(480%); } }
.is-live .mini__t--ring { animation: mini-ring 2.6s ease-in-out; }
@keyframes mini-ring { 0%, 30%, 100% { transform: rotate(0); } 6%, 18% { transform: rotate(-9deg); } 12%, 24% { transform: rotate(9deg); } }
.mini--stack { gap: 0; }
.mini__sheet { position: relative; width: 8.25rem; height: 7.5rem; border-radius: var(--r-chip); background: var(--white); border: 1px solid var(--line); padding: 0.75rem 0.75rem; display: grid; align-content: start; gap: 0.5rem; }
.mini__sheet b { font-size: var(--fs-small); line-height: 1.2; font-weight: var(--fw-medium); white-space: nowrap; margin-bottom: 0.125rem; }
.mini__sheet i { display: block; height: 3px; border-radius: 2px; background: var(--line-strong); transform-origin: 0 50%; }
.mini__sheet i:nth-child(3) { width: 82%; } .mini__sheet i:nth-child(4) { width: 64%; } .mini__sheet i:nth-child(5) { width: 40%; }
.mini__sheet--back { margin-right: -1.75rem; transform: rotate(-6deg) translateY(-4px); }
.mini__sheet--front { z-index: 1; transform: translateY(6px); box-shadow: 0 14px 24px -18px rgb(var(--tint-shadow) / 0.5); }
.is-live .mini__sheet--front i { animation: mini-write 3.5s var(--ease) both; }
.is-live .mini__sheet--front i:nth-child(2) { animation-delay: 0.15s; } .is-live .mini__sheet--front i:nth-child(3) { animation-delay: 0.3s; }
.is-live .mini__sheet--front i:nth-child(4) { animation-delay: 0.45s; } .is-live .mini__sheet--front i:nth-child(5) { animation-delay: 0.6s; }
@keyframes mini-write { 0% { transform: scaleX(0); } 22%, 100% { transform: scaleX(1); } }

/* ---------- Section 4: CASH, one path ---------- */
/* Four blocks, one structure. The text: the letter, its name, the question we ask. The flow beside it: a moment from a shop
   under its picture, what we do about it (the one dark card), one illustrative example. From 48rem up the text is held while its flow scrolls by. */
.head--cash .h2 { max-width: 22ch; }
.head--cash .h2 em { display: block; }
.head--cash .h3 { max-width: 30ch; }
.head--cash .lead { max-width: 46ch; margin-top: -0.75rem; }
.story { margin: clamp(3rem, 7vw, 6rem) calc(var(--gutter) * -1) 0; display: grid; }
.step { display: grid; gap: 1.75rem; padding: clamp(2.25rem, 4.5vw, 3.5rem) var(--gutter); }
.step:first-child { padding-top: 0; }
.step:last-child { padding-bottom: 0; }
.step + .step { border-top: 1px solid var(--line); }
.step__text { display: grid; justify-items: start; gap: 0; }
.step__letter { font-size: var(--fs-counter); line-height: 0.85; font-weight: var(--fw-medium); letter-spacing: -0.07em; color: var(--orange); margin-left: -0.04em; }
.step__title { margin-top: 1.25rem; font-size: var(--fs-title); line-height: 1.05; font-weight: var(--fw-medium); letter-spacing: -0.04em; }
.step__line { margin-top: 0.75rem; max-width: 34ch; color: var(--graphite); font-size: var(--fs-lead); }
.step__ask { margin-top: 1.5rem; max-width: 30rem; display: grid; gap: 0.375rem; }
.step__ask .label { color: var(--graphite); }
.step__ask .said { font-size: var(--fs-quote); line-height: 1.16; text-wrap: balance; }
.step__bars { margin-top: 1.875rem; display: flex; gap: 6px; width: 100%; max-width: 18.75rem; }
.step__bars i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-alpha-strong); position: relative; overflow: hidden; }
.step__bars i::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease-ui); }
.step__bars i.is-on::after { transform: scaleX(1); }
.step__bars i:nth-child(2)::after { transition-delay: 0.08s; } .step__bars i:nth-child(3)::after { transition-delay: 0.16s; } .step__bars i:nth-child(4)::after { transition-delay: 0.24s; }
.step__flow { display: grid; min-width: 0; }
.panel { background: var(--card); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line-alpha), var(--shadow); overflow: hidden; }
.panel__img { aspect-ratio: 5 / 2; background: var(--craft); overflow: hidden; }
.panel__img picture { display: block; height: 100%; }
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
/* under each picture, the moment in a shop that the letter is about: an open ring, because nobody has it yet */
.panel__now { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; padding: 1.125rem 1.5rem 1.25rem; font-size: var(--fs-lead); line-height: 1.35; font-weight: var(--fw-medium); letter-spacing: -0.015em; }
.panel__now .mark { margin-top: 0.24em; }

@media (min-width: 48rem) {
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
}
@media (min-width: 48rem) and (min-height: 36rem) {
  .step__text { position: sticky; top: max(5.5rem, calc(50vh - 15rem)); }
}
/* arrivals, once the script runs: the bars fill up to the letter when its text comes in, the picture settles when its card does */
.js-on .panel__img img { transition: transform 1.6s var(--ease); }
.js-on .panel[data-reveal]:not(.is-in) .panel__img img { transform: scale(1.08); }
.js-on .step__text[data-reveal]:not(.is-in) .step__bars i::after { transform: scaleX(0); }
.motion-off .panel__img img, .late .panel__img img { transform: none !important; transition: none !important; }
.motion-off .step__bars i.is-on::after, .late .step__bars i.is-on::after { transform: scaleX(1) !important; transition: none !important; }


/* ---------- Section 4, the cards of a block: what we do (the one dark card), then one illustrative example ---------- */
.tcard { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-alpha); }
.tcard--ink { background: var(--ink); color: var(--white); box-shadow: 0 30px 50px -30px rgb(var(--tint-ink) / 0.6); padding: clamp(1.5rem, 2.5vw, 2rem); gap: 0.875rem; }
.tcard--ink h4 { font-size: var(--fs-h3); line-height: 1.15; font-weight: var(--fw-medium); letter-spacing: -0.03em; text-wrap: balance; }
.tcard--ink p { color: var(--on-ink); font-size: var(--fs-text); line-height: 1.5; }
.tcard__label { font-size: var(--fs-label); font-weight: var(--fw-medium); color: var(--graphite); }
.join { position: relative; width: clamp(1.25rem, 3vw, 3rem); height: 1.25px; background: var(--line-strong); overflow: hidden; }
.join::after { content: ""; position: absolute; top: -1px; left: 0; width: 60%; height: 3px; border-radius: 2px; background: var(--orange); transform: translateX(-120%); }
@keyframes join-run { 0% { transform: translateX(-120%); opacity: 0; } 15% { opacity: 1; } 60%, 100% { transform: translateX(180%); opacity: 0; } }
/* inside a block the joins run down: from the moment, to what we do, to the example. Each one runs once as it comes on screen */
.step__flow > .join { justify-self: center; width: 1.25px; height: 1.5rem; }
.step__flow > .join::after { left: -1px; top: 0; width: 3px; height: 60%; transform: translateY(-120%); }
.step__flow > .join.is-live::after { animation: join-run-v 2.4s 0.35s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes join-run-v { 0% { transform: translateY(-120%); opacity: 0; } 15% { opacity: 1; } 60%, 100% { transform: translateY(180%); opacity: 0; } }
.log { display: grid; gap: 0.625rem; font-size: var(--fs-small); line-height: 1.4; }
.log li { display: grid; grid-template-columns: auto 1fr; gap: 0.625rem; align-items: start; }
.log .mark { width: 0.6875rem; height: 0.6875rem; margin-top: 0.32em; }
.log__state { color: var(--graphite); }
.sms { display: grid; gap: 0.5rem; justify-items: start; }
.sms__from { font-size: var(--fs-small); color: var(--graphite); }
.sms__bubble { max-width: 20rem; padding: 0.75rem 0.9375rem; border-radius: var(--r-tile) var(--r-tile) var(--r-tile) 0.25rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-small); line-height: 1.45; }

/* ---------- Section 4, the close: the three people of a shop, what changes for each, and where technology stands ---------- */
.closing { margin: clamp(3.5rem, 8vw, 7rem) auto 0; max-width: 56rem; display: grid; gap: 2rem; justify-items: center; text-align: center; }
.crew { --h: clamp(min(7.5rem, 30vw), 31vw, 18rem); max-width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.25rem, 2vw, 1.5rem); padding-top: calc(var(--h) * 0.12); }
.crew__pair { position: relative; height: var(--h); width: calc(var(--h) * 0.74); }
.crew__person { position: absolute; left: 0; bottom: 0; z-index: 2; height: 100%; }
.crew__person img { height: 100%; width: auto; max-width: none; }
/* the tool sits behind the right shoulder; --t runs 0 to 1 with the scroll (1 without the script) */
.crew__tool { position: absolute; z-index: 1; right: 6%; top: 0; height: 40%; transform-origin: 50% 100%;
  transform: translateY(calc((1 - var(--t, 1)) * 58% - 16%)) rotate(calc(var(--t, 1) * 7deg)); opacity: var(--t, 1); }
.crew__tool img { height: 100%; width: auto; max-width: none; }
.motion-off .crew__tool { transform: translateY(-16%) rotate(7deg); opacity: 1; }
/* one line for each of them, in the order they stand. From 48rem up each line sits under its person */
.roles { width: 100%; max-width: 30rem; margin-top: -0.5rem; display: grid; }
.roles li { padding-block: 0.875rem; color: var(--ink-soft); text-wrap: balance; }
.roles li + li { border-top: 1px solid var(--line); }
.roles strong { color: var(--ink); }
@media (min-width: 48rem) {
  .crew, .roles { width: 100%; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 16rem)); justify-content: center; column-gap: clamp(1rem, 4vw, 3rem); }
  .crew { justify-items: center; }
  .roles { margin-top: -0.75rem; }
  .roles li { padding-block: 0; }
  .roles li + li { border-top: 0; }
}

.closing__line { font-size: var(--fs-title); line-height: 1.08; letter-spacing: -0.04em; font-weight: var(--fw-medium); text-wrap: balance; }

/* ---------- Section 5: how ---------- */
.steps { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-inline: calc(var(--gutter) * -1); }
.steps > li { display: flex; flex-direction: column; gap: 0.875rem; padding: clamp(1.75rem, 3vw, 2.5rem) var(--gutter) clamp(1.5rem, 2.5vw, 2rem); }
.steps > li + li { border-left: 1px solid var(--line); }
.steps__n { font-size: var(--fs-numeral); line-height: 0.85; font-weight: var(--fw-medium); letter-spacing: -0.06em; color: var(--orange); font-variant-numeric: tabular-nums; margin-bottom: 0.75rem; }
.steps h3 { font-size: var(--fs-h4); line-height: 1.25; font-weight: var(--fw-medium); letter-spacing: -0.02em; }
.steps p strong { color: var(--ink); font-weight: var(--fw-medium); white-space: nowrap; }
@media (min-width: 68.01rem) {
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); }
  .steps h3 { min-height: 2.5em; }
}
.steps p { color: var(--graphite); }
.steps dl { margin-top: auto; padding-top: 0.75rem; display: grid; }
.steps dl > div { display: grid; gap: 0.125rem; padding-block: 0.75rem; border-top: 1px solid var(--line); }
.steps dt { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--graphite); }
.steps dd { font-size: var(--fs-text); line-height: 1.4; text-wrap: balance; }
.timeline { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.5rem; }
.timeline__bar { --tl: 2rem; position: relative; height: calc(var(--tl) + 3.5rem); }
.timeline__bar::before, .timeline__fill { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--tl) + 0.4375rem); height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--line-strong); }
.timeline__fill { background: var(--orange); transform: scaleX(var(--p, 1)); transform-origin: 0 50%; }
.timeline__pt { position: absolute; top: var(--tl); left: var(--at); display: grid; justify-items: center; gap: 0.625rem; transform: translateX(-50%); }
.timeline__head { position: absolute; top: calc(var(--tl) + 0.4375rem); left: calc(var(--p, 1) * 100%); z-index: 2; width: 0.625rem; height: 0.625rem; margin: -0.3125rem 0 0 -0.3125rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--orange); opacity: 0; transition: opacity 0.25s; }
.timeline.is-moving .timeline__head { opacity: 1; }
.timeline__phase { position: absolute; top: 0; left: var(--from); width: calc(var(--to) - var(--from)); padding-inline: 0.5rem; text-align: center; font-size: var(--fs-small); line-height: 1.33; font-weight: var(--fw-medium); color: var(--graphite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.4s; }
.timeline__phase.is-on { color: var(--orange-deep); }
.timeline__pt--start { transform: none; justify-items: start; }
.timeline__pt--end { left: auto; right: 0; transform: none; justify-items: end; }
.timeline__pt .mark { background: var(--paper); }
.timeline__pt .mark.is-done { background: var(--orange); }
.timeline__pt b { font-size: var(--fs-small); font-weight: var(--fw-medium); white-space: nowrap; color: var(--graphite); transition: color 0.4s; }
.timeline__pt .mark { transition: background-color 0.3s, border-color 0.3s, transform 0.5s var(--ease); }
.timeline__pt.is-reached b, .timeline__pt--start b, html:not(.js-on) .timeline__pt b, .motion-off .timeline__pt b { color: var(--ink); }
.timeline__pt.is-reached .mark { transform: scale(1.25); }
.timeline p { max-width: 58ch; color: var(--ink-soft); }
@media (min-width: 68rem) { .timeline p { max-width: none; white-space: nowrap; } }
.promise { --pad: clamp(1.75rem, 4vw, 3.5rem); margin-top: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding: var(--pad); border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.promise__n { display: grid; justify-items: start; gap: 0.5rem; }
.promise__n .num { font-size: var(--fs-counter); }
.promise__n span:last-child { font-size: var(--fs-lead); font-weight: var(--fw-medium); }
.promise__body { display: grid; gap: 1.25rem; justify-items: start; }
.promise__body p { max-width: 52ch; color: var(--graphite); }

/* ---------- Section 6: work ---------- */
.case { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.case__body { display: grid; align-content: center; gap: 1.25rem; padding: clamp(1.5rem, 3.6vw, 3rem); }
.case__head { grid-column: 1 / -1; padding: 1.125rem clamp(1.5rem, 3.6vw, 3rem); border-bottom: 1px solid var(--line); font-size: var(--fs-body); line-height: 1.33; font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
.case__what { font-weight: var(--fw-regular); color: var(--graphite); }
.case__result { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.045em; font-weight: var(--fw-medium); text-wrap: balance; }
.case__body p { color: var(--graphite); max-width: 46ch; }
.case__body p:not(.case__result) { color: var(--ink); font-size: var(--fs-lead); line-height: 1.4; max-width: 40ch; }
.case__body .case__result { color: var(--ink); max-width: none; }
.case__quote { display: grid; gap: 0.625rem; }
.case__quote blockquote { font-size: var(--fs-quote); line-height: 1.2; color: var(--ink); }
.case__quote figcaption { font-size: var(--fs-small); color: var(--graphite); }
.case__art { position: relative; min-height: 19rem; background: var(--sand); border-left: 1px solid var(--line); display: grid; place-items: center; padding: 1.5rem; }
.routing { display: grid; justify-items: center; gap: 0; width: 100%; max-width: 21rem; }
.routing__node { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 2.875rem; width: 100%; max-width: 15rem; padding: 0.5rem 1rem; border-radius: var(--r-s); background: var(--white); border: 1px solid var(--line-strong); font-size: var(--fs-small); font-weight: var(--fw-medium); text-align: center; }
.routing__node svg { width: 1.25rem; height: 1.25rem; flex: none; }
.routing__node--done { border-color: var(--ink); }
.routing__v { position: relative; width: 1.25px; height: 2rem; background: var(--stone); overflow: hidden; }
.routing__v::after { content: ""; position: absolute; left: -1px; top: 0; width: 3px; height: 0.875rem; border-radius: 2px; background: var(--orange); transform: translateY(-120%); }
.is-live .routing__v::after { animation: v-run 2.8s var(--d, 0s) cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes v-run { 0% { transform: translateY(-120%); } 40%, 100% { transform: translateY(260%); } }
.routing__chip { margin-top: 0.875rem; padding: 0.3125rem 0.625rem; border-radius: var(--r-chip); background: var(--ink); color: var(--white); font-size: var(--fs-label); font-weight: var(--fw-medium); }
.routing__chip::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.5rem; border-radius: 50%; background: var(--orange-light); vertical-align: 0.1em; }
/* the one example under the case: the same card turned around, drawing on the left and words on the right */
.demo { margin-top: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.demo__stage { position: relative; min-height: 19rem; background: var(--sand); border-right: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; padding: clamp(0.875rem, 2.4vw, 1.75rem); }
.demo__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo__stage:has(> video) { aspect-ratio: 16 / 10; min-height: 0; padding: 0; }
.demo__body { display: grid; align-content: center; justify-items: start; gap: 0.75rem; padding: clamp(1.5rem, 3.6vw, 3rem); }
.demo__body h3 { font-size: var(--fs-title); line-height: 1.05; font-weight: var(--fw-medium); letter-spacing: -0.04em; }
.demo__body p:not(.pill) { color: var(--graphite); max-width: 46ch; }
.dflow { width: 100%; max-width: 31rem; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0; }
.dform { background: var(--white); border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line); padding: 0.875rem; display: grid; gap: 0.3125rem; }
.dform span { font-size: var(--fs-small); line-height: 1.2; font-weight: var(--fw-medium); }
.dform span:not(:first-child) { margin-top: 0.3125rem; }
.dform i { display: block; height: 1.25rem; border-radius: var(--r-chip); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.dform i::after { content: ""; position: absolute; left: 0.4375rem; top: 50%; height: 3px; margin-top: -1.5px; width: var(--w, 50%); border-radius: 2px; background: var(--stone); transform: scaleX(0); transform-origin: 0 50%; }
.dform b { display: block; height: 1.5rem; margin-top: 0.5rem; border-radius: var(--r-chip); background: var(--orange); }
.dflow__mid { display: grid; justify-items: center; gap: 0.375rem; padding-inline: 0.25rem; }
.dflow__mid .join { width: clamp(1.5rem, 5vw, 3rem); }
.dright { display: grid; gap: 0.5rem; }
.dright .routing__node { max-width: none; min-height: 2.5rem; padding: 0.375rem 0.625rem; }
.dright .sms__bubble { padding: 0.5rem 0.75rem; }
.demo.is-playing .dform i::after { animation: d-type 4s var(--d, 0s) var(--ease) both; }
@keyframes d-type { 0% { transform: scaleX(0); } 10%, 100% { transform: scaleX(1); } }
.demo.is-playing .dform b { animation: d-press 4s ease-in-out both; }
@keyframes d-press { 0%, 26%, 34%, 100% { transform: scale(1); } 30% { transform: scale(0.94); } }
.demo.is-playing .dflow .join::after { animation: join-run 3.4s 1.26s cubic-bezier(0.4, 0, 0.2, 1) both; }
.demo.is-playing .d-step { animation: d-in 4s var(--d, 0s) var(--ease) both; }
@keyframes d-in { 0%, 34% { opacity: 0; transform: translateY(6px); } 42%, 100% { opacity: 1; transform: none; } }

/* ---------- Section 7: FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 3.75rem); align-items: start; }
.faq__head { display: grid; gap: 1.75rem; justify-items: start; position: sticky; top: 6.5rem; }
.faq__item { border-bottom: 1px solid var(--line-alpha-strong); }
.faq__item:first-child { border-top: 1px solid var(--line-alpha-strong); }
.faq__q { font-size: var(--fs-h5); line-height: 1.3; font-weight: var(--fw-medium); letter-spacing: -0.02em; }
.faq__q button { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%; padding: 1.5rem 0; border: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; cursor: pointer; }
html:not(.js-on) .faq__q button { cursor: default; }
html:not(.js-on) .faq__icon { display: none; }
.faq__icon { position: relative; flex: none; width: 2rem; height: 2rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-alpha-strong); transition: background-color 0.4s, box-shadow 0.4s, color 0.4s, transform 0.5s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform 0.5s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q button[aria-expanded="true"] .faq__icon { background: var(--orange); box-shadow: none; color: var(--white); transform: rotate(180deg); }
.faq__q button[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__q button[aria-expanded="false"]:hover .faq__icon { box-shadow: inset 0 0 0 1px var(--ink); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 3.25rem 1.625rem 0; color: var(--graphite); max-width: 62ch; }

/* ---------- Section 8: book ---------- */
.book { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border-radius: var(--r-l); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -60px rgb(var(--tint-ink) / 0.6); }
.book__pitch { --pad: clamp(1.75rem, 4vw, 3.5rem); position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: var(--pad); background: var(--ink); color: var(--white); overflow: hidden; }
.book__pitch .h2 em { color: var(--orange-light); }
.book__pitch p { color: var(--on-ink); max-width: 40ch; }
.book__pitch .book__fit { font-size: var(--fs-small); line-height: 1.47; color: var(--on-ink-muted); max-width: 44ch; }
.book__who { display: flex; align-items: center; gap: 1rem; }
.book__who .portrait { width: 4.5rem; height: 4.5rem; box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px rgb(var(--tint-white) / 0.3); }
.book__who p { color: var(--white); font-size: var(--fs-small); line-height: 1.4; }
.book__who span { display: block; color: var(--on-ink-muted); }
.book__main { display: grid; gap: 1.5rem; }
/* The outline sits in the flow, under the text, so the two paragraphs never run over it. Same size and place as when it was absolute: 185% of the panel, 1.75rem below its edge. */
.book__outline { flex: none; align-self: flex-start; width: calc(185% + 3.7 * var(--pad)); max-width: none; margin-top: auto; margin-bottom: calc(-1.75rem - var(--pad)); pointer-events: none; }
.book__outline path { fill: none; stroke: rgb(var(--tint-white) / 0.16); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.book__outline .wm-dot { fill: var(--orange-light); }
.form { display: grid; gap: 1.125rem; padding: clamp(1.5rem, 3.6vw, 3rem); align-content: center; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; }
.form__status { font-size: var(--fs-small); line-height: 1.47; padding: 0.875rem 1rem; border-radius: var(--r-s); background: var(--wash); color: var(--ink); }
.form__status:empty { display: none; }
.form__late { display: none; }
html.js:not(.js-on) .form__late { display: block; opacity: 0; animation: failsafe 0.01s 3s forwards; }
.form__foot { display: grid; gap: 0.75rem; justify-items: start; margin-top: 0.25rem; }
.form__foot .btn { width: 100%; }
.form__foot p { font-size: var(--fs-small); color: var(--graphite); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 1; padding-inline: var(--inset); }
.foot__in { max-width: var(--max); margin-inline: auto; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; padding: clamp(2.5rem, 5vw, 3.75rem) var(--gutter); }
.foot__brand { display: grid; gap: 1rem; justify-items: start; }
.foot__brand p { color: var(--graphite); max-width: 30ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--fs-text); text-decoration: none; }
.foot__mark { border-top: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 0; overflow: hidden; }
.foot__mark svg { width: 100%; height: auto; overflow: visible; }
.foot__mark path { fill: none; stroke: rgb(var(--tint-ink) / 0.3); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.foot__mark .wm-dot { fill: var(--orange); }
.js .foot__mark.mark-ready path, .js .foot__mark.mark-ready .wm-dot { transform: translateY(105%); transition: transform 1.4s var(--ease) calc(var(--i) * 0.05s); }
.js .foot__mark.mark-ready.is-seen path, .js .foot__mark.mark-ready.is-seen .wm-dot { transform: none; }
.foot__base { border-top: 1px solid var(--line); margin-top: clamp(1rem, 3vw, 2rem); padding: 1.25rem var(--gutter) 1.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; justify-content: space-between; font-size: var(--fs-small); color: var(--graphite); }
.foot__base a { color: var(--ink); }

/* the booking widget (D92): a small floating button in the bottom-right corner, on every screen, from the end of the hero until the booking section */
.dock { position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: 0; z-index: 40; display: block; transform: translateY(calc(100% + 2rem)); transition: transform 0.5s var(--ease); }
.dock.is-on { transform: translateY(calc(-1 * clamp(1rem, 2.5vw, 1.75rem) - env(safe-area-inset-bottom))); }
.dock__btn { gap: 0.625rem; padding-left: 0.375rem; box-shadow: var(--shadow); }
.dock__face { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgb(var(--white-rgb) / 0.9); }
/* the cookie bar (D89): while it shows, the page keeps its height free at the bottom and the dock sits above it, so nothing is covered */
body { padding-bottom: var(--consent-h, 0px); }
.dock { bottom: var(--consent-h, 0px); }
/* iubenda's floating box kept small, in the bottom-left corner; its "customize" button is reached from the footer link "Cookie preferences" instead (D89) */
html body #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-container .iubenda-cs-opt-group-custom,
html body #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-container button.iubenda-cs-customize-btn { display: none !important; }
@media (min-width: 40rem) {
  html body #iubenda-cs-banner.iubenda-cs-default-floating .iubenda-cs-container { width: 21.25rem !important; max-width: 21.25rem !important; }
}

/* ---------- Simple pages ---------- */
.simple { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.simple__main { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) var(--inset) var(--sec); position: relative; z-index: 1; }
.simple__head { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.simple__head .lead { max-width: 46ch; }
/* legal pages (D87): the long text sits under the head, with section titles a step smaller than .rich's */
.rich--legal { margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.rich--legal h2 { margin-top: 1.25rem; font-size: var(--fs-h3); line-height: 1.15; }
.cal { margin: clamp(2rem, 5vw, 3.5rem) auto 0; max-width: 60rem; min-height: 34rem; border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: grid; }
.cal iframe { width: 100%; min-height: 44rem; border: 0; }
/* with Cal.com's own inline embed (D91) the calendar brings its own panel: no card around it, and no fixed height */
.cal:has(#my-cal-inline-opportunity-review) { min-height: 0; background: none; box-shadow: none; overflow: visible; }
.cal #my-cal-inline-opportunity-review iframe { min-height: 0; }
.cal__fallback { display: grid; gap: 1rem; place-content: center; justify-items: center; text-align: center; padding: 2.5rem 1.5rem; }
.cal__fallback p { max-width: 44ch; color: var(--graphite); }
.under { margin: 1.75rem auto 0; max-width: 52ch; text-align: center; color: var(--graphite); }

/* ---------- Motion: reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1.1s var(--ease) calc(var(--ri, 0) * 0.08s), transform 1.2s var(--ease) calc(var(--ri, 0) * 0.08s); }
.js [data-split] { visibility: hidden; }
.js [data-split].split-ready { visibility: visible; }
.w { display: inline-block; }
.js [data-split].split-ready .w { opacity: 0; transform: translateY(30%); filter: blur(6px); }
.js [data-split].split-ready.is-in .w { opacity: 1; transform: none; filter: blur(0); transition: opacity 0.6s var(--ease) calc(var(--i) * 0.025s), transform 0.7s var(--ease) calc(var(--i) * 0.025s), filter 0.7s var(--ease) calc(var(--i) * 0.025s); }
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes word-in { from { opacity: 0; transform: translateY(35%); filter: blur(10px); } }
@keyframes stage-in { from { opacity: 0; transform: scale(0.96); } }
.js .hero__h1 .w { animation: word-in 1s var(--ease) calc(var(--i) * 0.035s) backwards; }
.js [data-hero-in] { animation: rise-in 1s var(--ease) calc(0.1s + var(--hi, 0) * 0.06s) backwards; }
.js .flow__stage { animation: stage-in 1.4s var(--ease) 0.35s backwards; }
/* failsafe: if the script never starts, show everything */
@keyframes failsafe { to { opacity: 1; transform: none; visibility: visible; filter: none; } }
.js:not(.js-on) [data-reveal], .js:not(.js-on) [data-split], .js:not(.js-on) [data-rows] .sheet__rows > div { animation: failsafe 0.01s 3s forwards; }
/* the script started late, after the failsafe: everything stays as shown, no entrance replays */
.late [data-reveal], .late [data-split] .w, .late [data-rows] .sheet__rows > div { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
.late [data-split] { visibility: visible !important; }

/* motion off: reduced motion. Everything in its final state. */
.motion-off [data-reveal], .motion-off [data-split] .w, .motion-off .foot__mark path, .motion-off .foot__mark .wm-dot { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
.motion-off [data-hero-in], .motion-off .flow__stage, .motion-off .hero__h1 .w { animation: none !important; }
.motion-off [data-split] { visibility: visible !important; }
.motion-off .mini__l::after, .motion-off .join::after, .motion-off .routing__v::after, .motion-off .mini__t--ring, .motion-off .mini__sheet i, .motion-off .dform i::after, .motion-off .dform b, .motion-off .d-step { animation: none !important; }
.motion-off .dform i::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .mini__l::after, .join::after, .routing__v::after, .mini__t--ring, .mini__sheet i, .dform i::after, .dform b, .d-step { animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Responsive ---------- */
@media (max-width: 68rem) {
  .nav__links { display: none; }
  .nav__links + .nav__cta { margin-left: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > li:nth-child(3) { border-left: 0; }
  .steps > li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 61.99rem) {
  .head--split { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
  html { scroll-padding-bottom: 5rem; }
  .dflow__mid .join { width: clamp(1.5rem, 5vw, 3rem); height: 1.25px; }
  .dflow__mid .join::after { left: 0; top: -1px; width: 60%; height: 3px; transform: translateX(-120%); }
  .faq__head { display: contents; }
  .faq__head .h2 { order: 1; }
  .faq__list { order: 2; }
  .faq__head .cta { order: 3; }
  .promise { grid-template-columns: minmax(0, 1fr); }
  .case { grid-template-columns: minmax(0, 1fr); }
  .case__art { border-left: 0; border-top: 1px solid var(--line); min-height: 0; padding-block: 2rem; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .book { grid-template-columns: minmax(0, 1fr); }
  .book__outline { display: none; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo__stage { min-height: 17rem; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 47.99rem) {
  :root { --inset: 0.75rem; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio > li + li { border-left: 0; border-top: 1px solid var(--line); }
  .trio__art { display: none; }
  .trio > li { padding-top: 1.5rem; }
  .menu__in { grid-template-columns: minmax(0, 1fr); }
  .foot__top { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .timeline__pt--start b { display: none; }
  .timeline__bar { --tl: 3.25rem; }
  .timeline__phase { white-space: normal; padding-inline: 0.125rem; }
  .timeline__phase:first-child { text-align: left; padding-left: 0; }
  .timeline__pt:not(.timeline__pt--end) { transform: none; justify-items: start; }
}
@media (max-width: 39.99rem) {
  .nav__cta { display: none; }
  .nav__menu { margin-left: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps > li + li { border-left: 0; border-top: 1px solid var(--line); }
  .faq__a p { padding-right: 0; }
  .faq__q { font-size: var(--fs-body); }
  .faq__q button { padding-block: 1.25rem; }
  .dflow { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; max-width: 17rem; }
  .dflow__mid .join { width: 1.25px; height: 1rem; }
  .dflow__mid .join::after { left: -1px; top: 0; width: 3px; height: 60%; transform: translateY(-120%); }
  .demo.is-playing .dflow .join::after { animation-name: join-run-v; }
  .demo__stage { min-height: 0; padding-block: 1.5rem; }
  .foot__links { gap: 0 1.25rem; }
}
@media (max-width: 24rem) {
  .node { width: 5.25rem; }
}
@media (max-width: 27rem) {
  .timeline__pt b { white-space: normal; max-width: 6rem; }
  .timeline__pt--end b { text-align: right; }
  .timeline__bar { height: calc(var(--tl) + 4.75rem); }
}
@media (max-width: 22.5rem) {
  .hero { padding-top: calc(var(--nav-h) + 1.25rem); }
  .hero__head { gap: 0.75rem; }
  .hero__text { margin-top: -0.375rem; }
  .logo svg { width: 7.5rem; }
}
@media (forced-colors: active) {
  .nav__menu span, .faq__icon::before, .faq__icon::after { forced-color-adjust: none; background: CanvasText; }
  .faq__q button[aria-expanded="true"] .faq__icon::before, .faq__q button[aria-expanded="true"] .faq__icon::after { background: HighlightText; }
  .faq__q button[aria-expanded="true"] .faq__icon { forced-color-adjust: none; background: Highlight; }
  .node, .tile__icon, .panel, .tcard, .sheet, .case, .demo, .book, .promise { border: 1px solid CanvasText; }
}
@media print {
  .nav, .dock, .rails { display: none !important; }
  .js [data-reveal], .js [data-hero-in], .js [data-split], .js [data-split] .w, .js .flow__stage { opacity: 1 !important; transform: none !important; visibility: visible !important; filter: none !important; }
  .flow { height: auto !important; }
  .flow__pin { position: static !important; }
  .step__text { position: static !important; }
}

/* ---------- Late additions ---------- */
.js [data-rows] .sheet__rows > div { opacity: 0; transform: translateY(8px); }
.js [data-rows].is-seen .sheet__rows > div { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-ui) calc(0.25s + var(--k, 0) * 0.09s), transform 0.6s var(--ease-ui) calc(0.25s + var(--k, 0) * 0.09s); }
.sheet__rows > div:nth-child(2) { --k: 1; } .sheet__rows > div:nth-child(3) { --k: 2; } .sheet__rows > div:nth-child(4) { --k: 3; } .sheet__rows > div:nth-child(5) { --k: 4; } .sheet__rows > div:nth-child(6) { --k: 5; }
.motion-off [data-rows] .sheet__rows > div { opacity: 1 !important; transform: none !important; transition: none !important; }

.tilt { transition: transform 0.9s var(--ease-ui); }

.nw { white-space: nowrap; }

.faq-ready .faq__a[hidden] { display: none; }
.dock[aria-hidden="true"] { visibility: hidden; transition: transform 0.5s var(--ease), visibility 0s 0.5s; }
