/* =====================================================================
   OUTCOMES MADE EASY: SITE STYLES
   One stylesheet for every page.

   How this file is organized (top to bottom, in page order):
     1.  Brand settings (colors, fonts, sizes)
     2.  Base
     3.  Layout helpers
     4.  Text styles
     5.  Icons and background textures
     6.  Buttons
     7.  Shared pieces (tags, cards, check lists)
     8.  Header and mobile menu
     9.  Hero
     10. Example cards (the scoreboard and the one-page plan)
     11. Pain section
     12. The fix section
     13. About Sam section
     14. One-Page Growth Plan section
     15. Testimonials section
     16. Products section
     17. Steps section
     18. Quiz section (hidden for now)
     19. Closing section
     20. Contact section
     21. Footer
     22. Simple pages (privacy policy, 404)
     23. Animations and utilities
   ===================================================================== */


/* ===== 1. BRAND SETTINGS: edit these to restyle the whole site ===== */
:root {
  /* Blues */
  --blue-700: #0A3AC6;        /* button hover and pressed */
  --blue-600: #0D49F7;        /* OME Blue: main buttons, links, glow */
  --blue-400: #5A85FF;        /* accents, labels, icons on navy */
  --blue-100: #DCE6FE;        /* tags and icon tiles */
  --blue-50:  #F1F5FF;        /* light blue section backgrounds */

  /* Navy */
  --navy-950: #020826;        /* dark sections, footer */
  --navy-900: #050A24;        /* headlines on white */
  --navy-800: #0A1440;        /* message bubbles in the hero */

  /* Text and lines */
  --ink: #1F2437;             /* body text on white */
  --muted: #5B6178;           /* softer text on white */
  --line: #E2E8F5;            /* thin borders on white */
  --on-dark: #FFFFFF;         /* headlines on navy */
  --on-dark-muted: #A9B4D6;   /* body text on navy */
  --on-dark-faint: #7C88B0;   /* small print on navy */

  /* Fonts (loaded from Google Fonts in each page's <head>) */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* Page width */
  --max-width: 1120px;

  /* Space above and below each section (bigger on desktop, see below) */
  --section-space: 80px;
  --hero-space: 96px;

  /* Rounded corners */
  --radius-sm: 6px;
  --radius-button: 10px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Effects (you rarely need to change these) */
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(13, 73, 247, 0.45) 0%, rgba(13, 73, 247, 0) 70%);
  --grid-line: rgba(255, 255, 255, 0.06);
  --grid-line-light: rgba(13, 73, 247, 0.07);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.10);
  --hairline: linear-gradient(90deg, rgba(13, 73, 247, 0), #0D49F7, rgba(90, 133, 255, 0));
  --shadow-sm: 0 1px 2px rgba(5, 10, 36, 0.04), 0 2px 8px rgba(5, 10, 36, 0.04);
  --shadow-md: 0 14px 40px rgba(5, 10, 36, 0.10);
  --shadow-blue: 0 0 0 1px rgba(13, 73, 247, 0.6), 0 8px 24px rgba(13, 73, 247, 0.40);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 900px) {
  :root {
    --section-space: 120px;
    --hero-space: 136px;
  }
}
/* ===== END BRAND SETTINGS ===== */


/* ===== 2. BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--navy-900);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Keeps headings from hiding under the sticky header when you jump to a section */
section {
  scroll-margin-top: 72px;
}

/* Visible outline when someone moves through the page with the Tab key */
a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}

/* The hidden box that holds the icon drawings used across the page */
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}


/* ===== 3. LAYOUT HELPERS ===== */

/* Centers content and keeps it from getting too wide */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 32px;
  }
}

/* A standard page section with space above and below */
.section {
  position: relative;
  padding-block: var(--section-space);
}

.relative {
  position: relative;
}

.center {
  text-align: center;
}

/* Dark navy section */
.section-dark {
  background: var(--navy-950);
  color: var(--on-dark-muted);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--on-dark);
}

/* Slightly lighter navy, used to separate two dark sections */
.section-darker {
  background: var(--navy-900);
}

.border-top {
  border-top: 1px solid var(--glass-border);
}

/* Section heading group: label, headline, and intro line */
.section-head {
  max-width: 680px;
}

.section-head.center {
  margin-inline: auto;
}

.section-head h2 {
  margin-top: 16px;
}

.section-head .lead {
  margin-top: 16px;
}


/* ===== 4. TEXT STYLES ===== */
.h1 {
  font-size: clamp(36px, 5.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.h4 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Small blue label above a headline, like "// SOUND FAMILIAR?" */
.eyebrow {
  display: block;
  font: 500 12px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.eyebrow::before {
  content: "// ";
}

.section-dark .eyebrow {
  color: var(--blue-400);
}

/* Larger intro paragraph under a headline */
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}

.section-dark .lead {
  color: var(--on-dark-muted);
}

.text-small {
  font-size: 14px;
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
}

/* White-to-blue fade on the hero headline */
.gradient-text {
  background: linear-gradient(180deg, #FFFFFF 35%, var(--blue-400) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ===== 5. ICONS AND BACKGROUND TEXTURES ===== */
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

/* Faint grid lines and blue glow behind dark sections */
.bg-grid,
.bg-glow,
.bg-glow-left {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 25%, transparent 80%);
}

.bg-glow {
  background: var(--glow);
}

.bg-glow-left {
  background: radial-gradient(55% 90% at 0% 50%, rgba(13, 73, 247, 0.42), rgba(13, 73, 247, 0) 70%);
}


/* ===== 6. BUTTONS ===== */

/* A row of buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row.center {
  justify-content: center;
}

/* Shared button shape */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 500 15px/1 var(--font-sans);
  letter-spacing: -0.01em;
  padding: 15px 20px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.button .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

/* The arrow nudges right on hover */
.button:hover .arrow {
  transform: translateX(3px);
}

.button-small {
  padding: 10px 14px;
  font-size: 14px;
}

/* Blue button: the main call to action */
.button-primary {
  background: var(--blue-600);
  color: #FFFFFF;
  box-shadow: var(--shadow-blue);
}

.button-primary:hover {
  background: var(--blue-700);
}

/* White button with a thin border */
.button-secondary {
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: #CDD6EA;
}

/* See-through button for dark backgrounds */
.button-ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: #FFFFFF;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* White button with blue text, for blue backgrounds */
.button-inverse {
  background: #FFFFFF;
  color: var(--blue-600);
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-1px);
  }
}

/* On small phones, buttons stretch full width */
@media (max-width: 479px) {
  .button-row .button {
    flex: 1 1 100%;
  }
}


/* ===== 7. SHARED PIECES ===== */

/* Rounded label with a green dot, used in the hero */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.03em;
  color: var(--on-dark-muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2BD47D;
  box-shadow: 0 0 0 3px rgba(43, 212, 125, 0.18);
}

/* Small uppercase tag, like "START HERE" */
.tag {
  display: inline-block;
  align-self: flex-start;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-700);
}

.section-dark .tag {
  background: rgba(90, 133, 255, 0.14);
  color: var(--blue-400);
}

/* Square icon box */
.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex: none;
}

/* White card with a thin border */
.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.card p {
  color: var(--muted);
  margin-top: 8px;
}

/* See-through card for dark sections */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* Thin glowing line across the top of a card */
.top-glow-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--hairline);
  border-radius: inherit;
}

/* Cards that lift a little when you hover over them */
.hover-lift {
  position: relative;
  transition: transform 0.3s var(--ease);
}

.hover-lift::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.section-dark .hover-lift::after {
  box-shadow: 0 0 0 1px rgba(90, 133, 255, 0.35), 0 18px 50px rgba(0, 0, 0, 0.45);
}

@media (hover: hover) {
  .hover-lift:hover {
    transform: translateY(-4px);
  }

  .hover-lift:hover::after {
    opacity: 1;
  }
}

/* Check mark list (the check marks draw themselves as you scroll, see section 23) */
.checks {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks .check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-600);
  margin-top: 1px;
}

.checks .check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
}

.section-dark .checks .check {
  background: rgba(90, 133, 255, 0.14);
  color: var(--blue-400);
}

/* Price line, like "$500 ONE TIME" */
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 14px;
}

.price-amount {
  font: 500 40px/1 var(--font-mono);
  letter-spacing: -0.03em;
  color: var(--navy-900);
}

.price small {
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ===== 8. HEADER AND MOBILE MENU ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 8, 38, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  color: #FFFFFF;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 20px;
}

/* The logo and the button area are each 68px tall, so the top row stays the same
   height when the phone menu opens underneath it */
.header-inner > .logo,
.header-actions {
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 30px;
  width: auto;
}

@media (min-width: 768px) {
  .logo img {
    height: 34px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Menu links. Without JavaScript they show as a row under the logo on phones. */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  order: 3;
  width: 100%;
  padding-bottom: 14px;
  font-size: 14px;
  color: var(--on-dark-muted);
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #FFFFFF;
}

/* The menu button (three lines). Only shows on phones when JavaScript is working. */
.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-button);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: #FFFFFF;
  cursor: pointer;
}

.menu-button .icon-close {
  display: none;
}

.js .menu-button {
  display: inline-flex;
}

.js .nav-links {
  display: none;
}

/* When the menu is open on a phone */
.js .site-header.menu-open .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 8px;
}

.js .site-header.menu-open .nav-links a {
  padding: 14px 0;
  border-top: 1px solid var(--glass-border);
  font-size: 16px;
}

.site-header.menu-open .menu-button .icon-open {
  display: none;
}

.site-header.menu-open .menu-button .icon-close {
  display: block;
}

/* Desktop: links sit in the middle of the header, no menu button */
@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
    height: 68px;
  }

  .nav-links,
  .js .nav-links {
    display: flex;
    order: 0;
    width: auto;
    padding: 0;
    gap: 32px;
  }

  .js .menu-button {
    display: none;
  }
}


/* ===== 9. HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--hero-space) - 16px) 0 var(--hero-space);
}

.hero .bg-glow {
  background: radial-gradient(50% 60% at 75% 10%, rgba(13, 73, 247, 0.45), rgba(13, 73, 247, 0) 70%);
}

.hero .bg-grid {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 75% 30%, #000 20%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 64px;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* The big headline. Each line is its own <span>. */
.hero-title {
  margin-top: 28px;
  font-size: clamp(34px, 10.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-title > span {
  display: block;
}

@media (min-width: 1000px) {
  .hero-title {
    font-size: clamp(48px, 4.5vw, 58px);
  }

  .hero-title > span {
    white-space: nowrap;
  }
}

.hero .lead {
  margin-top: 24px;
  max-width: 540px;
}

.hero .button-row {
  margin-top: 36px;
}

/* The hand-drawn marker underline under "easy." */
.marker-word {
  display: inline-grid;
  width: max-content;
}

.marker-word > * {
  grid-area: 1 / 1;
}

.marker-underline {
  align-self: end;
  position: relative;
  height: 0;
}

.marker-underline svg {
  position: absolute;
  left: -2%;
  top: -0.1em;
  width: 104%;
  height: auto;
  overflow: visible;
}

/* The hand-drawn circle around $500 */
.marker-circle {
  position: relative;
}

.marker-circle svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 62px;
  transform: translate(-50%, -52%);
  overflow: visible;
  pointer-events: none;
}

.marker-word path,
.marker-circle path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marker-word path {
  stroke: var(--blue-400);
  stroke-width: 6;
}

.marker-circle path {
  stroke: var(--blue-600);
  stroke-width: 2.5;
}

/* "Working with" client names under the hero */
.client-row {
  position: relative;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  align-items: center;
}

.client-row .mono {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.client-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  color: #8D98BE;
  font-weight: 600;
  letter-spacing: -0.015em;
}


/* ===== 10. EXAMPLE CARDS =====
   The dark "app window" cards: the hero scoreboard and the example one-page plan. */
.example-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(13, 73, 247, 0.3), 0 40px 90px -30px rgba(13, 73, 247, 0.65);
  overflow: hidden;
  color: var(--on-dark-muted);
}

.example-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.example-card-head b {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.example-card-head i {
  font-style: normal;
}

.example-card-head > span {
  font: 500 11px/1 var(--font-mono);
  color: var(--on-dark-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Small grey group label, like "ONE GOAL" or "THIS WEEK" */
.example-group {
  padding: 12px 20px 8px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.015);
}

/* The goal line with its progress bar */
.example-goal {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.example-goal b {
  display: block;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.goal-bar {
  margin-top: 12px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.goal-bar i {
  display: block;
  height: 100%;
  width: 75%;                 /* 75% full = 15 of 20 jobs */
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
}

.goal-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font: 400 11.5px/1.4 var(--font-mono);
  color: var(--on-dark-faint);
}

.goal-meta > span:last-child {
  color: #FFFFFF;
}

/* The "Top 3 money makers" line */
.goal-meta.money-makers {
  margin-top: 0;
  font-size: 12.5px;
}

.goal-meta.money-makers span {
  color: #D5DCF2;
}

/* One to-do row with a check box, text, and status tag */
.example-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--glass-border);
  align-items: start;
}

@media (min-width: 480px) {
  .example-row {
    grid-template-columns: 22px 1fr auto;
  }
}

.example-card > .example-row:last-child {
  border-bottom: 0;
}

.example-row b {
  display: block;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.4;
}

.example-row small {
  display: block;
  margin-top: 3px;
  font: 400 11.5px/1.4 var(--font-mono);
  color: var(--on-dark-faint);
}

.tick {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: var(--blue-400);
  border: 1px solid rgba(90, 133, 255, 0.45);
  background: rgba(90, 133, 255, 0.14);
}

.tick .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

.example-row.is-next .tick {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.example-row.is-dropped .tick {
  color: var(--on-dark-faint);
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

.example-row.is-dropped b {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  color: var(--on-dark-muted);
}

/* Status tags: Done, Next, Do, Hand off, Drop */
.status {
  grid-column: 2;
  justify-self: start;
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 7px;
  border-radius: 5px;
  margin-top: 2px;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .status {
    grid-column: auto;
  }
}

.status-done {
  color: #6FE3A5;
  background: rgba(30, 158, 90, 0.16);
}

.status-handoff {
  color: var(--blue-400);
  background: rgba(90, 133, 255, 0.14);
}

.status-you {
  color: #FFFFFF;
  background: var(--blue-600);
}

.status-drop {
  color: var(--on-dark-faint);
  background: rgba(255, 255, 255, 0.06);
}

.example-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  font: 400 12px/1.4 var(--font-mono);
  color: var(--on-dark-muted);
}

/* The hero scoreboard starts as a pile of messages, then sorts itself.
   This only happens when JavaScript works. Without it, the finished card shows. */
.scoreboard .title-before,
.message-pile {
  display: none;
}

.message {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  font: 500 13.5px/1.2 var(--font-sans);
  letter-spacing: -0.005em;
  color: #FFFFFF;
  white-space: nowrap;
  opacity: 0;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)) scale(0.7);
}

.message::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
}

/* Where each message lands in the pile.
   --n = order it appears, --r = tilt, --up = which to-do row it flies into. */
.message-1 { --n: 0; --r: -6deg; left: 12%; top: 24%; }
.message-2 { --n: 1; --r: 5deg;  --up: 2; --dx: 160px; --dy: -77px; }
.message-3 { --n: 2; --r: 3deg;  left: 23%; top: 42%; }
.message-4 { --n: 3; --r: -4deg; --up: 1; --dx: -4px;  --dy: -35px; }
.message-5 { --n: 4; --r: 7deg;  left: 50%; top: 53%; }
.message-6 { --n: 5; --r: -3deg; --up: 0; --dx: 100px; --dy: -49px; }

.scoreboard {
  --foot: 45px;
  --row: 70px;
}

.message-keep {
  left: 40px;
  bottom: calc(var(--foot) + (var(--up) + 1) * var(--row) - 48px);
}

@media (max-width: 479px) {
  .scoreboard {
    --row: 105px;
  }

  .message-2 {
    --dx: 130px;
  }
}


/* ===== 11. PAIN SECTION ===== */
.pain-grid {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pain-grid > :last-child {
    grid-column: span 2;
  }
}

/* Desktop: three cards on top, two wider cards below */
@media (min-width: 1024px) {
  .pain-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .pain-grid > * {
    grid-column: span 2;
  }

  .pain-grid > :nth-child(n + 4) {
    grid-column: span 3;
  }
}

.pain-grid .icon-tile {
  margin-bottom: 22px;
}

.pain-closing {
  margin-top: 56px;
  text-align: center;
}

.pain-closing p {
  margin-inline: auto;
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  max-width: 30ch;
}

.pain-closing p span {
  color: var(--blue-600);
}


/* ===== 12. THE FIX SECTION ===== */
.fix-grid {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

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

.fix-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.fix-card .h3 {
  margin-top: 18px;
}

.fix-card .checks {
  margin-top: 18px;
  gap: 11px;
}

.fix-card .checks li {
  font-size: 15px;
  line-height: 1.45;
  color: #D5DCF2;
}

.fix-closing {
  margin-top: 48px;
  text-align: center;
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}

/* Little pictures at the bottom of each fix card ("mock-" = mockup) */
.mockup {
  margin-top: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  --mock-bg: rgba(255, 255, 255, 0.03);
  --mock-panel: rgba(255, 255, 255, 0.04);
  --mock-line: rgba(255, 255, 255, 0.10);
  --mock-text: #FFFFFF;
  --mock-mute: var(--on-dark-muted);
}

.mock-box {
  border: 1px solid var(--mock-line);
  border-radius: 10px;
  background: var(--mock-bg);
  padding: 14px;
}

.mock-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 500 11px/1 var(--font-mono);
  color: var(--mock-mute);
  margin-bottom: 12px;
}

.mock-head b {
  color: var(--mock-text);
  font-weight: 500;
}

/* Calendar picture */
.mock-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.mock-calendar span {
  font: 500 9px/1 var(--font-mono);
  text-align: center;
  color: var(--mock-mute);
  padding-bottom: 3px;
}

.mock-calendar i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--mock-panel);
  border: 1px solid var(--mock-line);
}

.mock-calendar i.on {
  background: var(--blue-600);
  border-color: var(--blue-600);
}

/* Lead follow-up flow picture */
.mock-flow {
  display: grid;
}

.mock-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--mock-line);
  border-radius: 10px;
  background: var(--mock-bg);
}

.mock-step.is-ai {
  border-color: rgba(13, 73, 247, 0.45);
  background: rgba(13, 73, 247, 0.14);
}

.mock-step-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(90, 133, 255, 0.15);
  color: var(--blue-400);
  flex: none;
}

.mock-step-icon .icon {
  width: 16px;
  height: 16px;
}

.mock-step b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mock-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.mock-step small {
  display: block;
  font: 400 11.5px/1.35 var(--font-mono);
  color: var(--mock-mute);
  margin-top: 2px;
}

.mock-link {
  display: block;
  width: 1px;
  height: 16px;
  margin-left: 29px;
  background: linear-gradient(var(--mock-line), var(--blue-600));
}

/* Bar chart picture */
.mock-bars {
  display: grid;
  gap: 12px;
}

.mock-bars .mock-head {
  margin-bottom: 2px;
}

.mock-bar-row {
  display: grid;
  gap: 6px;
  font: 500 11px/1 var(--font-mono);
  color: var(--mock-mute);
}

.mock-track {
  height: 10px;
  border-radius: 99px;
  background: var(--mock-panel);
  border: 1px solid var(--mock-line);
  overflow: hidden;
}

.mock-track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--blue-600);
}

/* Bar lengths */
.bar-78 { width: 78%; }
.bar-56 { width: 56%; }
.bar-40 { width: 40%; }


/* ===== 13. ABOUT SAM SECTION ===== */
.about {
  background: var(--blue-50);
}

.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 5fr 6fr;
    gap: 88px;
  }
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--blue-600);
  overflow: hidden;
  max-width: 440px;
  width: 100%;
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.about-copy h2 {
  margin-top: 16px;
}

.about-copy p {
  margin-top: 18px;
  max-width: 560px;
}

/* Client quote with a blue line on the left */
.pull-quote {
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 2px solid var(--blue-600);
  background: #FFFFFF;
  border-radius: 0 12px 12px 0;
}

.about-copy .pull-quote p {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

/* Name under a quote, like "NANCY · CHOSEN WITH A MISSION" */
cite {
  display: block;
  margin-top: 8px;
  font: 500 12px/1.4 var(--font-mono);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

cite b {
  font-weight: 500;
  color: var(--navy-900);
}


/* ===== 14. ONE-PAGE GROWTH PLAN SECTION ===== */
.plan-grid {
  display: grid;
  gap: 44px;
  align-items: start;
}

@media (min-width: 960px) {
  .plan-grid {
    grid-template-columns: 1.08fr 1fr;
    gap: 72px;
  }
}

/* The example plan stays in view while you scroll on big screens */
@media (min-width: 960px) and (min-height: 780px) {
  .plan-side {
    position: sticky;
    top: 104px;
  }
}

.plan-letter h2 {
  margin-top: 16px;
}

.plan-letter .lead {
  margin-top: 18px;
  max-width: 520px;
}

.plan-letter .lead + .lead {
  margin-top: 10px;
}

.plan-turn {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--navy-900);
}

.plan-leadin {
  margin-top: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.plan-letter .checks {
  margin-top: 16px;
  gap: 14px;
  max-width: 540px;
}

.plan-letter .checks li {
  line-height: 1.5;
}

.plan-letter .checks b {
  font-weight: 600;
  color: var(--navy-900);
}

/* The "01 / 02 / 03" how-it-works strip */
.plan-how {
  display: grid;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--blue-50);
  overflow: hidden;
}

.plan-how li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy-900);
}

.plan-how li + li {
  border-top: 1px solid var(--line);
}

.plan-how .mono {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--blue-600);
}

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

  .plan-how li {
    flex-direction: column;
    gap: 6px;
  }

  .plan-how li + li {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.plan-letter .price {
  margin-top: 32px;
}

.plan-risk {
  margin-top: 10px;
  max-width: 520px;
}

.plan-letter .button-row {
  margin-top: 24px;
}

.plan-letter .text-small {
  margin-top: 14px;
  max-width: 460px;
}

.plan-last {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

/* The navy box that holds the example plan */
.plan-example-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 18px 14px 16px;
}

@media (min-width: 640px) {
  .plan-example-box {
    padding: 32px 28px 24px;
  }
}

.plan-caption {
  position: relative;
  margin-top: 16px;
  text-align: center;
  font: 400 12px/1.4 var(--font-mono);
  color: var(--on-dark-faint);
}


/* ===== 15. TESTIMONIALS SECTION ===== */
.testimonials {
  overflow: hidden;
}

/* Phone: cards stack. Desktop: the video card on the left, quote cards stacked on the right. */
.testimonial-grid {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

@media (min-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .testimonial-grid .has-video {
    grid-row: span 2;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.testimonial-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 22px;
}

.testimonial-text blockquote p {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}

.section-dark cite {
  margin-top: 0;
  color: var(--on-dark-muted);
}

.section-dark cite b {
  color: #FFFFFF;
}

/* YouTube video, kept at a 16:9 shape */
.video-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--navy-800);
}


/* ===== 16. PRODUCTS SECTION ===== */
.products {
  background: var(--blue-50);
}

.product-grid {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  align-items: stretch;
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px 28px;
}

.product-card .tag {
  margin-bottom: 20px;
}

.product-promise {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--navy-900);
}

.product-card .checks {
  margin-top: 18px;
  gap: 12px;
  flex: 1;
  align-content: start;
}

.product-card .checks li {
  font-size: 15px;
  line-height: 1.45;
}

.product-card .button {
  margin-top: 28px;
  width: 100%;
}

/* "Start here" card gets a blue border */
.product-card.featured {
  border-color: rgba(13, 73, 247, 0.45);
  box-shadow: var(--shadow-md);
}

/* Coaching card is navy */
.product-card.dark-card {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: #D5DCF2;
}

.product-card.dark-card .h3,
.product-card.dark-card .product-promise,
.product-card.dark-card .price-amount {
  color: #FFFFFF;
}

.product-card.dark-card .product-promise {
  border-color: var(--glass-border);
}

.product-card.dark-card .price small {
  color: var(--on-dark-muted);
}

.product-card.dark-card .tag,
.product-card.dark-card .checks .check {
  background: rgba(90, 133, 255, 0.14);
  color: var(--blue-400);
}

.products-closing {
  margin-top: 40px;
  text-align: center;
}

.products-closing .keep {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy-900);
}

.products-closing .text-small {
  margin: 12px auto 0;
  max-width: 580px;
}


/* ===== 17. STEPS SECTION ===== */
.steps-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 1000px) {
  .steps-grid {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
  }

  .steps-intro {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}

.steps-intro h2 {
  margin-top: 16px;
}

.steps-intro .button-row {
  margin-top: 28px;
}

.steps-list li {
  position: relative;
  padding: 0 0 44px 64px;
}

.steps-list li:last-child {
  padding-bottom: 0;
}

/* The fading line that connects the step numbers */
.steps-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(rgba(90, 133, 255, 0.7), rgba(90, 133, 255, 0.08));
}

.steps-list li:last-child::before {
  display: none;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 500 13px/1 var(--font-mono);
  color: #FFFFFF;
  background: rgba(13, 73, 247, 0.22);
  border: 1px solid rgba(90, 133, 255, 0.5);
}

.steps-list h3 {
  padding-top: 6px;
}

.steps-list p {
  margin-top: 8px;
  max-width: 48ch;
}


/* ===== 18. QUIZ SECTION (hidden for now) =====
   The quiz section is commented out in index.html until the quiz is ready.
   These styles stay here so it looks right when you bring it back. */
.quiz-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  background: var(--blue-600);
  color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 900px) {
  .quiz-band {
    padding: 72px 64px;
  }
}

.quiz-band h2 {
  margin-top: 16px;
  color: #FFFFFF;
}

.quiz-band .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.quiz-band .lead {
  margin-top: 16px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.86);
}

.quiz-band .button-row {
  margin-top: 32px;
}

.quiz-band-grid {
  position: relative;
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 900px) {
  .quiz-band-grid {
    grid-template-columns: 1.15fr 1fr;
  }
}

.quiz-band .bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to left, #000, transparent 65%);
  mask-image: linear-gradient(to left, #000, transparent 65%);
}

/* The tilted sample question card */
.quiz-preview {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: center;
  padding: 22px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--ink);
  transform: rotate(-3deg);
  box-shadow: 0 40px 70px -24px rgba(2, 8, 38, 0.55);
}

.quiz-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.quiz-preview-head b {
  color: var(--blue-600);
  font-weight: 500;
}

.quiz-question {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--navy-900);
}

.quiz-preview ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--navy-900);
}

.quiz-option .radio {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #CBD4E8;
  display: grid;
  place-items: center;
}

.quiz-option.on {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.quiz-option.on .radio {
  border-color: var(--blue-600);
}

.quiz-option.on .radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-600);
}

.quiz-progress {
  margin-top: 18px;
  height: 6px;
  border-radius: 99px;
  background: var(--blue-50);
  overflow: hidden;
}

.quiz-progress i {
  display: block;
  height: 100%;
  width: 30%;
  background: var(--blue-600);
  border-radius: 99px;
}


/* ===== 19. CLOSING SECTION ===== */
.closing {
  overflow: hidden;
  text-align: center;
}

.closing .section-head {
  position: relative;
  max-width: 760px;
}

.closing .lead {
  max-width: 620px;
  margin-inline: auto;
}

.closing .button-row {
  position: relative;
  margin-top: 36px;
}


/* ===== 20. CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
}

.contact-grid h2,
.contact-grid .lead {
  margin-top: 16px;
}

.contact-grid .button-row {
  margin-top: 32px;
}

.contact-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--on-dark-faint);
}

.contact-card {
  padding: 28px 24px;
}

@media (min-width: 640px) {
  .contact-card {
    padding: 36px;
  }
}

.contact-card .checks {
  margin-top: 0;
}


/* ===== 21. FOOTER ===== */
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-muted);
  padding: 64px 0;
  border-top: 1px solid var(--glass-border);
}

.footer-top {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-fine {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font: 400 12px/1.5 var(--font-mono);
  color: var(--on-dark-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}


/* ===== 22. SIMPLE PAGES (privacy policy, 404) ===== */

/* Short navy banner at the top of a simple page */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
}

.page-banner h1 {
  margin-top: 16px;
}

.page-banner .lead {
  margin-top: 16px;
  max-width: 600px;
}

.page-banner .button-row {
  margin-top: 32px;
}

/* Long-form reading text, like the privacy policy */
.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 48px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.3;
}

.prose p,
.prose ul {
  margin-top: 14px;
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--blue-600);
  text-decoration: underline;
}


/* ===== 23. ANIMATIONS AND UTILITIES =====
   Everything below only runs when JavaScript works (the "js" class on <html>).
   With JavaScript off, the page simply shows everything, finished.
   Motion uses fades and slides only, so nothing jumps around. */

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes barGrow { to { transform: none; } }
@keyframes messageIn {
  to { opacity: 1; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)) scale(1); }
}
@keyframes messageOut {
  from { opacity: 1; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)) scale(1); }
  to { opacity: 0; transform: translate(var(--dx, 0px), calc(var(--dy, 0px) - 12px)) rotate(var(--r)) scale(0.85); }
}
@keyframes messageHome {
  from { opacity: 1; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)) scale(1); }
  65% { opacity: 1; }
  to { opacity: 0; transform: none; }
}

/* Fade-in as you scroll. Add class="reveal" to anything.
   Add delay-1, delay-2, and so on to make items appear one after another. */
.js .reveal {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.6s var(--ease) calc(var(--d, 0) * 80ms),
    translate 0.6s var(--ease) calc(var(--d, 0) * 80ms),
    transform 0.3s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}

.delay-1 { --d: 1; }
.delay-2 { --d: 2; }
.delay-3 { --d: 3; }
.delay-4 { --d: 4; }

/* Check marks draw themselves in when their list scrolls into view */
.js .checks .check .icon {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.35s var(--ease);
}

.js .reveal.in .checks .check .icon,
.js .checks.reveal.in .check .icon {
  stroke-dashoffset: 0;
}

.js .checks li:nth-child(1) .check .icon { transition-delay: 0.25s; }
.js .checks li:nth-child(2) .check .icon { transition-delay: 0.34s; }
.js .checks li:nth-child(3) .check .icon { transition-delay: 0.43s; }
.js .checks li:nth-child(4) .check .icon { transition-delay: 0.52s; }
.js .checks li:nth-child(5) .check .icon { transition-delay: 0.61s; }
.js .checks li:nth-child(6) .check .icon { transition-delay: 0.70s; }

/* Marker lines draw themselves in */
.js .marker-word path,
.js .marker-circle path {
  stroke-dasharray: 1 3;
  stroke-dashoffset: 1.01;
}

.js .reveal.in .marker-word path {
  animation: draw 0.6s var(--ease) 0.9s forwards;
}

/* On desktop, wait for the scoreboard to finish before underlining */
@media (min-width: 1000px) {
  .js .reveal.in .marker-word path {
    animation-delay: 3.6s;
  }
}

.js .reveal.in > .marker-circle path {
  animation: draw 0.7s var(--ease) 0.35s forwards;
}

/* Hero scoreboard: the title swaps from "Your week right now" to "Your scoreboard" */
.js .scoreboard .example-card-head b {
  display: grid;
}

.js .scoreboard .example-card-head i {
  grid-area: 1 / 1;
}

.js .scoreboard .title-before {
  display: block;
}

.js .scoreboard .title-after {
  opacity: 0;
}

.js .scoreboard.go .title-before {
  animation: fadeOut 0.3s var(--ease) 1.75s forwards;
}

.js .scoreboard.go .title-after {
  animation: fadeIn 0.3s var(--ease) 2s forwards;
}

/* Hero scoreboard: the rows slide in one at a time (--t = when each row starts) */
.js .scoreboard > *:not(.example-card-head):not(.message-pile) {
  opacity: 0;
}

.js .scoreboard.go > *:not(.example-card-head):not(.message-pile) {
  animation: rowIn 0.45s var(--ease) var(--t, 2s) forwards;
}

.scoreboard > :nth-child(2) { --t: 1.85s; }
.scoreboard > :nth-child(3) { --t: 1.95s; }
.scoreboard > :nth-child(4) { --t: 2.2s; }
.scoreboard > :nth-child(5) { --t: 2.5s;  --c: 3.1s; }
.scoreboard > :nth-child(6) { --t: 2.65s; --c: 3.25s; }
.scoreboard > :nth-child(7) { --t: 2.8s; }
.scoreboard > :nth-child(8) { --t: 3.4s; }

/* Hero scoreboard: the goal bar fills, then the check marks draw in */
.js .scoreboard .goal-bar i {
  transform: scaleX(0);
  transform-origin: left;
}

.js .scoreboard.go .goal-bar i {
  animation: barGrow 0.9s var(--ease) 2.1s forwards;
}

.js .scoreboard .example-row .tick .icon {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.js .scoreboard.go .example-row .tick .icon {
  animation: draw 0.35s var(--ease) var(--c, 3.1s) forwards;
}

.js .scoreboard .status-done {
  opacity: 0;
}

.js .scoreboard.go .status-done {
  animation: fadeIn 0.25s var(--ease) var(--c, 3.1s) forwards;
}

/* Hero scoreboard: the pile of messages pops in, the noise fades, the rest fly into the list */
.js .scoreboard .message-pile {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.js .scoreboard.go .message {
  animation: messageIn 0.4s var(--ease) calc(0.3s + var(--n) * 0.1s) forwards;
}

.js .scoreboard.go .message-noise {
  animation:
    messageIn 0.4s var(--ease) calc(0.3s + var(--n) * 0.1s) forwards,
    messageOut 0.4s var(--ease) calc(1.7s + var(--n) * 0.04s) forwards;
}

.js .scoreboard.go .message-keep {
  animation:
    messageIn 0.4s var(--ease) calc(0.3s + var(--n) * 0.1s) forwards,
    messageHome 0.6s var(--ease) calc(2.3s + (2 - var(--up)) * 0.15s) forwards;
}

/* Visitors who turn off motion in their device settings see everything finished, right away */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }

  .hover-lift:hover,
  .button:hover {
    transform: none;
  }

  .js .scoreboard .message-pile,
  .js .scoreboard .title-before {
    display: none;
  }

  .js .scoreboard > *:not(.example-card-head):not(.message-pile),
  .js .scoreboard .status-done,
  .js .scoreboard .title-after {
    opacity: 1;
  }

  .js .scoreboard .goal-bar i {
    transform: none;
  }

  .js .scoreboard .example-row .tick .icon,
  .js .checks .check .icon,
  .js .marker-word path,
  .js .marker-circle path {
    stroke-dashoffset: 0;
  }
}
