/* StepMotive website: one design system for the product page, support and privacy.
   Theme: follows the system unless the visitor picks Light or Dark (stored in localStorage, set on <html data-theme>). */

:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-border: rgba(255, 255, 255, 0.9);
  --fg: #0e1a12;
  --fg-secondary: #4f5b54;
  --fg-tertiary: #7b857f;
  --line: rgba(14, 26, 18, 0.1);
  --accent: #1a9c4b;
  --accent-strong: #138a3f;
  --accent-soft: #e2f6e9;
  --accent-ink: #ffffff;
  --glow-1: rgba(52, 199, 89, 0.28);
  --glow-2: rgba(48, 176, 199, 0.2);
  --shadow:
    0 1px 2px rgba(10, 30, 18, 0.04), 0 10px 30px rgba(10, 30, 18, 0.07);
  --device-shadow:
    0 30px 70px rgba(11, 42, 22, 0.22), 0 6px 16px rgba(11, 42, 22, 0.1);
  --radius: 26px;
  --radius-sm: 16px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070a08;
    --bg-elevated: #131715;
    --surface: rgba(30, 34, 32, 0.66);
    --surface-border: rgba(255, 255, 255, 0.08);
    --fg: #f1f5f2;
    --fg-secondary: #a9b3ad;
    --fg-tertiary: #7d8781;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #3ddc7a;
    --accent-strong: #5be38f;
    --accent-soft: rgba(61, 220, 122, 0.14);
    --accent-ink: #04140a;
    --glow-1: rgba(52, 199, 89, 0.16);
    --glow-2: rgba(48, 176, 199, 0.11);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    --device-shadow:
      0 30px 80px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a08;
  --bg-elevated: #131715;
  --surface: rgba(30, 34, 32, 0.66);
  --surface-border: rgba(255, 255, 255, 0.08);
  --fg: #f1f5f2;
  --fg-secondary: #a9b3ad;
  --fg-tertiary: #7d8781;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #3ddc7a;
  --accent-strong: #5be38f;
  --accent-soft: rgba(61, 220, 122, 0.14);
  --accent-ink: #04140a;
  --glow-1: rgba(52, 199, 89, 0.16);
  --glow-2: rgba(48, 176, 199, 0.11);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  --device-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height: auto keeps every image at its own aspect ratio (width/height attributes only reserve space). */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Soft theme light behind the page (the app's themed background). */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.backdrop span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.backdrop span:nth-child(1) {
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  left: -12vw;
  top: -18vw;
  background: var(--glow-1);
}
.backdrop span:nth-child(2) {
  width: 50vw;
  height: 50vw;
  max-width: 640px;
  max-height: 640px;
  right: -14vw;
  top: 30vh;
  background: var(--glow-2);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: 8px;
}
.nav a {
  color: var(--fg-secondary);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover {
  color: var(--fg);
  text-decoration: none;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Menu (narrow screens): the section links and the download button, under the bar. */
.menu-button {
  display: none;
  appearance: none;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--line);
  color: var(--fg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}
.menu-button svg {
  width: 20px;
  height: 20px;
}
.menu-button svg:last-child,
.menu-button[aria-expanded="true"] svg:first-child {
  display: none;
}
.menu-button[aria-expanded="true"] svg:last-child {
  display: block;
}
.mobile-menu {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 10;
  max-height: calc(100dvh - 65px);
  overflow-y: auto;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu .wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: auto;
  padding-top: 8px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:not(.btn):hover {
  text-decoration: none;
  color: var(--accent-strong);
}
.menu-download {
  display: none;
  justify-content: center;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.menu-download svg {
  width: 18px;
  height: 18px;
  margin-top: -2px;
}

/* Segmented controls (theme, language) */
.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--line);
}
.segmented button,
.segmented a {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-secondary);
  font: 600 13px/1 var(--font);
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.segmented a:hover {
  text-decoration: none;
  color: var(--fg);
}
.segmented [aria-pressed="true"],
.segmented [aria-current="true"] {
  background: var(--bg-elevated);
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.segmented svg {
  width: 15px;
  height: 15px;
}
/* The theme switch shows only icons; each name is its label and appears as a tooltip on hover and keyboard focus. */
.segmented [data-theme-choice] {
  padding: 7px 9px;
}
[data-tip] {
  position: relative;
}
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -4px);
  z-index: 40;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font: 600 12px/1.2 var(--font);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (hover: none) {
  [data-tip]:hover::after {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-tip]::after {
    transition: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  font-weight: 600;
  padding: 12px 20px;
  font-size: 16px;
}
.btn:hover {
  text-decoration: none;
}
.btn-store {
  background: var(--fg);
  color: var(--bg);
  padding: 10px 18px 10px 14px;
}
.btn-store svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.btn-store small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  line-height: 1.1;
}
.btn-store strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.btn-small {
  padding: 8px 14px 8px 12px;
  gap: 6px;
  font-size: 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-small svg {
  width: 16px;
  height: 16px;
  margin-top: -2px;
}

/* Sections */
section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  font-weight: 750;
}
h1 {
  font-size: clamp(42px, 6.4vw, 76px);
}
h2 {
  font-size: clamp(32px, 4.4vw, 52px);
}
h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-weight: 650;
}
.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--fg-secondary);
  line-height: 1.55;
  margin: 20px 0 0;
  max-width: 34em;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.section-head .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero {
  padding-top: clamp(40px, 7vw, 96px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 34px;
}
.hero-note {
  color: var(--fg-tertiary);
  font-size: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.chips li {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero-devices {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-devices .device {
  width: min(46%, 270px);
}
.hero-devices .device + .device {
  margin-left: -9%;
  transform: translateY(8%);
}

/* iPhone frame: the screenshot keeps its own aspect ratio (1320 × 2868); nothing is stretched. */
.device {
  position: relative;
  flex: none;
  padding: 2.6%;
  border-radius: 15.5% / 7.2%;
  background: linear-gradient(145deg, #2a2a2e, #141416);
  box-shadow:
    var(--device-shadow),
    inset 0 0 0 1.5px #4a4a50;
}
.device .screen {
  position: relative;
  border-radius: 13% / 6%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1320 / 2868;
}
.device .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device .shot-dark {
  display: none;
}
.device.ipad {
  padding: 2.2%;
  border-radius: 6.5% / 4.8%;
}
.device.ipad .screen {
  border-radius: 4.5% / 3.4%;
}
/* iPhone Duo folded: the outer display (1398 × 2034), a wider phone; the same corner size as the iPhone's relative to
   the width, so the vertical radius is smaller. The hinge side (left) has tight corners. */
.device.duo {
  padding: 2.4%;
  border-radius: 4% 14% 14% 4% / 2.8% 9.7% 9.7% 2.8%;
}
.device.duo .screen {
  border-radius: 1.1% 12.7% 12.7% 1.1% / 0.75% 8.7% 8.7% 0.75%;
}
/* Dynamic Island (iPhone): 28.6% of the screen width wide, 377 × 111 px at 1320, 33 px from the top; the top offset is
   a share of the screen height (33 / 2868) because percentage `top` resolves against height. */
.device:not(.ipad):not(.duo):not(.watch) .screen::after {
  content: "";
  position: absolute;
  top: 1.15%;
  left: 50%;
  width: 28.6%;
  aspect-ratio: 377 / 111;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  pointer-events: none;
}
/* Duo punch-hole camera: where the simulator's device view draws it, above the status bar at the top right (centre
   89.9% / 7.1% of the outer display, 7.9% of its width across). */
.device.duo .screen::after {
  content: "";
  position: absolute;
  top: 7.1%;
  left: 89.9%;
  width: 7.9%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #000;
  pointer-events: none;
}
.device.watch {
  padding: 7%;
  border-radius: 30% / 25%;
  background: linear-gradient(145deg, #323236, #121214);
}
.device.watch .screen {
  border-radius: 22% / 18%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .device .shot-light.has-dark {
    display: none;
  }
  :root:not([data-theme="light"]) .device .shot-dark {
    display: block;
  }
}
:root[data-theme="dark"] .device .shot-light.has-dark {
  display: none;
}
:root[data-theme="dark"] .device .shot-dark {
  display: block;
}

/* Feature grid */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card p {
  margin: 10px 0 0;
  color: var(--fg-secondary);
  font-size: 15.5px;
  line-height: 1.5;
}
.tile {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.tile svg {
  width: 24px;
  height: 24px;
}

/* Split rows (coach, screens) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split.reverse > :first-child {
  order: 2;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.checks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--fg-secondary);
}
.checks li strong {
  color: var(--fg);
  font-weight: 650;
}
.checks svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--accent);
}
.coach-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
}
.coach-visual {
  padding-top: 70px;
}
.coach-visual .device {
  width: min(54%, 300px);
}
.coach-visual .mascot {
  width: min(44%, 240px);
  margin-right: -8%;
  margin-bottom: 4%;
  z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(11, 42, 22, 0.22));
}
.bubble {
  position: absolute;
  top: 0;
  left: 2%;
  max-width: 250px;
  z-index: 2;
  background: var(--bg-elevated);
  color: var(--fg);
  padding: 14px 16px;
  border-radius: 18px 18px 18px 6px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow);
  line-height: 1.4;
}

/* Screen gallery: scrolls sideways on small screens */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  padding: 8px 0 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}
.gallery figcaption {
  text-align: center;
  margin-top: 18px;
  font-weight: 650;
  font-size: 16px;
}
.gallery figcaption span {
  display: block;
  font-weight: 450;
  color: var(--fg-secondary);
  font-size: 14px;
  margin-top: 2px;
}

/* Every device: iPad, iPhone Duo, iPhone and Apple Watch side by side, bottoms aligned */
.devices {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(20px, 4vw, 56px);
}
.devices figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.devices figcaption {
  font-weight: 650;
  color: var(--fg-secondary);
  font-size: 15px;
}
.devices .ipad {
  width: min(38%, 420px);
}
.devices .duo {
  width: min(26%, 290px);
}
.devices .iphone {
  width: min(17%, 190px);
}
.devices .watch {
  width: min(12%, 130px);
}
.devices figure .device {
  width: 100%;
}

/* Privacy */
.privacy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Pricing */
.billing {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan .price {
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 16px 0 2px;
}
.plan .price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-secondary);
  letter-spacing: 0;
}
.plan .per {
  color: var(--fg-tertiary);
  font-size: 14px;
  min-height: 1.5em;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
  color: var(--fg-secondary);
}
.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
}
.plan li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 3px;
}
.plan.featured {
  border: 2px solid var(--accent);
}
.badge {
  align-self: flex-start;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}
/* A plan's badges; the row keeps its height when a period shows none, so the cards' prices line up. */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
}
.badge.muted {
  background: var(--line);
  color: var(--fg-secondary);
}
/* A link to the full page below a section (the privacy cards lead to the Privacy Policy). */
.section-link {
  text-align: center;
  margin: 28px 0 0;
  font-weight: 600;
}
.fineprint {
  text-align: center;
  color: var(--fg-tertiary);
  font-size: 13.5px;
  margin-top: 22px;
}
[data-billing="monthly"] .yearly-only,
[data-billing="yearly"] .monthly-only {
  display: none;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 0 22px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 0 0 20px;
  color: var(--fg-secondary);
}

/* CTA band */
.cta {
  text-align: center;
}
.cta .card {
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  display: grid;
  justify-items: center;
  gap: 22px;
}
.cta img.mascot {
  width: 120px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--fg-tertiary);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.site-footer nav {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer a {
  color: var(--fg-secondary);
}

/* Document pages (support, privacy) */
.doc {
  padding: clamp(40px, 6vw, 80px) 0;
}
.doc .wrap {
  max-width: 820px;
}
.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
}
.doc .card {
  margin-top: 28px;
  padding: 8px 28px 28px;
}
.doc h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 28px 0 8px;
}
.doc p,
.doc li {
  color: var(--fg-secondary);
}
.doc .updated {
  color: var(--fg-tertiary);
  font-size: 14px;
  margin-top: 12px;
}

/* Press kit */
.press .wrap {
  max-width: 1000px;
}
.press .card h2,
.press .card h3 {
  margin: 24px 0 8px;
}
.press .card h3 {
  font-size: 20px;
}
.press .updated {
  margin-top: 12px;
}
.press-all {
  margin: 20px 0 0;
}
.press-all .meta {
  font-weight: 500;
  opacity: 0.85;
}
.press-h {
  margin-top: 48px;
}
.press .press-group {
  margin-top: 20px;
}
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
}
.facts dt {
  color: var(--fg-tertiary);
  font-weight: 600;
}
.facts dd {
  margin: 0;
  color: var(--fg-secondary);
  overflow-wrap: anywhere;
}
.press-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-top: 16px;
}
.press-search,
.press-logo,
.press-icon {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.press-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.press-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--accent-soft);
}
.press-logo img {
  box-sizing: border-box;
  padding: 14px 16px;
}
.press-icon img {
  max-width: 160px;
}
.press-grid .tile-dark img {
  background: #0e1a12;
  border-color: transparent;
}
.press-grid figcaption {
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-secondary);
}
.press-grid figcaption span {
  font-weight: 600;
  color: var(--fg);
  margin-right: 8px;
}
.press-grid figcaption small {
  color: var(--fg-tertiary);
  white-space: nowrap;
}
.press-grid .downloads {
  margin-top: 4px;
}
.press-grid figcaption a {
  margin-right: 14px;
  font-weight: 600;
}
@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .facts dd {
    margin-bottom: 12px;
  }
}

/* Back to top: appears once the page has scrolled; the accent colour of the Download button, so it shows in both themes. */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
.to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top[hidden] {
  display: none;
}
.to-top svg {
  width: 20px;
  height: 20px;
}
.to-top:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1020px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Scrolls sideways only when the six phones no longer fit; the padding leaves room for their soft shadows (a
     scroll area clips at its padding edge). */
  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 30%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 24px var(--gutter) 90px;
    margin: -24px calc(-1 * var(--gutter)) -62px;
  }
  .nav {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
  /* The menu carries the download button from here on. */
  .header-actions .btn-small {
    display: none;
  }
  .menu-download {
    display: inline-flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 820px) {
  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .hero {
    text-align: center;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta,
  .chips {
    justify-content: center;
  }
  .plans,
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  /* Two rows on phones: iPad and iPhone Duo, then iPhone and Apple Watch */
  .devices {
    flex-wrap: wrap;
    gap: 28px 14px;
  }
  .devices .ipad {
    width: 52%;
  }
  .devices .duo {
    width: 40%;
  }
  .devices .iphone {
    width: 32%;
  }
  .devices .watch {
    width: 24%;
  }
  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 58%;
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .segmented a {
    padding: 7px 9px;
  }
}
/* The smallest phones (320 pt): the app icon stands for the name and the spacing tightens so the header fits. */
/* Three language buttons: the app name gives way first (the icon still leads home). */
@media (max-width: 480px) {
  .brand-name {
    display: none;
  }
}
@media (max-width: 380px) {
  .site-header .wrap {
    gap: 12px;
  }
  .header-actions {
    gap: 6px;
  }
  .segmented button,
  .segmented a {
    padding: 7px 7px;
  }
}

/* Cookie banner (analytics): bottom of the screen until the visitor decides; both choices look the same. */
.consent {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  width: min(640px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 16px 20px;
  padding: 16px 18px 16px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.consent[hidden] {
  display: none;
}
.consent p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-secondary);
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-consent {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--fg);
}
.btn-consent:focus-visible,
.link-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* The back-to-top button never moves or hides for the banner: where the banner spans the width, it opens above the
   button's corner instead (on wider screens the centred banner leaves the corner free). */
@media (max-width: 800px) {
  .consent {
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 56px);
  }
}
.link-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--fg-secondary);
  cursor: pointer;
}
.link-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 560px) {
  .consent {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .consent-actions .btn-consent {
    flex: 1;
    justify-content: center;
  }
}
