/* The product home page of mywow.net (tokens, header and buttons are in base.css; the two faces in fonts.css, generated).
   Direction: the sentence is the layout. Every animation keeps the finished state as the base style, so nothing is ever hidden when motion is off. */

main > section { padding: clamp(80px, 9.5vw, 160px) var(--m) 0; }
main > section.showcase, main > section.data { padding-bottom: clamp(72px, 9vw, 140px); }
main > section.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: clamp(40px, 5vw, 72px) 0; }
main > section.strip p { font: 600 var(--d3)/1.1 var(--font-display); letter-spacing: -0.02em; }
main > section.cta { scroll-margin-top: calc(96px - clamp(112px, 15vw, 220px)); }   /* a jump here lands on the sentence, not on the empty top of the section */
main > section.cta { padding-top: clamp(112px, 15vw, 220px); padding-bottom: clamp(72px, 9vw, 140px); }

/* Hero: the sentence at poster scale; the words rise, a single slot window rolls the app's tool icons where "place" would be */
.hero { position: relative; isolation: isolate; overflow: clip; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 0 var(--m) 32px; }
.hero-main { align-self: center; padding-top: clamp(80px, 14vh, 160px); }
h1 { font: 600 var(--d1)/0.96 var(--font-display); letter-spacing: -0.04em; }
h1.long { font-size: calc(var(--d1) * 0.8); }
.w { display: inline-block; overflow: clip; vertical-align: top; padding: 0 0.03em 0.16em; margin-bottom: -0.16em; }
.w > span { display: inline-block; }
/* The sentence first reads whole, with its word; then the word folds away and a solid chip takes its place, showing the app's sections one after the other (a CSS animation, so the paused or reduced-motion page keeps the word). The chip is ink on the page colour, the same inversion as the lit name in "Works with", with the soft lift of the buttons; no sunken look. The cell height is snapped to an even number of pixels so the hold states sit on whole pixels. Nothing in the chip uses transform or opacity (the reel moves by margin, the chip opens by width): an element with a transform or opacity animation gets its own compositor layer, and text on such a layer can be resampled at a fractional pixel, which is what made it soft. */
.nb { white-space: nowrap; }
.place { padding-inline: 0 0.06em; }
.slot { --cell: 0.8em; display: inline-block; width: 0; height: var(--cell); overflow: hidden; border-radius: 0.24em; background: var(--ink); color: var(--bg); vertical-align: -0.1em; }
@supports (height: round(1px, 1px)) { .slot { --cell: round(down, 0.8em, 2px); } }
.ic { padding: 0 1em 0 0.55em; }
.reel { display: flex; flex-direction: column; align-items: flex-start; }
.ic { display: flex; align-items: center; gap: 0.2em; flex: none; height: var(--cell); padding: 0 0.35em; white-space: nowrap; }
.ic::after { content: attr(data-name); font-size: max(0.3em, 14px); letter-spacing: -0.01em; line-height: 1; }
.ic svg { width: 0.5em; height: 0.5em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hero-foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); align-items: end; }
.lede { grid-column: 1 / 7; max-width: 38ch; }
.act { grid-column: 9 / 13; justify-self: end; text-align: right; }
.note { margin-top: 14px; font-size: var(--small); color: var(--muted); }
.act .quiet { display: inline-block; margin-top: 16px; }

/* Behind the sentence, for the eye only: the product's own screens, blurred, lying on a desk of dots seen at an angle. Calm: low contrast, very slow. */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; perspective: 1500px; perspective-origin: 50% 20%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: 0.3; }
.hero-bg > .dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.desk { position: absolute; inset: -12% -14% -16% -14%; transform: rotateX(54deg) rotateZ(-13deg) translateY(-6%); transform-origin: 50% 55%; animation: desk-drift 60s ease-in-out infinite alternate; }
.ghost { position: absolute; overflow: hidden; border-radius: var(--r); filter: blur(9px); opacity: 0.72; box-shadow: var(--lift); }
.ghost img { display: block; width: 100%; height: auto; }
.g1 { width: 46%; left: 40%; top: 9%; }
.g2 { width: 38%; left: 52%; top: 56%; }
.g3 { width: 24%; left: 24%; top: 52%; }
@keyframes desk-drift { to { transform: rotateX(54deg) rotateZ(-9deg) translateY(-3%) scale(1.06); } }
@media (max-width: 820px) { .ghost { filter: blur(6px); } .desk { animation: none; inset: -6% -30% -10% -30%; } }

/* Pictures: rounded windows onto the app, lifted off the page; a few px are trimmed so the app's own rounded border never shows */
.shot { --bar: 30px; overflow: hidden; border-radius: var(--r); background: var(--surface); box-shadow: var(--lift); outline: 1px solid var(--edge); outline-offset: -1px; }
.bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: var(--bar); padding-left: 14px; background: color-mix(in srgb, var(--ink) 9%, var(--surface)); }
.bar i { width: 11px; height: 11px; border-radius: 50%; }
.bar i:nth-child(1) { background: var(--win-red); }
.bar i:nth-child(2) { background: var(--win-yellow); }
.bar i:nth-child(3) { background: var(--win-green); }
.shot img { display: block; width: calc(100% + 2px); max-width: none; height: auto; margin: 0 -1px -1px; }
.clip { position: relative; }
.clip img, .clip video { display: block; width: 100%; max-width: none; height: auto; margin: 0; }
.vid { display: block; min-height: 44px; margin: 0; padding: 12px 18px 6px; border: 0; background: var(--surface); color: var(--ink); font: 600 var(--ui)/1.2 var(--font-display); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }

/* Write it complete */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); row-gap: 56px; align-items: start; }
.intro-text { grid-column: 1 / 6; grid-row: 1; padding-top: 6vh; }
.intro-text p { margin-top: 28px; max-width: 24em; }
.intro-doc { grid-column: 7 / 13; grid-row: 1 / 3; margin-right: calc(var(--m) * -1); padding: 0 var(--m) 40px 0; perspective: 1600px; }
.intro-write { grid-column: 2 / 5; grid-row: 2; width: min(360px, 100%); align-self: end; padding-bottom: 40px; }
.intro-doc .fine { margin-top: 28px; }

/* The whole working day: everything hangs from one axis at column 5 */
.features { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); }
.features h2 { grid-column: 5 / 13; min-height: 34svh; display: flex; align-items: center; }
.row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); align-items: start; margin-bottom: clamp(64px, 8vw, 120px); }
.features .row:last-child { margin-bottom: 0; }
.row h3 { grid-column: 5 / 10; font: 600 var(--d3)/1.05 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.row p { grid-column: 5 / 10; grid-row: 2; max-width: 30em; margin-top: 18px; }
.row .tile, .row .sheets { grid-column: 10 / 13; grid-row: 1 / 3; justify-self: end; width: 100%; padding-bottom: 36px; }
.t-timeline { max-width: 380px; }
.t-sprint { max-width: 340px; }
.t-budget { max-width: 380px; }
.features { overflow-x: clip; }
.sheets { position: relative; max-width: 250px; aspect-ratio: 1; }
.sheet { position: absolute; display: flex; align-items: flex-start; padding: 16px; border-radius: var(--r); box-shadow: var(--lift-small); font: 600 var(--ui)/1 var(--font-display); }
.s1 { inset: 0 24% 24% 0; background: var(--surface); }
.s2 { inset: 12% 12% 12% 12%; background: color-mix(in srgb, var(--ink) 22%, var(--surface)); }
.s3 { inset: 24% 0 0 24%; background: var(--ink); color: var(--bg); }

/* Where your text goes: the headline is a slot machine that rolls through the AIs until you touch it */
.showcase { background: var(--surface); }   /* continues the tone band of "Works with" */
.showcase h2 { font: 600 var(--d3)/1.05 var(--font-display); letter-spacing: -0.02em; }
.ai-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.live { margin-top: clamp(32px, 6vw, 80px); }
.ai-field { position: relative; margin-top: 6px; }
.ai-input { display: block; width: 100%; height: 1.18em; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); caret-color: var(--accent); font: 600 var(--d1)/1.18 var(--font-display); letter-spacing: -0.04em; }
.ai-input:focus-visible { outline-offset: 10px; border-radius: var(--r-s); }
.ai-reel { position: absolute; inset: 0; overflow: clip; pointer-events: none; font: 600 var(--d1)/1.18 var(--font-display); letter-spacing: -0.04em; }
.ai-track > span { display: block; height: 1.18em; white-space: nowrap; }
.is-spinning .ai-input { color: transparent; opacity: 0; }   /* the reel shows the name; the field is back the moment it is focused or touched */
.answer { max-width: 34em; min-height: 4.6em; margin-top: 44px; }
.hint { margin-top: 8px; font-size: var(--small); color: var(--muted); }
.try { display: flex; flex-wrap: wrap; gap: 0 26px; margin-top: 36px; }
.try span { padding: 10px 0; color: var(--muted); }
.try button { padding: 10px 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; transition: text-decoration-thickness 0.18s ease; }
.try button:hover { text-decoration-thickness: 2px; }
.static { margin-top: 40px; max-width: 40em; }
.static dt { margin-top: 24px; font: 600 var(--ui)/1.2 var(--font-display); }
.static p { margin-top: 24px; }

/* How it works: without script a plain list of four; with it, tabs that advance by themselves and stop when you take over */
.stage-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px var(--m); margin-top: 40px; }
.stage { display: grid; align-content: start; gap: 14px; }
.stage h3 { font: 600 var(--ui)/1.2 var(--font-display); color: var(--muted); }
.clause { font: 600 var(--d3)/1.05 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.detail { color: var(--muted); }
.field { margin-top: 10px; }
.field .shot { width: fit-content; max-width: 100%; }
.stage-ui { --ph: clamp(300px, 28vw, 420px); --pad: clamp(24px, 3vw, 44px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); row-gap: 28px; margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.stage-copy { grid-column: 1 / 6; grid-row: 1; display: grid; align-content: start; }
.copy { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-expo), visibility 0s 0.35s; }
.copy[data-current] { visibility: visible; opacity: 1; transform: none; transition-delay: 0.12s, 0.12s, 0s; }
.copy .clause { padding-right: 8%; }
.copy .detail { margin-top: 18px; max-width: 28em; }
.stage-tabs { grid-column: 1 / 6; grid-row: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tab { position: relative; min-height: 48px; padding: 18px 0 8px; border: 0; background: none; color: var(--muted); font: 600 var(--ui)/1.2 var(--font-display); text-align: left; cursor: pointer; transition: color 0.18s ease; }
.tab::before, .tab::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: var(--r-s); }
.tab::before { background: var(--surface); }
.tab::after { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[data-done]::after { transform: none; }
.stage-ui[data-auto="off"] .tab[aria-selected="true"]::after { transform: none; }
.stage-frame { grid-column: 6 / 13; grid-row: 1 / 3; display: grid; height: calc(var(--ph) + 2 * var(--pad)); border-radius: var(--r); background: var(--surface); overflow: clip; }
.pane { grid-area: 1 / 1; display: grid; place-items: center; padding: var(--pad); visibility: hidden; opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.35s var(--ease-out), transform 0.6s var(--ease-expo), visibility 0s 0.35s; }
.pane[data-current] { visibility: visible; opacity: 1; transform: none; transition-delay: 0.1s, 0.1s, 0s; }
.pane .shot { width: fit-content; max-width: 100%; }
.pane .shot img { width: auto; max-width: none; height: calc(var(--ph) - var(--bar)); }
.pane .shot.wide img { width: min(560px, calc(100vw - 4 * var(--m) - 12px)); height: auto; }
.pane .clip img, .pane .clip video { width: auto; height: calc(var(--ph) - var(--bar)); }
@keyframes tabfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .stage-ui[data-visible]:not([data-auto="off"]) .tab[aria-selected="true"]::after { animation: tabfill 4s linear forwards; }
  .stage-ui:hover .tab[aria-selected="true"]::after, .stage-ui:focus-within .tab[aria-selected="true"]::after { animation-play-state: paused; }
}

/* Works with: the names as a statement; the lit one is inverted, so it is plain which one it is */
.proof { margin-top: clamp(80px, 9.5vw, 160px); background: var(--surface); }
.names { max-width: 30em; margin-top: clamp(24px, 3vw, 44px); font: 600 clamp(1.3rem, 2.5vw, 2.25rem)/1.55 var(--font-display); letter-spacing: -0.02em; text-wrap: pretty; }
.names em { padding: 0.05em 0.12em; margin: 0 -0.12em; border-radius: 0.3em; font-style: normal; white-space: nowrap; transition: background-color 0.4s ease, color 0.4s ease; }
.names.cycle { color: var(--muted); }
.names.cycle em.lit { background: var(--ink); color: var(--bg); }

/* Plans: a large table, built from the entitlements the product enforces */
.plans h2 { margin-bottom: clamp(32px, 5vw, 72px); }
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--m); align-items: stretch; }
.plan-card { display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 36px); border-radius: var(--r); background: var(--surface); }
.plan-name { margin: 0; font: 600 var(--d3)/1.05 var(--font-display); letter-spacing: -0.02em; }
.plan-price { margin-top: 10px; font: 500 var(--ui)/1.3 var(--font-display); color: var(--muted); }
.plan-tag { margin-top: 18px; max-width: 24ch; }
.plan-plus { margin-top: 28px; font: 600 var(--ui)/1.3 var(--font-display); }
.plan-groups { margin-top: 14px; }
.plan-card:first-child .plan-groups { margin-top: 28px; }
.plan-groups li { padding: 14px 0; }
.plan-groups strong { display: block; font: 600 var(--ui)/1.35 var(--font-display); }
.plan-groups span { display: block; margin-top: 3px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.plan-act { margin-top: auto; padding-top: 28px; }
.soon { font: 600 var(--ui)/1.2 var(--font-display); color: var(--muted); }
.plans .fine { margin-top: 28px; }

/* Team (unveiled later) */
.team { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); align-items: center; }
.team > div { grid-column: 1 / 7; }
.team p { margin-top: 36px; max-width: 28em; }
.team p + p { margin-top: 18px; }
.team .shot { grid-column: 8 / 13; }
.slot-missing { aspect-ratio: 4 / 3; }

/* Questions: a wide heading, the answers indented to column 5 */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); }
.faq h2 { grid-column: 1 / -1; }
.qs { grid-column: 5 / 13; margin-top: clamp(40px, 6vw, 80px); }
.qs details { margin-bottom: 14px; padding: 0 var(--m); margin-inline: calc(var(--m) * -1); border-radius: var(--r); interpolate-size: allow-keywords; transition: background-color 0.25s ease; }
.qs details::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete; }
.qs details[open]::details-content { block-size: auto; }
.qs details[open] { background: var(--surface); padding-bottom: 24px; }
.qs summary { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; font: 500 var(--body)/1.3 var(--font-display); cursor: pointer; list-style: none; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.25s var(--ease-out); }
.qs details[open] summary::after { transform: rotate(-135deg); }
.qs p { max-width: 46ch; }

/* Signing in and your data */
.data { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); background: var(--surface); }   /* below the request: what the sign-in uses, for those who want to read it */
.data h2 { grid-column: 1 / -1; font-size: var(--d3); }
.data p { grid-column: 5 / 13; max-width: 60ch; margin-top: 22px; }
.data a, .qs a { text-underline-offset: 0.2em; }


/* The closing sentence has a blank in it, and the blank is the request */
.cta { font: 600 var(--d2)/1.05 var(--font-display); letter-spacing: -0.03em; }
.cta h2 { display: inline; font-size: inherit; }
.ask { display: inline-flex; align-items: baseline; gap: 0.2em; margin-left: 0.2em; font-size: inherit; line-height: 1; }
.ask input { width: 7em; height: 1.15em; padding: 0 0.45em; border: 0; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sunk); color: var(--ink); font: inherit; letter-spacing: inherit; }
.ask input::placeholder { color: var(--muted); opacity: 1; }
.ask .btn { height: 1.15em; min-height: 0; padding: 0 0.5em; font-size: inherit; letter-spacing: inherit; }
.after { margin-top: 36px; max-width: 34em; font: 400 var(--body)/1.5 var(--font-text); color: var(--muted); letter-spacing: 0; }
.cta noscript .fine { margin-top: 16px; }

/* Footer: the name first, then the ways in */
.foot { display: grid; grid-template-rows: auto 1fr auto; min-height: min(90svh, 860px); margin-top: clamp(48px, 6vw, 96px); padding: clamp(48px, 6vw, 96px) var(--m) 28px; background: var(--ink); color: var(--bg); border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0; }
.foot .fine { color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.mark { font: 600 var(--mark)/0.82 var(--font-display); letter-spacing: -0.05em; white-space: nowrap; }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); align-content: start; margin-top: clamp(48px, 7vw, 96px); }
.foot-grid nav:nth-child(1) { grid-column: 1 / 6; }
.foot-grid nav:nth-child(2) { grid-column: 7 / 10; }
.foot-grid nav:nth-child(3) { grid-column: 10 / 13; }
.places .big { display: inline-block; padding: 6px 0; font: 600 var(--d3)/1.15 var(--font-display); letter-spacing: -0.02em; text-decoration-thickness: 2px; text-underline-offset: 0.2em; transition: text-underline-offset 0.18s var(--ease-out); }
.places .big:hover { text-underline-offset: 0.34em; }
.cols a { display: inline-block; padding: 8px 0; font: 500 var(--ui)/1.3 var(--font-display); }
.foot-grid .fine { margin-top: 12px; }
.foot-end { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-top: 64px; }
.foot-end a { padding: 8px 0; }

/* Motion. The hero arrives in about a second; below the fold, travel is locked to the scrollbar (scroll timelines, where the browser has them);
   a few headings rise line by line (web/home.js). The base style of everything is its finished state. */
@keyframes word-up { from { transform: translateY(112%); } }
@keyframes place-out { from { width: var(--place-w); } to { width: 0; padding-inline-end: 0; opacity: 0; } }
@keyframes slot-open { from { width: 0; margin-right: 0; box-shadow: none; } to { width: var(--w0); margin-right: 0.16em; box-shadow: var(--lift-small); } }
@keyframes rise-in { from { transform: translateY(24px); opacity: 0; } }
@keyframes rise { from { transform: translateY(28px); } }
@keyframes tilt-settle { from { transform: rotateX(18deg) rotateY(-12deg) translateY(90px) scale(0.88); } }
@keyframes settle { from { transform: scale(1.14); } }
@keyframes slide-in { from { transform: translateY(40px) rotate(-3deg); } }
@keyframes drift { from { transform: translateY(22px); } to { transform: translateY(-22px); } }
@keyframes gather-1 { from { transform: translate(-34%, 6%) rotate(-7deg); } }
@keyframes gather-3 { from { transform: translate(34%, -6%) rotate(7deg); } }
@keyframes mark-rise { from { transform: translateY(16%) scale(0.94); } }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
@keyframes roll-blur { 50% { filter: blur(0.045em); } }
@media (prefers-reduced-motion: no-preference) {
  .w > span { animation: word-up 0.9s var(--ease-expo) both; }
  .d0 > span { animation-delay: 0.05s; }
  .d1 > span { animation-delay: 0.12s; }
  .d2 > span { animation-delay: 0.19s; }
  .d3 > span { animation-delay: 0.26s; }
  .d4 > span { animation-delay: 0.33s; }
  .d5 > span { animation-delay: 0.40s; }
  .d6 > span { animation-delay: 0.47s; }
  .d7 > span { animation-delay: 0.54s; }
  .d8 > span { animation-delay: 0.61s; }
  .d9 > span { animation-delay: 0.68s; }
  .place { animation: place-out 0.7s var(--ease-expo) 2.8s forwards; }
  .slot.n10 { animation: slot-open 0.8s var(--ease-expo) 2.9s both, slotw10 20s linear 4s infinite; }
  .slot.n11 { animation: slot-open 0.8s var(--ease-expo) 2.9s both, slotw11 22s linear 4s infinite; }
  .hero-foot .lede { animation: rise-in 0.8s var(--ease-out) 0.7s both; }
  .hero-foot .act { animation: rise-in 0.8s var(--ease-out) 0.85s both; }
  .reel.n10 { animation: reel10 20s linear 4s infinite; }
  .reel.n11 { animation: reel11 22s linear 4s infinite; }
  .ai-track.rolling { animation: roll-blur 0.75s ease; }
  .answer.swap { animation: swap 0.5s var(--ease-out); }
  @supports (animation-timeline: view()) {
    .intro-text p, .row h3, .row p, .qs details, .names, .answer, .plan-card, .data p, .foot-grid, .after { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .intro-doc .shot { transform-origin: 50% 100%; animation: tilt-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
    .intro-doc img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
    .intro-write { animation: slide-in linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .row .tile { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .row .sheets { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .s1 { animation: gather-1 linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .s3 { animation: gather-3 linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .mark { transform-origin: 0 100%; animation: mark-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
.rise-lines .line { display: block; overflow: clip; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.rise-lines .line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .is-split .line > span { transform: translateY(112%); }
  .is-split.is-in .line > span { transform: none; transition: transform 0.9s var(--ease-expo) calc(var(--i) * 90ms); }
}

/* Phone: one column, the sentence on two lines, tabs under the picture */
/* Phones: a fixed bar with the name, a pause icon and a Menu button; the sections, sign-in, the language and the demo are in the panel.
   Without the script the menu stays open under the bar as a wrapped row of links. */
@media (max-width: 820px) {
  .head { position: fixed; z-index: 6; flex-wrap: wrap; align-items: center; gap: 0 4px; padding: 8px var(--m); background: var(--bg); box-shadow: var(--lift-small); }
  .head .menu { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; order: 5; padding-bottom: 8px; }
  .menu .links { flex-wrap: wrap; gap: 0 20px; }
  .menu .menu-demo { display: none; }
  .motion-label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; }
  .motion-label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .motion-label::before { content: ""; width: 10px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
  html:has(#motion-off:checked) .motion-label::before { width: 0; height: 0; border-left: 12px solid currentColor; border-right: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
  .motion-input:focus-visible + .motion-label { border-radius: var(--r-s); }
  html.menu-js .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font: 600 var(--ui)/1 var(--font-display); cursor: pointer; }
  html.menu-js .head .menu { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 28px; order: 0; padding: 88px var(--m) 32px; overflow-y: auto; background: var(--bg); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-expo), visibility 0s 0.35s; }
  html.menu-js .head .menu[data-open] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  html.menu-js .menu .links { flex-direction: column; flex-wrap: nowrap; gap: 4px; width: 100%; }
  html.menu-js .menu .links a { display: block; padding: 8px 0; font: 600 clamp(1.9rem, 9vw, 2.6rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
  html.menu-js .menu .menu-demo { display: inline-flex; width: 100%; }
  html.menu-js .menu .langs { width: 100%; }
  html.menu-js .menu .langs summary { padding: 14px 0; font-size: var(--body); }
  html.menu-js .menu .langs ul { position: static; margin: 0; padding: 0; background: none; box-shadow: none; }
  html.menu-js .menu .langs a { padding: 12px 0; font-size: var(--body); }
  html.menu-open { overflow: hidden; }
  main > section { scroll-margin-top: 72px; }
  h1.long { font-size: calc(var(--d1) * 0.92); }
  .hero-foot, .intro, .features, .row, .faq, .data, .team { display: block; }
  .lede { max-width: none; }
  .act { margin-top: 28px; text-align: left; }
  .act .btn { width: 100%; }
  .intro-text { padding-top: 0; }
  .intro-doc { margin: 40px calc(var(--m) * -1) 0 20%; padding: 0 var(--m) 24px 0; }
  .intro-write { width: 60%; margin: 40px 0 0 10%; }
  .features h2 { min-height: 40svh; }
  .row { margin-bottom: 72px; }
  .row p { margin-top: 14px; }
  .row .tile, .row .sheets { margin-top: 28px; }
  .qs { margin-top: 40px; }
  .data p { margin-top: 18px; }
  .stage-ui { --ph: 280px; display: flex; flex-direction: column; }
  .stage-frame { order: 1; }
  .stage-copy { order: 2; }
  .stage-tabs { order: 3; grid-template-columns: repeat(2, 1fr); gap: 4px 14px; }
  .plan-cards { grid-template-columns: 1fr; gap: 16px; }
  .plan-act .btn { width: 100%; }
  .ask { display: flex; flex-direction: column; align-items: stretch; margin: 20px 0 0; gap: 12px; }
  .ask input { width: 100%; padding: 0 0.6em; }
  .ask .btn { width: 100%; justify-content: flex-start; padding: 0 0.6em; }
  .foot-grid { display: block; }
  .foot-grid nav { margin-top: 36px; }
  .foot-end { flex-direction: column; align-items: start; }
}

/* The slot window rolls one icon at a time: a hold, then a quick roll up (generated for 10 and 11 icons) */
@keyframes reel10 {
  0.000%, 8.000% { margin-top: calc(-0 * var(--cell)); }
  10.000%, 18.000% { margin-top: calc(-1 * var(--cell)); }
  20.000%, 28.000% { margin-top: calc(-2 * var(--cell)); }
  30.000%, 38.000% { margin-top: calc(-3 * var(--cell)); }
  40.000%, 48.000% { margin-top: calc(-4 * var(--cell)); }
  50.000%, 58.000% { margin-top: calc(-5 * var(--cell)); }
  60.000%, 68.000% { margin-top: calc(-6 * var(--cell)); }
  70.000%, 78.000% { margin-top: calc(-7 * var(--cell)); }
  80.000%, 88.000% { margin-top: calc(-8 * var(--cell)); }
  90.000%, 98.000% { margin-top: calc(-9 * var(--cell)); }
  100% { margin-top: calc(-10 * var(--cell)); }
}
@keyframes reel11 {
  0.000%, 7.273% { margin-top: calc(-0 * var(--cell)); }
  9.091%, 16.364% { margin-top: calc(-1 * var(--cell)); }
  18.182%, 25.455% { margin-top: calc(-2 * var(--cell)); }
  27.273%, 34.545% { margin-top: calc(-3 * var(--cell)); }
  36.364%, 43.636% { margin-top: calc(-4 * var(--cell)); }
  45.455%, 52.727% { margin-top: calc(-5 * var(--cell)); }
  54.545%, 61.818% { margin-top: calc(-6 * var(--cell)); }
  63.636%, 70.909% { margin-top: calc(-7 * var(--cell)); }
  72.727%, 80.000% { margin-top: calc(-8 * var(--cell)); }
  81.818%, 89.091% { margin-top: calc(-9 * var(--cell)); }
  90.909%, 98.182% { margin-top: calc(-10 * var(--cell)); }
  100% { margin-top: calc(-11 * var(--cell)); }
}

/* The tile follows the label it shows: same timing as the reel, widths measured by web/home.js (--w0 ... one per tool) */
@keyframes slotw10 {
  0.000%, 8.000% { width: var(--w0); }
  10.000%, 18.000% { width: var(--w1); }
  20.000%, 28.000% { width: var(--w2); }
  30.000%, 38.000% { width: var(--w3); }
  40.000%, 48.000% { width: var(--w4); }
  50.000%, 58.000% { width: var(--w5); }
  60.000%, 68.000% { width: var(--w6); }
  70.000%, 78.000% { width: var(--w7); }
  80.000%, 88.000% { width: var(--w8); }
  90.000%, 98.000% { width: var(--w9); }
  100% { width: var(--w0); }
}
@keyframes slotw11 {
  0.000%, 7.273% { width: var(--w0); }
  9.091%, 16.364% { width: var(--w1); }
  18.182%, 25.455% { width: var(--w2); }
  27.273%, 34.545% { width: var(--w3); }
  36.364%, 43.636% { width: var(--w4); }
  45.455%, 52.727% { width: var(--w5); }
  54.545%, 61.818% { width: var(--w6); }
  63.636%, 70.909% { width: var(--w7); }
  72.727%, 80.000% { width: var(--w8); }
  81.818%, 89.091% { width: var(--w9); }
  90.909%, 98.182% { width: var(--w10); }
  100% { width: var(--w0); }
}
