/* Noverdo landing. Colors, radii, type and fonts come from the app's own
   tokens (css/vars-*.css, copied from dist/css). Separation is done with
   background steps and spacing, no shadows, no borders (UX.md). The one
   inset glow is the app's primary button, kept as is. */

/* ── Legal pages (terms/privacy/impressum): the landing header above a plain text column ── */
.legal { max-width: 42rem; margin: 0 auto; padding: 48px 32px 96px; line-height: 1.6; }
.legal h1 { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin-bottom: var(--space-4) !important; }
.legal h2 { font-size: var(--type-h4-size); margin-top: 2rem !important; margin-bottom: var(--space-2) !important; }
.legal p, .legal ul { margin: 0 0 var(--space-3); }
.legal ul { padding-left: 1.25rem; }
.legal a { color: var(--cta); }
.legal .legal-back { display: inline-flex; gap: 6px; margin-bottom: var(--space-6); color: var(--fg-secondary); text-decoration: none; font-weight: 500; }
.legal .legal-tabs { width: fit-content; margin-bottom: var(--space-6); }
.legal .legal-tabs button { width: auto; padding: 0 14px; font: inherit; font-weight: 500; }
.legal .legal-back:hover { color: var(--fg-primary); }
.draft { padding: .75rem 1rem; border-radius: var(--radius-md); background: var(--card); }

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.landing {
  margin: 0;
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.landing h1, .landing h2, .landing h3, .landing p, .landing figure, .landing ol, .landing ul, .landing blockquote { margin: 0; }
.landing a { color: inherit; }
.landing img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Blue CTA: the app's --accent-info-strong, fixed hex (the dark token is too pale under white text).
   Light = pure white page with --bg-subtle cards; dark = the app canvas with --bg-surface cards.
   H1/H2 use rounded serifs: Fraunces (SOFT axis), Lora for Cyrillic. */
.landing {
  --top: var(--bg-surface); --card: var(--bg-subtle); --inner: var(--bg-surface);
  --radius-box: 50px; /* hero and banners */
  --cta: #2563eb; --cta-hover: #1d4ed8;
  --font-display: 'Fraunces', 'Lora', Georgia, serif;
  background: var(--top);
}
@media (min-width: 768px) { .landing { --radius-box: 88px; } }
[data-theme="dark"] .landing { --top: var(--bg-canvas); --card: var(--bg-surface); --inner: var(--bg-subtle); }
.h-section, .hero-title, .final-quote { font-variation-settings: "SOFT" 100; }

.eyebrow {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  font-weight: 600;
  letter-spacing: var(--type-caps-tracking);
  text-transform: uppercase;
  color: var(--fg-secondary);
  margin-bottom: var(--space-4) !important;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.lead {
  margin-top: var(--space-5) !important;
  font-size: var(--type-h4-size);
  line-height: 1.5;
  color: var(--fg-secondary);
  max-width: 34em;
  text-wrap: pretty;
}
/* "In 4 steps": a thick accent underline that clears the descenders, not the browser's hairline. */
.lead a { color: var(--fg-primary); text-decoration: underline; text-decoration-color: var(--cta); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.lead a:hover { text-decoration-color: var(--fg-primary); }
.lead a.steps-link:hover { text-decoration-color: var(--fg-primary); }
.lead u, .lead a.steps-link { color: var(--fg-primary); font-weight: 500; text-decoration: underline; text-decoration-color: var(--cta); text-decoration-thickness: 3px; text-underline-offset: 0.22em; text-decoration-skip-ink: none; }
.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 140px 0; } }
.section-head { max-width: 760px; margin-bottom: 56px; }
#pricing .section-head { max-width: 960px; } /* the RU title is long: two lines, not three */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--size-control-height-lg);
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-full);
  font: inherit;
  font-size: var(--type-button-size);
  font-weight: var(--type-button-weight);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.fill { fill: currentColor; stroke: none; }
.btn-primary, .btn-cta {
  color: #fff;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.58), inset 0 1px 4px rgba(255, 255, 255, 0.38);
}
/* The app's "It came true" glitter pill (Auth.css .nv-auth__submit-btn).
   SVG noise as files, not data: URIs: the landing CSP allows img-src 'self' only. */
.landing .btn-primary, .mini-done {
  position: relative;
  isolation: isolate;
  background-color: #000;
  background-image: url(img/glitter-gold-a.svg), url(img/glitter-white-a.svg);
  color: #fff;
}
.landing .btn-primary::after, .mini-done::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background-image: url(img/glitter-gold-b.svg), url(img/glitter-white-b.svg);
  pointer-events: none;
  animation: twinkle 8s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.landing .btn-primary:hover { background-color: #141414; box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.72), inset 0 1px 5px rgba(255, 255, 255, 0.45); }
.landing .btn-cta { background: var(--cta); color: #fff; }
.landing .btn-cta:hover { background: var(--cta-hover); }
.btn-cta svg { transition: transform var(--motion-base) var(--motion-ease); }
.btn-cta:hover svg { transform: translateX(3px); }
.btn-sm { height: var(--size-control-height-sm); padding: 0 16px; font-size: var(--type-body-sm-size); }
.btn-lg { height: 60px; padding: 0 32px; }
.btn:focus-visible, .seg button:focus-visible, .lang:focus-visible, .faq-item summary:focus-visible, .header-nav a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
/* The two store buttons are one grid with equal columns, so they are the same width in every language. */
.store-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-3); }
/* Phones: one column as wide as the two store buttons, and the blue button fills it. */
@media (max-width: 767px) { .hero .btn-row { display: grid; justify-content: center; } }
@media (max-width: 420px) { .store-btns .btn { padding-inline: 16px; gap: 8px; } } /* on narrow phones both must still fit one row at equal width */
@media (max-width: 380px) { .store-btns .btn { padding-inline: 10px; gap: 6px; } }
@media (max-width: 340px) { .store-btns .btn { padding-inline: 6px; gap: 4px; font-size: var(--type-body-sm-size); } }

/* ── Header ── */
/* The icon sprite is an inline <svg>: left in flow it makes a 22px line above the header. */
.sprite { position: absolute; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--top); }
.header-inner { display: flex; align-items: center; gap: var(--space-4); height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--type-h4-size) * 1.15); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-mark .bm-tile { fill: #eeeaff; } .brand-mark .bm-a { stop-color: #8b6cf8; } .brand-mark .bm-b { stop-color: #4a2bd8; }
[data-theme="dark"] .brand-mark .bm-tile { fill: #232733; } [data-theme="dark"] .brand-mark .bm-a { stop-color: #b4a5fb; } [data-theme="dark"] .brand-mark .bm-b { stop-color: #5738ed; }
.header-nav { display: none; gap: var(--space-6); margin-left: var(--space-6); }
.header-nav a { text-decoration: none; font-size: var(--type-body-sm-size); font-weight: 500; color: var(--fg-secondary); border-radius: 4px; }
.header-nav a:hover { color: var(--fg-primary); }
.header-tools { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.seg { display: flex; padding: 3px; gap: 2px; background: var(--bg-tint); border-radius: var(--radius-full); }
.seg button {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  padding: 0; border: 0; border-radius: var(--radius-full);
  background: transparent; color: var(--fg-secondary);
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}
.seg button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg button:hover { color: var(--fg-primary); }
.seg button[aria-pressed="true"] { background: var(--bg-surface); color: var(--fg-primary); }
.lang {
  display: inline-flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 10px 0 12px;
  border: 0; border-radius: var(--radius-full);
  background: var(--bg-tint); color: var(--fg-primary);
  font: inherit; font-size: var(--type-caption-size); font-weight: 600;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--motion-ease);
}
.lang:hover, .lang:has(+ .lang-pop:popover-open) { background: var(--bg-tint-strong); }
.lang svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--motion-fast) var(--motion-ease); }
.lang:has(+ .lang-pop:popover-open) svg { transform: rotate(180deg); }
/* The panel: a background step off the page, no shadow (UX.md). */
.lang-pop {
  position: fixed; inset: auto; margin: 0; width: 200px; padding: 6px;
  border: 0; border-radius: var(--radius-xl);
  background: var(--card); color: var(--fg-primary);
  box-shadow: 0 24px 64px -20px rgba(30, 50, 110, 0.2), 0 2px 16px rgba(30, 50, 110, 0.05);
  opacity: 0; transform: translateY(-6px);
  transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease), display var(--motion-fast) allow-discrete, overlay var(--motion-fast) allow-discrete;
}
.lang-pop:popover-open { opacity: 1; transform: none; }
[data-theme="dark"] .lang-pop { box-shadow: 0 0 0 1px var(--border-plate), 0 16px 40px rgba(0, 0, 0, 0.5); } /* a shadow does not show on black: add a hairline */
@starting-style { .lang-pop:popover-open { opacity: 0; transform: translateY(-6px); } }
.lang-pop button {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 10px 0 12px;
  border: 0; border-radius: var(--radius-md); background: none; color: inherit;
  font: inherit; font-size: var(--type-body-sm-size); text-align: left; cursor: pointer;
}
.lang-pop button:hover { background: var(--bg-tint); }
.lang-pop button:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -2px; }
.lang-pop small { margin-left: auto; color: var(--fg-muted); font-size: var(--type-caption-size); font-weight: 600; }
.lang-pop svg { width: 16px; height: 16px; fill: none; stroke: var(--cta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.lang-pop [aria-checked="true"] { font-weight: 600; }
.lang-pop [aria-checked="true"] svg { visibility: visible; }
/* Phones: a taller bar and bigger controls, all centred on the same line. */
@media (max-width: 767px) {
  .header-inner { height: 76px; }
  .brand { font-size: calc(var(--type-h4-size) * 1.35); }
  .brand-mark { width: 36px; height: 36px; }
  .seg button { width: 36px; height: 36px; }
  .seg button svg { width: 18px; height: 18px; }
  .lang { height: 44px; padding: 0 12px 0 16px; font-size: var(--type-body-sm-size); }
}
@media (max-width: 380px) {
  .header-inner { padding: 0 16px; gap: var(--space-2); }
  .brand { font-size: calc(var(--type-h4-size) * 1.15); }
  .brand-mark { width: 28px; height: 28px; }
  .seg button { width: 32px; height: 32px; }
  .lang { height: 40px; padding: 0 10px 0 12px; font-size: var(--type-caption-size); }
}
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 900px) { .header-nav { display: flex; } }

/* ── Dark-only space: black + the app's glitter (hero, banners, footer) ── */
[data-theme="dark"] .hero, [data-theme="dark"] .banner {
  position: relative; isolation: isolate;
  background-color: #000;
  background-image: url(img/glitter-gold-a.svg), url(img/glitter-white-a.svg);
  color: #fff;
}
[data-theme="dark"] .hero::after, [data-theme="dark"] .banner::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background-image: url(img/glitter-gold-b.svg), url(img/glitter-white-b.svg);
  pointer-events: none;
  animation: twinkle 8s ease-in-out infinite;
}
/* Night sky layer (site.js builds it, skipped under reduced motion). */
.sky { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
:root:not([data-theme="dark"]) .sky { display: none; }
.sky .star { position: absolute; width: 1.5px; height: 1.5px; border-radius: 50%; background: #fff; animation: star-twinkle 5s ease-in-out infinite; }
@keyframes star-twinkle { 0%, 100% { opacity: 0.05; } 50% { opacity: 0.35; } }
/* Guiding star: brighter, with a soft halo and four thin rays. */
.sky .star-guide { position: absolute; left: 86%; top: 5%; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.5), 0 0 12px 3px rgba(170, 195, 255, 0.15); animation: star-guide 6s ease-in-out infinite; }
.sky .star-guide::before, .sky .star-guide::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1px; translate: -50% -50%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); }
.sky .star-guide::after { rotate: 90deg; }
@keyframes star-guide { 0%, 100% { transform: scale(0.5); opacity: 0.7; } 50% { transform: none; opacity: 1; } }
@media (min-width: 900px) { .hero .sky .star-guide { left: 56%; top: 9%; } .banner .sky .star-guide { left: 82%; top: 16%; } }
/* Shooting star: head at the left end, flies down-left for ~1.2 s, then waits out the 30 s cycle. */
.sky .star-shoot { position: absolute; width: 110px; height: 1px; transform-origin: 0 50%; background: linear-gradient(90deg, #fff, transparent); opacity: 0; animation: star-shoot 30s ease-out infinite; }
@keyframes star-shoot {
  0% { transform: rotate(-32deg) translateX(0); opacity: 0; }
  0.6% { opacity: 1; }
  4% { transform: rotate(-32deg) translateX(-380px); opacity: 0; }
  100% { transform: rotate(-32deg) translateX(-380px); opacity: 0; }
}
/* Plane: a dim dot (site.js sets --plane-x/-y/-dx/-dy/-dur in px) with a light that flashes twice and waits. */
.sky .plane { position: absolute; left: var(--plane-x); top: var(--plane-y); width: 2px; height: 2px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); opacity: 0; animation: plane-fly var(--plane-dur) linear forwards; }
.sky .plane::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.7); opacity: 0; animation: plane-strobe 1.6s linear infinite; }
@keyframes plane-fly {
  0% { transform: translate(0, 0); opacity: 0; }
  12%, 85% { opacity: 0.9; }
  100% { transform: translate(var(--plane-dx), var(--plane-dy)); opacity: 0; }
}
@keyframes plane-strobe { 0% { opacity: 1; } 6% { opacity: 0; } 13% { opacity: 1; } 19%, 100% { opacity: 0; } }
[data-theme="dark"] .hero-sub, [data-theme="dark"] .hero-badge { color: rgba(255, 255, 255, 0.7); }
/* Store buttons: flat, no glitter (the header and play buttons keep it). */
.landing .hero .btn-row .btn-primary { background-image: none; }
.landing .hero .btn-row .btn-primary::after { display: none; }
[data-theme="dark"] .landing .hero .btn-row .btn-primary { background-color: rgba(255, 255, 255, 0.14); }
[data-theme="dark"] .landing .hero .btn-row .btn-primary:hover { background: rgba(255, 255, 255, 0.22); }
[data-theme="dark"] .banner-text { color: rgba(255, 255, 255, 0.75); }

/* ── Hero: a rounded box as wide as the banners ── */
.hero {
  width: calc(100% - 64px); max-width: 1116px; margin: 16px auto 0;
  padding: 48px 0 56px; border-radius: var(--radius-box); background: var(--card); text-align: center; overflow: hidden;
}
/* Phones: edge to edge, only the bottom corners rounded (the text keeps its gutter via .wrap). */
@media (max-width: 767px) { .hero { width: 100%; margin-top: 0; border-radius: 0 0 var(--radius-box) var(--radius-box); } }
@media (min-width: 768px) { .hero { width: calc(100% - 64px); padding-top: 72px; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--space-5) !important; padding: 6px 14px 6px 10px;
  border-radius: var(--radius-full); background: var(--inner);
  font-size: var(--type-caption-size); font-weight: 600; color: var(--fg-secondary);
}
.hero-badge svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
[data-theme="dark"] .hero-badge { background: rgba(255, 255, 255, 0.12); }
/* The marker on the key words of the H1. */
.hero-title em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--cta) 30%, transparent) 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Landing-only exception to the 32px display cap: a hero headline has to carry the page. */
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1;
  text-wrap: balance;
  animation: rise 0.9s var(--motion-ease) both;
}
.hero-sub {
  max-width: 30em;
  margin: var(--space-6) auto var(--space-8) !important;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  color: var(--fg-secondary);
  text-wrap: balance;
  animation: rise 0.9s 0.1s var(--motion-ease) both;
}
.hero .btn-row { animation: rise 0.9s 0.2s var(--motion-ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.hero-phones {
  display: flex; justify-content: center;
  margin-top: 56px;
  padding-bottom: 56px;
  animation: rise 1.1s 0.3s var(--motion-ease) both;
}
.hero-phones .phone-main { width: min(72vw, 280px); }
/* Wide screens. */
/* Phones: the main line was small next to the screen; scale it with the width. */
@media (max-width: 767px) { .hero-title { font-size: clamp(40px, 12vw, 56px); } }
@media (max-width: 340px) { .hero-title { font-size: 34px; } }
@media (min-width: 900px) {
  .hero { padding: 72px 64px; }
  .hero-title { font-size: clamp(40px, 4.2vw, 60px); }
}


/* ── Phone frame (screenshot placeholder) ── */
.phone { aspect-ratio: 390 / 844; padding: 8px; border-radius: 44px; background: #0b0c0f; overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: var(--bg-subtle); }
/* The video phone is 9:16, like a Short. */
.phone-video { position: relative; aspect-ratio: 9 / 16; }
/* content-box, so the 9:16 is the screen itself, not the frame with its 8px bezel. */
.hero-phones .phone-video { box-sizing: content-box; width: calc(min(72vw, 280px) - 16px); }
.phone-video img { object-position: top; }
.phone-video .play {
  position: absolute; inset: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4);
  border: 0; border-radius: 36px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff; font: inherit; cursor: pointer;
  transition: background-color var(--motion-base) var(--motion-ease);
}
.phone-video .play:hover { background: rgba(0, 0, 0, 0.3); }
.phone-video .play:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -4px; }
.play-disc { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; transition: transform var(--motion-base) var(--motion-ease); }
.play:hover .play-disc { transform: scale(1.06); }
.play:active .play-disc { transform: scale(0.96); }
.play-disc svg { width: 34px; height: 34px; margin-left: 4px; fill: #fff; position: relative; }
.play-label { font-size: var(--type-body-medium-size); font-weight: 600; }
.phone-video iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 36px; }

/* ── Demo phones (demo.js): the app's screens at its own 390px, zoomed to the frame ── */
.phone.demo { aspect-ratio: auto; }
/* Dark page: a soft lit rim on every phone frame so it doesn't melt into the black. */
/* Light page: graphite, a step lighter than the near-black that read as a hard outline on white, and still one piece with the dark tab bar. */
:root:not([data-theme="dark"]) .phone { background: #3a3e47; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .phone { background: #1c1f26; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.step-art .phone.demo { width: min(80vw, 320px); }
.dm-screen {
  --font-display: 'Oswald', sans-serif;
  width: 390px; height: 844px; display: flex; flex-direction: column;
  overflow: hidden; background: #0b0c0f;
  /* clip-path, not just border-radius: the blurred sticky header is its own layer and slips past a radius clip. */
  border-radius: var(--r, 46px); clip-path: inset(0 round var(--r, 46px));
  font-family: var(--font-sans); color: var(--fg-primary); text-align: left;
  user-select: none; -webkit-user-select: none;
}
:where(.dm-screen) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.dm-screen p { margin: 0; }
.dm-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-i.dm-fill { fill: currentColor; stroke: none; }
.dm-i.dm-thin { stroke-width: 1.5; }
.dm-i.dm-star { fill: currentColor; }
.dm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dm-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg-canvas); border-radius: 0 0 var(--r, 46px) var(--r, 46px); clip-path: inset(0 round 0 0 var(--r, 46px) var(--r, 46px)); } /* clip-path: composited photos slip past a radius clip */
/* iPhone status bar: time, Dynamic Island, signal / wi-fi / battery, all in the screen's text color. */
.dm-status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 54px; margin: 0 -16px; padding: 6px 24px 0 20px; font-size: var(--type-body-medium-size); font-weight: 600; flex: none; }
.dm-status b, .dm-pill b { font-weight: 600; } /* <b> would go bolder than the 600 around it */
.dm-island { position: absolute; left: 50%; top: 12px; width: 120px; height: 35px; margin-left: -60px; border-radius: var(--radius-full); background: #000; }
.dm-sys { display: flex; align-items: center; gap: 6px; }
.dm-sys svg { height: 12px; width: auto; fill: currentColor; }
.dm-battery { position: relative; display: block; width: 25px; height: 12px; padding: 2px; border-radius: 4px; outline: 1px solid color-mix(in srgb, currentColor 40%, transparent); outline-offset: -1px; }
.dm-battery::after { content: ""; position: absolute; right: -3px; top: 4px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: color-mix(in srgb, currentColor 40%, transparent); }
.dm-battery i { display: block; width: 75%; height: 100%; border-radius: 2px; background: currentColor; }
.dm-scroll { flex: 1; min-height: 0; overflow: hidden; padding: 0 12px 104px; /* clears the floating tab bar */ scrollbar-width: none; }
.dm-top {
  position: sticky; top: 0; z-index: 5; /* above the cards' chip rows (z-index 2) */ margin: 0 -12px; padding: 0 16px 20px;
  /* The bottom 16px fade out, so a scrolled list slides under a soft edge rather than a cut. */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent);
  background: color-mix(in srgb, var(--bg-canvas) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
}
.dm-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .dm-scroll { overflow-y: auto; overscroll-behavior: contain; } }

.dm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 4px 0; }
.dm-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--type-h2-size); line-height: var(--type-h2-line); text-transform: uppercase; }
.dm-sub { display: block; color: var(--fg-muted); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); }
.dm-head-btns { display: flex; gap: 10px; }
.dm-plus { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--bg-surface); }
.dm-plus { background: #000; color: #fff; box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.58), inset 0 1px 4px rgba(255, 255, 255, 0.38); }
.dm-plus .dm-i { width: 22px; height: 22px; stroke-width: 2.6; }
.dm-bar-row { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 0 4px; }
.dm-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--radius-full); background: var(--bg-subtle); font-size: var(--type-h5-size); font-weight: 600; }
.dm-count { margin-left: auto; color: var(--fg-muted); font-size: var(--type-body-sm-size); }
.dm-pill-sm { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: var(--radius-full); background: var(--bg-surface); font-size: var(--type-caption-size); font-weight: 600; }
.dm-pill-sm .dm-i { width: 13px; height: 13px; }
.dm-pill-sm.is-zero { color: var(--fg-muted); background: transparent; }
.dm-chip { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px; border-radius: var(--radius-full); font-size: var(--type-caption-size); font-weight: 600; }
.dm-chip-score, .dm-chip-star { background: color-mix(in srgb, var(--accent-focus) 14%, transparent); color: var(--accent-focus-strong); } /* --accent-focus-soft vanished on the grey plate */
.dm-chip-q { background: var(--bg-tint); color: var(--fg-secondary); }
.dm-chip-q.is-now { background: color-mix(in srgb, var(--accent-sky) 16%, transparent); color: var(--accent-sky-strong); }
[data-theme="dark"] .dm-chip-score, [data-theme="dark"] .dm-chip-star { background: color-mix(in srgb, var(--accent-focus) 22%, transparent); color: var(--accent-focus-light); }
[data-theme="dark"] .dm-chip-q.is-now { color: var(--accent-sky); }
.dm-chip-star .dm-i { width: 12px; height: 12px; }
.dm-tipped { position: relative; display: inline-flex; align-items: center; }
.dm-tip {
  font-family: var(--font-sans);
  position: absolute; top: calc(100% + 6px); left: 50%; z-index: 3; width: max-content; max-width: 200px; padding: 6px 10px;
  border-radius: var(--radius-sm); background: var(--bg-inverse); color: var(--fg-inverse);
  font-size: var(--type-caption-size); line-height: var(--type-caption-line); font-weight: 500; text-transform: none; letter-spacing: 0; white-space: normal; text-align: left;
  opacity: 0; transform: translate(-50%, -2px); pointer-events: none; transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}
.dm-chip-score .dm-tip { left: 0; transform: translateY(-2px); } /* near the phone's left edge: centred, it was cut off */
.dm-push .dm-tip { left: auto; right: 0; transform: translateY(-2px); }
.dm-tipped:first-child .dm-tip { left: 0; transform: translateY(-2px); }
[data-theme="dark"] .dm-tip { background: var(--bg-subtle-strong); color: var(--fg-primary); }
@media (hover: hover) {
  .dm-tipped:hover .dm-tip { opacity: 1; transform: translate(-50%, 0); transition-delay: 250ms; }
  .dm-push:hover .dm-tip, .dm-tipped:first-child:hover .dm-tip, .dm-chip-score:hover .dm-tip { transform: none; }
}
.dm-yc-top, .dm-dream-chips { position: relative; z-index: 2; }

/* Today */
/* The app's filled win card (TaskOfTheDayCard.css, .nv-todcard-v3__card::before): a pale-blue radial lit from inside
   in light, navy with a blue rim glow in dark. */
.dm-win { padding: 16px 16px 14px; border-radius: 28px; background: radial-gradient(ellipse 50% 50% at 50% 50%, #ccddff, #eaf1ff); box-shadow: inset 0 1px 8px rgba(255, 255, 255, 1), inset 6px 0 10px -6px rgba(255, 255, 255, 0.55), inset -6px 0 10px -6px rgba(255, 255, 255, 0.55); }
[data-theme="dark"] .dm-win { background: radial-gradient(circle at 100% 100%, rgba(125, 211, 252, 0.4), transparent 42%), #0a0e18; box-shadow: inset 26px 0 34px -8px rgba(10, 14, 24, 0.9), inset 0 0 14px rgba(96, 165, 250, 0.6), inset 0 0 36px rgba(37, 99, 235, 0.38), inset 0 0 64px rgba(29, 78, 216, 0.2); } /* the app's glow, scaled down: this card is shorter, so the full one flooded it */
.dm-win.is-done { box-shadow: none; }
/* The slow sweep of light round the edge (.nv-todcard-v3::before): a conic gradient through a 1.5px ring mask. */
@property --dm-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes dm-sweep { to { --dm-angle: 360deg; } }
.dm-win::after {
  content: ""; position: absolute; inset: 0; z-index: 3; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--dm-angle), transparent 0%, transparent 40%, rgba(59, 130, 246, 0.15) 55%, rgba(96, 165, 250, 0.45) 70%, rgba(56, 189, 248, 0.7) 85%, rgba(14, 165, 233, 0.45) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude;
  animation: dm-sweep 60s linear infinite;
}
[data-theme="dark"] .dm-win::after { background: conic-gradient(from var(--dm-angle), transparent 0%, transparent 30%, rgba(37, 99, 235, 0.2) 45%, rgba(59, 130, 246, 0.55) 62%, rgba(96, 165, 250, 0.9) 78%, rgba(125, 211, 252, 0.75) 88%, rgba(56, 189, 248, 0.4) 95%, transparent 100%); }
.dm-win.is-done::after { display: none; }
@media (prefers-reduced-motion: reduce) { .dm-win::after { animation: none; } }
.dm-win-label { display: flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--accent-info) 30%, var(--fg-secondary)); font-size: var(--type-body-size); font-weight: 600; }
[data-theme="dark"] .dm-win-label { color: color-mix(in srgb, var(--accent-info) 55%, var(--fg-secondary)); }
.dm-win-label .dm-i, .dm-plate-title .dm-i { width: 18px; height: 18px; } /* star and stack, one size */
/* The Win of the day as the app draws it now: a tinted frame, the label and "…" on top, one white row with the checkbox inside. */
.dm-win:not(.is-done) { padding: 4px; }
.dm-win:not(.is-done)::after { display: none; }
:root:not([data-theme="dark"]) .dm-win:not(.is-done) { background: #ddeffd; box-shadow: 0 1px 2px rgba(62, 87, 251, 0.08), 0 4px 12px -6px rgba(62, 87, 251, 0.16), 0 12px 26px -14px rgba(62, 87, 251, 0.2); }
.dm-win:not(.is-done) .dm-win-label { padding: 12px 9px 12px 13px; color: var(--fg-primary); }
:root:not([data-theme="dark"]) .dm-win:not(.is-done) .dm-star { color: #3e57fb; }
.dm-more { display: grid; place-items: center; margin-left: auto; width: 44px; height: 34px; border-radius: var(--radius-full); background: #fff; color: var(--fg-secondary); box-shadow: inset 0 1px 6px rgba(255, 255, 255, 0.6); }
.dm-more .dm-i { width: 18px; height: 18px; stroke-width: 3; }
[data-theme="dark"] .dm-more { background: rgba(255, 255, 255, 0.08); color: #fff; }
.dm-win-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 24px; background: #fff; }
[data-theme="dark"] .dm-win-row { background: rgba(255, 255, 255, 0.09); }
.dm-win-row .dm-win-title { flex: 1; min-width: 0; margin: 0; font-size: 17px; line-height: 1.3; font-weight: 400; }
.dm-screen .dm-win-row .dm-check { width: 36px; height: 36px; border-radius: 12px; }
.dm-win.is-done { padding: 16px 16px 14px; }
.dm-win.is-done .dm-more, .dm-win.is-done .dm-win-row .dm-check, .dm-win.is-done .dm-win-row .dm-chev { display: none; }
.dm-win.is-done .dm-win-row { padding: 0; background: none; margin: 14px 0 16px; }
.dm-win.is-done .dm-win-row .dm-win-title { font-weight: 600; font-size: var(--type-h4-size); }
.dm-win-title { display: block; margin: 14px 0 16px; font-size: var(--type-h4-size); line-height: var(--type-h4-line); font-weight: 600; }
.dm-win-btns { display: flex; gap: 10px; }
/* Focus / Done as the v3 card draws them: 42px pills, 14px semibold, each with its inner glow. */
.dm-btn-focus, .dm-btn-done { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px; border-radius: 21px; font-size: var(--type-body-sm-size); font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.dm-btn-focus { padding-left: 16px; background: #2563eb; box-shadow: inset 0 1.5px 8px rgba(255, 255, 255, 0.45), inset 0 1px 3px rgba(255, 255, 255, 0.3); }
.dm-screen .dm-btn-done { background: #000; color: #fff; box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.58), inset 0 1px 4px rgba(255, 255, 255, 0.38); }
.dm-win.is-done .dm-win-title, .dm-task.is-done .dm-task-title, .dm-yc.is-done .dm-yc-title { color: var(--fg-muted); text-decoration: line-through; }
/* Done: the app's green win card (TaskOfTheDayCard.css, --completed) with its glitter; the buttons
   give way to one reassuring line of the same height, so nothing below moves. A click on it undoes. */
.dm-win { position: relative; overflow: hidden; }
.dm-win > * { position: relative; }
.dm-win.is-done { background: linear-gradient(92deg, #0c120f, #67af58); }
[data-theme="dark"] .dm-win.is-done { background: linear-gradient(95deg, #010806 0%, #041a13 25%, #0b4e38 60%, #13825c 85%, #1ca76b 100%); }
.dm-win.is-done::before { content: ""; position: absolute; inset: 0; background-image: url(img/glitter-gold-a.svg), url(img/glitter-white-a.svg); pointer-events: none; }
.dm-win.is-done .dm-win-label { color: #fff; }
.dm-win.is-done .dm-win-title { color: #fff; opacity: 0.85; }
.dm-win.is-done .dm-win-btns, .dm-win-rest { display: none; }
.dm-screen .dm-win-rest { align-items: center; gap: 6px; min-height: 44px; color: #bbedcb; font-size: var(--type-body-sm-size); font-weight: 600; }
.dm-win.is-done .dm-win-rest { display: flex; }
.dm-win-rest .dm-i { width: 15px; height: 15px; }
/* The floating trophy on a done win (Lottie3DTrophy.css): shown only once the win is done. */
.dm-trophy { display: none; position: absolute !important; top: 0; right: 0; bottom: 0; width: 170px; overflow: hidden; align-items: center; justify-content: flex-end; pointer-events: none; }
.dm-win.is-done .dm-trophy { display: flex; }
.dm-screen .dm-trophy img { width: 150px; height: 150px; max-width: none; background: none; border-radius: 0; /* undo .phone img */ object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)); transform: translate(24px, 14px) rotate(-18deg); animation: dm-trophy-float 3.6s ease-in-out infinite; }
[data-theme="dark"] .dm-screen .dm-trophy img { filter: drop-shadow(0 6px 16px rgba(16, 185, 129, 0.4)); }
@keyframes dm-trophy-float { 50% { transform: translate(21px, 8px) rotate(-14deg); } }
.dm-spark { position: absolute; filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.7)); animation: dm-spark 3.4s ease-in-out infinite; }
.dm-spark-1 { top: 12px; right: 85px; width: 8px; height: 8px; }
.dm-spark-2 { top: 25px; right: 25px; width: 10px; height: 10px; animation-duration: 3.8s; animation-delay: 0.6s; }
.dm-spark-3 { top: 68px; right: 105px; width: 7px; height: 7px; animation-duration: 3.6s; animation-delay: 1.2s; }
.dm-spark-4 { bottom: 22px; right: 65px; width: 8px; height: 8px; animation-duration: 3.2s; animation-delay: 0.4s; }
@keyframes dm-spark { 0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.3; } 50% { transform: translate(-5px, -6px) scale(1.15) rotate(45deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dm-screen .dm-trophy img, .dm-spark { animation: none; } }
.dm-plate { margin-top: 14px; padding: 12px 6px 6px; border-radius: 26px; background: var(--bg-subtle); }
.dm-plate-head { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 10px 12px; }
.dm-plate-title { display: inline-flex; align-items: center; gap: 8px; font-size: var(--type-h5-size); font-weight: 600; }
.dm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dm-task { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 20px; background: var(--bg-surface); }
.dm-screen .dm-check { position: relative; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; border: 2px solid var(--border-strong); color: transparent; }
.dm-task.is-done .dm-check { background: var(--cta); border-color: var(--cta); color: #fff; }
.dm-task-text { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.dm-task-title { font-size: var(--type-body-size); line-height: var(--type-body-line); }
.dm-chev { color: var(--fg-muted); width: 16px; height: 16px; }
/* The app's frosted Add pill (Today.css, .nv-today-group-tile__header .nv-add-other-task-btn) and its TaskRow hover. */
.dm-add { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.54); box-shadow: inset 0 1px 6px rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--fg-secondary); font-size: var(--type-body-sm-size); font-weight: 600; transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease); }
.dm-add .dm-i { width: 16px; height: 16px; }
[data-theme="dark"] .dm-add { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.6); color: #fff; }
.dm-task { transition: background-color var(--motion-fast) var(--motion-ease); }
/* The app's light theme on the phone (2026-11): white page, blue "+", the inbox button, a grey plate holding one white list with dividers. */
:root:not([data-theme="dark"]) .dm-body { background: #fff; }
:root:not([data-theme="dark"]) .dm-top { background: rgba(255, 255, 255, 0.84); }
:root:not([data-theme="dark"]) .dm-plus { background: #2563eb; box-shadow: inset 0 1.5px 8px rgba(255, 255, 255, 0.45), inset 0 1px 3px rgba(255, 255, 255, 0.3); }
.dm-inbox { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--bg-subtle); }
:root:not([data-theme="dark"]) .dm-plate { background: #e6eaf0; }
/* The grey on the white page, a step darker than --bg-subtle so plates, pills and the inbox button read against it. */
:root:not([data-theme="dark"]) .dm-yc, :root:not([data-theme="dark"]) .dm-dream { background-color: #e6eaf0; }
:root:not([data-theme="dark"]) .dm-pill, :root:not([data-theme="dark"]) .dm-inbox { background: #e6eaf0; }
:root:not([data-theme="dark"]) .dm-plate .dm-list { gap: 0; border-radius: 24px; background: #fff; }
:root:not([data-theme="dark"]) .dm-plate .dm-task { border-radius: 0; background: none; }
:root:not([data-theme="dark"]) .dm-plate .dm-task + .dm-task { box-shadow: 0 -1px 0 var(--border-default); }
.dm-plate .dm-screen .dm-check, .dm-screen .dm-plate .dm-check { width: 36px; height: 36px; border-radius: 12px; }

@media (hover: hover) {
  .dm-add:hover { background: #fff; color: var(--fg-primary); }
  [data-theme="dark"] .dm-add:hover { background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.8); }
  .dm-task:hover { background: color-mix(in srgb, var(--accent-info) 3.5%, var(--bg-subtle)); }
  [data-theme="dark"] .dm-task:hover { background: color-mix(in srgb, var(--accent-info) 8%, var(--bg-subtle-strong)); }
  .dm-task:hover .dm-chev { color: var(--fg-secondary); }
}

/* Year */
.dm-yc { margin-bottom: 14px; border-radius: 28px; background: var(--bg-subtle); overflow: hidden; }
.dm-yc-top { display: flex; align-items: center; gap: 6px; padding: 10px 12px 8px 16px; color: var(--fg-secondary); }
.dm-yc-top > .dm-tipped:first-child { margin-right: 4px; color: var(--fg-muted); } /* the type glyph: quieter than the chips */
.dm-push { margin-left: auto; }
.dm-yc-card { margin: 0 4px 4px; padding: 14px 12px 12px 16px; border-radius: 22px 22px 26px 26px; background: var(--bg-surface); }
.dm-yc-title { font-size: var(--type-h4-size); line-height: var(--type-h4-line); font-weight: 600; padding-bottom: 12px; margin-bottom: 10px !important; background: linear-gradient(var(--bg-subtle-strong), var(--bg-subtle-strong)) bottom / 100% 1px no-repeat; }
.dm-note { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--note-neutral-bg); color: var(--fg-secondary); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-line); font-weight: 400; }
.dm-note-bad { background: var(--note-amber-bg); }
.dm-yc-foot { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: var(--type-body-sm-size); color: var(--fg-secondary); }
.dm-status-done, .dm-yc.is-done .dm-status-open { display: none; }
.dm-yc.is-done .dm-status-done { display: inline; }
/* The app's outlined Done (.nv-ticket__btn-done): the card colour, a 1px line, 32px tall. */
.dm-screen .dm-yc-done { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 32px; padding: 0 14px; border: 1px solid var(--border-default); border-radius: var(--radius-full); background: var(--bg-surface); color: var(--fg-primary); font-size: 14px; font-weight: 600; }
[data-theme="dark"] .dm-screen .dm-yc-done { border-color: #646a78; }
.dm-lbl-undo, .dm-yc.is-done .dm-lbl-done { display: none; }
.dm-yc.is-done .dm-lbl-undo { display: inline; }
.dm-pct { min-width: 40px; color: var(--fg-primary); font-weight: 600; }
.dm-meter { flex: 1; max-width: 90px; height: 7px; border-radius: 4px; background: var(--accent-info-soft); overflow: hidden; }
[data-theme="dark"] .dm-meter { background: var(--bg-subtle-strong); }
.dm-meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent-info); transition: width var(--motion-base) var(--motion-ease); }
.dm-yc.is-done .dm-meter i { background: var(--feedback-success); }
.dm-num { margin-left: auto; font-family: var(--font-mono); color: var(--fg-primary); }
.dm-steps { display: flex; border: 1px solid var(--border-default); border-radius: var(--radius-full); background: var(--bg-surface); }
[data-theme="dark"] .dm-steps { border-color: #646a78; }
.dm-steps button + button { border-left: 1px solid var(--border-default); }
[data-theme="dark"] .dm-steps button + button { border-color: #646a78; }
.dm-steps button { display: grid; place-items: center; width: 36px; height: 34px; }
/* Ahead of plan: the app's band (YearTaskTile.css, .nv-ticket__ahead-row) — white caption on an azure
   ramp that rises out of the plate. Shown by demo.js only while the task is ahead of the year. */
.dm-pace { display: none; align-items: center; gap: 6px; height: 34px; padding: 0 19px 4px 23px; color: #fff; font-size: var(--type-caption-size); line-height: var(--type-caption-line); font-weight: 500; }
.dm-pace .dm-i { width: 14px; height: 14px; }
.dm-yc.has-pace .dm-pace { display: flex; }
.dm-yc.has-pace .dm-pace-done { display: none; }
.dm-even { display: none; }
.dm-yc.is-even .dm-even { display: inline; }
.dm-yc.is-even .dm-ahead { display: none; }
.dm-yc.has-pace { background-image: linear-gradient(to bottom, rgba(3, 121, 253, 0) 0%, rgba(3, 121, 253, 0.1) 37.5%, rgba(3, 121, 253, 0.27) 62.5%, rgba(3, 121, 253, 0.54) 87.5%, rgba(3, 121, 253, 0.7) 100%); background-size: 100% 174px; background-position: 0 100%; background-repeat: no-repeat; }
.dm-yc.is-done .dm-pace { display: none; }
.dm-yc.is-done .dm-pace-done { display: flex; }
.dm-yc.is-done { background-image: linear-gradient(to bottom, rgba(8, 165, 115, 0) 0%, rgba(8, 165, 115, 0.1) 37.5%, rgba(8, 165, 115, 0.27) 62.5%, rgba(8, 165, 115, 0.54) 87.5%, rgba(8, 165, 115, 0.7) 100%); background-size: 100% 174px; background-position: 0 100%; background-repeat: no-repeat; }
[data-theme="dark"] .dm-yc.is-done { background-image: linear-gradient(to bottom, rgba(52, 211, 153, 0) 0%, rgba(52, 211, 153, 0.1) 37.5%, rgba(52, 211, 153, 0.27) 62.5%, rgba(52, 211, 153, 0.54) 87.5%, rgba(52, 211, 153, 0.7) 100%); }
.dm-divider { display: flex; gap: 6px; margin: 20px 0 12px !important; padding: 0 12px; color: var(--fg-secondary); font-size: var(--type-caption-size); font-weight: 600; letter-spacing: var(--type-caps-tracking); text-transform: uppercase; }
.dm-divider span { color: var(--fg-muted); }
.dm-proud { white-space: nowrap; margin-top: 36px !important; }
.dm-proud .dm-proud-n { margin-right: auto; }
.dm-proud .dm-proud-link { color: var(--fg-primary); text-transform: none; letter-spacing: 0; font-size: var(--type-body-sm-size); }
.dm-proud .dm-proud-chev { width: 16px; height: 16px; align-self: center; color: var(--fg-primary); }

/* Life */
.dm-seg { display: inline-flex; padding: 4px; border-radius: var(--radius-full); background: var(--bg-subtle); }
.dm-seg button { position: relative; display: grid; place-items: center; width: 40px; height: 34px; border-radius: var(--radius-full); color: var(--fg-muted); transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease); }
.dm-seg .dm-tip { left: 0; transform: translateY(-2px); }
@media (hover: hover) { .dm-seg button:not(.is-on):hover { color: var(--fg-secondary); } .dm-seg button:hover .dm-tip { opacity: 1; transform: none; transition-delay: 250ms; } }
.dm-seg .is-on { background: var(--bg-surface); color: var(--fg-primary); }
.dm-dream { margin-bottom: 12px; border-radius: 28px; background: var(--bg-subtle); overflow: hidden; } /* the Year card's plate: chips on grey, the photo and title in the card inside */
.dm-dream-card { margin: 0 4px 4px; border-radius: 22px 22px 26px 26px; background: var(--bg-surface); overflow: hidden; }
.dm-dream-card .dm-dream-title { padding: 12px 16px 16px; }
.dm-screen .dm-photo { display: block; width: calc(100% - 2px); max-width: none; aspect-ratio: 3 / 1; height: auto; margin: 1px 1px 0; border-radius: 21px 21px 20px 20px; object-fit: cover; background: var(--bg-subtle); }
.dm-dream-chips { display: flex; gap: 6px; padding: 10px 12px 8px 16px; }
.dm-dream-title { display: block; font-size: var(--type-h4-size); line-height: var(--type-h4-line); font-weight: 600; }
/* Tags view: a folder per tag — a tab with the tag and its count, the top dream inside, the rest as +N. */
.dm-folder { margin-bottom: 16px; }
.dm-folder-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 6px 14px; border-radius: 18px 18px 0 0; background: var(--bg-subtle); font-size: var(--type-body-sm-size); font-weight: 600; }
.dm-folder-tab span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-full); background: var(--bg-subtle-strong); color: var(--fg-secondary); font-size: var(--type-caption-size); }
.dm-folder-body { position: relative; padding: 8px; border-radius: 0 26px 26px 26px; background: var(--bg-subtle); }
.dm-folder-body .dm-dream { margin-bottom: 0; background: var(--bg-subtle); }
.dm-stack { position: absolute; right: 22px; bottom: 20px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--bg-subtle); color: var(--fg-secondary); font-size: var(--type-caption-size); font-weight: 600; }

/* Tab bar: shown, not switchable */
/* The tab bar floats over the list: a blurred field with no tint (a tint reads as a shadow) instead of a solid strip, so the cards visibly keep going under it. */
.dm-screen { position: relative; }
.dm-tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; isolation: isolate; display: flex; align-items: center; gap: 10px; padding: 10px 16px 18px; color: rgba(255, 255, 255, 0.6); }
.dm-tabbar::before { content: ""; position: absolute; inset: -16px 0 -40px; /* past the screen edge, which clips it: at the region's own edge the blur sees too few pixels and lets the text through */  z-index: -1; background: linear-gradient(to bottom, transparent, #0b0c0f 68%); /* the strip stays dark in both themes (white labels): clear on top, solid at the bottom: the visible part ends at ~73% of this box */ -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16px); mask-image: linear-gradient(to bottom, transparent, #000 16px); }
/* Light theme keeps the original solid strip under the screen: back in the flow, no blur, no gradient. */
:root:not([data-theme="dark"]) .dm-tabbar { position: static; }
:root:not([data-theme="dark"]) .dm-tabbar::before { display: none; }
:root:not([data-theme="dark"]) .dm-scroll { padding-bottom: 24px; }
.dm-tabs { flex: 1; display: flex; padding: 4px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.12); }
.dm-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: var(--radius-full); font-size: var(--type-h5-size); font-weight: 600; text-transform: uppercase; }
.dm-tab.is-on { flex: 1.05; min-width: 0; padding: 0 2px; background: #000; color: #fff; white-space: nowrap; font-size: var(--type-caption-size); } /* RU «Сегодня», FR «Aujourd'hui» */
.dm-tab:not(.is-on) { min-width: 0; padding: 0 2px; font-size: 11px; white-space: nowrap; } /* a long translation (FR "Aujourd'hui") has to fit beside the big pill */
.dm-tab .dm-tab-i { display: none; width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2.4; }
.dm-menu { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.dm-menu .dm-i { width: 22px; height: 22px; }

/* The line under a demo phone: what the page can't do. Shown for a moment on a click that does nothing,
   desktop only, like the clicks. Its space is kept so nothing jumps. */
.demo-hint { display: none; position: absolute; left: 50%; bottom: 110px; z-index: 5; width: max-content; max-width: min(230px, 75%); margin: 0 !important; padding: 12px 18px; text-wrap: balance; border-radius: 18px; background: rgb(96 165 250 / .22); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); color: #1d4ed8; box-shadow: 0 8px 24px rgb(37 99 235 / .18); text-align: center; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: var(--type-body-sm-size); line-height: 1.4; font-weight: 500; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity var(--motion-slow) var(--motion-ease), transform var(--motion-slow) var(--motion-ease); }
:root:not([data-theme="dark"]) .demo-hint { background: #fff; color: var(--fg-primary); -webkit-backdrop-filter: none; backdrop-filter: none; } /* light: solid, black text, readable over a photo */
[data-theme="dark"] .demo-hint { background: rgb(59 130 246 / .28); color: #dbeafe; box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.demo-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .demo-hint { display: block; } }

/* ── Problem ── */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
/* A static starry pill; the statue stands in front and sticks out above and below it. */
.thinker { position: relative; display: grid; place-items: center; min-height: 440px; }
.thinker::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 56%; translate: 0 -50%; border-radius: var(--radius-full);
  background-color: #000; background-image: url(img/glitter-gold-a.svg), url(img/glitter-white-a.svg);
}
.thinker img { position: relative; height: 396px; width: auto; max-width: 100%; object-fit: contain; filter: brightness(.92) contrast(1.15); }
@media (max-width: 767px) { .thinker { min-height: 300px; } .thinker img { height: 280px; } }
/* Tasks piling up inside the black shape: small glass pills behind the statue, standing still. */
.thinker-tasks { position: absolute; left: 0; right: 0; top: 50%; height: 56%; translate: 0 -50%; border-radius: var(--radius-full); overflow: hidden; pointer-events: none; }
.thinker-tasks span { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: var(--radius-full); background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.09)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 4px 14px rgba(0, 0, 0, 0.35); color: rgba(255, 255, 255, 0.88); font-size: 14px; line-height: 1.2; white-space: nowrap; }
.thinker-tasks span::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, transparent 52%, currentColor 56%); }
.thinker-tasks span:nth-child(1) { --i: 0; left: 3%; top: 12%; }
.thinker-tasks span:nth-child(2) { --i: 1; left: 38%; top: 6%; }
.thinker-tasks span:nth-child(3) { --i: 2; left: 66%; top: 14%; }
.thinker-tasks span:nth-child(4) { --i: 3; left: 14%; top: 38%; }
.thinker-tasks span:nth-child(5) { --i: 4; left: 56%; top: 36%; }
.thinker-tasks span:nth-child(6) { --i: 5; left: 78%; top: 47%; }
.thinker-tasks span:nth-child(7) { --i: 6; left: 2%; top: 63%; }
.thinker-tasks span:nth-child(8) { --i: 7; left: 34%; top: 65%; }
.thinker-tasks span:nth-child(9) { --i: 8; left: 62%; top: 71%; }
.thinker-tasks span:nth-child(10) { --i: 9; left: 84%; top: 24%; }
.thinker-tasks span:nth-child(11) { --i: 10; left: 20%; top: 84%; }
.thinker-tasks span:nth-child(12) { --i: 11; left: 48%; top: 86%; }
@media (max-width: 767px) { .thinker-tasks span { font-size: 12.5px; padding: 5px 10px 5px 8px; } }
/* Phones: the statue drifts against the black shape as you scroll, so the two do not read as one picture. */
@supports (animation-timeline: view()) {
  @media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    .thinker img { animation: thinker-drift linear both; animation-timeline: view(); }
    @keyframes thinker-drift { from { transform: translateY(44px); } to { transform: translateY(-44px); } }
  }
}
/* Phones: the problem section's bottom space and Step 1's top space added up to ~170px under the statue. */
@media (max-width: 767px) { .section:has(.thinker) { padding-bottom: 8px; } #step1.step-section { padding-top: 48px; } }

.mini-tod { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); border-radius: var(--radius-xl); background: var(--inner); }
.mini-trace { font-size: var(--type-body-sm-size); color: var(--fg-secondary); }
.mini-done {
  align-self: flex-start; margin-top: var(--space-2);
  padding: 8px 18px; border-radius: var(--radius-full);
  color: #fff;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.58), inset 0 1px 4px rgba(255, 255, 255, 0.38);
  font-size: var(--type-body-sm-size); font-weight: 600;
}

/* Wide app screenshot: the light or the dark one, by theme. */
.link-shot { margin-top: 56px; border-radius: var(--radius-2xl); overflow: hidden; background: var(--card); }
.link-shot img { width: 100%; height: auto; }
/* Phones: the whole picture with its own frame (as on the web). */
/* Phones: the frame's radius (made for a wide picture) eats the corners of a small one; use a small radius. */
@media (max-width: 767px) { .link-shot { margin-inline: -16px; border-radius: 6px; } }
.landing .shot-dark, [data-theme="dark"] .landing .shot-light { display: none; } /* .landing img sets display:block, so these need its weight */
[data-theme="dark"] .landing .shot-dark { display: block; }

/* ── Steps: copy one side, phone the other ── */
.step { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .step { grid-template-columns: 1fr 1fr; gap: 96px; }
  .step-flip .step-text { order: 2; }
}
/* "Step N": a pill with a slow light running round its rim; below the text a faint "next step" arrow. */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.step-tag { position: relative; display: inline-block; padding: 6px 14px; border-radius: var(--radius-full); isolation: isolate; }
.step-tag::before { content: ""; position: absolute; inset: 0; z-index: -1; padding: 1.5px; border-radius: inherit; background: conic-gradient(from var(--spin), transparent 0 60%, var(--accent-info) 90%, transparent 100%), color-mix(in srgb, var(--bg-subtle-strong) 45%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
@keyframes spin { to { --spin: 360deg; } }
/* "The problem": the one tag that is not a step, so it burns amber instead of blue. */
.step-tag-warm { color: color-mix(in srgb, var(--feedback-warning) 55%, var(--fg-secondary)); background: color-mix(in srgb, var(--feedback-warning) 6%, transparent); }
.step-tag-warm::before { background: conic-gradient(from var(--spin), transparent 0 50%, color-mix(in srgb, var(--feedback-warning) 55%, transparent) 90%, transparent 100%), color-mix(in srgb, var(--feedback-warning) 12%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.step-next { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 56px; padding: 0 14px; /* the pill's side padding: same width, same centre line */ color: var(--fg-muted); font-size: var(--type-caption-size); font-weight: 600; letter-spacing: var(--type-caps-tracking); text-transform: uppercase; text-decoration: none; opacity: .4; transition: opacity var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease); }
.step-next svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
@media (max-width: 899px) { .step-next { display: none; } } /* one column: the arrow would sit above this step's own phone */
@media (hover: hover) { .step-next:hover { opacity: .9; color: var(--fg-primary); } }
@media (prefers-reduced-motion: reduce) { .step-tag::before, .step-next svg { animation: none; } }
.step-art { position: relative; display: grid; justify-items: center; }
.step-art .phone { width: min(72vw, 280px); }
.step-text .lead { margin-top: var(--space-4) !important; }
.points { list-style: none; padding: 0; display: grid; gap: var(--space-4); margin-top: var(--space-6) !important; counter-reset: pt; }
.points li {
  counter-increment: pt; position: relative; padding-left: 44px;
  font-size: var(--type-h4-size); line-height: 1.5; color: var(--fg-secondary); max-width: 30em;
}
.points li::before {
  content: counter(pt); position: absolute; left: 0; top: 2px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cta); color: #fff; font-size: var(--type-caption-size); font-weight: 600;
}
.points .mark { display: inline; padding: 1px 6px; margin: 0 -2px; border-radius: 8px; background: color-mix(in srgb, var(--cta) 12%, transparent); color: var(--fg-primary); outline: none; cursor: help; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color var(--motion-fast) var(--motion-ease); }
/* The tip hangs under the whole list item, not under the (often wrapped, often near the edge) highlighted words, so it can never fly off the screen. */
.points .mark { position: static; }
.points .mark .dm-tip { left: 44px; right: 0; width: auto; max-width: 320px; transform: none; font-size: var(--type-body-sm-size); line-height: 1.4; padding: 8px 12px; }
@media (hover: hover) { .points .mark:hover { background: color-mix(in srgb, var(--cta) 22%, transparent); } }
.points .mark:focus .dm-tip { opacity: 1; transform: none; }
/* The same marker inside a paragraph (Year): the tip hangs under the first words. */
.lead .mark { display: inline; position: relative; padding: 1px 6px; margin: 0 -2px; border-radius: 8px; background: color-mix(in srgb, var(--cta) 12%, transparent); color: var(--fg-primary); outline: none; cursor: help; transition: background-color var(--motion-fast) var(--motion-ease); }
.lead .mark .dm-tip { left: 0; transform: none; width: max-content; max-width: 280px; font-size: var(--type-body-sm-size); line-height: 1.4; padding: 8px 12px; }
@media (hover: hover) { .lead .mark:hover { background: color-mix(in srgb, var(--cta) 22%, transparent); } .lead .mark:hover .dm-tip { opacity: 1; transition-delay: 250ms; } }
.lead .mark:focus .dm-tip { opacity: 1; }
/* Several phrases in one sentence: a dotted underline, not chips, so commas and line breaks stay where they were. */
/* Every phrase that opens a tip is a dotted underline, not a blue pill (same as the problem list and the project kinds). */
.points .mark, .lead .mark, .lead-marks .mark { padding: 0; margin: 0; border-radius: 0; background: none; text-decoration: underline dotted; text-decoration-color: var(--fg-muted); text-underline-offset: 4px; }
@media (hover: hover) { .points .mark:hover, .lead .mark:hover, .lead-marks .mark:hover { background: none; text-decoration-color: var(--cta); } }
/* The three task types under Year: their own glyph, the name, a plain example. */
.kinds { list-style: none; padding: 0; margin-top: var(--space-6) !important; display: grid; grid-template-columns: 28px auto 1fr; gap: var(--space-3) 12px; align-items: center; }
.kinds li { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; font-size: var(--type-body-size); color: var(--fg-secondary); }
.kinds svg { width: 20px; height: 20px; justify-self: center; color: var(--fg-muted); }
.kinds b { color: var(--fg-primary); font-weight: 600; }
.kinds span:not(.dm-tip) { font-style: italic; }
/* A hover note on the first type: it hangs under the row, aligned with the name column. */
.kind-tip { position: relative; cursor: help; outline: none; }
.kind-tip .dm-tip { left: 40px; right: auto; max-width: 340px; transform: none; font-size: var(--type-body-sm-size); line-height: 1.4; padding: 8px 12px; }
.kind-tip:focus .dm-tip { opacity: 1; }
/* Touch screens have no hover: the labels that open a tip get the same dotted underline as the terms in the problem list. */
@media (max-width: 1100px) { .kind-tip b { text-decoration: underline dotted; text-decoration-color: var(--fg-muted); text-underline-offset: 4px; } }
@media (hover: hover) { .kind-tip:hover .dm-tip { opacity: 1; transition-delay: 250ms; } }
.example { margin-top: var(--space-5) !important; padding: var(--space-4) var(--space-5); border-radius: var(--radius-xl); background: var(--card); color: var(--fg-secondary); max-width: 30em; }
.focus-line {
  max-width: 22em; margin: 176px auto 0 !important; text-align: center; text-wrap: balance;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.25;
}
.focus-line { position: relative; isolation: isolate; }
/* The haze below sticks out 22vw past the column: clip it, or the page scrolls sideways on tablets. */
.landing main { overflow-x: clip; }
.focus-line::before { content: ""; position: absolute; inset: -140px -22vw; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in srgb, var(--accent-info) 20%, transparent), transparent 100%); } /* a faint blue haze that fades out */
.step-section { padding: 72px 0; }
@media (min-width: 768px) { .step-section { padding: 110px 0; } }

/* ── Banners: rounded, never edge to edge ── */
.banner-section { padding: 24px 0; }
.banner {
  display: grid; justify-items: center; gap: var(--space-6);
  padding: 64px 24px; border-radius: var(--radius-box); text-align: center;
  background: var(--card);
}
/* Phones: edge to edge, out of the .wrap gutter (32px), like the hero. */
@media (max-width: 767px) { .banner { margin-inline: -32px; border-radius: 0; } }
@media (min-width: 768px) { .banner { padding: 88px 64px; } }
.banner-title { max-width: 18em; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: clamp(28px, 4vw, 48px); line-height: 1.15; text-wrap: balance; }
.banner-text { max-width: 32em; margin-top: calc(-1 * var(--space-3)) !important; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.55; color: var(--fg-secondary); text-wrap: balance; }
.final-quote { max-width: 16em; font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 7vw, 84px); line-height: 1.02; text-wrap: balance; }
.final { padding-bottom: 24px; }
/* The footer lives inside the closing banner: one block. Legal links are soft tinted pills (a colour step, no borders), the
   mail address is its own line, the copyright sits last and small. */
.banner-final .site-footer { justify-self: stretch; margin-top: 56px; padding: 0; }
.banner-final .footer-inner { flex-direction: column; align-items: center; gap: 32px; text-align: center; opacity: 1; }
.banner-final .footer-links { order: 1; justify-content: center; gap: 12px; }
.banner-final .footer-links a { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--radius-full); background: color-mix(in srgb, currentColor 7%, transparent); color: var(--fg-secondary); font-weight: 500; text-decoration: none; transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease); }
.banner-final .footer-links a:hover { background: color-mix(in srgb, currentColor 13%, transparent); color: var(--fg-primary); text-decoration: none; }
.banner-final .footer-links a[href^="mailto"] { flex: 0 0 100%; justify-content: center; height: auto; margin-top: 20px; padding: 0; background: none; color: var(--fg-primary); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 4px; }
.banner-final .footer-links a[href^="mailto"]:hover { background: none; text-decoration-color: currentColor; }
.banner-final .footer-inner > span { order: 2; font-size: var(--type-caption-size); color: var(--fg-muted); }
[data-theme="dark"] .banner-final .footer-links a { color: rgba(255, 255, 255, 0.78); }
[data-theme="dark"] .banner-final .footer-links a:hover, [data-theme="dark"] .banner-final .footer-links a[href^="mailto"] { color: #fff; }
[data-theme="dark"] .banner-final .footer-inner > span { color: rgba(255, 255, 255, 0.5); }
@media (max-width: 767px) { .final { padding-bottom: 0; } }
/* Room above for the badge that sticks out over the banner's top edge. */
.banner-section-mark { padding-top: 96px; }
/* A badge straddling the banner's top edge: half out, half in. */
.banner-mark-host { --mark: clamp(88px, 11vw, 140px); --water: 0.5; /* where the picture meets the plate edge, from its top: the middle */ position: relative; padding-top: calc(var(--mark) * (1 - var(--water)) + 48px); }
/* The iceberg hangs under the text: its sky stays inside the plate, the waterline sits on the plate's bottom edge, the water hangs below it. */
.banner-section-iceberg { padding-top: 24px; }
.banner-mark-iceberg { --water: 0.33; padding-top: 64px; padding-bottom: calc(var(--mark) * var(--water) + 40px); margin-bottom: calc(var(--mark) * (1 - var(--water))); }
@media (min-width: 768px) { .banner-mark-iceberg { padding-top: 88px; } }
.banner-mark-iceberg .banner-mark { top: auto; bottom: 0; transform: translate(-50%, calc((1 - var(--water)) * 100%)); }
.banner-mark { position: absolute; top: 0; left: 50%; width: var(--mark); height: var(--mark); transform: translate(-50%, calc(var(--water) * -100%)); border-radius: 50%; z-index: 1; }
/* Light: the task-of-the-day gradient (Today.css --nv-tod-grad, #ccddff to #eaf1ff) washed ~45% toward white: the app shows it under glassy layers, bare it reads far bluer. */
:root:not([data-theme="dark"]) .hero, :root:not([data-theme="dark"]) .banner { background: radial-gradient(ellipse 50% 50% at 50% 50%, #e0eaff, #f3f7ff); }
/* Light hero: the painted sky of the app's launch screen instead of the flat blue. */
:root:not([data-theme="dark"]) .hero { background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), #dbe6f7 url(img/sky.jpg) center / cover; } /* a white veil: the sky stays a backdrop, the text reads */
:root:not([data-theme="dark"]) .hero .hero-sub { color: #1e293b; }

/* ── Ticker: transform-only, one compositor layer ── */
.ticker { padding: 28px 0; overflow-x: clip; background: var(--card); } /* clip, not hidden: the tooltips may hang below */
.ticker-track { display: flex; width: max-content; animation: ticker 300s linear infinite; }
.ticker-group { display: flex; }
.ticker-group > span { padding: 0 28px; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: var(--type-h2-size); line-height: var(--type-h2-line); white-space: nowrap; }
.ticker-group > span { display: inline-flex; align-items: center; gap: 14px; }
.ticker-group b { font-weight: inherit; }
.ti { width: 26px; height: 26px; flex: none; color: var(--fg-muted); }
.ticker-group > span::after { content: "·"; margin-left: 56px; opacity: 0.4; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Pricing ── */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; gap: var(--space-3); padding: 40px 32px; border-radius: var(--radius-box); background: var(--card); }
.plan h3 { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: var(--type-h2-size); line-height: var(--type-h2-line); }
.plan-badge { padding: 3px 10px; border-radius: var(--radius-full); background: var(--cta); color: #fff; font-family: var(--font-sans); font-size: var(--type-caption-size); font-weight: 600; }
.plan-price { font-size: var(--type-h4-size); color: var(--fg-secondary); }
.plan-price b { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: clamp(44px, 6vw, 64px); line-height: 1; color: var(--fg-primary); }
.plan-note { color: var(--fg-secondary); font-size: var(--type-body-sm-size); }
/* prices.js sets data-no-price on <html> for a country we cannot charge: the Pro card shows no price, badge or billing note. */
[data-yearly-only] .plan-pro .plan-badge,
[data-no-price] .plan-pro .plan-badge,
[data-no-price] .plan-pro .plan-price,
[data-no-price] .plan-pro .plan-note { display: none; }
.plan-list { list-style: none; padding: 0; display: grid; gap: 12px; margin: var(--space-4) 0 var(--space-6) !important; }
.plan-list li { position: relative; padding-left: 28px; line-height: 1.45; }
/* A word in a plan line that names a screen: dotted underline, a hover note on what that screen is. */
.plan-list .mark { text-decoration: underline dotted; text-decoration-color: var(--fg-muted); text-underline-offset: 3px; cursor: help; outline: none; }
.plan-list .mark .dm-tip { width: 260px; max-width: 70vw; font-size: var(--type-body-sm-size); line-height: 1.4; padding: 8px 12px; }
.plan-list .mark:focus .dm-tip { opacity: 1; transform: translate(-50%, 0); }
/* The tick is the check from the logo (img/check.svg), cut out as a mask and filled with the brand gradient. */
.plan-list li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 15px; background: linear-gradient(135deg, color-mix(in srgb, var(--cta) 55%, #fff), var(--cta)); -webkit-mask: url(img/check.svg) center / contain no-repeat; mask: url(img/check.svg) center / contain no-repeat; }
.plan .btn { margin-top: auto; white-space: normal; text-align: center; height: auto; min-height: 60px; padding-block: 12px; } /* long RU labels wrap instead of widening the page */
.landing .btn-soft { background: var(--inner); color: var(--fg-primary); }
.landing .btn-soft:hover { background: var(--bg-subtle-strong); }
:root:not([data-theme="dark"]) .plan-pro { background: radial-gradient(ellipse 70% 60% at 30% 15%, #a9c6ff, #d2e2ff 60%, #e3edff); } /* a clear step off the grey Free card; colour, not a border */
[data-theme="dark"] .plan-pro { position: relative; isolation: isolate; background-color: #000; background-image: url(img/glitter-gold-a.svg), url(img/glitter-white-a.svg),
  radial-gradient(60% 45% at 100% 0%, rgba(124, 58, 237, 0.4), rgba(124, 58, 237, 0.14) 50%, rgba(124, 58, 237, 0) 100%),
  radial-gradient(60% 45% at 0% 100%, rgba(79, 70, 229, 0.36), rgba(79, 70, 229, 0.12) 50%, rgba(79, 70, 229, 0) 100%); color: #fff; } /* the app's dark canvas pools (Shell.css): violet top right, indigo bottom left */
[data-theme="dark"] .plan-pro::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: url(img/glitter-gold-b.svg), url(img/glitter-white-b.svg); pointer-events: none; animation: twinkle 8s ease-in-out infinite; }
[data-theme="dark"] .plan-pro .plan-price, [data-theme="dark"] .plan-pro .plan-note { color: rgba(255, 255, 255, 0.7); }
[data-theme="dark"] .plan-pro .plan-price b { color: #fff; }

/* ── Carousels: native scroll-snap ── */
.carousel {
  display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(32px, calc((100vw - 1180px) / 2 + 32px));
  scroll-padding-inline: max(32px, calc((100vw - 1180px) / 2 + 32px));
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.dots[hidden] { display: none; }
/* One bar as wide as the column in every carousel: arrows at the ends, a short window of dots (site.js shows 7) in the middle. */
.dots { display: flex; align-items: center; gap: 8px; max-width: 1180px; margin: var(--space-4) auto 0; padding: 0 32px; box-sizing: border-box; }
.dots button { flex: none; width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--radius-full); background: var(--bg-subtle-strong); cursor: pointer; transition: width var(--motion-base) var(--motion-ease), background-color var(--motion-base) var(--motion-ease); }
.dots button.on { width: 24px; background: var(--fg-primary); }
.dots button.far { display: none; }
.dots button.arrow { flex: none; display: grid; place-items: center; width: 36px; height: 36px; background: var(--card); color: var(--fg-primary); }
.dots button.arrow:first-child { margin-right: auto; }
.dots button.arrow:last-child { margin-left: auto; }
.dots button.arrow:hover:not(:disabled) { background: var(--bg-subtle-strong); }
.dots button.arrow:disabled { opacity: 0.35; cursor: default; }
.dots .arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dots button:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.card { flex: none; width: min(78vw, 300px); scroll-snap-align: start; padding: var(--space-4); border-radius: var(--radius-2xl); background: var(--card); }
.card-img { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); background: var(--inner); margin-bottom: var(--space-4); } /* illustration placeholder */
.card-img { overflow: hidden; }
.card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The constellations are white stars on a transparent sky: the night plate in dark, inverted to ink on the light plate in light (hue-rotate keeps the lines blue). */
[data-theme="dark"] .card-img:has(img) { background: #0d1017; }
:root:not([data-theme="dark"]) .card-img img { filter: invert(1) hue-rotate(180deg) brightness(.75); }
.card h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 28px; line-height: 1.15; hyphens: auto; overflow-wrap: anywhere; } /* long words (самоэффективность, Selbstwirksamkeit) hyphenate by html lang; anywhere is the backstop */
.card h3, .card p { min-width: 0; }
.card p { margin-top: var(--space-2) !important; color: var(--fg-secondary); font-size: var(--type-body-sm-size); line-height: 1.5; }
.card p.card-cite { margin-top: var(--space-1) !important; color: var(--fg-muted); font-size: var(--type-caption-size); } /* authors */

/* ── FAQ ── */
.faq-wrap { display: grid; gap: 40px; }
@media (max-width: 767px) {
  /* An emoji opens each question (data-emoji, the same in every language), inline as the first character; phones only. The summary is a plain block so the text wraps under it. */
  .faq-item summary[data-emoji] { display: block; position: relative; }
  .faq-item summary[data-emoji]::before { content: attr(data-emoji) / ""; margin-right: 0.4em; }
}
/* Phones and tablets (up to 1100px): a swipeable row with arrows and dots (the .carousel script) instead of a tall list. Opening one card grows only that card; all questions are in the row, so no "Show more". */
@media (max-width: 1100px) {
  .faq-wrap .faq-list { --faq-w: min(76vw, 320px); display: flex; align-items: stretch; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -32px; padding-inline: calc((100vw - var(--faq-w)) / 2); scroll-padding-inline: calc((100vw - var(--faq-w)) / 2); } /* the current card is centred, its neighbours peek out on both sides */
  .faq-wrap .faq-list { overflow-y: hidden; transition: height var(--motion-base) var(--motion-ease); }
  .faq-wrap .faq-list::-webkit-scrollbar { display: none; }
  .faq-wrap .faq-item, .faq-wrap .faq-item[hidden] { display: block; flex: 0 0 var(--faq-w); scroll-snap-align: center; border-radius: 44px; }
  .faq-wrap .faq-item summary { padding: 28px 28px; border-radius: 44px; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 19px; line-height: 1.25; }
  .faq-wrap .faq-item p { padding: 0 28px 28px; }
  .faq-wrap .faq-item summary[data-emoji] { padding-right: 28px; cursor: default; } /* every answer is open on phones: no plus */
  .faq-wrap .faq-item summary::after { display: none; }
  .faq-wrap .faq-item::details-content { transition: none; } /* open from the start: no unfolding, so the row can measure the card at once */
  #faq.section { padding-top: 0; } /* the pricing section above already leaves its own bottom space */
  .faq-wrap .faq-more, .faq-wrap .faq-more[hidden] { display: none; }
  /* Heading left, arrows and dots right on the same row; the row of cards below spans both columns. */
  .faq-wrap { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); row-gap: 24px; align-items: center; }
  .faq-wrap > .h-section { grid-column: 1; grid-row: 1; }
  .faq-wrap .faq-list { grid-column: 1 / -1; grid-row: 2; }
  .faq-wrap .dots { grid-column: 2; grid-row: 1; margin: 0; padding: 0; gap: 6px; }
  .faq-wrap .dots button:not(.arrow) { width: 6px; height: 6px; }
  .faq-wrap .dots button.on { width: 18px; }
  .faq-wrap .dots button.arrow { width: 32px; height: 32px; }
  .faq-wrap .dots button.arrow:first-child { margin-right: 2px; } .faq-wrap .dots button.arrow:last-child { margin-left: 2px; }
  .faq-wrap .dots .arrow svg { width: 16px; height: 16px; }
}
@media (min-width: 1101px) { .faq-wrap .faq-list .faq-clone { display: none; } } /* the copies exist for the phone's endless row */
@media (min-width: 1101px) { .faq-wrap { grid-template-columns: 1fr 2fr; gap: 80px; } }
.faq-list { display: grid; gap: var(--space-3); overflow: visible; padding: 0; scroll-snap-type: none; } /* also a .carousel (phones): its dots hide themselves while the list fits */
.faq-item { border-radius: 44px; background: var(--card); interpolate-size: allow-keywords; transition: background-color var(--motion-base) var(--motion-ease), opacity var(--motion-slow) var(--motion-ease), transform var(--motion-slow) var(--motion-ease); }
@starting-style { .faq-item { opacity: 0; transform: translateY(8px); } } /* "Show more" fades the next five in */
/* The answer grows and folds instead of snapping (Chromium; elsewhere it still just opens). */
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size var(--motion-slow) var(--motion-ease), content-visibility var(--motion-slow) allow-discrete; }
.faq-item[open]::details-content { block-size: auto; } /* a full pill while closed, rounded when open */
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: 30px 32px;
  font-size: var(--type-h4-size); line-height: var(--type-h4-line); font-weight: 600;
  list-style: none; cursor: pointer; border-radius: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Big thin plus: two hairlines, no disc. */
.faq-item summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform var(--motion-base) var(--motion-ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) {
  .faq-item:hover { background: color-mix(in srgb, var(--fg-primary) 6%, var(--card)); }
  .faq-item:hover summary::after { transform: rotate(90deg); }
  .faq-item[open]:hover summary::after { transform: rotate(135deg); }
}
.faq-more { display: flex; align-items: center; gap: 10px; width: fit-content; margin: var(--space-4) auto 0; padding: 14px 28px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-full); background: transparent; color: var(--fg-primary); font: inherit; font-weight: 600; cursor: pointer; transition: background-color var(--motion-base) var(--motion-ease), border-color var(--motion-base) var(--motion-ease), color var(--motion-base) var(--motion-ease); }
.faq-more::after { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--motion-base) var(--motion-ease); } /* a chevron centred on the text line */
.faq-more[hidden] { display: none; }
@media (hover: hover) { .faq-more:hover { background: var(--cta); border-color: var(--cta); color: #fff; } }
.faq-item p { padding: 0 32px 26px; color: var(--fg-secondary); line-height: 1.6; max-width: 40em; }
/* Dark: --fg-secondary on the raised card read too dim for a paragraph of answer text. */
[data-theme="dark"] .faq-item p { color: color-mix(in srgb, var(--fg-primary) 82%, transparent); }

/* ── Footer ── */
.site-footer { padding: 32px 0 40px; font-size: var(--type-body-sm-size); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); opacity: 0.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ── Scroll effects: reveal (JS opt-in, so no-JS and reduced motion see everything) + phones settle in ── */
.can-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--motion-ease), transform 0.7s var(--motion-ease); }
.can-reveal .reveal.is-in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .step-art .phone { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes settle { from { transform: scale(0.88) rotate(-2deg); } to { transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title, .hero-sub, .hero .btn-row, .hero-phones, .ticker-track, .btn-primary::after, .mini-done::after, .hero::after, .banner::after, .plan-pro::after { animation: none; }
  .faq-item, .faq-item::details-content, .faq-item summary::after, .lang-pop { transition: none; }
}
/* The outcome of the steps above: set apart from the list, not one more point. */
.step-result { margin-top: var(--space-6); padding-left: var(--space-4); border-left: 3px solid var(--cta); color: var(--fg-primary); }
/* Phones: a hairline bar is easy to miss. A soft blue panel with a rounded, saturated bar inside it. */
@media (max-width: 767px) {
  .step-result { position: relative; padding: 20px 20px 20px 36px; border-left: 0; border-radius: 24px; background: color-mix(in srgb, var(--cta) 9%, var(--card)); font-weight: 500; }
  .step-result::before { content: ""; position: absolute; left: 14px; top: 18px; bottom: 18px; width: 6px; border-radius: var(--radius-full); background: linear-gradient(to bottom, var(--cta), color-mix(in srgb, var(--cta) 45%, #8fb6ff)); }
}

/* Phones: nothing may be wider than the screen, or the whole page zooms out / shifts. */
@media (max-width: 767px) {
  .kind-tip .dm-tip { max-width: calc(100vw - 100px); }
  .plan-list .mark .dm-tip { left: 28px; right: 0; width: auto; max-width: none; transform: none; }
  .plan-list .mark:focus .dm-tip { transform: none; }
  .dots { padding: 0 20px; }
  .step-section { overflow-x: clip; } /* the blue haze behind the focus line reaches past the screen edge */
}
