:root {
  --paper: #f6f8fc;
  --paper-deep: #e7eef8;
  --card: #ffffff;
  --ink: #162c4c;
  --muted: #53657b;
  --line: #dce3ee;
  --slate: #237fc1;
  --slate-deep: #122e50;
  --green: #1cd487;
  --accent: #086ab0;
  --honey: #f6bf06;
  --radius: 20px;
  --header: 68px;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Headings. A CJK profile swaps only this face and keeps body text on the system stack. */
  --display: var(--sans);
  --shadow-phone: 0 40px 80px -32px rgba(22, 29, 45, 0.45), 0 12px 24px -12px rgba(22, 29, 45, 0.25);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-stretch: 100%;
  overflow-x: hidden;
}

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

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

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

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 12px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 8px);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(246, 248, 252, 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-weight: 650;
  font-stretch: 100%;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 10px;
}

.desktop-nav {
  display: none;
}

.desktop-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--slate);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.header-download {
  display: none;
}

.mobile-menu {
  position: relative;
}

.mobile-menu > summary {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  cursor: pointer;
  list-style: none;
}

.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.mobile-menu > summary:hover {
  background: var(--paper-deep);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before {
  top: -7px;
}

.menu-lines::after {
  top: 7px;
}

.mobile-menu[open] .menu-lines {
  background: transparent;
}

.mobile-menu[open] .menu-lines::before {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu[open] .menu-lines::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu > nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 4px;
  width: min(300px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 24px 48px -24px rgba(22, 29, 45, 0.35);
}

.mobile-menu > nav > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu > nav > a:hover {
  background: var(--paper);
}

.mobile-menu .mobile-download {
  margin-top: 4px;
  background: var(--green);
  color: var(--ink);
}

.mobile-menu .mobile-download:hover {
  background: #33de97;
}

/* The menu panel scrolls when the open language list is taller than the screen. */
.mobile-menu > nav {
  max-height: calc(100vh - var(--header) - 24px);
  max-height: calc(100dvh - var(--header) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Language picker: plain links in a <details>, one copy in the header and one in the menu. */
.language-picker > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.language-picker > summary::-webkit-details-marker {
  display: none;
}

.language-chevron {
  transition: transform 0.2s ease;
}

.language-picker[open] .language-chevron {
  transform: rotate(180deg);
}

.language-picker > nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

/* Names in other scripts: the page font covers only its own language. */
.language-picker > nav > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font: 500 0.95rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  text-decoration: none;
}

.language-picker > nav > a:hover {
  background: var(--paper);
}

.language-picker > nav > a[aria-current="page"] {
  background: var(--paper-deep);
  font-weight: 650;
}

.header-languages {
  display: none;
  position: relative;
}

/* Header labels never wrap; below 1100 px the picker shows only its globe, so longer
   translations of the menu still fit. The current language stays in the accessibility tree. */
.brand,
.desktop-nav a,
.header-download,
.header-languages > summary {
  white-space: nowrap;
}

@media (max-width: 1099px) {
  .header-languages .language-current {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

.header-languages > summary {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-languages > summary:hover,
.header-languages[open] > summary {
  color: var(--ink);
  background: var(--paper-deep);
}

.header-languages > nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 24px 48px -24px rgba(22, 29, 45, 0.35);
}

.menu-languages {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.menu-languages > summary {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 600;
}

.menu-languages > summary:hover {
  background: var(--paper);
}

.menu-languages .language-current {
  margin-right: auto;
}

.menu-languages > nav {
  padding-top: 4px;
}

/* Type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--slate);
  border-radius: 50%;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.65rem, 1.4rem + 3.5vw, 4.5rem);
  line-height: 1.06;
}

h1 em,
.social-heading em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.06;
}

h3 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  line-height: 1.1;
}

p {
  text-wrap: pretty;
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* Hero */
.hero {
  position: relative;
  padding-block: 56px 64px;
  overflow: hidden;
}

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

.hero-copy {
  max-width: 620px;
  padding-bottom: 20px;
}

.hero .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.hero-description {
  max-width: 440px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.store-link {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.store-link img {
  width: 200px;
  height: auto;
}

.store-link:hover {
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

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

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero-note .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* The stage holds the trainer and the phone. The caption follows it in the
   flow and overlaps only the bottom strip of the screen below the timer
   buttons, so a longer translated caption grows downwards, not over them.
   Percent margins resolve against the art width, like the phone size. */
.hero-art {
  position: relative;
  width: min(100%, 570px);
  margin-inline: auto;
  isolation: isolate;
}
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 0.99;
}
.orbit {
  position: absolute;
  z-index: -1;
  inset: 3% -3% 6%;
  border: 1px solid #b7cde6;
  border-radius: 50%;
  background: #e6effb;
}
.orbit::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed #a1bfe0;
  border-radius: inherit;
}
.hero-trainer {
  position: absolute;
  z-index: 2;
  width: 45%;
  height: auto;
  left: -1%;
  bottom: 10%;
}
.phone {
  position: relative;
  padding: 6px;
  border: 1px solid #435169;
  border-radius: 30px;
  background: #172333;
  box-shadow: var(--shadow-phone);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #fff;
}
.hero-phone {
  position: absolute;
  width: 42%;
  top: 0;
  right: 7%;
  transform: rotate(4deg);
}
.hero-art-caption {
  position: relative;
  z-index: 3;
  margin: calc(-8.2% - 18px) 0 0 8%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 32px -24px #183456;
}
.hero-art-caption strong { font-size: 1rem; font-weight: 650; }
.hero-art-caption p { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.status-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #e8faf2; }

/* Facts */
.facts {
  border-block: 1px solid var(--line);
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.facts-list li {
  display: grid;
  gap: 10px;
  padding: 24px 8px 24px 0;
}

.facts-list li:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.facts-list strong {
  color: var(--slate);
  font-size: 2.35rem;
  font-weight: 650;
  font-stretch: 100%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.facts-list span {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.35;
}

/* A real plan alongside an open, numbered sequence. */
.how .section-head { max-width: 640px; }
.plan-layout { display: grid; gap: 40px; align-items: center; }
.plan-visual { position: relative; display: grid; justify-items: center; gap: 24px; padding: 40px 24px 28px; background: #e7eef8; border-radius: 24px; }
.plan-visual::before { content: ""; position: absolute; width: 70%; height: 65%; top: 15%; border: 1px solid #b3cbe4; border-radius: 50%; }
.plan-visual .phone { width: min(260px, 62vw); transform: rotate(-3deg); }
.plan-visual > p { color: var(--muted); font-size: .9rem; }
.steps { display: grid; counter-reset: step; }
.step { position: relative; padding: 30px 0 30px 58px; border-bottom: 1px solid var(--line); counter-increment: step; }
.step:first-child { padding-top: 0; }
.step::before { content: counter(step, decimal-leading-zero) / ""; position: absolute; left: 0; color: var(--slate); font-size: 1rem; font-weight: 650; }
.step-mark { display: none; }
.step h3 { font-size: 1.55rem; }
.step p { margin-top: 12px; color: var(--muted); max-width: 400px; }

/* Features */
.features {
  padding-top: 80px;
  background: #fff;
}

.feature {
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(80px, 10vw, 128px);
}

.feature-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 56px) 16px;
  border-radius: 24px;
  background: #eaf2fb;
  overflow: hidden;
}

.feature-media .phone {
  width: min(260px, 64vw);
}

.feature-copy {
  max-width: 540px;
}

.feature-copy > p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.125rem;
}

.checks {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

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

.checks .icon {
  margin-top: 3px;
  padding: 2px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  stroke-width: 3;
}

/* Habit */
.habit {
  position: relative;
  overflow: hidden;
  background: var(--slate-deep);
  color: #fff;
}

.habit .eyebrow {
  color: var(--green);
}

.habit-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

.habit-copy > p:not(.eyebrow):not(.habit-tags) {
  margin-top: 20px;
  color: #c9cfdc;
  font-size: 1.125rem;
  max-width: 520px;
}

.habit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.habit-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.habit-tags .icon {
  color: var(--honey);
}

.habit-phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 16px;
  max-width: 560px;
  margin-inline: auto;
}

.habit-phones .phone {
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.6);
}

.habit-phones .phone:last-child {
  margin-top: 48px;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 8px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

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

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

.faq-list summary .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.faq-list summary:hover .icon {
  background: var(--green);
  border-color: var(--green);
}

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

.faq-list details p {
  max-width: 640px;
  padding-bottom: 24px;
  color: var(--muted);
}

/* CTA */
.cta {
  padding-bottom: clamp(72px, 10vw, 128px);
}

.cta-inner {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(48px, 8vw, 88px) 24px;
  border-radius: 24px;
  background: #dfedf9;
  text-align: center;
  overflow: hidden;
}

.cta-inner > * {
  position: relative;
}

.cta-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 20px 40px -16px rgba(22, 29, 45, 0.5);
}

.cta h2 {
  max-width: 540px;
  margin-top: 28px;
}

.cta p {
  margin-top: 12px;
  font-size: 1.125rem;
}

.cta .store-link {
  margin-top: 28px;
}

/* Footer */
.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-brand strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a,
.credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}

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

/* Motion */
.can-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.can-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-trainer { animation: arrive .8s ease both; }
  .hero-phone { animation: arrive .8s .1s ease both; }
}
@keyframes arrive { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Wider screens */
@media (min-width: 600px) {
  .facts-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .facts-list li {
    padding: 32px 16px 32px 0;
  }

  .facts-list li:nth-child(n + 3) {
    border-top: 0;
  }

  .facts-list li + li {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .credit {
    grid-column: 1 / -1;
  }
}


@media (min-width: 880px) {
  .desktop-nav {
    display: flex;
    gap: 4px;
  }

  .header-download {
    display: inline-flex;
  }

  .header-languages {
    display: block;
  }

  .mobile-menu {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 7vw, 96px);
  }

  .feature-flip .feature-media {
    order: 2;
  }

  .habit-grid {
    grid-template-columns: .85fr 1.15fr;
  }
  .plan-layout { grid-template-columns: 1fr 1fr; gap: 80px; }

  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
  }

  .faq-grid .section-head {
    position: sticky;
    top: calc(var(--header) + 32px);
  }
}

/* Feature stages: the timer shares its stage with a trainer, the last two
   features sit side by side as cards with the phone cropped by the card. */
.feature[aria-labelledby="timer-title"] .feature-media {
  min-height: 590px;
  align-items: start;
  padding-top: 32px;
}

.feature[aria-labelledby="timer-title"] .phone {
  width: 220px;
  margin-left: auto;
  margin-right: 10px;
  transform: rotate(3deg);
}

.timer-trainer {
  position: absolute;
  z-index: 2;
  width: 46%;
  height: auto;
  bottom: 28px;
  left: 0;
}

.feature[aria-labelledby="workouts-title"] .feature-media {
  background: #e4f5ee;
}

.feature-pair {
  display: grid;
  gap: 24px;
  margin-top: 88px;
}

.feature-pair .feature {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 28px;
  padding: 32px 24px 0;
  margin: 0;
  border-radius: 24px;
  background: #f3f6fb;
  overflow: hidden;
}

.feature-pair .feature-copy {
  max-width: none;
}

.feature-pair .feature-copy > p:not(.eyebrow) {
  font-size: 1rem;
}

.feature-pair .feature-copy h3 {
  font-size: 2rem;
}

.feature-pair .checks {
  font-size: 0.9rem;
  gap: 8px;
  margin-top: 20px;
}

.feature-pair .feature-media {
  width: 100%;
  padding: 28px 0 0;
  border-radius: 0;
  background: transparent;
}

.feature-pair .feature-media .phone {
  width: min(230px, 62vw);
  margin-bottom: -96px;
}

.feature-pair .feature-flip .feature-media {
  order: initial;
}

/* Trophy shelf and the collapsed app screens in the habit section */
.trophy-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

.trophy {
  min-width: 0;
  text-align: center;
}

.trophy img {
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 14px;
  filter: drop-shadow(0 12px 24px #06192f);
}

.trophy figcaption {
  display: grid;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid #46617f;
}

.trophy strong {
  color: #ffd767;
  font-size: 1rem;
  font-weight: 600;
}

.trophy span {
  color: #c9d6e7;
  font-size: 0.8rem;
}

.app-peek {
  margin-top: 56px;
  border-top: 1px solid #46617f;
}

.app-peek summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
}

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

.app-peek[open] summary .icon {
  rotate: 45deg;
}

.app-peek .habit-phones {
  max-width: 460px;
  padding: 24px 0 12px;
}

@media (min-width: 760px) {
  .feature-pair {
    grid-template-columns: 1fr 1fr;
  }

  .feature-pair .feature-media {
    margin-top: auto;
  }
}

@media (max-width: 879px) {
  .hero {
    padding-top: 36px;
  }

  .hero-copy {
    max-width: 560px;
  }

  .hero-art {
    max-width: 470px;
  }

  .feature-copy {
    max-width: none;
  }

  .feature-media {
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
  }

  .feature[aria-labelledby="timer-title"] .feature-media {
    min-height: 570px;
    max-width: 460px;
  }

  .trophy-shelf {
    width: 100%;
    max-width: 600px;
    margin: 8px auto 0;
  }
}

@media (max-width: 419px) {
  .hero-note {
    gap: 4px 12px;
    font-size: 0.8rem;
  }

  .hero-art-caption {
    margin: calc(-8.2% - 12px) 0 0;
    gap: 10px;
    padding: 12px;
  }

  .hero-art-caption strong {
    font-size: 0.85rem;
  }

  .hero-art-caption p {
    font-size: 0.7rem;
  }

  .phone {
    padding: 4px;
    border-radius: 22px;
  }

  .phone img {
    border-radius: 18px;
  }

  .feature[aria-labelledby="timer-title"] .feature-media {
    min-height: 460px;
  }

  .feature[aria-labelledby="timer-title"] .phone {
    width: 180px;
  }

  .trophy-shelf {
    gap: 8px;
  }

  .trophy strong {
    font-size: 0.85rem;
  }

  .trophy span {
    font-size: 0.73rem;
  }
}

/* Language-specific typesetting. Each rule names the page language, so English stays untouched.
   Long German and Dutch compounds hyphenate in running text, and in headings only on phones. */
html:is(:lang(de), :lang(nl)) :is(p, li, figcaption) {
  hyphens: auto;
}

@media (max-width: 599px) {
  html:is(:lang(de), :lang(nl)) :is(h1, h2, h3) {
    hyphens: auto;
  }
}

html:lang(ko) {
  word-break: keep-all;
}

html:lang(ja),
html:lang(zh) {
  line-break: strict;
}

html:is(:lang(ja), :lang(ko), :lang(zh)) :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.22;
}

/* Japanese headings and short labels break between phrases, not inside words (Chromium). */
html:lang(ja) :is(h1, h2, h3, .facts-list span) {
  word-break: auto-phrase;
}
