/* Mowday launch site. Tokens follow docs/site/BRIEF.md. */

:root {
  color-scheme: light dark;
  --bg: #f4f1ea;
  --surface: #fbf9f4;
  --surface-raised: #ffffff;
  --surface-sunken: #ebe6db;
  --text: #1d1f1a;
  --text-muted: #55584f;
  --border: #d6d0c3;
  --border-strong: #a59e8f;
  --accent: #2f7a34;
  --accent-hover: #256429;
  --accent-soft: #dcebd6;
  --accent-text: #ffffff;
  --hedge: #1f3a22;
  --hedge-text: #f1efe8;
  --stripe-a: #3c8a41;
  --stripe-b: #2f7a34;
  --warning: #8a5a00;
  --warning-soft: #f7e7c4;
  --focus: #1a5fb4;
  --shadow-1: 0 1px 2px rgb(31 58 34 / 0.08), 0 2px 6px rgb(31 58 34 / 0.06);
  --shadow-2: 0 4px 12px rgb(31 58 34 / 0.1), 0 16px 40px rgb(31 58 34 / 0.12);
  --bezel: var(--text);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --content: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-gap: clamp(5rem, 12vw, 9rem);
  --stripe-90: repeating-linear-gradient(90deg, var(--stripe-a) 0 48px, var(--stripe-b) 48px 96px);
  --stripe-135: repeating-linear-gradient(135deg, var(--stripe-a) 0 48px, var(--stripe-b) 48px 96px);
  --mark-bg: var(--accent);
  --mark-fg: var(--accent-text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121410;
    --surface: #181b16;
    --surface-raised: #22261f;
    --surface-sunken: #0e100c;
    --text: #f1efe8;
    --text-muted: #b5b3a8;
    --border: #393d33;
    --border-strong: #5d6255;
    --accent: #7fd17a;
    --accent-hover: #9be095;
    --accent-soft: #23361f;
    --accent-text: #0b1a09;
    --hedge: #0d1a0e;
    --hedge-text: #f1efe8;
    --stripe-a: #1f3a22;
    --stripe-b: #182e1a;
    --warning: #f2c063;
    --warning-soft: #3a2e14;
    --focus: #8ab8ff;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 8px 24px rgb(0 0 0 / 0.45), 0 24px 60px rgb(0 0 0 / 0.35);
    --bezel: #2a2e26;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--text);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 22ch;
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.amount {
  font-variant-numeric: tabular-nums;
}

.accent-text {
  color: var(--accent);
}

.muted {
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main > section + section {
  margin-top: var(--section-gap);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--surface-raised);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Chips, ticks, buttons ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.chip-warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.tick {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--border-strong);
}

.tick svg {
  width: 55%;
  height: 55%;
}

.tick.is-on,
.is-done > .tick {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 200ms var(--ease-out),
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out);
}

.btn-sm {
  padding-inline: 1rem;
  font-size: 0.9375rem;
}

.btn-lg {
  min-height: 52px;
  padding-inline: 1.5rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--text);
}

.btn-inverse {
  background: var(--hedge-text);
  color: var(--hedge);
}

.btn-inverse:hover {
  transform: translateY(-2px);
}

.btn .arrow {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.mini-check {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.js .site-header:not(.is-scrolled) {
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.logo-mark.on-hedge {
  --mark-bg: var(--hedge-text);
  --mark-fg: var(--hedge);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: currentColor;
}

.lockup-sm {
  transform: scale(0.8);
  transform-origin: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--text);
}

.site-nav .btn {
  margin-left: 0.5rem;
}

@media (max-width: 719.98px) {
  .nav-link {
    display: none;
  }
}

/* ---------- 1. Hero ---------- */

.hero {
  display: grid;
  gap: 3rem;
  padding-top: clamp(2.5rem, 7vw, 5rem);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 1.25rem;
}

.lede {
  max-width: 40ch;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.assurances li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 5fr 6fr;
    align-items: center;
  }
}

@media (max-width: 959.98px) {
  .hide-sm {
    display: none;
  }
}

@media (max-width: 479.98px) {
  .hero .btn-row .btn,
  .cta .btn {
    width: 100%;
  }
}

/* The clipboard composition */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 3rem) clamp(0.75rem, 4vw, 3rem) clamp(5rem, 12vw, 6.5rem);
  border-radius: 28px;
  background: var(--stripe-135);
  box-shadow:
    inset 0 0 0 1px rgb(0 0 0 / 0.06),
    inset 0 0 48px rgb(0 0 0 / 0.28);
}

@media (min-width: 960px) {
  .stage {
    aspect-ratio: 5 / 6;
    padding-left: 5rem;
  }
}

.device {
  position: relative;
  width: min(320px, 100%);
}

.phone {
  border: 10px solid var(--bezel);
  border-radius: 36px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.screen {
  display: grid;
  gap: 0.6rem;
  padding: 1.1rem 0.6rem 0.8rem;
}

.wk-title {
  padding-inline: 0.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.wk-pill {
  justify-self: start;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.day {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.45rem;
  border-radius: 16px;
}

.day.is-today {
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

.day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-inline: 0.3rem;
}

.day-head .eyebrow {
  color: var(--text);
}

.day-count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
}

.visits {
  display: grid;
  gap: 0.4rem;
}

.visit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.45rem;
  border-radius: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

.stop {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
}

.visit-body {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.visit-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.visit-addr {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.visit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.visit-meta .chip {
  padding-inline: 0.45rem;
}

.chip-done {
  background: var(--accent);
  color: var(--accent-text);
}

.visit:not(.is-done) .chip-done {
  display: none;
}

.invoice-card {
  position: absolute;
  left: -200px;
  bottom: -64px;
  width: 240px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  transform: rotate(-3deg);
}

@media (max-width: 959.98px) {
  .invoice-card {
    left: -0.5rem;
    bottom: -4.25rem;
  }
}

.inv-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.inv-total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--accent);
}

.inv-lines {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.4rem;
  white-space: nowrap;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Hero motion: main.js sets the "before" state, then plays it once. */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes tick-pop {
  0% {
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.motion .device {
  animation: rise-in 600ms var(--ease-out) both;
}

.motion .is-popped > .tick {
  animation: tick-pop 320ms var(--ease-spring);
}

.motion .is-popped .chip-done,
.motion .inv-line.is-new {
  animation: slide-in 320ms var(--ease-out) both;
}

/* ---------- Scroll reveals (only with JS and motion allowed) ---------- */

.motion [data-reveal] {
  transition:
    opacity 500ms var(--ease-out),
    transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger, 0ms));
}

.motion [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(var(--rise, 16px));
}

/* ---------- 2. The problem ---------- */

.problem {
  display: grid;
  justify-items: center;
}

.problem-line {
  max-width: 30ch;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: balance;
}

/* ---------- Cards ---------- */

.card,
.tile {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
}

/* ---------- 3. How it works ---------- */

.how > h2,
.rhythm > h2,
.features > h2 {
  margin-top: 0.75rem;
}

.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  --stagger: 90ms;
  --rise: 20px;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem 1rem 1.75rem;
}

.step > :not(.well) {
  padding-inline: 0.75rem;
}

.step p {
  color: var(--text-muted);
}

.step-num {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.well {
  position: relative;
  height: 140px;
  border-radius: 16px;
  background: var(--surface-sunken);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* Step 1: mini form */
.mini-form {
  display: grid;
  gap: 0.45rem;
  width: min(250px, calc(100% - 1.5rem));
  padding: 0.7rem;
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-1);
}

.mf-row {
  display: flex;
  gap: 0.4rem;
}

.mf-field {
  flex: 1;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.mf-price {
  flex: 0 0 3.5rem;
  font-variant-numeric: tabular-nums;
}

.seg {
  display: flex;
  padding: 2px;
  border-radius: 8px;
  background: var(--surface-sunken);
}

.seg span {
  flex: 1;
  padding: 0.15rem 0.2rem;
  text-align: center;
  border-radius: 6px;
  color: var(--text-muted);
}

.seg .on {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

.mf-note {
  color: var(--text-muted);
}

/* Step 2: route rows */
.route {
  --pitch: 29px;
  position: relative;
  width: min(250px, calc(100% - 1.5rem));
  height: calc(4 * var(--pitch) - 3px);
}

.route-stop,
.route-row {
  position: absolute;
  top: 0;
  height: 26px;
  transform: translateY(calc(var(--slot) * var(--pitch)));
}

.route-stop {
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 700;
}

.route-row {
  left: 34px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.3rem 0 0.6rem;
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-1);
  font-weight: 700;
  transition:
    transform 500ms var(--ease-spring),
    box-shadow 500ms var(--ease-out);
  transition-delay: 450ms;
}

.ud {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  color: var(--text-muted);
  font-weight: 400;
}

.ud:first-of-type {
  margin-left: auto;
}

.route-moving {
  --slot: 1;
  z-index: 1;
}

.route-pushed {
  --slot: 2;
}

.motion .step:not(.is-in) .route-moving {
  --slot: 1.5;
  box-shadow: var(--shadow-2);
}

.motion .step:not(.is-in) .route-pushed {
  --slot: 1;
}

/* Step 3: tick to invoice */
.well-tick {
  grid-template-columns: auto 90px auto;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
}

.tick-big {
  width: 56px;
  height: 56px;
  align-self: start;
  margin-top: 22px;
}

.arrow-curve {
  width: 90px;
  height: 60px;
  color: var(--text-muted);
}

.arrow-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 700ms var(--ease-out) 500ms;
}

.motion .step:not(.is-in) .arrow-draw {
  stroke-dashoffset: 1;
}

.arrow-head {
  transition: opacity 200ms linear 1100ms;
}

.motion .step:not(.is-in) .arrow-head {
  opacity: 0;
}

.mini-inv {
  align-self: end;
  margin-bottom: 22px;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-1);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 4. The rhythm ---------- */

.intro {
  max-width: 52ch;
  margin-top: 1.25rem;
  color: var(--text-muted);
}

.strip-frame {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3rem);
  border-radius: 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.strip-frame::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 40px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--surface-raised));
}

@media (min-width: 900px) {
  .strip-frame::after {
    display: none;
  }
}

.strip-scroll {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}

.strip {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 720px;
}

.strip th,
.strip td {
  padding: 0.5rem 0.3rem;
  text-align: center;
  vertical-align: top;
}

.strip thead th {
  padding-top: 1.1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  scroll-snap-align: start;
}

.strip th[scope="row"],
.strip thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface-raised);
  text-align: left;
  padding-left: 1.1rem;
  min-width: 11rem;
}

.strip th[scope="row"] {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
}

.row-name {
  display: block;
  margin-bottom: 0.2rem;
}

.strip th[scope="row"] .chip {
  white-space: normal;
}

.strip tbody tr:last-child > * {
  padding-bottom: 1.1rem;
}

.dot,
.cell {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-sunken);
}

.dot {
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 1rem;
}

.dot-caption {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Phone: a slimmer label column and smaller cells so about five weeks show
   before the scroll, including the 26 Oct "last Tue" dot. */
@media (max-width: 599.98px) {
  .strip {
    min-width: 0;
  }

  .strip th,
  .strip td {
    padding: 0.4rem 0.15rem;
  }

  .strip th[scope="row"],
  .strip thead th:first-child {
    min-width: 7.5rem;
    padding-left: 0.75rem;
  }

  .dot,
  .cell {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .dot {
    border-radius: 999px;
  }
}

.motion .strip .dot {
  transition:
    transform 280ms var(--ease-spring),
    opacity 160ms linear;
  transition-delay: calc(var(--c) * 70ms);
}

.motion .strip:not(.is-in) .dot {
  opacity: 0;
  transform: scale(0.4);
}

.footnote {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- 5. Features ---------- */

.bento {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .tile {
    grid-column: span 2;
  }

  .tile-wide {
    grid-column: span 3;
  }

  .tile-full {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.tile {
  --stagger: 60ms;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 28px;
}

.tile p {
  color: var(--text-muted);
}

.tile .chip {
  vertical-align: 0.1em;
}

@media (hover: hover) {
  .tile {
    transition: translate 300ms var(--ease-out);
  }

  .motion .tile[data-reveal] {
    transition:
      opacity 500ms var(--ease-out),
      transform 500ms var(--ease-out),
      translate 300ms var(--ease-out);
    transition-delay: calc(var(--i) * var(--stagger)), calc(var(--i) * var(--stagger)), 0ms;
  }

  .tile:hover {
    translate: 0 -2px;
    box-shadow: var(--shadow-2);
  }
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toy-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.toy {
  width: 64px;
  height: 64px;
  padding: 0;
  cursor: pointer;
  transition:
    background-color 160ms linear,
    border-color 160ms linear,
    color 160ms linear;
}

.toy[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.motion .toy.is-popped {
  animation: tick-pop 320ms var(--ease-spring);
}

.toy-label {
  font-weight: 700;
  color: var(--text-muted);
}

.mini-invoice {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.mi-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
}

.mi-total {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.mi-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.btn-fake {
  justify-self: start;
  cursor: default;
}

.tile-full {
  background: var(--surface-sunken);
  gap: 1.5rem 3rem;
}

.tile-full-copy {
  display: grid;
  gap: 0.75rem;
}

.backup-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.backup-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.doc-icon {
  flex: none;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.backup-name {
  font-weight: 700;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.currencies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ---------- 6. Try the real thing ---------- */

.try {
  display: grid;
  gap: 3rem;
}

@media (min-width: 960px) {
  .try {
    grid-template-columns: 4fr 7fr;
    align-items: start;
  }
}

.try > *,
.hero > * {
  min-width: 0;
}

.try-copy .intro {
  max-width: 50ch;
}

.try-copy h2 {
  margin-top: 0.75rem;
}

.checklist {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.checklist .mini-check {
  transform: translateY(0.15em);
}

.try-copy .text-link {
  margin-top: 1rem;
}

.lawn-behind {
  position: relative;
  width: calc(100% - 24px);
}

.lawn-behind::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: 28px;
  background: var(--stripe-90);
}

.frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-raised);
  box-shadow: var(--shadow-2);
}

.frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

@media (min-width: 960px) {
  .frame {
    height: 600px;
    border-radius: 16px;
    border: 1px solid var(--border);
  }

  .frame-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: var(--surface-sunken);
  }

  .frame-dots {
    position: absolute;
    left: 14px;
    display: flex;
    gap: 6px;
  }

  .frame-dots i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--border-strong);
  }

  .frame-pill {
    padding: 0.05rem 1.5rem;
    border-radius: 999px;
    background: var(--surface-raised);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .frame-body {
    height: calc(100% - 40px);
    overflow: hidden;
  }

  .frame-body.is-scaled iframe {
    width: 800px;
    transform-origin: 0 0;
  }
}

@media (max-width: 959.98px) {
  .lawn-behind {
    width: min(360px, calc(100% - 24px));
    margin-inline: auto;
  }

  .frame {
    height: 720px;
    border-radius: 40px;
    border: 10px solid var(--bezel);
  }

  .frame-bar {
    display: none;
  }

  .frame-body {
    height: 100%;
  }
}

.caption {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- 7. Closing call to action ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding-block: calc(14px + clamp(4rem, 10vw, 7rem)) clamp(4rem, 10vw, 7rem);
  background: var(--hedge);
  color: var(--hedge-text);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background: var(--stripe-90);
}

.cta-inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.cta-mark {
  width: 56px;
  height: 56px;
}

.cta h2 {
  max-width: 18ch;
  color: var(--hedge-text);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
}

.cta p {
  max-width: 46ch;
}

.cta .btn {
  margin-top: 0.75rem;
}

.cta-note {
  opacity: 0.75;
  font-size: 0.9375rem;
}

.tufts {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-around;
  color: var(--stripe-a);
  pointer-events: none;
}

.tuft {
  width: 30px;
  height: 24px;
  transform-origin: 50% 100%;
}

@keyframes sway {
  0% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(-4deg);
  }
  70% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.motion .cta.is-in .tuft {
  animation: sway 1.2s ease-in-out both;
  animation-delay: calc(var(--i) * 50ms);
}

/* ---------- 8. Footer ---------- */

.site-footer {
  position: relative;
  padding-block: 40px calc(40px + 6px);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: var(--stripe-90);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

.footer-brand {
  display: grid;
  gap: 0.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--text);
  text-underline-offset: 0.2em;
}

.footer-note {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }
}
