/* Screenshot Hero: the app's own system on the web. Warm paper, 1px hairlines, light display
   type with tight tracking, uppercase tracked eyebrows, one cobalt accent; red, amber and green
   only for Clear, Later and Do it. No gradients on surfaces, no glass, no shadows for depth. */

:root {
  --paper: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #141416;
  --muted: #8C8B90;
  --faint: #B9B8BD;
  --line: #E6E4DF;
  --accent: #2D5BFF;
  --accent-soft: #3DB4FF;
  --clear: #E4484D;
  --later: #F0A000;
  --done: #1FA35B;
  --gold: #FFB400;
  --navy: #14213D;
  --radius: 26px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Inter", "PingFang SC", "Hiragino Sans", "Noto Sans", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Inter", "PingFang SC", "Hiragino Sans", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F0F11;
    --surface: #18181B;
    --ink: #F3F2EF;
    --muted: #8E8E94;
    --faint: #55555B;
    --line: #2C2C30;
    --accent: #7B95FF;
    --accent-soft: #62C6FF;
    --clear: #FF6E72;
    --later: #FFBE3B;
    --done: #4FD08B;
  }
}
:root[data-theme="dark"] {
  --paper: #0F0F11; --surface: #18181B; --ink: #F3F2EF; --muted: #8E8E94; --faint: #55555B;
  --line: #2C2C30; --accent: #7B95FF; --accent-soft: #62C6FF; --clear: #FF6E72; --later: #FFBE3B; --done: #4FD08B;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

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

/* Type */
.eyebrow {
  font: 600 12px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.accent { color: var(--accent); }
.display {
  font: 300 clamp(44px, 8.2vw, 96px)/1.0 var(--display);
  letter-spacing: -0.045em;
  margin: 0;
}
.h2 {
  font: 300 clamp(34px, 5.2vw, 60px)/1.04 var(--display);
  letter-spacing: -0.035em;
  margin: 0;
}
.h3 {
  font: 400 22px/1.25 var(--display);
  letter-spacing: -0.015em;
  margin: 0;
}
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34em; margin: 0; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 16px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav { display: none; } .top .cta-small { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 16px/1 var(--sans); letter-spacing: -0.005em;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .2s, border-color .2s, background .2s;
  cursor: pointer;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
/* Until the App Store link exists: a label, not a button. */
.btn.is-soon, .btn.is-soon:hover { cursor: default; background: transparent; color: var(--ink); border-color: var(--line); }
.btn svg { width: 20px; height: 20px; }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hairline rules and the dot grid from the app's empty screens */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dots {
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

section { padding: clamp(72px, 11vw, 140px) 0; }
section + section { border-top: 1px solid var(--line); }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .eyebrow { margin-bottom: 26px; display: inline-flex; gap: 10px; align-items: center; }
.hero .display { margin-bottom: 26px; font-size: clamp(42px, 4.8vw, 70px); line-height: 1.04; }
.hero .display em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 36px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: var(--surface);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--done); display: block; }

/* The swipe demo: a live deck, like the app's */
.deck-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
@media (min-width: 901px) { .deck-stage > div { transform: translateX(80px); } }
.deck-stage.dots { border-radius: 40px; }
.deck { position: relative; width: min(340px, 86vw); height: 440px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.card {
  position: absolute; inset: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s;
  will-change: transform;
  cursor: grab;
}
.card:active { cursor: grabbing; }
/* Without the script the first card is still the one on top. */
.card:nth-child(1) { z-index: 3; } .card:nth-child(2) { z-index: 2; } .card:nth-child(3) { z-index: 1; }
.card.dragging { transition: none; }
.card .shot {
  flex: 1; border-radius: 16px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, var(--surface));
  padding: 18px; overflow: hidden; position: relative;
  font: 400 13px/1.45 var(--sans); color: var(--ink);
}
.shot .time { font: 600 12px/1 var(--sans); margin-bottom: 14px; }
.shot .big { font: 700 19px/1.2 var(--sans); letter-spacing: -0.01em; margin-bottom: 8px; }
.shot .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.shot .row:last-child { border-bottom: 0; }
.shot .row span:first-child { color: var(--muted); }
.card .meta { display: flex; justify-content: space-between; }
.card .meta .eyebrow { font-size: 10.5px; }
.card .title { font: 400 20px/1.2 var(--display); letter-spacing: -0.015em; margin: 0; }
.card .why { font-size: 13px; color: var(--muted); margin: 0; }
.card .act {
  display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px; border-radius: 14px;
  background: var(--accent); color: #fff; font: 500 14.5px/1 var(--sans);
}
.stamp {
  position: absolute; top: 26px; padding: 6px 12px; border-radius: 10px; border: 2px solid currentColor;
  font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: 0;
  background: var(--surface);
}
.stamp.do { left: 22px; color: var(--done); transform: rotate(-8deg); }
.stamp.clear { right: 22px; color: var(--clear); transform: rotate(8deg); }
.stamp.later { left: 50%; top: auto; bottom: 118px; color: var(--later); transform: translateX(-50%); }

.rings { display: flex; justify-content: center; gap: 22px; margin-top: 28px; }
.ring {
  width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: transform .15s, border-color .2s;
  color: var(--ink); padding: 0;
}
.ring:hover { border-color: var(--faint); }
.ring:active { transform: scale(.94); }
.ring svg { width: 24px; height: 24px; }
.ring.clear { color: var(--clear); } .ring.later { color: var(--later); } .ring.do { color: var(--done); }
.ring-labels { display: flex; justify-content: center; gap: 22px; margin-top: 10px; }
.ring-labels span { width: 62px; text-align: center; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ring-labels .clear { color: var(--clear); } .ring-labels .later { color: var(--later); } .ring-labels .do { color: var(--done); }
.deck-done {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; opacity: 0; pointer-events: none; transition: opacity .5s;
}
.deck-done.show { opacity: 1; pointer-events: auto; }
.deck-done .h3 { margin-bottom: 6px; }
.deck-done button { margin-top: 18px; }

/* Section heads */
.head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 72px); max-width: 760px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* Three verdicts */
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.verdicts > div { padding: clamp(26px, 3.4vw, 40px); }
.verdicts > div + div { border-left: 1px solid var(--line); }
@media (max-width: 800px) { .verdicts { grid-template-columns: 1fr; } .verdicts > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.verdict-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; margin-bottom: 26px; }
.verdict-icon svg { width: 20px; height: 20px; }
.verdicts .do { color: var(--done); } .verdicts .later { color: var(--later); } .verdicts .clear { color: var(--clear); }
.verdicts .eyebrow { margin-bottom: 10px; }
.verdicts p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.verdicts p.h3 { color: var(--ink); font-size: 30px; font-weight: 300; letter-spacing: -0.03em; margin-top: 2px; }

/* Phones: a hairline frame around a real screenshot */
.phone {
  position: relative; width: 100%; max-width: 300px;
  border-radius: 44px; padding: 9px; background: var(--surface); border: 1px solid var(--line);
}
.phone picture { display: block; }
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: 36px; }

/* Feature rows */
.features { display: grid; gap: clamp(80px, 10vw, 140px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature:nth-child(even) .feature-media { order: -1; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-media { order: 0; } }
.feature-media { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.feature-media .phone:nth-child(2) { margin-top: 56px; }
@media (max-width: 520px) { .feature-media .phone { max-width: 46vw; border-radius: 30px; padding: 6px; } .feature-media .phone img, .feature-media .phone picture img { border-radius: 25px; } }
.feature .eyebrow { margin-bottom: 18px; }
.feature .h2 { margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ticks li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }

/* Destinations strip */
.apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.apps span { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; font-size: 14px; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.privacy-grid > div { padding: 30px 26px 0 0; }
.privacy-grid > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; } .privacy-grid > div:nth-child(3) { border-left: 0; padding-left: 0; } .privacy-grid > div:nth-child(n+3) { margin-top: 30px; border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } .privacy-grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 30px; } }
.stat { font: 200 clamp(48px, 6vw, 72px)/1 var(--display); letter-spacing: -0.05em; margin-bottom: 14px; }
.stat small { font-size: .4em; letter-spacing: -0.02em; color: var(--muted); }
.privacy-grid p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(48px, 7vw, 80px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.flow > div { padding: 26px; position: relative; }
.flow > div + div { border-left: 1px solid var(--line); }
.flow .n { font: 500 12px/1 var(--sans); color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; }
.flow p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } .flow > div:nth-child(3) { border-left: 0; } .flow > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } .flow > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Safety */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 13px/1.6 var(--sans); color: var(--clear); letter-spacing: .06em; }
.steps strong { font-weight: 500; display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--ink); }
.plan .eyebrow { margin-bottom: 18px; display: flex; justify-content: space-between; }
.plan .price { font: 200 52px/1 var(--display); letter-spacing: -0.045em; }
.plan .price small { font: 400 15px/1 var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan .sub { color: var(--muted); font-size: 15px; margin: 12px 0 22px; min-height: 2.9em; }
.plan ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.plan li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 10px; }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--accent); }
.fine { margin-top: 26px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* Languages */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font: 300 clamp(22px, 3vw, 34px)/1.4 var(--display); letter-spacing: -0.02em; color: var(--faint); }
.langs span { transition: color .3s; }
.langs span:hover { color: var(--ink); }

/* Final call */
.final { text-align: center; }
.final img.icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 34px; border: 1px solid var(--line); }
.final .h2 { margin-bottom: 18px; }
.final .lede { margin: 0 auto 34px; }
.final .btn-row { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
footer nav { display: flex; flex-wrap: wrap; align-items: center; min-height: 30px; gap: 8px 22px; }
footer .wrap > div { min-width: 0; }
footer nav a:hover { color: var(--ink); }
footer .brand { color: var(--ink); margin-bottom: 12px; }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } }

/* Long-form pages: privacy, terms, support */
.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font: 300 clamp(40px, 6vw, 64px)/1.05 var(--display); letter-spacing: -0.04em; margin: 18px 0 18px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 44px; }
.doc h2 { font: 400 26px/1.2 var(--display); letter-spacing: -0.02em; margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { font: 500 18px/1.3 var(--display); margin: 32px 0 10px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 82%, var(--paper)); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--faint); }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }
.doc strong { font-weight: 600; color: var(--ink); }
.doc .table { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 620px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc tr:last-child td { border-bottom: 0; }
.faq { border-top: 1px solid var(--line); margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font: 400 19px/1.35 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }
.contact { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 30px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }

/* Reveal on scroll, quietly; nothing moves with Reduce Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card { transition: opacity .2s; }
}
.no-js .reveal { opacity: 1; transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Small titles inside the privacy grids read as ink, above their muted line. */
.privacy-grid p.ink, .flow p.ink { color: var(--ink); font-size: 17px; font-weight: 500; margin-top: 0; }

/* The hero himself, beside the deck on its left: he pushes each card the way it goes. */
.hero-mascot {
  position: absolute; z-index: 200; pointer-events: none;
  width: 150px; height: auto; top: 34%; left: -176px; z-index: 500;
  animation: fly 6s ease-in-out infinite;
}
@keyframes fly { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(4px, -10px) rotate(-1deg); } }
/* A swipe: he dashes after the card (right), jumps with it (up), or shoos it away (left). */
.hero-mascot.push-do { animation: push-do .6s cubic-bezier(.2,.8,.2,1); }
.hero-mascot.push-later { animation: push-later .6s cubic-bezier(.2,.8,.2,1); }
.hero-mascot.push-clear { animation: push-clear .6s cubic-bezier(.2,.8,.2,1); }
@keyframes push-do { 0% { transform: rotate(-4deg); } 40% { transform: translate(120px, -6px) rotate(10deg) scale(1.06); } 100% { transform: rotate(-4deg); } }
@keyframes push-later { 0% { transform: rotate(-4deg); } 40% { transform: translate(40px, -90px) rotate(-12deg) scale(1.06); } 100% { transform: rotate(-4deg); } }
@keyframes push-clear { 0% { transform: rotate(-4deg); } 30% { transform: translate(60px, 0) rotate(6deg); } 55% { transform: translate(-20px, 0) rotate(-16deg) scale(.96); } 100% { transform: rotate(-4deg); } }
@media (max-width: 900px) { .hero-mascot { width: 104px; top: -54px; left: -14px; } }
@media (prefers-reduced-motion: reduce) { .hero-mascot, .hero-mascot[class*="push-"] { animation: none; transform: rotate(-4deg); } }

/* Light and dark screenshots: the one for the current appearance is shown (and loaded). */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Header controls: appearance and language */
.controls { display: flex; align-items: center; gap: 8px; }
.nav + .controls { margin-left: 18px; }
@media (max-width: 720px) { .controls { margin-left: auto; } }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--faint); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .i-auto, .icon-btn .i-light, .icon-btn .i-dark { display: none; }
.icon-btn[data-mode="auto"] .i-auto, .icon-btn[data-mode="light"] .i-light, .icon-btn[data-mode="dark"] .i-dark { display: block; }
.lang {
  position: relative; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 10px; color: var(--ink); font-size: 14px;
}
.lang:hover { border-color: var(--faint); }
.lang svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit;
  padding: 0 14px 0 0; cursor: pointer; outline: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 4px center, right 0 center; background-size: 4px 4px; background-repeat: no-repeat;
}
.lang select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 420px) { .lang .lang-name { max-width: 70px; } .top .cta-small { display: none; } }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: 13px; }
.foot-langs a { color: var(--muted); white-space: nowrap; }
.foot-langs a:hover, .foot-langs a[aria-current] { color: var(--ink); }

/* Chinese, Japanese and Korean: their own fonts, and no tight Latin tracking on headlines. */
:lang(zh-Hans) { --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; --display: var(--sans); }
:lang(zh-Hant) { --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; --display: var(--sans); }
:lang(ja) { --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; --display: var(--sans); }
:lang(ko) { --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; --display: var(--sans); }
:lang(zh-Hans) .display, :lang(zh-Hant) .display, :lang(ja) .display, :lang(ko) .display { letter-spacing: -0.02em; line-height: 1.12; font-weight: 300; }
:lang(zh-Hans) .h2, :lang(zh-Hant) .h2, :lang(ja) .h2, :lang(ko) .h2, :lang(zh-Hans) .doc h1, :lang(zh-Hant) .doc h1, :lang(ja) .doc h1, :lang(ko) .doc h1 { letter-spacing: -0.01em; line-height: 1.2; }
:lang(zh-Hans) .eyebrow, :lang(zh-Hant) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow { letter-spacing: .08em; }
:lang(zh-Hans) .hero .display, :lang(zh-Hant) .hero .display, :lang(ja) .hero .display, :lang(ko) .hero .display { font-size: clamp(34px, 3.8vw, 56px); }
.display, .h2 { text-wrap: balance; }
/* Long German and French words in big headlines may break rather than overflow. */
.display, .h2 { overflow-wrap: break-word; hyphens: auto; }

/* The deck's z-indexes stay inside the hero; the header is always on top. */
.top { z-index: 1000; }
.deck-stage { isolation: isolate; }

/* Ring labels in every language: wider columns, lighter tracking, so long words don't touch. */
.rings { gap: 34px; }
.ring-labels { gap: 0; }
.ring-labels span { width: 96px; letter-spacing: .08em; }
/* German and French run long: the hero headline a little smaller. */
:lang(de) .hero .display, :lang(fr) .hero .display { font-size: clamp(38px, 4.1vw, 60px); }
.brand { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 15px; gap: 8px; } .lang { padding: 0 10px 0 8px; } }

/* Language: a globe that opens a short list. */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { border-color: var(--faint); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: grid;
}
.lang-list a { padding: 9px 12px; border-radius: 12px; font-size: 14.5px; color: var(--ink); display: flex; justify-content: space-between; }
.lang-list a:hover { background: var(--paper); }
.lang-list a[aria-current]::after { content: "✓"; color: var(--accent); }
/* Anchored sections clear the sticky header. */
section[id] { scroll-margin-top: 72px; }

/* Demo cards: an article's list, a web page's address bar, a recipe photo. */
.shot ol.lines { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.55; }
.shot .urlbar { font: 500 11px/1 var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; margin-bottom: 14px; text-align: center; background: var(--surface); }
.shot .thumb { margin-top: 12px; height: 96px; border-radius: 12px; background:
  radial-gradient(circle at 30% 45%, #C2412D 0 16%, transparent 17%), radial-gradient(circle at 55% 60%, #7A3B69 0 14%, transparent 15%),
  radial-gradient(circle at 72% 38%, #E8C547 0 10%, transparent 11%), linear-gradient(135deg, #F1E3C8, #E6CFA6); }
.card:nth-child(4) { z-index: 0; } .card:nth-child(5) { z-index: 0; }

/* What a swipe did, like the app's confirmation: a hairline pill over the deck's foot. */
.result {
  position: absolute; z-index: 300; left: 50%; top: -26px; transform: translate(-50%, -10px);
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: 108%;
  padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .45s cubic-bezier(.2,.8,.2,1);
}
.result.show { opacity: 1; transform: translate(-50%, 0); }
.result-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; background: var(--done); }
.result[data-kind="later"] .result-icon { background: var(--later); color: var(--navy); }
.result[data-kind="clear"] .result-icon { background: var(--clear); }
.result-icon svg { width: 18px; height: 18px; }
.result-text { display: grid; gap: 1px; font-size: 13.5px; line-height: 1.3; }
.result-text strong { font-weight: 600; }
.result-text span { color: var(--muted); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .result { transition: opacity .2s; transform: translate(-50%, 0); } }

/* Chinese headlines are phrases: a space, not a comma, between them, wide enough to read as a pause. */
:lang(zh-Hans) :is(.display, .h2, .h3, .doc h1), :lang(zh-Hant) :is(.display, .h2, .h3, .doc h1) { word-spacing: .35em; }

/* After Do it: the real task, prefilled, in the middle — the event, the reminder, the note, the page.
   It opens from the card, its button is tapped for you, and it says what was done. */
.tasks { position: absolute; inset: 0; z-index: 400; pointer-events: none; }
.task {
  position: absolute; left: 50%; top: 50%; width: min(392px, 94vw);
  transform: translate(-50%, -46%) scale(.86); opacity: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 0 16px 16px;
  transition: opacity .32s, transform .5s cubic-bezier(.2,.9,.2,1);
}
.task.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.deck.tasking .card { opacity: .1 !important; transition: opacity .3s; }
.task-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 54px; font-size: 14.5px; }
.task-bar strong { font-weight: 600; }
.task-bar .t-cancel { color: var(--accent); justify-self: start; }
.task-bar .t-add { color: var(--accent); font-weight: 600; justify-self: end; padding: 6px 10px; margin-right: -10px; border-radius: 10px; transition: background .2s; }
.task.tapped .t-add { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.task-bar.web { grid-template-columns: 1fr auto; gap: 10px; }
.task-bar.web .urlbar { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; text-align: center; background: var(--paper); }
.task-group { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin-top: 10px; padding: 0 14px; }
.task-title { font: 500 16px/1.3 var(--sans); padding: 12px 0; display: flex; gap: 10px; align-items: center; }
.task-title .circle { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; transition: background .25s, border-color .25s; }
.task.done .task-title .circle { background: var(--done); border-color: var(--done); }
.task-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.task-group > .task-row:first-child { border-top: 0; }
.task-row span:first-child { color: var(--ink); }
.task-row span:last-child { color: var(--muted); text-align: right; }
.task-group.note { padding: 14px; }
.note-sum { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.note-points { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.note-tags { display: flex; gap: 6px; margin-top: 12px; }
.note-tags span { font-size: 12px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 3px 9px; }
.web-page { padding-top: 4px; }
.web-page .thumb { height: 120px; border-radius: 14px; background:
  radial-gradient(circle at 30% 45%, #C2412D 0 16%, transparent 17%), radial-gradient(circle at 55% 60%, #7A3B69 0 14%, transparent 15%),
  radial-gradient(circle at 72% 38%, #E8C547 0 10%, transparent 11%), linear-gradient(135deg, #F1E3C8, #E6CFA6); }
.task-done {
  margin-top: 14px; height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--done); font: 600 14.5px/1 var(--sans); transition: height .3s;
}
.task-done::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.task.done .task-done { height: 24px; }
@media (prefers-reduced-motion: reduce) { .task { transition: opacity .2s; transform: translate(-50%, -50%); } }

/* Later and Clear: their word, in the middle too, not at an edge. */
.result { top: 50%; transform: translate(-50%, -40%) scale(.92); padding: 14px 20px 14px 14px; border-radius: 20px; }
.result.show { transform: translate(-50%, -50%) scale(1); }
.result-icon { width: 42px; height: 42px; }
.result-text { font-size: 15px; } .result-text span { font-size: 13px; }

/* The tap on Add / Save / Done: a fingertip that presses it, so the step reads as done for you. */
.t-add { position: relative; }
.t-add::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 22%, transparent); border: 2px solid color-mix(in srgb, var(--surface) 80%, transparent);
  opacity: 0; transform: scale(1.6); pointer-events: none;
}
.task.pressing .t-add::after { animation: tap .55s ease-out forwards; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.6); } 45% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .task.pressing .t-add::after { animation: none; } }

/* Chinese, Japanese and Korean headlines break between phrases, never inside one. */
:lang(zh-Hans) :is(.display, .h2, .h3, .doc h1), :lang(zh-Hant) :is(.display, .h2, .h3, .doc h1),
:lang(ja) :is(.display, .h2, .h3, .doc h1), :lang(ko) :is(.display, .h2, .h3, .doc h1) {
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
}

/* CJK section titles a size down: whole phrases fit the feature column. */
:lang(zh-Hans) .h2, :lang(zh-Hant) .h2, :lang(ja) .h2, :lang(ko) .h2 { font-size: clamp(28px, 3.2vw, 44px); }

.task-bar.plain { grid-template-columns: 1fr; justify-items: center; }
.task-bar.web { grid-template-columns: 1fr; }
