@font-face {
  font-family: "Baloo 2";
  src: url("assets/Baloo2-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("assets/NotoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --ink: #0E1A33;
  --ink-soft: #3B4863;
  --muted: #5A6680;
  --blue: #1565E8;
  --blue-dark: #0E4FB8;
  --white: #FFFFFF;
  --sky: #A3DAFC;
  --sky-cta: #A9DFFD;
  --pale: #F3F7FC;
  --screen: #F5F7FB;
  --chip: #EEF4FF;
  --tile: #DDEEFF;
  --day-done: #E3EDFF;
  --day-rest: #EEF1F5;
  --track: #E6E9EF;
  --dash: #C9D2DE;
  --line: #E3E8F0;
  --grass: #93D06D;
  --orange: #F28C28;
  --orange-ink: #8A4A0B;
  --streak-bg: #FFF4E8;
  --streak-next: #F1E4D6;
  --footer-muted: #B9C3D6;
  --tile-edge: #D5DCE6;
  --tile-rim: #E2E8F0;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, sans-serif;

  --shadow-card: 0 14px 34px rgba(14, 26, 51, 0.12);
  --shadow-photo: 0 14px 30px rgba(14, 26, 51, 0.10);
  --shadow-pill: 0 8px 20px rgba(14, 26, 51, 0.10);

  --gutter: 24px;
  --section-y: 96px;
  --heading-size: clamp(36px, 4.4vw, 56px);
}

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

html {
  /* Overscroll at the top shows the hero sky instead of white. */
  background: var(--sky);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--white);
}

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

/* Type */

.display,
.heading,
.wordmark span,
.phone-title,
.phone-card-title,
.pop-card-stake,
.step-title,
.mini-title,
.mini-code,
.streak-count {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.display {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(44px, 6.2vw, 80px);
  line-height: 1.02;
}

.display--cta {
  font-size: clamp(40px, 5.4vw, 68px);
}

.heading {
  margin: 0;
  font-size: var(--heading-size);
  line-height: 1.05;
}

.heading--center {
  text-align: center;
}

.heading--small {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
}

.lead {
  margin: 20px 0 0;
  max-width: 500px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.label-caps {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */

.button-dark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 700 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.button-dark:hover {
  color: var(--white);
  background: #1D2C4D;
}

/* Nav: a plain bar at the top of the page; scrolling down hides it, scrolling up brings it back as a glass pill (script.js) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 0;
  padding: 0 12px;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, transform 0.4s ease, opacity 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.is-pill {
  padding: 10px 22px;
  transform: translateY(12px);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(14, 26, 51, 0.10);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
}

.nav.is-hidden {
  transform: translateY(-140%);
  opacity: 0;
  pointer-events: none;
}

/* Keyboard users tabbing into a hidden nav still see it. */
.nav.is-hidden:focus-within {
  transform: translateY(12px);
  opacity: 1;
  pointer-events: auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.wordmark:hover {
  color: inherit;
}

.wordmark img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.wordmark span {
  font-size: 26px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link,
.nav-link:hover {
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-cta,
.nav-cta:hover {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

/* Hero */

.hero {
  padding-top: 92px;
  background: var(--sky) url("assets/hero-sky-hills.jpg") no-repeat center bottom / cover;
  text-align: center;
}

.hero-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-sub {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-stage {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 280px 270px 280px;
  justify-content: center;
  align-items: end;
  column-gap: 40px;
  text-align: left;
}

.hero-cards {
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.hero-cards--left {
  grid-column: 1;
  grid-row: 1;
  padding: 20px 0 110px;
}

.hero-cards--right {
  grid-column: 3;
  grid-row: 1;
  padding: 80px 0 40px;
}

.pop-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.pop-card:first-child {
  padding: 16px;
}

.pop-card--inline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.pop-card--inline svg {
  flex: none;
  color: var(--blue);
}

.pop-card--offset-left {
  margin-left: 40px;
}

.pop-card--offset-right {
  margin-right: 40px;
}

.pop-card-app {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pop-card-app img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.pop-card-time {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
}

.pop-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.pop-card-text {
  flex: 1;
}

.pop-card-title {
  font-size: 16px;
  font-weight: 700;
}

.pop-card-detail {
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-soft);
}

.pop-card-photo {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 55%;
}

.pop-card-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.pop-card-stake {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.15;
}

/* Phone mock */

.phone {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 270px;
  height: 480px;
  padding: 12px 12px 0;
  border-radius: 48px 48px 0 0;
  background: var(--ink);
  box-shadow: 0 30px 60px rgba(14, 26, 51, 0.18);
}

.phone-screen {
  height: 100%;
  padding: 46px 16px 0;
  border-radius: 38px 38px 0 0;
  background: var(--screen);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-title {
  font-size: 24px;
  line-height: 1;
}

.phone-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.phone-meta-strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.streak-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(14, 26, 51, 0.08);
}

.streak-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.phone-card {
  padding: 14px 12px;
  border-radius: 18px;
  background: var(--white);
}

.phone-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.phone-card-title {
  font-size: 18px;
  line-height: 1;
}

.day-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}

.day-today {
  color: var(--ink);
  font-weight: 700;
}

.day {
  width: 30px;
  height: 30px;
  margin: 0 auto 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.day--done {
  background: var(--day-done);
}

.day--today {
  border: 2px solid var(--blue);
}

.day--today img {
  width: 20px;
  height: 20px;
}

.day--rest {
  background: var(--day-rest);
}

.day--upcoming {
  border: 2px dashed var(--dash);
}

.progress-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}

.avatar--you {
  object-position: center 40%;
}

.avatar--maya {
  object-position: center 30%;
}

.progress-body {
  flex: 1;
  min-width: 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.progress-label span + span {
  color: var(--muted);
}

.capsule {
  margin-top: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.capsule-fill {
  width: var(--value);
  height: 100%;
  padding-right: 8px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


/* Shared sections */

.section {
  padding: var(--section-y) var(--gutter);
}

.section--white {
  background: var(--white);
}

.section--pale {
  background: var(--pale);
}

.section--tall {
  padding-block: 104px;
}

.split {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.split--art-first {
  gap: 64px;
  flex-wrap: wrap-reverse;
}

.section--tall .split {
  gap: 64px;
}

.split-text {
  flex: 1 1 420px;
  min-width: 0;
}

.split-art {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* Together */

.chips {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 15px;
  font-weight: 700;
}

.stake-art {
  width: 100%;
  max-width: 440px;
  height: auto;
}

/* Photo check-ins */

.photo-stack {
  --card-w: 320px;
  --photo-h: 380px;
  --shift: 46px;
  position: relative;
  width: var(--card-w);
  margin: 32px 0;
}

.photo-card {
  margin: 0;
  padding: 14px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-photo);
}

.photo-card img {
  width: 100%;
  height: var(--photo-h);
  border-radius: 20px;
  object-fit: cover;
}

.photo-card--back-left,
.photo-card--back-right {
  position: absolute;
  inset: 0;
}

.photo-card--back-left {
  transform: translate(calc(var(--shift) * -1), 18px) rotate(-9deg);
}

.photo-card--back-right {
  transform: translate(calc(var(--shift) - 4px), 10px) rotate(7deg);
}

.photo-card--front {
  position: relative;
  box-shadow: 0 20px 44px rgba(14, 26, 51, 0.16);
}

.photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.photo-frame > img:first-child {
  border-radius: 0;
}

.photo-card .photo-selfie {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 92px;
  height: 120px;
  border: 3px solid var(--white);
  border-radius: 14px;
  object-fit: cover;
}

.photo-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6px 4px;
  font-size: 14px;
}

/* How it works */

.how {
  position: relative;
  background: var(--white);
}

.how-divider {
  background: var(--pale);
}

.how-divider-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
}

.how-body {
  position: relative;
  margin-top: -14vw;
  padding: 0 var(--gutter) 104px;
  background: var(--grass);
}

.steps {
  max-width: 1140px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: var(--white);
  overflow: hidden;
}

.step-art {
  height: 260px;
  padding-top: 28px;
  background: var(--tile);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.mini-phone {
  width: 220px;
  height: 232px;
  padding: 9px 9px 0;
  border-radius: 34px 34px 0 0;
  background: var(--ink);
}

.mini-screen {
  height: 100%;
  padding: 26px 14px 0;
  border-radius: 26px 26px 0 0;
  background: var(--screen);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.mini-title {
  font-size: 18px;
  line-height: 1.5;
}

.mini-row {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-row--code {
  display: block;
  padding: 12px;
  text-align: center;
}

.mini-code-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mini-code {
  margin-top: 2px;
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.mini-row--selected {
  padding: 8px 10px;
  border: 2px solid var(--blue);
  background: var(--chip);
  font-weight: 700;
}

.mini-selected {
  color: var(--blue);
}

.mini-button {
  padding: 10px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.stepper-button {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--day-rest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  padding: 24px 26px 30px;
}

.step-number {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.step-title {
  margin: 6px 0 0;
  font-size: 26px;
  line-height: 1.15;
}

.step-body p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Verified */

.sources {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 360px;
}

.source {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.source--health {
  left: 4%;
  top: 18px;
}

.source--strava {
  left: 10%;
  top: 206px;
}

.source-tile {
  width: 96px;
  height: 96px;
  border-radius: 25px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 7px 0 var(--tile-edge), 0 8px 0 1px var(--tile-rim);
}

.source--health .source-tile {
  transform: rotate(-9deg);
}

.source--strava .source-tile {
  transform: rotate(7deg);
}

.source-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.counted {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.counted img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.counted--run {
  left: 42%;
  top: 40px;
  transform: rotate(-4deg);
}

.counted--ride {
  left: 52%;
  top: 150px;
  transform: rotate(3deg);
}

.counted--strength {
  left: 44%;
  top: 264px;
  transform: rotate(-2deg);
}

/* Streak */

.section--streak {
  background: var(--streak-bg);
}

.streak {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.streak > img {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  object-fit: contain;
}

.streak .heading {
  margin-top: 12px;
}

.streak .lead {
  margin: 16px auto 0;
  max-width: 480px;
}

.streak-weeks {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.week {
  width: 64px;
  height: 84px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.week svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.week--done {
  background: var(--orange);
}

.week--now {
  border: 3px solid var(--orange);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-ink);
}

.week--next {
  background: var(--streak-next);
}

.streak-count {
  margin-top: 20px;
  font-size: 22px;
  color: var(--orange-ink);
}

/* Solo */

.section--solo {
  padding-block: 88px;
}

.solo {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 32px;
  background: var(--tile);
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.solo-art {
  flex: none;
  width: 180px;
  height: 180px;
  margin: -24px 0;
  object-fit: contain;
}

.solo-text {
  flex: 1 1 360px;
  min-width: 0;
}

.solo-text p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* FAQ */

.section--faq {
  padding-top: 24px;
  padding-bottom: 104px;
}

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq .heading {
  margin-bottom: 28px;
}

.faq details {
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex: none;
  font-size: 26px;
  line-height: 1;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.faq details[open] .faq-icon {
  transform: rotate(45deg);
}

.faq details p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Get the app */

.get {
  padding-top: 96px;
  background: var(--sky-cta);
}

.get-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.app-store {
  display: inline-block;
  margin-top: 24px;
  border-radius: 10px;
}

.app-store img {
  width: auto;
  height: 54px;
}

.get-scene {
  position: relative;
  margin-top: 8px;
  overflow: hidden;
}

/* Vector park with separate high-resolution mascot sprites, so it stays sharp at any width. */
.get-scene-stage {
  position: relative;
  left: 50%;
  width: max(100%, 860px);
  aspect-ratio: 1536 / 620;
  transform: translateX(-50%);
}

.get-scene-land {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.park-sprite {
  position: absolute;
  left: var(--x);
  bottom: var(--b);
  width: var(--w);
  height: auto;
}

/* Footer */

.site-footer {
  padding: 40px var(--gutter);
  background: var(--ink);
  color: var(--white);
  /* Overscroll at the bottom continues the footer colour. */
  box-shadow: 0 60vh 0 60vh var(--ink);
}

.site-footer :focus-visible {
  outline-color: var(--white);
}

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

.site-footer .wordmark,
.site-footer .wordmark:hover {
  color: var(--white);
}

.site-footer .wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 0;
  object-fit: contain;
}

.site-footer .wordmark span {
  font-size: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
}

.footer-links a,
.footer-links a:hover {
  color: var(--white);
}

.copyright {
  font-size: 14px;
  color: var(--footer-muted);
}

/* Placeholder dialog */

.placeholder-dialog {
  max-width: min(360px, calc(100vw - 32px));
  padding: 24px;
  border: 0;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-align: center;
}

.placeholder-dialog::backdrop {
  background: rgba(14, 26, 51, 0.4);
}

.placeholder-dialog h2 {
  margin: 0;
  font: 700 24px/1.15 var(--font-display);
}

.placeholder-dialog p {
  margin: 8px 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Tablet: phone first, pop-up cards in two columns underneath */

@media (max-width: 1000px) {
  .hero {
    padding-bottom: 56px;
  }

  .hero-stage {
    grid-template-columns: repeat(2, minmax(0, 300px));
    gap: 20px;
    align-items: start;
  }

  .phone {
    grid-column: 1 / -1;
    justify-self: center;
    height: auto;
    padding-bottom: 12px;
    border-radius: 48px;
    margin-bottom: 20px;
  }

  .phone-screen {
    padding-bottom: 24px;
    border-radius: 38px;
  }

  .hero-cards {
    height: auto;
    padding: 0;
    justify-content: flex-start;
  }

  .hero-cards--left {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-cards--right {
    grid-column: 2;
    grid-row: 2;
  }

  .pop-card--offset-left,
  .pop-card--offset-right {
    margin: 0;
  }
}

/* Phone */

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
    --section-y: 72px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    background-size: max(100%, 1100px) auto;
  }

  .hero-intro {
    padding-top: 32px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-stage {
    grid-template-columns: minmax(0, 360px);
    margin-top: 36px;
  }

  .hero-cards--left,
  .hero-cards--right {
    grid-column: 1;
  }

  .hero-cards--right {
    grid-row: 3;
  }

  .phone {
    width: min(270px, 100%);
  }

  .section--tall {
    padding-block: 80px;
  }

  .split,
  .split--art-first,
  .section--tall .split {
    gap: 40px;
  }

  .split-text,
  .split-art {
    flex-basis: 100%;
  }

  .photo-stack {
    --card-w: 248px;
    --photo-h: 300px;
    --shift: 30px;
  }

  .sources {
    height: 340px;
  }

  .source-tile {
    width: 80px;
    height: 80px;
    border-radius: 21px;
  }

  .source--health {
    left: 0;
  }

  .source--strava {
    left: 4%;
    top: 196px;
  }

  .counted--run {
    left: 34%;
  }

  .counted--ride {
    left: 40%;
  }

  .counted--strength {
    left: 32%;
  }

  .streak-weeks {
    gap: 6px;
  }

  .week {
    width: clamp(30px, 9vw, 64px);
    height: auto;
    aspect-ratio: 64 / 84;
    border-radius: 10px;
  }

  .week svg {
    width: 18px;
    height: 18px;
  }

  .week--now {
    border-width: 2px;
    font-size: 10px;
  }

  .solo {
    padding: 32px 24px;
    gap: 20px;
    justify-content: center;
    text-align: center;
  }

  .solo-art {
    width: 150px;
    height: 150px;
    margin: -8px 0 0;
  }

  .solo-text {
    flex-basis: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .faq-icon,
  .nav {
    transition: none;
  }
}
