/* ==========================================================================
   PopYourselfUp — popyourselfup.com
   Plain CSS, no build step. Colours live in custom properties (light + dark).
   ========================================================================== */

/* --------------------------------------------------------------------------
   LAUNCH SWITCH  ← the only thing to change when the app goes live
   --------------------------------------------------------------------------
   Before launch:  App Store badges are hidden, "Coming soon" buttons show.
   At launch:      swap the two values below, i.e.
                     --store-live: inline-flex;
                     --store-soon: none;
                   and put the real App Store ID in /_redirects (/download).
   -------------------------------------------------------------------------- */
:root {
  --store-live: inline-flex;
  --store-soon: none;
}
[data-store-live] { display: var(--store-live) !important; }
[data-store-soon] { display: var(--store-soon) !important; }

/* Light/dark: follows the system unless the header switch sets data-theme on <html> */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --bg: #f7f6f3;
  --bg-soft: #efede8;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #56565e;
  --line: rgba(29, 29, 31, 0.09);
  --header-bg: rgba(247, 246, 243, 0.78);

  /* Reminder colours: --x is the fill, --x-ink is a text-safe shade */
  --eyes: #0a84ff;     --eyes-ink: #0062c4;
  --water: #2fb3e3;    --water-ink: #00718e;
  --walk: #30c55a;     --walk-ink: #18793a;
  --posture: #ff9500;  --posture-ink: #a94c00;
  --brand-a: #12b5a5;
  --brand-b: #2b6cf6;

  --btn-bg: #1d1d1f;
  --btn-text: #ffffff;
  --focus: #0a6fe0;

  --shadow-sm: 0 1px 2px rgba(25, 25, 35, 0.04), 0 6px 20px rgba(25, 25, 35, 0.06);
  --shadow-lg: 0 2px 8px rgba(25, 25, 35, 0.05), 0 30px 70px rgba(25, 25, 35, 0.14);

  --radius: 20px;
  --radius-sm: 14px;
  --container: 1120px;
  --header-h: 61px;   /* sticky header incl. its border */
  --footer-h: 96px;   /* kept in sync with the real footer by main.js */
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-hand: "Bradley Hand", "Chalkboard SE", "Segoe Print", "Marker Felt", "Comic Sans MS", cursive;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f11;
    --bg-soft: #161619;
    --surface: #1d1d20;
    --text: #f5f5f7;
    --muted: #a9a9b1;
    --line: rgba(255, 255, 255, 0.09);
    --header-bg: rgba(15, 15, 17, 0.74);

    --eyes: #2b8fff;     --eyes-ink: #6cb5ff;
    --water: #3ab9e8;    --water-ink: #72d3f7;
    --walk: #34c759;     --walk-ink: #6ee08b;
    --posture: #ff9f0a;  --posture-ink: #ffbb57;

    --btn-bg: #f5f5f7;
    --btn-text: #111113;
    --focus: #6cb5ff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.3), 0 30px 70px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
    --bg: #0f0f11;
    --bg-soft: #161619;
    --surface: #1d1d20;
    --text: #f5f5f7;
    --muted: #a9a9b1;
    --line: rgba(255, 255, 255, 0.09);
    --header-bg: rgba(15, 15, 17, 0.74);

    --eyes: #2b8fff;     --eyes-ink: #6cb5ff;
    --water: #3ab9e8;    --water-ink: #72d3f7;
    --walk: #34c759;     --walk-ink: #6ee08b;
    --posture: #ff9f0a;  --posture-ink: #ffbb57;

    --btn-bg: #f5f5f7;
    --btn-text: #111113;
    --focus: #6cb5ff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.3), 0 30px 70px rgba(0, 0, 0, 0.5);
  }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0; }

a { color: var(--eyes-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* Reminder accent classes */
.t-eyes    { --accent: var(--eyes);    --accent-ink: var(--eyes-ink); }
.t-water   { --accent: var(--water);   --accent-ink: var(--water-ink); }
.t-walk    { --accent: var(--walk);    --accent-ink: var(--walk-ink); }
.t-posture { --accent: var(--posture); --accent-ink: var(--posture-ink); }

/* --------------------------------------------------------------------------
   Buttons & App Store CTA
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--small { min-height: 36px; padding: 6px 16px; font-size: 0.875rem; }

.btn--soon,
.btn--soon:hover {
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: default;
  transform: none;
}

.store-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
/* Apple asks for clear space of at least 1/4 of the badge height around it. */
.store-badge {
  display: inline-flex;
  padding: 10px;
  margin: -10px;
  border-radius: 12px;
}
.store-badge img { height: 54px; width: auto; }

.store-soon {
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px 10px 16px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-weight: 600;
  line-height: 1.2;
  cursor: default;
}
.store-soon .icon { width: 26px; height: 26px; color: var(--text); }
.store-soon small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.store-soon strong { display: block; color: var(--text); font-size: 1.05rem; }

.cta-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand picture { flex: none; }
.brand img { width: 34px; height: 34px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.nav a:not(.btn) { color: var(--text); text-decoration: none; opacity: 0.82; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: underline; }

@media (max-width: 479px) {
  .nav__features { display: none; }
  .brand span { font-size: 1rem; }
}
.theme-toggle {
  display: none;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
}
.js .theme-toggle { display: grid; }
.theme-toggle:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .icon--sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }

@media (max-width: 399px) {
  .nav__cta { display: none; }
  .header__inner { gap: 8px; }
  .brand { gap: 6px; }
  .brand span { font-size: 0.94rem; }
  .brand img { width: 30px; height: 30px; }
  .nav { gap: 12px; font-size: 0.875rem; }
  .btn--small { padding-inline: 12px; font-size: 0.8125rem; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(72px, 11vw, 128px); }
.section--soft { background: var(--bg-soft); }
.section--tight-top { padding-top: 0; }
/* a hairline across the content width, e.g. between the hero and the privacy section */
.container--rule { position: relative; padding-top: clamp(48px, 7vw, 80px); }
.container--rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}
.section__head { max-width: 720px; margin-bottom: clamp(36px, 6vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.lead {
  margin-top: 18px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  line-height: 1.5;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink, var(--muted));
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 112px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  background:
    radial-gradient(40% 50% at 15% 30%, color-mix(in srgb, var(--brand-a) 14%, transparent), transparent 70%),
    radial-gradient(40% 50% at 85% 20%, color-mix(in srgb, var(--brand-b) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 7vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.02fr 1fr; }
}
.hero__copy { max-width: 600px; }
.hero__copy .lead { margin-bottom: 36px; max-width: 520px; }

/* A Mac desktop: wallpaper + menu bar, with the real pop-up at top centre */
.desktop {
  position: relative;
  aspect-ratio: 8 / 5;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 15% 25%, #86d6c8 0%, transparent 70%),
    radial-gradient(60% 65% at 88% 12%, #93b0f5 0%, transparent 70%),
    radial-gradient(55% 60% at 78% 92%, #f6c09c 0%, transparent 70%),
    radial-gradient(60% 60% at 8% 95%, #c4b1f2 0%, transparent 70%),
    #dbe3ee;
  box-shadow: var(--shadow-lg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .desktop {
    background:
      radial-gradient(55% 60% at 15% 25%, #12675f 0%, transparent 70%),
      radial-gradient(60% 65% at 88% 12%, #263f8c 0%, transparent 70%),
      radial-gradient(55% 60% at 78% 92%, #74402c 0%, transparent 70%),
      radial-gradient(60% 60% at 8% 95%, #482e80 0%, transparent 70%),
      #141720;
  }
}
:root[data-theme="dark"] .desktop {
    background:
      radial-gradient(55% 60% at 15% 25%, #12675f 0%, transparent 70%),
      radial-gradient(60% 65% at 88% 12%, #263f8c 0%, transparent 70%),
      radial-gradient(55% 60% at 78% 92%, #74402c 0%, transparent 70%),
      radial-gradient(60% 60% at 8% 95%, #482e80 0%, transparent 70%),
      #141720;
  }
.desktop__menubar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 28px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: rgba(20, 20, 25, 0.82);
  font-size: 12px;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .desktop__menubar { background: rgba(0, 0, 0, 0.3); color: rgba(255, 255, 255, 0.86); }
}
:root[data-theme="dark"] .desktop__menubar { background: rgba(0, 0, 0, 0.3); color: rgba(255, 255, 255, 0.86); }
.desktop__menubar svg { flex: none; }
.desktop__menubar .icon { width: 15px; height: 15px; stroke-width: 2.2; }
/* The app's menu-bar icon (a template image: it takes the menu bar's text colour) */
.menubar__app { width: 15px; height: 15px; }

/* Pop-up screenshots include the macOS shadow, so they sit slightly above the edge */
.popup-stage {
  position: absolute;
  top: 8px;
  left: 50%;
  width: min(60%, 372px);
  transform: translateX(-50%);
}
@media (max-width: 599px) {
  .desktop { aspect-ratio: 5 / 4; }
  .popup-stage { width: 76%; }
}
.popup-stage .popup { display: none; position: relative; }
.popup-stage .popup.is-active { display: block; }
/* custom reminders get a small badge on the card's top-left corner */
.popup__tag {
  position: absolute;
  top: calc(15.28cqw - 11px); /* on the card's top edge (the card starts 15.28% down the slot) */
  left: calc(15.28cqw - 10px);
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
/* Live pop-ups: recorded in the app and cropped to the card (400 px = the 200 pt pop-up at 2x).
   Laid out like the old screenshots: the card is 200/288 of the slot, 44/288 in from the
   top and sides, with the app's 22 pt corner radius (11% of the card) and a soft shadow. */
.pop { position: relative; container-type: inline-size; }
/* a still of the clip sits underneath (no-JS, reduced motion, while loading); the video covers it */
.pop__card {
  position: relative;
  width: 69.44%;
  margin: 15.28% auto 0; /* % of the slot's width */
  overflow: hidden;
  border-radius: 7.64cqw; /* 22/200 of the card = 22/288 of the slot */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.16);
}
.pop__card img { display: block; width: 100%; height: auto; }
.pop__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Neon Edge glows beyond its rim; the recording crops that, so draw it here */
.pop--neon .pop__card {
  box-shadow: 0 0 0 1px rgba(255, 159, 10, 0.55), 0 0 22px rgba(255, 140, 20, 0.55), 0 0 50px rgba(255, 120, 10, 0.28), 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Motion: slide in once (no JS), or cycle through all four (with main.js) */
.popup-stage .is-active { animation: pop-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.popup-stage.is-cycling .is-active { animation: pop-cycle 5.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-18px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop-cycle {
  0%   { opacity: 0; transform: translateY(-18px) scale(0.96); }
  11%  { opacity: 1; transform: none; }
  90%  { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.98); }
}

/* --------------------------------------------------------------------------
   Screenshots
   -------------------------------------------------------------------------- */
.shot img { width: 100%; }

/* --------------------------------------------------------------------------
   Four reminders
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.card__icon .icon { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; color: var(--text); }
.card p { margin-bottom: 16px; color: var(--muted); font-size: 1rem; }
/* the default sits on the card's bottom edge, level across the row whatever the text length */
.card__interval {
  display: inline-block;
  margin-top: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 650;
}

.own {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 24px;
  background:
    radial-gradient(60% 70% at 100% 0%, color-mix(in srgb, #af52de 16%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
@media (min-width: 860px) {
  .own { grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
}
.own h3 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-bottom: 16px;
}
.own p { color: var(--muted); font-size: 1.1rem; }
.own__swatches { display: flex; margin-bottom: 22px; }
.own__swatches span {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-left: -8px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  font-size: 18px;
  line-height: 1;
}
.own__swatches span:first-child { margin-left: 0; }
.own__swatches .s1 { background: #af52de; }
.own__swatches .s2 { background: #5ac8fa; }
.own__swatches .s3 { background: #ff3b30; }
.own__swatches .s4 { background: #ffcc00; }
.own .shot { margin: -12px -12px -28px; }

/* --------------------------------------------------------------------------
   Smart features (alternating rows)
   -------------------------------------------------------------------------- */
.feature__badge {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent-ink);
}

.minis {
  display: grid;
  margin-top: clamp(48px, 8vw, 96px);
  grid-template-columns: 1fr;
  gap: 18px;
}
/* keep the cards' desktop proportions: two per row on tablets, one centred column on phones */
.minis { max-width: 420px; margin-inline: auto; }
@media (min-width: 640px) { .minis { max-width: none; grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .minis { grid-template-columns: repeat(3, 1fr); } }
.section__head + .minis { margin-top: 0; }
.mini {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.mini h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -0.028em; margin-bottom: 12px; }
.mini p { color: var(--muted); font-size: 1.05rem; }

/* "Lives in your menu bar": a card that flips over to show the real menu */
.mini--flip { position: relative; perspective: 1400px; }
/* single-column layouts: tall enough for the menu screenshot to stay readable */
@media (max-width: 899px) { .mini--flip { min-height: 360px; } }
.flip {
  position: relative;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
}
/* 3D only while turning or turned: at rest the front is a normal, crisp card */
.mini--flip.is-3d .flip { transform-style: preserve-3d; }
.mini--flip.is-3d .flip__face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.mini--flip.is-flipped .flip { transform: rotateY(180deg); }
.flip__front { height: 100%; }
/* the back is a tiny Mac desktop: menu bar on top, the real menu hanging from the app's icon */
.flip__back {
  position: absolute;
  inset: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  transform: rotateY(180deg);
  background:
    radial-gradient(70% 60% at 10% 20%, #86d6c8 0%, transparent 70%),
    radial-gradient(70% 60% at 95% 10%, #93b0f5 0%, transparent 70%),
    radial-gradient(70% 60% at 80% 100%, #f6c09c 0%, transparent 70%),
    radial-gradient(70% 60% at 0% 100%, #c4b1f2 0%, transparent 70%),
    #dbe3ee;
}
.mini--flip.is-3d .flip__back { visibility: visible; }
.mbar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 28px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: rgba(20, 20, 25, 0.85);
  font-size: 12px;
  font-weight: 600;
}
.mbar .icon { width: 15px; height: 15px; stroke-width: 2.2; flex: none; }
/* macOS highlights a menu-bar icon while its menu is open */
.mbar__app {
  display: grid;
  place-items: center;
  width: 30px; height: 22px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
}
.mbar__app--idle { background: none !important; }
.mbar__app svg { width: 15px; height: 15px; }
.mbar__drop {
  position: absolute;
  top: 20px;
  bottom: 4px;
  left: 6px;
  right: 2px;
  display: flex;
  justify-content: flex-end;
}
.mbar__drop picture { height: 100%; max-width: 100%; }
.mbar__drop img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: right top; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .flip__back {
    background:
      radial-gradient(70% 60% at 10% 20%, #12675f 0%, transparent 70%),
      radial-gradient(70% 60% at 95% 10%, #263f8c 0%, transparent 70%),
      radial-gradient(70% 60% at 80% 100%, #74402c 0%, transparent 70%),
      radial-gradient(70% 60% at 0% 100%, #482e80 0%, transparent 70%),
      #141720;
  }
  :root:not([data-theme="light"]) .mbar { background: rgba(0, 0, 0, 0.3); color: rgba(255, 255, 255, 0.86); }
  :root:not([data-theme="light"]) .mbar__app { background: rgba(255, 255, 255, 0.2); }
}
:root[data-theme="dark"] .flip__back {
  background:
    radial-gradient(70% 60% at 10% 20%, #12675f 0%, transparent 70%),
    radial-gradient(70% 60% at 95% 10%, #263f8c 0%, transparent 70%),
    radial-gradient(70% 60% at 80% 100%, #74402c 0%, transparent 70%),
    radial-gradient(70% 60% at 0% 100%, #482e80 0%, transparent 70%),
    #141720;
}
:root[data-theme="dark"] .mbar { background: rgba(0, 0, 0, 0.3); color: rgba(255, 255, 255, 0.86); }
:root[data-theme="dark"] .mbar__app { background: rgba(255, 255, 255, 0.2); }
.flip__toggle {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.js .flip__toggle { display: grid; }
.flip__toggle:hover { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); }
.flip__toggle .icon { width: 18px; height: 18px; transition: transform 0.4s ease; }
.mini--flip.is-flipped .flip__toggle .icon { transform: rotate(180deg); }
/* "Never in your way": a real screen recording. The pop-up arrives, the pointer moves onto it,
   the X appears only then, and one click dismisses it. Plays from the start each time the card turns. */
/* the whole recording always fits; any spare space takes the recording's own backdrop colour */
.nw { position: absolute; inset: 28px 0 0; overflow: hidden; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nw { background: #151517; } }
:root[data-theme="dark"] .nw { background: #151517; }
.nw picture, .nw img, .nw__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

/* hand-drawn "see how" note pointing at the flip button (front only) */
.flip__hint {
  display: none;
  position: absolute;
  top: 27px;
  right: 54px;
  z-index: 2;
  align-items: flex-end;
  gap: 2px;
  color: var(--accent-ink);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  transform: rotate(-5deg);
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.js .flip__hint { display: flex; }
.flip__hint span { margin-bottom: 2px; }
.flip__hint svg {
  width: 52px; height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini--flip.is-flipped .flip__hint { opacity: 0; }
/* on the back, the button moves to the bottom-left, clear of the bar and the menu */
.mini--flip.is-flipped .flip__toggle { top: auto; bottom: 14px; right: auto; left: 14px; }


/* --------------------------------------------------------------------------
   Make it yours — a wall of real pop-ups
   -------------------------------------------------------------------------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.92rem;
  font-weight: 600;
}
.styles-wall {
  padding: clamp(8px, 3vw, 32px);
  border-radius: 28px;
  background:
    radial-gradient(45% 60% at 10% 10%, #79cfc2 0%, transparent 70%),
    radial-gradient(45% 60% at 95% 0%, #8ea5f5 0%, transparent 70%),
    radial-gradient(50% 60% at 60% 100%, #f5b991 0%, transparent 70%),
    radial-gradient(45% 60% at 0% 100%, #bea8f0 0%, transparent 70%),
    #d9e2ee;
  box-shadow: var(--shadow-lg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .styles-wall {
    background:
      radial-gradient(45% 60% at 10% 10%, #0f6e66 0%, transparent 70%),
      radial-gradient(45% 60% at 95% 0%, #263f94 0%, transparent 70%),
      radial-gradient(50% 60% at 60% 100%, #7a3e2a 0%, transparent 70%),
      radial-gradient(45% 60% at 0% 100%, #4b2f86 0%, transparent 70%),
      #14171f;
  }
}
:root[data-theme="dark"] .styles-wall {
    background:
      radial-gradient(45% 60% at 10% 10%, #0f6e66 0%, transparent 70%),
      radial-gradient(45% 60% at 95% 0%, #263f94 0%, transparent 70%),
      radial-gradient(50% 60% at 60% 100%, #7a3e2a 0%, transparent 70%),
      radial-gradient(45% 60% at 0% 100%, #4b2f86 0%, transparent 70%),
      #14171f;
  }
.styles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) { .styles { grid-template-columns: repeat(3, 1fr); } }
.style { display: flex; flex-direction: column; align-items: center; margin: 0; }
.style .pop { width: 100%; max-width: 288px; }
/* pop-ups differ in height: give every cell the same box so captions line up */
.style .pop { aspect-ratio: 288 / 275; }
/* pull the caption up into the screenshot's transparent shadow area */
.style figcaption {
  margin: -30px 0 18px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #1d1d1f;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}
.style figcaption strong { font-weight: 650; }
.style figcaption span { font-weight: 450; color: #4a4a52; }
.style figcaption span::before { content: "· "; }
/* phones (two pop-ups per row): tagline on one line, the combo on the next */
@media (max-width: 699px) {
  .style figcaption { border-radius: 12px; padding: 5px 12px; line-height: 1.35; }
  .style figcaption strong { display: block; white-space: nowrap; }
  .style figcaption span { display: block; }
  .style figcaption span::before { content: none; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .style figcaption { background: rgba(0, 0, 0, 0.5); color: #f5f5f7; }
  :root:not([data-theme="light"]) .style figcaption span { color: #c9c9d1; }
}
:root[data-theme="dark"] .style figcaption { background: rgba(0, 0, 0, 0.5); color: #f5f5f7; }
:root[data-theme="dark"] .style figcaption span { color: #c9c9d1; }
.styles-note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }

/* Animated icon loops: the poster sits under the video, so no-JS and
   reduced-motion visitors see a still frame in the right theme */
.motion {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: clamp(56px, 9vw, 96px);
}
@media (min-width: 860px) {
  .motion { grid-template-columns: 0.75fr 1.25fr; gap: 48px; }
}
.motion h3 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-bottom: 14px;
}
.motion p { color: var(--muted); font-size: 1.1rem; }
.loops {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) { .loops { grid-template-columns: repeat(4, 1fr); } }
.loop { margin: 0; text-align: center; }
.loop__frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: var(--shadow-sm);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .loop__frame { background: #1c1c1c; }
}
:root[data-theme="dark"] .loop__frame { background: #1c1c1c; }
.loop__frame picture,
.loop__frame img,
.loop__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* the exported frames draw the circle without anti-aliasing; trim it just inside its rim
   (centred, radius 1/3 of the frame in every clip) so the browser draws a crisp edge */
.loop__frame img,
.loop__frame video { clip-path: circle(33.1% at 50% 50%); }
.loop figcaption { margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }

/* --------------------------------------------------------------------------
   Privacy
   -------------------------------------------------------------------------- */
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.point {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.point__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent-ink);
}
.point .point__icon { width: 40px; height: 40px; margin-bottom: 12px; }
.point .point__icon .icon { width: 20px; height: 20px; }
.point h3 { margin-bottom: 4px; font-size: 1.1rem; }
.point p { color: var(--muted); font-size: 0.95rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Free
   -------------------------------------------------------------------------- */
.free {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--posture) 16%, transparent), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, color-mix(in srgb, var(--brand-a) 14%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.free__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: linear-gradient(140deg, #ffb340, #ff7a1a);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 140, 30, 0.3);
}
.free__icon .icon { width: 34px; height: 34px; stroke-width: 1.8; }
.free p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); max-width: 600px; }
.free p:first-of-type { color: var(--text); }
.free p.free__sign,
.slide .free p.free__sign {
  margin-top: 20px;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--posture-ink);
  transform: rotate(-3deg);
  transform-origin: left center;
}

/* signature on the left; on the right, where tips aren't sold (hover or tap for the list) */
.free__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
}
.free .free__foot p.free__sign,
.slide .free .free__foot p.free__sign { margin-top: 0; }
.free .free__foot p.free__note {
  position: relative;
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--muted);
}
.free__countries {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}
.free__tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: min(300px, 80vw);
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 94%, var(--text)); /* follows light/dark, a shade off the card */
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), inset 0 0 0 1px var(--line);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
/* phones: the note wraps under the signature at the left, so open the list from its left edge */
@media (max-width: 599px) { .free__tip { right: auto; left: 0; } }
.free__note:hover .free__tip,
.free__countries:focus-visible + .free__tip,
.free__note.is-open .free__tip { opacity: 1; visibility: visible; transform: none; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final { text-align: center; }
.final__icon { width: 112px; height: 112px; margin: 0 auto 24px; }
.final h2 { margin-bottom: 32px; }
.final .store-cta { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: 36px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.footer__row a { color: var(--text); text-decoration: none; }
.footer__row a:hover { text-decoration: underline; }
.footer__row .sep { opacity: 0.6; }
.footer__legal { margin-top: 12px; font-size: 0.78rem; max-width: 720px; }
@media (min-width: 900px) {
  .site-footer { padding-block: 28px; }
  .site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; }
  .footer__legal { margin-top: 0; text-align: right; max-width: 560px; }
}

/* --------------------------------------------------------------------------
   Text pages (Support, Privacy, 404)
   -------------------------------------------------------------------------- */
.page {
  padding-block: clamp(48px, 8vw, 96px) clamp(72px, 10vw, 120px);
}
.page__inner { max-width: 760px; }
.page h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 20px; }
.page .lead { margin-top: 0; }
.prose h2 {
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
}
.prose p, .prose ul { color: var(--muted); margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text);
  overflow-wrap: anywhere;
}
.meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }

.summary-box {
  display: flex;
  gap: 16px;
  margin: 8px 0 12px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--walk) 11%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--walk) 30%, transparent);
}
.summary-box .icon { flex: none; color: var(--walk-ink); width: 28px; height: 28px; margin-top: 2px; }
.summary-box p { margin: 0; color: var(--text); font-size: 1.08rem; }

/* Contact cards: each flips over to show its address, with "Open in Mail" and "Copy" */
.contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 36px 0 56px;
}
.contacts .mini--flip { min-height: 0; }
.contacts .mini { padding: 26px 24px 28px; }
.contacts .mini h3 { font-size: 1.3rem; margin-bottom: 8px; padding-right: 36px; }
.contacts .mini p { font-size: 0.98rem; }
.contacts .mini p strong { color: var(--text); }
.contacts .feature__badge { margin-bottom: 16px; }
/* the back: plain card, not the menu-bar wallpaper used on the home page */
.contacts .contact .mini.flip__back,
:root .contacts .contact .mini.flip__back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 26px 22px;
  background:
    radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    var(--surface);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contacts .contact .mini.flip__back {
    background:
      radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
      var(--surface);
  }
}
:root[data-theme="dark"] .contacts .contact .mini.flip__back {
  background:
    radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    var(--surface);
}
.contacts .mini p.contact__label { color: var(--accent-ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.contact__addr {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 650;
  overflow-wrap: break-word;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-underline-offset: 3px;
}
.contacts .mini--flip.is-flipped .flip__toggle { top: 16px; bottom: auto; right: 16px; left: auto; }
/* sketched "email" note pointing at the Get help flip button */
.contacts .flip__hint { top: 30px; right: 52px; font-size: 1.15rem; }
.contacts .flip__hint svg { width: 40px; height: 28px; }
@media (min-width: 640px) {
  .contacts .flip__hint { top: 26px; right: 50px; font-size: 1.02rem; }
  .contacts .flip__hint svg { width: 34px; height: 24px; }
}
@media (min-width: 760px) { .contacts { grid-template-columns: repeat(3, 1fr); } }
/* one sketched note under the two app cards; crossed out once you flip either to email instead */
.app-note {
  display: flex;
  justify-content: center;
  margin: 0;
  padding-block: 34px;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.app-note__text { position: relative; display: block; max-width: 30ch; transform: rotate(-1.5deg); transition: opacity 0.3s ease; }
/* arrows grow out of the sentence: phones point up and down to the cards either side */
.app-note__arrow {
  position: absolute;
  width: 26px; height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-note__arrow--a { bottom: calc(100% + 2px); left: 8%; }
.app-note__arrow--b { top: calc(100% + 2px); right: 8%; transform: rotate(180deg); }
@media (max-width: 759px) {
  .contacts .app-note { order: 3; margin-block: -16px; }
  .contacts .contact:last-of-type { order: 4; }
}
/* side by side: the note sits under the two app cards, one arrow up to each */
@media (min-width: 760px) {
  .app-note { grid-column: 2 / -1; padding-block: 34px 0; margin-top: -16px; }
  .app-note__text { width: 52%; max-width: none; }
  .app-note__arrow--a { left: -2px; }
  .app-note__arrow--b { top: auto; bottom: calc(100% + 2px); right: -2px; transform: none; }
}
/* a hand-drawn line through every line of the note, drawn left to right */
.app-note__ink {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M1 7c10-4 18 3 30-1s20-3 30 1 22 2 30-2 18 0 28 2' fill='none' stroke='%23888890' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 58% / 0% 0.55em;
  transition: background-size 0.5s ease;
}
.app-note.is-struck .app-note__ink { background-size: 100% 0.55em; }
.app-note.is-struck .app-note__text { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .app-note__ink { transition: none; } }
.contact__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--ghost {
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-family: inherit;
  cursor: pointer;
}
.contact__copy { display: none; }
.js .contact__copy { display: inline-flex; }
.contact__copy.is-done { color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
/* without JavaScript nothing flips: show the address under the description instead */
html:not(.js) .contacts .contact .mini.flip__back {
  position: static;
  visibility: visible;
  transform: none;
  margin-top: -24px;
  padding-top: 0;
  border-radius: 0 0 24px 24px;
  background: var(--surface);
}
html:not(.js) .contacts .flip__front { border-radius: 24px 24px 0 0; box-shadow: none; }

.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 620;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer strong { color: var(--text); }

.notfound { text-align: center; }
.notfound .page__inner { margin-inline: auto; }
.notfound .pop { width: min(100%, 288px); margin: -24px auto 32px; }
.notfound .btn { margin-top: 32px; }

/* --------------------------------------------------------------------------
   Snap scrolling: the home page reads as five full-screen slides
   (hero + privacy · habits · smart · make it yours · free + final + footer).
   Only on wide, tall screens; main.js turns strict snapping on when every
   slide fits the screen, otherwise snapping stays gentle (proximity).
   -------------------------------------------------------------------------- */
@media (min-width: 900px) and (min-height: 700px) {
  html { scroll-snap-type: y proximity; }
  html.snap-strict { scroll-snap-type: y mandatory; }

  .slide {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--header-h));
    scroll-snap-align: start;
  }
  /* the last slide shares the screen with the footer */
  .slide--last { min-height: calc(100svh - var(--header-h) - var(--footer-h)); }
  .slide > * {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* denser spacing so each slide fits one screen */
  .slide .section { padding-block: clamp(28px, 4.5vh, 64px); }
  .slide .hero { padding-block: clamp(24px, 4vh, 56px) clamp(16px, 3vh, 40px); }
  .slide .section--tight-top { padding-top: 0; }
  .slide .container--rule { padding-top: clamp(24px, 4vh, 48px); }
  .slide .section__head { margin-bottom: clamp(20px, 3.5vh, 40px); }
  .slide .lead { margin-top: 12px; }
  .slide h1 { font-size: clamp(2.5rem, min(6.4vw, 7.5vh), 4.4rem); }
  .slide .hero__copy .lead { margin-bottom: 28px; }
  .slide .points { margin-bottom: 16px; }

  .slide .card { padding: 22px 22px 24px; }
  .slide .card__icon { margin-bottom: 16px; }
  .slide .own { margin-top: 14px; padding: 28px 40px; }
  .slide .own .shot { max-width: 420px; margin: -8px 0 -16px auto; }
  /* shorter windows: scale the screenshot with the window height */
  .slide .own .shot img { width: auto; max-width: 100%; max-height: max(280px, calc(100svh - 540px)); margin-left: auto; }

  .slide .mini { padding: 26px 28px; }
  .slide .mini h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin-bottom: 8px; }
  .slide .feature__badge { width: 38px; height: 38px; margin-bottom: 14px; }
  .slide .mini--flip { min-height: 0; }

  .slide .styles-wall { padding: 16px 24px; }
  .slide .style .pop { max-width: clamp(140px, calc(23svh - 30px), 230px); }
  .slide [aria-labelledby="yours-title"] .section__head { max-width: 900px; }
  .slide .styles-note { display: none; }
  .slide .style figcaption { margin-bottom: 10px; }
  .slide .styles-note { margin-top: 10px; }
  .slide .motion { margin-top: clamp(24px, 4vh, 48px); }
  .slide .loops { max-width: 560px; margin-left: auto; }

  .slide .free { padding: clamp(28px, 4vh, 48px) clamp(32px, 5vw, 56px); }
  .slide .free p { margin-top: 12px; font-size: 1.02rem; }
  .slide .final__icon { width: 64px; height: 64px; margin-bottom: 14px; }
  .slide--last .section { padding-block: clamp(20px, 3vh, 48px); }
  .slide .final h2 { margin-bottom: 20px; }
}
/* laptop-height windows: the last section has to share the screen with the footer */
@media (min-width: 900px) and (min-height: 700px) and (max-height: 1100px) {
  .slide--last .section { padding-block: clamp(12px, 2vh, 28px); }
  .slide .free { padding-block: clamp(24px, 3vh, 40px); }
  .slide .free__icon { width: 46px; height: 46px; margin-bottom: 14px; border-radius: 13px; }
  .slide .free__icon .icon { width: 26px; height: 26px; }
  .slide .free p.free__sign { margin-top: 8px; }
  .slide .final__icon { display: none; }
  /* "Make it yours": same-size pop-ups, less empty space around them */
  .slide .style .pop { aspect-ratio: 288 / 250; }
  .slide .style .pop__card { margin-top: 6%; }
  .slide .facts { margin-top: 14px; }
  .slide .styles-wall { padding-block: 12px; }
  .slide .motion { margin-top: clamp(16px, 2.5vh, 32px); }
  .slide .loops { max-width: 480px; }
}

/* Full-page mode (main.js): JS glides between slides, so native snapping and the
   scrollbar step aside; a column of dots shows where you are. */
html.is-paged { scroll-snap-type: none; scroll-behavior: auto; scrollbar-width: none; }
html.is-paged::-webkit-scrollbar { display: none; }

.slide-dots { display: none; }
@media (min-width: 900px) and (min-height: 700px) {
  .has-dots .slide-dots {
    position: fixed;
    top: 50%;
    right: 18px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
  }
}
.slide-dots__dot {
  position: relative;
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 25%, transparent);
  cursor: pointer;
  transition: height 0.3s ease, background 0.3s ease;
}
/* a bigger, invisible hit area */
.slide-dots__dot::before { content: ""; position: absolute; inset: -6px -10px; }
.slide-dots__dot:hover { background: color-mix(in srgb, var(--text) 50%, transparent); }
.slide-dots__dot[aria-current="true"] { height: 26px; background: var(--text); }
/* the slide's name, on hover or keyboard focus */
.slide-dots__dot::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(4px, -50%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.slide-dots__dot:hover::after,
.slide-dots__dot:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* --------------------------------------------------------------------------
   Reduced motion: no animation at all
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
