/* Dink Data site
   Fonts: Bricolage Grotesque (display) + Atkinson Hyperlegible (body,
   designed by the Braille Institute for low-vision readers; the audience
   skews 50+ and readability is the brand). */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --green-deep: oklch(0.26 0.05 155);
  --green-dark: oklch(0.31 0.055 152);
  --green-mid: oklch(0.45 0.09 150);
  --lime: oklch(0.9 0.19 122);
  --lime-soft: oklch(0.95 0.1 120);
  --cream: oklch(0.975 0.008 95);
  --paper: oklch(0.995 0.004 95);
  --ink: oklch(0.25 0.02 155);
  --ink-soft: oklch(0.45 0.02 155);
  --line: oklch(0.9 0.012 100);
  --on-dark: oklch(0.97 0.01 120);
  --on-dark-soft: oklch(0.85 0.03 130);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: "Bricolage Grotesque", "Atkinson Hyperlegible", sans-serif;
}

a:focus-visible,
button:focus-visible,
.store-badge:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

.band-dark a:focus-visible { outline-color: var(--lime); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime);
  color: var(--green-deep);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
  z-index: 50;
}

.skip-link:focus { left: 0; }

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

header {
  background: var(--green-deep);
  color: var(--on-dark);
  padding: 18px 24px;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  color: var(--on-dark);
  text-decoration: none;
  letter-spacing: -0.2px;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

nav a {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: 16px;
  margin-left: 20px;
  font-weight: 500;
}

nav a:hover { color: var(--lime); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 9vw, 96px) 24px; }
.section .inner { max-width: 1040px; margin: 0 auto; }

.band-dark {
  background: var(--green-deep);
  color: var(--on-dark);
}
.band-dark h2 { color: var(--on-dark); }
.band-dark p, .band-dark li { color: var(--on-dark-soft); line-height: 1.7; }

.kicker {
  display: inline-block;
  background: var(--lime);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ---------- Hero ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-grid h1 {
  font-size: clamp(38px, 5.5vw, 58px);
  line-height: 1.06;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-grid h1 .accent { color: var(--lime); }

p.tagline {
  font-size: 20px;
  max-width: 52ch;
  margin-bottom: 26px;
}

.checklist {
  list-style: none;
  margin: 0 0 30px;
}

.checklist li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
  font-size: 17px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--lime);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid var(--green-deep);
  border-bottom: 2.5px solid var(--green-deep);
  transform: rotate(-45deg);
}

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.cta-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  box-shadow: 0 6px 16px oklch(0.12 0.03 155 / 0.5);
}

.store-badge { display: inline-block; line-height: 0; }

.store-badge img { height: 54px; width: auto; display: block; }

.coming-soon {
  font-size: 16px;
  font-weight: 700;
  color: var(--lime);
}

.trial-note { font-size: 16px; color: var(--on-dark-soft); }

/* ---------- Device frames ---------- */

.phone {
  border-radius: 44px;
  border: 10px solid oklch(0.2 0.03 155);
  box-shadow: 0 30px 60px oklch(0.15 0.04 155 / 0.35);
  display: block;
  width: 100%;
  height: auto;
  background: oklch(0.15 0.02 155);
}

.hero-phone {
  max-width: 320px;
  margin: 0 auto;
  transform: rotate(2.5deg);
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone { transform: none; }
}

.watch-shot {
  border-radius: 64px;
  border: 9px solid oklch(0.2 0.03 155);
  box-shadow: 0 24px 48px oklch(0.12 0.03 155 / 0.45);
  width: 100%;
  height: auto;
  display: block;
  background: oklch(0.15 0.02 155);
}

/* Auto-paging watch: demonstrates the score ⟷ stats swipe. Falls back to
   two static framed shots for reduced-motion (and shows those on narrow
   screens too, where the single frame reads small). */

.watch-pager {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 64px;
  border: 9px solid oklch(0.2 0.03 155);
  box-shadow: 0 24px 48px oklch(0.12 0.03 155 / 0.45);
  background: oklch(0.15 0.02 155);
  overflow: hidden;
}

.pager-track {
  display: flex;
  width: 200%;
  animation: watch-page 9s var(--ease-out-expo) infinite;
}

.pager-track img {
  width: 50%;
  height: auto;
  display: block;
}

@keyframes watch-page {
  0%, 40%   { transform: translateX(0); }
  48%, 90%  { transform: translateX(-50%); }
  98%, 100% { transform: translateX(0); }
}

.pager-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--on-dark-soft);
  letter-spacing: 0.3px;
}

.pager-arrow { color: var(--lime); }

.watch-static {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .watch-pager, .pager-caption { display: none; }
  .watch-static { display: grid; }
}

/* ---------- Features ---------- */

.features-heading {
  font-size: clamp(28px, 3.5vw, 36px);
  letter-spacing: -0.5px;
  max-width: 22ch;
  margin-bottom: 8px;
}

.features-sub { color: var(--ink-soft); max-width: 58ch; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 52px;
}

.feature .phone { max-width: 250px; margin: 0 0 22px; }

.feature h3 { font-size: 21px; margin-bottom: 6px; letter-spacing: -0.2px; }

.feature p { color: var(--ink-soft); font-size: 17px; max-width: 30ch; }

/* ---------- Watch band ---------- */

.watch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.watch-grid h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.watch-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

/* ---------- Story ---------- */

.story { max-width: 68ch; margin: 0 auto; }

.story h2 {
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.6px;
  margin-bottom: 20px;
}

.story p { font-size: 19px; }

.pull-quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 30px;
  margin: 30px 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.2px;
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: 1.45;
}

.pull-quote .num { color: var(--green-mid); }

/* ---------- Generic content (privacy / terms) ---------- */

main.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

h1 { font-size: clamp(32px, 4.5vw, 40px); letter-spacing: -0.6px; margin-bottom: 8px; }

h2 { font-size: 25px; margin: 44px 0 12px; letter-spacing: -0.3px; }

h3 { font-size: 19px; margin: 28px 0 8px; }

p { margin-bottom: 15px; }

ul { margin: 0 0 15px 22px; }
li { margin-bottom: 8px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 30px;
  margin: 26px 0;
}

.muted { color: var(--ink-soft); font-size: 16px; }

a { color: var(--green-mid); text-underline-offset: 3px; }
.band-dark a { color: var(--lime); }

/* ---------- Footer ---------- */

footer {
  background: var(--green-deep);
  padding: 40px 24px 52px;
  text-align: center;
  color: var(--on-dark-soft);
  font-size: 16px;
}

footer a { color: var(--lime-soft); text-decoration: none; margin: 0 8px; }
footer a:hover, footer a:focus-visible { color: var(--lime); text-decoration: underline; }

/* ---------- Motion ----------
   One orchestrated hero entrance + calm scroll reveals. Everything sits
   behind prefers-reduced-motion and a .js gate, so no-JS and
   motion-sensitive visitors get a fully static page. */

nav a, footer a, a { transition: color 150ms ease; }

@media (hover: hover) and (pointer: fine) {
  .store-badge img, .cta-icon { transition: transform 200ms var(--ease-out-expo); }
  .store-badge:hover img { transform: scale(1.04); }
}

@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) and (pointer: fine) {
    .feature .phone { transition: transform 250ms var(--ease-out-expo), box-shadow 250ms var(--ease-out-expo); }
    .feature:hover .phone {
      transform: translateY(-6px);
      box-shadow: 0 38px 68px oklch(0.15 0.04 155 / 0.4);
    }
  }

  .js .hero-copy > * {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 600ms var(--ease-out-expo) forwards;
  }
  .js .hero-copy > *:nth-child(1) { animation-delay: 0ms; }
  .js .hero-copy > *:nth-child(2) { animation-delay: 70ms; }
  .js .hero-copy > *:nth-child(3) { animation-delay: 140ms; }
  .js .hero-copy > *:nth-child(4) { animation-delay: 210ms; }
  .js .hero-copy > *:nth-child(5) { animation-delay: 280ms; }

  .js .hero-phone {
    opacity: 0;
    transform: translateY(24px);
    animation: phone-in 700ms var(--ease-out-expo) 200ms forwards;
  }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes phone-in {
    to { opacity: 1; transform: translateY(0) rotate(2.5deg); }
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms var(--ease-out-expo), transform 500ms var(--ease-out-expo);
  }
  .js .reveal.in-view { opacity: 1; transform: none; }
  .js .features .feature:nth-child(2) { transition-delay: 60ms; }
  .js .features .feature:nth-child(3) { transition-delay: 120ms; }
  .js .features .feature:nth-child(4) { transition-delay: 180ms; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .feature { text-align: center; }
  .feature .phone { margin: 0 auto 22px; }
  .feature p { margin: 0 auto; }
}

@media (max-width: 860px) {
  .hero-grid, .watch-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-phone { transform: none; }
  .watch-static { max-width: 440px; margin: 0 auto; }
  .features-heading { max-width: none; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; gap: 44px; }
}
