/* Packday website. The app's "Expressive Bento" world (src/theme.ts), set for a marketing page.
   No inline styles anywhere (strict CSP), so every state lives here. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --forest: #1F4D3A;
  --forest-deep: #183D2E;
  --cream: #F4F1E8;
  --lime: #D7F26B;
  --lime-deep: #C5E04F;
  --surface: #FFFFFF;
  --surface-dim: #EBE7DA;
  --tonal: #ECEBE0;
  --ink: #17201B;
  --ink-soft: #3F4B44;
  --muted: #5D6B62;
  --line: #E4DFD0;
  --peach: #FFB59A;
  --peach-tint: #FFE7DD;
  --lilac: #D9CCFF;
  --butter: #FFE2A8;
  --mint: #CDEBD9;
  --lime-tint: #E9F7B8;
  --alert: #B5432A;
  --on-forest-soft: #D4DDD6;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 420ms;

  --pad: clamp(1rem, 5vw, 3rem);
  --wrap: 76rem;
  --section: clamp(4.5rem, 11vw, 9rem);
  --shadow: 0 1px 2px rgb(23 32 27 / 0.06), 0 12px 32px rgb(23 32 27 / 0.10);
  --shadow-lift: 0 2px 4px rgb(23 32 27 / 0.08), 0 28px 60px rgb(23 32 27 / 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; scrollbar-color: var(--forest) var(--surface-dim); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; caret-color: var(--forest); }
img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--lime); color: var(--forest); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .closer :focus-visible, .top :focus-visible { outline-color: var(--lime); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--surface-dim); }
::-webkit-scrollbar-thumb { background: var(--forest); border-radius: 999px; border: 3px solid var(--surface-dim); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.75rem 1rem; border-radius: 12px; background: var(--lime); color: var(--forest); font-weight: 600; text-decoration: none; transition: top var(--dur-1) var(--ease-out); }
.skip:focus { top: 1rem; }

/* Type */
.display, .display-2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.display { font-size: clamp(3rem, 8.4vw, 6rem); line-height: 0.95; }
.display-2 { font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.small { font-size: 0.875rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-lime { background: var(--lime); color: var(--forest); box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 8px 20px rgb(15 40 30 / 0.22); }
.btn-lime:hover { background: var(--lime-deep); }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--forest-deep); }
.btn-sm { min-height: 44px; padding: 0 1.125rem; font-size: 0.9375rem; }
.btn-lg { min-height: 60px; padding: 0 2rem; font-size: 1.0625rem; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }

/* Header: part of the forest hero at the top, cream once you scroll. */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem var(--pad); background: var(--forest); color: var(--cream); transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.top.is-scrolled { background: var(--cream); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.top.is-scrolled :focus-visible { outline-color: var(--forest); }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; font: 800 1.375rem/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.top nav { display: none; gap: 0.25rem; margin-left: auto; }
.top nav a { padding: 0.625rem 0.875rem; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; transition: background-color var(--dur-1) var(--ease-out); }
.top nav a:hover { background: rgb(244 241 232 / 0.12); }
.top.is-scrolled nav a:hover { background: var(--tonal); }
.top > .btn { margin-left: auto; }
@media (min-width: 900px) { .top nav { display: flex; } .top > .btn { margin-left: 0.5rem; } }

/* Hero */
.hero { position: relative; display: grid; gap: clamp(3rem, 6vw, 5rem); padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(4rem, 8vw, 7rem); background: var(--forest); color: var(--cream); border-radius: 0 0 clamp(2rem, 6vw, 4.5rem) 1rem; overflow: clip; }
.hero-copy { display: grid; gap: 1.5rem; max-width: 40rem; align-content: start; }
.hero .display { color: var(--cream); }
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w-in { display: inline-block; }
.for { font: 700 clamp(1.375rem, 2.6vw, 1.875rem)/1.2 var(--display); letter-spacing: -0.02em; }
.rotator { position: relative; display: inline-grid; color: var(--lime); }
.rotator > span { grid-area: 1 / 1; }
.rotator > span:not(:first-child) { visibility: hidden; }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--on-forest-soft); max-width: 34rem; }
.hero-form { scroll-margin-top: 6rem; }
.hero-phone { position: relative; justify-self: center; width: min(19rem, 78vw); }
.phone { position: relative; border-radius: 2.75rem; padding: 0.625rem; background: var(--ink); box-shadow: var(--shadow-lift); }
.phone img { border-radius: 2.2rem; width: 100%; }
.leaf { position: absolute; display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.25rem; box-shadow: var(--shadow); font-weight: 600; color: var(--ink); }
.leaf-a { left: -2.5rem; bottom: 18%; background: var(--surface); border-radius: 2rem 2rem 2rem 0.5rem; }
.leaf-a span:first-child { font: 700 1.125rem/1 var(--display); }
.leaf-b { right: -2rem; top: 12%; background: var(--peach); border-radius: 0.5rem 2rem 2rem 2rem; font-size: 0.875rem; }
.leaf-b strong { font: 800 1.5rem/1 var(--display); letter-spacing: -0.02em; }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; padding-top: clamp(3rem, 6vw, 5.5rem); }
  .hero-phone { width: min(21rem, 100%); }
}

/* Signup form (on forest) */
.signup { display: grid; gap: 1rem; padding: 1.5rem; border-radius: 2rem 2rem 2rem 0.75rem; background: rgb(244 241 232 / 0.07); box-shadow: 0 0 0 1px rgb(244 241 232 / 0.14) inset; }
.field { display: grid; gap: 0.375rem; }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--cream); }
.field input, .field select { width: 100%; min-height: 52px; padding: 0 1rem; border: 2px solid transparent; border-radius: 16px; background: var(--surface); color: var(--ink); font: 400 1.0625rem/1 var(--body); transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.75rem; }
.field input::placeholder { color: #6B776F; }
.field input:focus, .field select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgb(215 242 107 / 0.35); }
.field [aria-invalid="true"] { border-color: var(--peach); }
.field-error { color: var(--peach); font-weight: 600; font-size: 0.9375rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup .btn { width: 100%; }
.fine { font-size: 0.875rem; color: var(--on-forest-soft); }
.fine a { color: var(--cream); }
.form-status:empty { display: none; }
.form-status { padding: 0.875rem 1rem; border-radius: 16px; background: var(--lime); color: var(--forest); font-weight: 600; }
.form-status.is-error { background: var(--peach); color: var(--ink); }
@media (min-width: 640px) {
  .signup { grid-template-columns: 1fr 1fr; padding: 1.75rem; }
  .signup .btn, .fine, .form-status { grid-column: 1 / -1; }
}

/* Pills: the run sheet's states */
.pill { display: inline-flex; align-items: center; width: max-content; padding: 0.375rem 0.875rem; border-radius: 999px; font: 600 0.875rem/1.2 var(--body); background: var(--tonal); color: var(--ink); }
.pill-booked { background: var(--tonal); }
.pill-in { background: var(--butter); }
.pill-service { background: var(--lilac); }
.pill-ready { background: var(--lime); color: var(--forest); }
.pill-paid { background: var(--mint); }

/* The day, in order */
.day { padding: var(--section) var(--pad); max-width: var(--wrap); margin-inline: auto; }
.day-intro { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.lede-dark { font-size: 1.1875rem; color: var(--ink-soft); }
.day-grid { display: grid; gap: 2rem; }
.steps { display: grid; gap: 1rem; counter-reset: none; }
.step { display: grid; gap: 0.75rem; padding: 1.75rem 0; border-top: 1px solid var(--line); transition: opacity var(--dur-3) var(--ease-out); }
.step p:last-child { color: var(--ink-soft); max-width: 34rem; }
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.day-stage { display: none; }
.status-card { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem 0.875rem 0.875rem; border-radius: 1.75rem 1.75rem 1.75rem 0.5rem; background: var(--surface); box-shadow: var(--shadow-lift); transition: transform var(--dur-3) var(--ease-out); }
.status-card .avatar { width: 52px; height: 52px; flex: none; border-radius: 50% 50% 50% 14px; background: var(--lilac); transition: background-color var(--dur-3) var(--ease-out), border-radius var(--dur-3) var(--ease-out); }
.status-card .who { display: grid; gap: 0.125rem; margin-right: auto; }
.status-card .who strong { font: 700 1.125rem/1.1 var(--display); }
.status-card .who span { font-size: 0.875rem; color: var(--muted); }
.pill-live { transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.pill-live.is-swap { transform: scale(1.08); }

/* With JavaScript the steps light up one at a time and the card follows. */
.js .step { opacity: 0.38; }
.js .step.is-active { opacity: 1; }
.js .day-stage { display: block; position: sticky; top: 5rem; z-index: 2; order: -1; }
.js .day-stage .phone { display: none; }
[data-state="in"] .pill-live { background: var(--butter); }
[data-state="service"] .pill-live { background: var(--lilac); }
[data-state="ready"] .pill-live { background: var(--lime); color: var(--forest); }
[data-state="paid"] .pill-live { background: var(--mint); }
[data-state="in"] .avatar { background: var(--butter); border-radius: 14px 50% 50% 50%; }
[data-state="service"] .avatar { background: var(--peach); border-radius: 50%; }
[data-state="ready"] .avatar { background: var(--lime); border-radius: 50% 50% 14px 50%; }
[data-state="paid"] .avatar { background: var(--mint); border-radius: 50% 14px 50% 50%; }

@media (min-width: 900px) {
  .day-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .step { min-height: 62vh; align-content: center; border-top: 0; padding: 0; }
  .js .day-stage { order: 0; top: 12vh; display: grid; justify-items: center; }
  .js .day-stage .phone { display: block; width: min(20rem, 100%); }
  .js .day-stage .phone img { opacity: 0.55; filter: saturate(0.6); }
  .day-stage .status-card { position: absolute; left: 50%; bottom: 28%; width: min(23rem, 108%); transform: translateX(-50%); }
  [data-state="ready"] .status-card, [data-state="paid"] .status-card { transform: translateX(-50%) translateY(-6px); }
}

/* Section heads */
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p { font-size: 1.1875rem; color: var(--ink-soft); }

/* Automations */
.auto { padding: var(--section) var(--pad); max-width: var(--wrap); margin-inline: auto; border-top: 1px solid var(--line); }
.autos { display: grid; }
.autos li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.autos p { color: var(--ink-soft); }
.switch { position: relative; width: 52px; height: 32px; margin-top: 0.125rem; border-radius: 999px; background: var(--forest); }
.switch::after { content: ""; position: absolute; top: 4px; left: 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); }
.note { margin-top: 2rem; padding: 1rem 1.25rem; border-radius: 1rem 1rem 1rem 0.25rem; background: var(--butter); color: var(--ink); font-weight: 600; width: fit-content; max-width: 100%; }
@media (min-width: 900px) { .autos { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }

/* Clients */
.clients { display: grid; gap: 3rem; padding: var(--section) var(--pad); background: var(--butter); border-radius: clamp(2rem, 6vw, 4.5rem) 1rem clamp(2rem, 6vw, 4.5rem) clamp(2rem, 6vw, 4.5rem); }
.clients-copy { display: grid; gap: 1.25rem; max-width: 36rem; align-content: center; }
.clients-copy > p { font-size: 1.1875rem; color: var(--ink-soft); }
.ticks { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.ticks li { position: relative; padding-left: 2.25rem; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--forest); }
.ticks li::after { content: ""; position: absolute; left: 0.5rem; top: 0.45rem; width: 0.5rem; height: 0.3rem; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.phone-tilt { width: min(19rem, 78vw); justify-self: center; }
@media (min-width: 900px) {
  .clients { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2)); }
}

/* Kinds */
.kinds { padding: var(--section) var(--pad); max-width: var(--wrap); margin-inline: auto; }
.tabs { display: none; }
.panels { display: grid; gap: 1.5rem; }
.kind { display: grid; gap: 1rem; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 2.5rem 2.5rem 2.5rem 0.75rem; background: var(--surface); box-shadow: var(--shadow); }
.kind:nth-child(5n + 1) { background: var(--lilac); }
.kind:nth-child(5n + 2) { background: var(--mint); }
.kind:nth-child(5n + 3) { background: var(--butter); }
.kind:nth-child(5n + 4) { background: var(--peach-tint); }
.kind:nth-child(5n + 5) { background: var(--lime-tint); }
.kind h3 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.kind > p { font-size: 1.125rem; max-width: 36rem; color: var(--ink-soft); }
.kind-rows { display: grid; gap: 0.5rem; margin-top: 0.5rem; max-width: 30rem; }
.kind-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.875rem 1.125rem; border-radius: 1.125rem; background: var(--surface); font-weight: 600; }
.kind-rows li span:last-child { color: var(--muted); font-weight: 400; }
.js .tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tab { min-height: 48px; padding: 0 1.25rem; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 1rem/1 var(--body); cursor: pointer; transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.tab:hover { background: var(--tonal); }
.tab[aria-selected="true"] { background: var(--forest); color: var(--lime); }
.js .kind[hidden] { display: none; }
.js .kind.is-in { animation: settle var(--dur-3) var(--ease-out); }
@keyframes settle { from { opacity: 0; transform: translateY(12px) scale(0.985); } }

/* Team */
.team { display: grid; gap: 3rem; padding: var(--section) var(--pad); max-width: var(--wrap); margin-inline: auto; border-top: 1px solid var(--line); }
.team-copy { display: grid; gap: 1.25rem; align-content: center; }
.team-copy p { font-size: 1.125rem; color: var(--ink-soft); }
.team > .phone { width: min(17rem, 72vw); justify-self: center; }
@media (min-width: 1000px) {
  .team { grid-template-columns: 1fr 1.15fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 4rem); }
  .team > .phone { width: 100%; max-width: 17.5rem; }
  .phone-offset { margin-top: 8rem; }
}

/* FAQ */
.faq { padding: var(--section) var(--pad); max-width: 56rem; margin-inline: auto; }
.faq .display-2 { margin-bottom: 2rem; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.qa summary::after { content: ""; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background-color: var(--surface); background-image: linear-gradient(var(--forest), var(--forest)), linear-gradient(var(--forest), var(--forest)); background-size: 1rem 2px, 2px 1rem; background-position: center; background-repeat: no-repeat; transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.qa summary:hover::after { background-color: var(--tonal); }
.qa[open] summary::after { transform: rotate(135deg); background-color: var(--lime); }
.qa p { padding: 0 0 1.75rem; max-width: 42rem; font-size: 1.0625rem; color: var(--ink-soft); }

/* Closer */
.closer { display: grid; justify-items: start; gap: 1.5rem; margin: 0 var(--pad) var(--section); padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem); border-radius: 3rem 3rem 3rem 1rem; background: var(--forest); color: var(--cream); }
.closer p { font-size: 1.1875rem; color: var(--on-forest-soft); max-width: 32rem; }
@media (min-width: 1200px) { .closer { margin-inline: auto; max-width: calc(var(--wrap) + 2 * var(--pad)); } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 3rem var(--pad) 4rem; }
.foot-inner { display: grid; gap: 1rem; max-width: var(--wrap); margin-inline: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-weight: 600; }
.foot nav a { padding: 0.5rem 0; }
.brand-foot { color: var(--forest); }

/* Plain pages */
.plain .top { background: var(--cream); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.plain .top :focus-visible { outline-color: var(--forest); }
.plain .top nav a:hover { background: var(--tonal); }
.prose { max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--pad); display: grid; gap: 1rem; }
.prose h2 { margin-top: 1.5rem; font: 700 1.5rem/1.2 var(--display); letter-spacing: -0.015em; }
.prose p { color: var(--ink-soft); }
.prose .btn { margin-top: 1rem; width: fit-content; }
.center { text-align: center; justify-items: center; min-height: 60vh; align-content: center; }

/* Motion: one authored entrance (the headline), then quiet reveals. Content is visible without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .w-in { animation: rise 900ms var(--ease-out) both; }
  .w:nth-child(2) .w-in { animation-delay: 60ms; }
  .w:nth-child(3) .w-in { animation-delay: 120ms; }
  .w:nth-child(4) .w-in { animation-delay: 200ms; }
  .w:nth-child(5) .w-in { animation-delay: 260ms; }
  .w:nth-child(6) .w-in { animation-delay: 320ms; }
  .hero-phone { animation: float-in 1100ms var(--ease-out) 200ms both; }
  .leaf-a { animation: pop 700ms var(--ease-out) 800ms both; }
  .leaf-b { animation: pop 700ms var(--ease-out) 950ms both; }
  .hero-copy > :not(h1) { animation: fade-up 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 380ms; }
  .hero-copy > :nth-child(3) { animation-delay: 460ms; }
  .hero-copy > :nth-child(4) { animation-delay: 540ms; }
  .js.motion .rotator > span { visibility: visible; transition: transform 520ms var(--ease-out), opacity 360ms var(--ease-out), filter 520ms var(--ease-out); }
  .js.motion .rotator > span:not(.is-on) { opacity: 0; transform: translateY(0.6em); filter: blur(6px); }
  .js.motion .rotator > span.is-out { transform: translateY(-0.6em); transition-timing-function: var(--ease-in); transition-duration: 240ms; }
  .js.motion .reveal { transition: transform 800ms var(--ease-out); }
  /* Movement only: content is never hidden, so a page that isn't scrolled (or a crawler) sees everything. */
  .js.motion .reveal:not(.is-in) { transform: translateY(28px); }
  /* Where supported, the hero phone drifts as you scroll away: scroll-driven, no JavaScript. */
  @supports (animation-timeline: scroll()) {
    .hero-phone .phone { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes float-in { from { opacity: 0; transform: translateY(48px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.8) translateY(12px); } }
@keyframes drift { to { transform: translateY(-48px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .top, .hero-phone, .day-stage, .closer .btn, .signup { display: none; }
  .hero { background: none; color: var(--ink); }
  .hero .display { color: var(--ink); }
}
