/* ---------- Design tokens (mirrors roundup/src/constants/colors.ts) ---------- */
:root {
  --bg: #FAFAF8;
  --card: #FFFFFF;
  --green: #2E8E55;
  --green-bright: #3DA866;
  --green-soft: #EAF5EE;
  --green-deep: #1F5E37;
  --ink: #0B0E0D;
  --ink-80: #2A2F2D;
  --ink-60: #5E6360;
  --ink-40: #8C9390;
  --line: rgba(15, 20, 18, 0.08);
  --line-strong: rgba(15, 20, 18, 0.14);
  --warn: #C97A1F;
  --doublePlus: #C44536;

  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --pad-x: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Reusable bits ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.eyebrow--green { color: var(--green); }
.eyebrow--lg {
  font-size: clamp(14px, 1.7vw, 18px);
  letter-spacing: 0.22em;
}

.headline {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.headline em {
  color: var(--green);
  font-style: italic;
  font-weight: 700;
  /* a hair lighter than the surrounding text so the italic feels confident, not heavy */
  font-feature-settings: "ss01";
}

.h1 { font-size: clamp(2.4rem, 6.2vw, 4.5rem); }
.h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); letter-spacing: -0.018em; line-height: 1.1; }
.h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -0.012em; line-height: 1.25; font-weight: 700; }

.lede {
  color: var(--ink-60);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  max-width: 36ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04), 0 8px 22px -10px rgba(0, 0, 0, 0.35);
}
.btn--primary:hover { background: #000; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), 0 14px 28px -12px rgba(0, 0, 0, 0.45); }

.btn--green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 22px -12px rgba(45, 113, 47, 0.6);
}
.btn--green:hover { background: var(--green-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(0, 0, 0, 0.03); }

/* App-store badge buttons */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  min-height: 60px;
  min-width: 180px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(0,0,0,0.5); }
.store-btn__icon { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn__lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn__small { font-size: 11px; opacity: 0.75; letter-spacing: 0.06em; text-transform: uppercase; }
.store-btn__big { font-size: 16px; font-weight: 600; }
.store-btn__chip {
  position: absolute;
  top: -8px; right: -6px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px -4px rgba(45,113,47,0.55);
}

/* CTA group (Get RoundUp + watch + coming soon) */
.cta-group { margin-top: 28px; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.btn--cta {
  padding: 0 24px 0 28px;
  min-height: 56px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.btn__arrow {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}
.cta-watch[hidden] { display: none; }
.cta-watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}
.cta-watch:hover { color: var(--green-deep); }
.cta-watch__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
}
.cta-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
.cta-soon__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow:
    0 0 0 2px rgba(46, 142, 85, 0.18),
    0 0 8px 1px rgba(61, 168, 102, 0.55);
}
.cta-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
@supports (backdrop-filter: blur(10px)) {
  @media (min-width: 900px) {
    .nav { backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); }
  }
}
.nav--scrolled { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 19px;
}
.brand__round { color: var(--ink); }
.brand__up { color: var(--green); }
.brand__flag {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav__links {
  display: none;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-60);
  font-weight: 500;
}
.nav__links a:hover { color: var(--ink); }
@media (min-width: 900px) {
  .nav__links { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(20px, 3vw, 44px);
  padding-bottom: clamp(8px, 1.5vw, 20px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}
.hero__copy .eyebrow { display: inline-block; margin-bottom: 16px; }
.hero__copy .eyebrow--dot { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow:
    0 0 0 2px rgba(46, 142, 85, 0.18),
    0 0 10px 2px rgba(61, 168, 102, 0.55);
}
.hero__copy .lede { margin-top: 18px; max-width: 38ch; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  width: 100%;
  min-width: 0;
}
@media (max-width: 899px) {
  /* clip the flow (which is naturally 520px wide) to the column on small screens */
  /* and breathe a bit when the visual stacks below the copy */
  .hero__visual {
    overflow: hidden;
    padding-block: clamp(20px, 5vw, 40px);
  }
  /* When the visual wraps below, center the copy block so it doesn't sit
     left-aligned against an empty right edge. */
  .hero:not(.jw-hero) .hero__copy { text-align: center; }
  .hero:not(.jw-hero) .hero__copy .lede { margin-inline: auto; }
  .hero:not(.jw-hero) .hero__copy .cta-row { justify-content: center; }
}

/* Wrapper for phone + slanted gray square so they stay aligned */
.phone-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Slanted gray backdrop square peeking out behind the phone */
.phone__backdrop {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: #EAE8E1;
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.12);
  display: none;
  /* same size as phone (parent inline-flex sizes to phone), but more rotated
     and slightly offset down/right so the gray peeks out from behind. */
  transform: rotate(14deg) translate(8%, 6%);
}
@media (min-width: 900px) {
  .phone__backdrop { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .phone__backdrop { transform: none; }
}

/* Phone frame */
.phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #fff;
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(15, 20, 18, 0.06),
    0 24px 50px -24px rgba(0, 0, 0, 0.22),
    0 10px 20px -12px rgba(0, 0, 0, 0.14);
  z-index: 1;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  display: block;
  object-fit: cover;
  object-position: top;
}
/* Variant: explicit "light" frame (no dark bezel) — used in hero */
.phone--light {
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(15, 20, 18, 0.05),
    0 30px 60px -30px rgba(0, 0, 0, 0.18),
    0 10px 20px -12px rgba(0, 0, 0, 0.12);
}

.phone__ring {
  position: absolute;
  inset: -22px;
  border-radius: 60px;
  border: 1.5px solid var(--green);
  opacity: 0.35;
  pointer-events: none;
  animation: pulse 3.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50%      { opacity: 0.5;  transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  .phone__ring { animation: none; opacity: 0.3; }
}

/* Slanted, overflowing phone (hero) */
.phone--tilt {
  transform: rotate(0deg);
  /* on mobile the phone sits straight; we angle it at >=900px */
}
@media (min-width: 900px) {
  .phone--tilt {
    /* drive sizing from height so aspect-ratio derives the width
       (avoids both-axes-clamped stretching). vh-based so the hero
       always fits a 13" laptop fold. */
    width: auto;
    height: 62vh;
    max-height: 580px;
    max-width: none;
    transform: rotate(6deg);
    transform-origin: center center;
  }
}
@media (min-width: 1200px) {
  .phone--tilt {
    height: 66vh;
    max-height: 620px;
    transform: rotate(6deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone--tilt { transform: none !important; }
}

/* Floating callout pills around the phone */
.phone__pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  font-family: var(--font-sans);
  z-index: 3;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35), 0 4px 12px -6px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  /* counter-rotate so the pills sit upright even when phone is tilted */
}
.phone--tilt .phone__pill { transform: rotate(-6deg); }
@media (max-width: 899px) {
  .phone--tilt .phone__pill { transform: none; }
}

.phone__pill-stack { display: inline-flex; flex-direction: column; line-height: 1.1; }
.phone__pill-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.phone__pill-big {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 2px;
}
.phone__pill-delta {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-left: 2px;
  vertical-align: 2px;
}
.phone__pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 6px;
  box-shadow: 0 0 0 4px rgba(45, 113, 47, 0.16);
}

/* — top-right white pill, season avg */
.phone__pill--avg {
  top: -2%;
  right: -8%;
  background: var(--card);
  color: var(--ink);
  padding: 12px 18px 12px 14px;
}
.phone__pill--avg .phone__pill-eyebrow { color: var(--ink-60); opacity: 1; }

/* — bottom-left black pill, scanned in 4.2s */
.phone__pill--scanned {
  bottom: 24%;
  left: -18%;
  background: var(--ink);
  color: #fff;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 12px 18px;
}
.phone__pill--scanned .phone__pill-big {
  font-size: 22px;
  font-weight: 700;
}

@media (max-width: 899px) {
  /* Pills still float on mobile but tucked closer to the phone */
  .phone__pill--avg     { top: 2%;  right: -8px; }
  .phone__pill--scanned { bottom: 12%; left: -8px; }
  .phone__pill-big      { font-size: 15px; }
  .phone__pill--scanned .phone__pill-big { font-size: 18px; }
}

/* ---------- Hero flow visual (3 animated step cards) — mirrors hero-visual.html ---------- */

/* Subtle ambient glow behind the cards */
.glow {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 142, 85, 0.07), transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.flow {
  position: relative;
  width: 520px;
  height: 680px;
  z-index: 1;
  transform-origin: center center;
  flex-shrink: 0;
}
.flow-path {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.step {
  position: absolute;
  width: 244px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.6s ease;
}
.step.is-active {
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.14),
              0 0 0 1.5px rgba(46, 142, 85, 0.30);
}
/* When active, cards straighten out and lift */
.step-1.is-active { transform: rotate(0deg) translateY(-4px); }
.step-2.is-active { transform: rotate(0deg) translateY(-4px); }
.step-3.is-active { transform: rotate(0deg) translateY(-4px); }

.step .eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step .stitle {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.step .ssub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-60);
  line-height: 1.4;
}

/* Step number tag floating off each card */
.step-num {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  z-index: 3;
}
.step-1 .step-num,
.step-2 .step-num,
.step-3 .step-num { top: -12px; left: -12px; }

/* Step 1 — Capture (tilted scorecard with scan line) */
.step-1 {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
}
.scorecard {
  position: relative;
  background: #FFFEFB;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  padding: 16px 14px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}
.scorecard .sc-tag {
  font-size: 8px;
  color: var(--ink-40);
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}
.scorecard .sc-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}
.scorecard .sc-grid.head { font-size: 8px; color: var(--ink-40); }
.scorecard .sc-grid.body {
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.scorecard .sc-grid.body-2 {
  font-size: 11px;
  color: var(--ink-60);
}
.scorecard .sc-grid > div { text-align: center; }
.scorecard .sc-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.scorecard .sc-total .lbl {
  font-size: 8px;
  color: var(--ink-40);
  letter-spacing: 1.6px;
}
.scorecard .sc-total .val {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1;
}
.scan-beam {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 56%;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green), 0 0 4px var(--green);
  animation: scanPulse 2.6s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.step-1.is-active .scan-beam {
  animation-play-state: running;
  opacity: 1;
}
@keyframes scanPulse {
  0%, 100% { transform: translateY(-30px); opacity: 0.35; }
  50%      { transform: translateY(28px);  opacity: 1; }
}
.scanned-pill {
  position: absolute;
  top: -10px; right: -8px;
  background: var(--ink);
  color: #fff;
  border-radius: 100px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  transform: rotate(6deg);
}

/* Step 2 — Edit (tap-to-fix scorecard) */
.step-2 {
  top: 30px;
  right: 0;
  transform: rotate(2.5deg);
}
.edit-grid-head {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-40);
  letter-spacing: 0.5px;
}
.edit-grid-head > div { text-align: center; }
.edit-grid-par {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-40);
}
.edit-grid-par > div { text-align: center; }
.edit-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  margin-bottom: 14px;
}
.edit-cell {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  padding: 6px 0;
  border-radius: 6px;
  position: relative;
}
.edit-cell.tap {
  background: var(--ink);
  color: #fff;
}
.edit-cell.tap::before,
.edit-cell.tap::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  opacity: 0;
  animation: editPulse 1.8s ease-out infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.edit-cell.tap::after { animation-delay: 0.6s; }
.step-2.is-active .edit-cell.tap::before,
.step-2.is-active .edit-cell.tap::after {
  animation-play-state: running;
}
@keyframes editPulse {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

.fix-callout {
  position: absolute;
  top: 30px; right: -22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
  transform: rotate(4deg);
  display: flex;
  align-items: center;
  gap: 9px;
}
.fix-callout .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-40);
  letter-spacing: 1.2px;
}
.fix-callout .old {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #C44536;
  text-decoration: line-through;
}
.fix-callout .new {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
}
.tap-pill {
  position: absolute;
  bottom: -10px; left: -12px;
  background: var(--green);
  color: #fff;
  border-radius: 100px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  box-shadow: 0 10px 24px rgba(46, 142, 85, 0.28);
  transform: rotate(-4deg);
}

/* Step 3 — History (stacked round cards + search) */
.step-3 {
  bottom: 0;
  left: 50%;
  margin-left: -140px;
  transform: rotate(-1.5deg);
  width: 280px;
  padding: 18px 18px 24px;
}
.history-stack {
  position: relative;
  height: 200px;
  margin-bottom: 14px;
}
.history-stack .paper {
  position: absolute;
  top: 12px; left: -8px; right: -8px; bottom: 8px;
  background: #EDEBE4;
  border-radius: 8px;
  transform: rotate(-3deg);
}
.round-row {
  position: absolute;
  left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}
.round-row.r0 { top: 0;    transform: rotate(1.5deg);  z-index: 3; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10); }
.round-row.r1 { top: 66px;  left: -6px; right: 4px; transform: rotate(-1.5deg); z-index: 2; }
.round-row.r2 { top: 132px; left: 4px;  transform: rotate(1deg);   z-index: 1; }
.round-row .date {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-40);
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}
.round-row .course {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.round-row .score {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.7px;
  line-height: 1;
  text-align: right;
}
.round-row.r1 .score,
.round-row.r2 .score { color: var(--ink-60); }
.round-row .delta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-40);
  margin-top: 2px;
  text-align: right;
}

.count-pill {
  position: absolute;
  top: -14px; left: 50%;
  margin-left: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 100px;
  padding: 8px 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
  transform: rotate(-3deg);
  z-index: 4;
}
.count-pill .n {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.count-pill .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  opacity: 0.7;
}

.search-pill {
  position: absolute;
  bottom: -14px; left: -10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 14px 8px 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: rotate(-3deg);
}
.search-pill svg { flex-shrink: 0; }
.search-pill .text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-width: 56px;
}
.typewriter::after {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 12px;
  background: var(--ink);
  margin-left: 2px;
  animation: cursorBlink 1s steps(2, start) infinite;
  animation-play-state: paused;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.step-3.is-active .typewriter::after {
  animation-play-state: running;
  opacity: 1;
}
@keyframes cursorBlink {
  0%, 50%      { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ── Responsive scaling — base = 13" MBP fold (1280×720), scale up on bigger displays ── */
.flow { transform: scale(0.70); margin-block: -102px; }
@media (min-width: 1400px) {
  .flow { transform: scale(0.82); margin-block: -61px; }
}
@media (min-width: 1600px) {
  .flow { transform: scale(0.95); margin-block: -17px; }
}
@media (max-width: 1023px) {
  .flow { transform: scale(0.70); margin-block: -102px; }
}
@media (max-width: 899px) {
  .flow { transform: scale(0.66); margin-block: -116px; }
}
@media (max-width: 480px) {
  .flow { transform: scale(0.55); margin-block: -153px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .scan-beam,
  .edit-cell.tap::before,
  .edit-cell.tap::after,
  .typewriter::after { animation: none !important; }
  .step,
  .step.is-active { transition: none; }
}

/* Social proof row (avatars + rating) */
.proof {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.proof__avatars {
  display: inline-flex;
  align-items: center;
}
.proof__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--av, #C0BBA8);
  border: 2px solid var(--bg);
  display: inline-block;
}
.proof__avatar + .proof__avatar { margin-left: -10px; }
.proof__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.proof__rating svg { color: var(--ink); }
.proof__sub {
  font-size: 13.5px;
  color: var(--ink-60);
  margin-top: 2px;
}

/* Course logo strip at hero base */
.course-strip {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(14px, 1.6vw, 20px);
  overflow: hidden;
}
.course-strip__track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  /* On mobile we let it scroll horizontally; on desktop it fans out */
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding-inline: var(--pad-x);
  margin-inline: calc(var(--pad-x) * -1);
}
.course-strip__track::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .course-strip__track {
    justify-content: space-between;
    overflow-x: visible;
    padding-inline: 0;
    margin-inline: auto;
    max-width: var(--container);
  }
  .course-strip { padding-inline: var(--pad-x); }
}
.course {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-60);
  scroll-snap-align: center;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.course svg { color: var(--ink-40); }
.course--active { color: var(--green); }
.course--active svg { color: var(--green); }

/* ---------- Section base ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: linear-gradient(180deg, transparent 0%, rgba(45,113,47,0.025) 100%); }

.section__head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__head .eyebrow { display: inline-block; margin-bottom: 14px; }
.section__head .lede { margin: 18px auto 0; max-width: 50ch; }

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,0.18);
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-60); font-size: 15.5px; }

/* ---------- Stats showcase ---------- */
.showcase {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
}
@media (min-width: 900px) {
  .showcase { grid-template-columns: 1fr 1fr; }
}
.showcase__visual {
  display: flex;
  justify-content: center;
}
.showcase__visual .phone { max-width: 280px; }
.showcase__copy .lede { margin-top: 18px; max-width: 38ch; }
.showcase__list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.showcase__list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px;
  color: var(--ink-80);
}
.showcase__check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 880px;
  margin-inline: auto;
}
@media (min-width: 600px) { .pricing { grid-template-columns: 1fr 1fr; gap: 20px; } }

.tier {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 36px);
  display: flex; flex-direction: column;
  position: relative;
}
.tier--pro {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}
.tier--pro .tier__price small,
.tier--pro .tier__name,
.tier--pro .tier__feat { color: rgba(255,255,255,0.72); }
.tier--pro .tier__feat-check { background: rgba(255,255,255,0.1); color: #fff; }

.tier__name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.tier__price {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tier__price small {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--ink-60);
  margin-left: 4px;
}
.tier__sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-60);
}
.tier--pro .tier__sub { color: rgba(255,255,255,0.72); }

.tier__feats {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  flex: 1;
}
.tier__feat {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px;
  color: var(--ink-80);
}
.tier__feat-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.tier__cta {
  margin-top: 24px;
  width: 100%;
}

.tier__badge {
  position: absolute;
  top: -10px; right: 24px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
  position: relative;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  letter-spacing: -0.01em;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink-40);
  transition: transform .25s ease;
  width: 24px;
  text-align: center;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--green); }
.faq__body {
  margin-top: 14px;
  color: var(--ink-60);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 60ch;
}

/* ---------- Final CTA band ---------- */
.cta-band {
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(45,113,47,0.14), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band .store-row { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.footer {
  padding-block: 40px 56px;
  font-size: 14px;
  color: var(--ink-60);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  justify-content: space-between;
  align-items: center;
}
.footer__links {
  display: flex; flex-wrap: wrap;
  gap: 20px;
}
.footer__links a { padding: 6px 0; min-height: 32px; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--ink); }

/* ---------- Placeholder pages ---------- */
.page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(64px, 12vw, 120px);
}
.page__card {
  max-width: 620px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.page__card .eyebrow { margin-bottom: 14px; display: inline-block; }
.page__card h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.018em;
  margin-bottom: 16px;
}
.page__card p { color: var(--ink-60); margin-bottom: 8px; }
.page__back {
  display: inline-flex;
  margin-top: 28px;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
}
.page__back:hover { color: var(--green-deep); }

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s ease, transform .8s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- JaysWay company page ---------- */

/* Tighter rhythm on the company page than the marketing home page */
.jw-page {
  --section-y: clamp(40px, 5vw, 72px);
}
.jw-page .section__head { margin-bottom: clamp(28px, 4vw, 48px); }

/* Hero copy width on a content page (no flow visual on the right) */
.jw-hero .hero__grid { grid-template-columns: minmax(0, 1fr); }
.jw-hero .hero__copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.jw-hero .lede { max-width: 56ch; margin-inline: auto; }
.jw-hero .eyebrow--dot { justify-content: center; }

/* Three-up fact strip below the lede */
.jw-fact-strip {
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 620px;
  text-align: left;
}
@media (min-width: 600px) {
  .jw-fact-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .jw-fact + .jw-fact {
    border-left: 1px solid var(--line);
    padding-left: 24px;
  }
}
.jw-fact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  display: block;
  margin-bottom: 6px;
}
.jw-fact__value {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}

/* Trusted-by row: two large typographic wordmarks separated by a hairline */
.jw-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin-inline: auto;
}
.jw-trust__divider { display: none; }
@media (min-width: 700px) {
  .jw-trust {
    flex-direction: row;
    justify-content: center;
    gap: clamp(36px, 6vw, 72px);
  }
  .jw-trust__divider {
    display: block;
    width: 1px;
    align-self: stretch;
    background: var(--line);
  }
}
.jw-trust__mark {
  display: block;
  height: clamp(48px, 7vw, 80px);
  width: auto;
  max-width: 320px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
.jw-trust__mark:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-1px);
}

/* About / What we build — showcase override */
.jw-about .showcase__copy h2 { letter-spacing: -0.018em; }
.jw-about .showcase__copy p {
  margin-top: 18px;
  color: var(--ink-60);
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.6;
  max-width: 42ch;
}

/* Built-in-Finland location card */
.jw-location {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.jw-location__pin {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jw-location__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.jw-location__coords {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.1;
}
.jw-location__caption {
  color: var(--ink-60);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 36ch;
}
.jw-location__crosshair {
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  opacity: 0.5;
  pointer-events: none;
}
.jw-location__crosshair::before,
.jw-location__crosshair::after {
  content: '';
  position: absolute;
  background: var(--line-strong);
}
.jw-location__crosshair::before {
  left: 50%; top: 10%; bottom: 10%;
  width: 1px; transform: translateX(-50%);
}
.jw-location__crosshair::after {
  top: 50%; left: 10%; right: 10%;
  height: 1px; transform: translateY(-50%);
}

/* Founder note — narrow, slightly larger reading body */
.jw-note {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.jw-note .eyebrow { display: inline-block; margin-bottom: 18px; }
.jw-note h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 22px;
}
.jw-note p {
  color: var(--ink-80);
  font-size: clamp(1.02rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  margin-bottom: 14px;
}
.jw-note__sign {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* YouTube video card inside the founder note */
.jw-video {
  display: block;
  position: relative;
  margin: 28px auto 18px;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.30);
  transition: transform .25s ease, box-shadow .25s ease;
}
.jw-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.40);
}
.jw-video__thumb { position: absolute; inset: 0; }
.jw-video__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.jw-video__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.jw-video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.35);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.jw-video__play svg { transform: translateX(2px); }
.jw-video:hover .jw-video__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--green);
  color: #fff;
}
.jw-video__caption {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  text-align: left;
  color: #fff;
}
.jw-video__lbl {
  display: block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.jw-video__sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Contact CTA — primary mail button */
.jw-cta-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 0 28px;
  min-height: 56px;
  font-size: 16px;
  letter-spacing: -0.005em;
}
.jw-cta-mail svg { flex-shrink: 0; }
