/*
 * Daily Thread website, new edition. Colours and app elements come from /kit/kit.css (same values as the app).
 * Calm page, three big moments (weave, globe, night to morning). Everything readable without motion.
 * No middle dots as separators (house rule).
 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--dt-paper); color: var(--dt-ink); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img, svg, canvas { display: block; }
a { color: inherit; }
.wrap { --gutter: 24px; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dt-card); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--dt-label); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
.sub { color: var(--dt-muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 56ch; margin: 18px 0 0; }
.eyebrow { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dt-muted); margin: 0 0 14px; font-weight: 500; }
.note { color: var(--dt-muted); font-size: 15px; margin: 28px 0 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.link { color: var(--dt-label); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--dt-label-soft); color: var(--dt-on-label); font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, .1); color: #F5F5F5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }

/* ---------- header ---------- */
/* header.top, not .top: the kit's Heute card has a .top row too, which otherwise got the header's paper background */
header.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--dt-paper) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
header.top.scrolled { border-bottom-color: var(--dt-line); }
header.top.on-night { background: rgba(0, 0, 0, .35); color: #F5F5F5; --dt-muted: #B8B1BF; }
.bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; font-size: 17px; letter-spacing: -.2px; }
/* the small turn on hover, the same as in the web app (wish of the user, 2026-11-18) */
.brand img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.brand:hover img, .brand:focus-visible img { transform: rotate(60deg); }
@media (prefers-reduced-motion: reduce) { .brand img { transition: none; } }
.links { display: flex; gap: 22px; margin-left: 12px; }
.links a, .quiet { text-decoration: none; color: var(--dt-muted); font-size: 15px; transition: color .2s; }
.links a:hover, .quiet:hover { color: inherit; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
[data-theme="dark"] .theme .sun, :root:not([data-theme="dark"]) .theme .moon { display: none; }
.cta-pill { height: 38px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--dt-label-soft);
  color: var(--dt-on-label); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.menu nav { position: absolute; right: -60px; top: 46px; min-width: 210px; padding: 8px; border-radius: 18px; background: var(--dt-card);
  color: var(--dt-ink); border: 1px solid var(--dt-line); box-shadow: 0 20px 50px rgba(0, 0, 0, .18); display: grid; }
.menu nav a { padding: 11px 14px; border-radius: 12px; text-decoration: none; }
.menu nav a:hover { background: var(--dt-fill); }
@media (max-width: 900px) { .links, .hide-s { display: none; } .menu { display: block; } .bar { gap: 10px; } .tools { gap: 6px; } }

/* ---------- B: the thread through the page ---------- */
main { position: relative; }
.thread { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.thread path { fill: none; stroke-linecap: round; }
.thread-bg { stroke: var(--dt-line); stroke-width: 1; opacity: .5; }
.thread-line { stroke: url(#thread-grad); stroke-width: 2; }
.thread { transition: opacity .35s ease; }
.thread.held { opacity: .15; }
/* while a scroll effect holds the page: the thread becomes a gauge of how far the effect has come */
.pin-gauge { position: fixed; top: calc(64px + 7vh); bottom: 9vh; width: 2px; border-radius: 2px; z-index: 5; pointer-events: none;
  background: color-mix(in srgb, var(--dt-muted) 28%, transparent); opacity: 0; transition: opacity .35s ease; }
.pin-gauge.on { opacity: 1; }
.pin-gauge i { position: absolute; inset: 0; border-radius: inherit; transform-origin: top; transform: scaleY(0);
  background: linear-gradient(#7B52E0, #E04FD8 35%, #FF5E9C 70%, #FFB066); }
.pin-gauge b { position: absolute; left: 50%; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--dt-paper); border: 2px solid #E04FD8; box-sizing: border-box; }
.pin-gauge.thin { width: 1.5px; }
.pin-gauge.thin b { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.chapter, .hero { position: relative; z-index: 1; }

/* ---------- 1 hero: night ---------- */
.hero { background: linear-gradient(#000 0%, #07050d 55%, #120a22 100%); color: #F5F5F5; margin-top: -64px; padding: 140px 0 120px; text-align: center; overflow: hidden;
  --dt-muted: #B8B1BF; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, var(--dt-paper)); }
.hero .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 1; display: grid; justify-items: center; }
/* the woven logo that draws itself thread by thread, the same as the app's loading animation (wish of the user, 2026-11-18) */
/* bigger (wish of the user, 2026-11-18): about 360 px on a computer, 200 px on a phone (was 230 / 170) */
.hero-logo { width: clamp(200px, 28vw, 360px); aspect-ratio: 1; margin-bottom: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-in > :not(.hero-logo) { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-in > :nth-child(2) { animation-delay: .45s; } .hero-in > :nth-child(3) { animation-delay: .55s; }
  .hero-in > :nth-child(4) { animation-delay: .65s; } .hero-in > :nth-child(5) { animation-delay: .75s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
/* always exactly two lines (wish of the user, 2026-11-18): each half on its own line, never broken further;
   on phones the size follows the width so the longer second line still fits */
.hero h1 { font-size: clamp(28px, calc((100vw - 40px) / 8.8), 84px); line-height: 1.04; letter-spacing: -.035em; max-width: none; }
.hero h1 span { display: block; white-space: nowrap; }
.hero .lead { color: #CFC9D6; font-size: clamp(17px, 1.7vw, 20px); max-width: 52ch; margin: 24px 0 0; }
.hero .eyebrow { color: #FFB066; }
/* light mode: a pale sky, the stars drawn dark so they stay clearly visible (wish of the user, 2026-11-17) */
:root:not([data-theme="dark"]) .hero { background: linear-gradient(#E6E0F2 0%, #EFEBF5 55%, var(--dt-paper) 100%); color: var(--dt-ink); --dt-muted: #5F5965; }
:root:not([data-theme="dark"]) .hero .lead { color: var(--dt-muted); }
:root:not([data-theme="dark"]) .hero .eyebrow { color: #B26A1F; }
:root:not([data-theme="dark"]) .hero .btn.ghost { background: transparent; color: var(--dt-ink); box-shadow: inset 0 0 0 1px var(--dt-ink); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

/* ---------- chapters ---------- */
.chapter { padding: clamp(90px, 12vw, 160px) 0 0; }
.head { max-width: 760px; }
.track { position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* 2 evening: phone stage */
.evening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 30px; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; }
.dt-phone { width: min(330px, 80vw, calc((100vh - 120px) * .46)); }
.stage { padding-top: 64px; }
.dt-phone .screen { position: absolute; left: 0; top: 0; width: 390px; height: 845px; transform-origin: 0 0; }
.steps { list-style: none; margin: 0; padding: 30vh 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; max-width: 420px; }
.step.on { opacity: 1; }
.step .no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; margin-bottom: 18px;
  background: color-mix(in srgb, var(--dt-label) 18%, transparent); color: var(--dt-label); }
.step h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
.step p { color: var(--dt-muted); margin: 14px 0 0; font-size: 18px; }
/* Ratgeber on the homepage: three quiet link cards */
.guide-row { margin: 30px 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guide-row a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 20px; background: var(--dt-card);
  border: 1px solid var(--dt-line); color: var(--dt-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.guide-row a:hover { border-color: color-mix(in srgb, var(--dt-label) 50%, var(--dt-line)); transform: translateY(-2px); }
.guide-row span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dt-label); font-weight: 600; }
.guide-row strong { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.2px; }
.guide-row em { font-style: normal; color: var(--dt-muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 800px) { .guide-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .guide-row a { transition: none; } .guide-row a:hover { transform: none; } }
/* Auf einen Blick: features first as one large card, then AI, privacy, launch, price (order wished by the user, 2026-11-18) */
.facts { margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.facts-lead { margin-top: 30px; grid-template-columns: 1fr; }
.facts > div { padding: 18px 20px; border-radius: 20px; background: var(--dt-card); border: 1px solid var(--dt-line); }
.facts dt { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dt-label); font-weight: 600; }
.facts dd { margin: 6px 0 0; color: var(--dt-ink); font-size: 15.5px; line-height: 1.5; }
.facts-lead > div { padding: 24px 26px; }
.facts-lead dd p { margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; letter-spacing: -.2px; font-weight: 500; }
.feat { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feat li { padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--dt-ink) 7%, transparent); font-size: 14.5px; }
@media (max-width: 1000px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts-lead { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
/* what an entry can hold: each helper with a short line on what actually happens (wish of the user, 2026-11-18) */
.helpers { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.helpers li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; border-radius: 20px;
  background: var(--dt-card); border: 1px solid var(--dt-line); }
.helpers svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: color-mix(in srgb, var(--dt-label) 14%, transparent);
  color: var(--dt-label); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }
.helpers b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.helpers span { display: block; color: var(--dt-muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
@media (max-width: 1000px) { .helpers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .helpers { grid-template-columns: 1fr; } }

/* the screens inside the phone (built by neu.js at the app's own size, 1 dp = 1 px) */
.screen { background: var(--dt-paper); color: var(--dt-ink); opacity: 0; transition: opacity .45s; overflow: hidden; }
.screen.on { opacity: 1; }
.sb { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0; font-size: 15px; font-weight: 600; }
.sb i { display: flex; gap: 6px; } .sb i b { width: 17px; height: 11px; border-radius: 3px; background: currentColor; opacity: .85; }
.sb i b:first-child { width: 15px; border-radius: 2px 2px 4px 4px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.fl-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 4px 8px; text-align: center; }
.fl-top svg { width: 20px; height: 20px; margin: 0 auto; }
.fl-top b { font-size: 15px; display: block; } .fl-top small { font-size: 12px; color: var(--dt-muted); }
.fl-bar { display: flex; gap: 4px; padding: 6px 20px; }
.fl-bar span { flex: 1; height: 2px; border-radius: 1px; background: var(--dt-fill); } .fl-bar span.f { background: var(--dt-label); }
.fl-body { padding: 20px 24px 0; height: 640px; display: flex; flex-direction: column; }
.fl-q { font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -.5px; width: 92%; }
.fl-mood { flex: 1; display: grid; place-items: center; }
.fl-mood .dt-glow span { font-size: 57px; font-weight: 400; letter-spacing: -.25px; }
.fl-slider { height: 20px; position: relative; display: flex; align-items: center; }
.fl-slider .tr { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--dt-fill); }
.fl-slider .fi { position: absolute; left: 0; height: 4px; border-radius: 2px; background: var(--dt-label); width: 77.8%; transition: width .6s; }
.fl-slider .th { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--dt-ink); left: calc(77.8% - 10px); transition: left .6s; }
.fl-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--dt-muted); margin: 6px 0 18px; }
.fl-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.fl-breath { flex: 1; display: grid; justify-items: center; align-content: center; gap: 4px; }
.fl-breath .ring { width: 280px; height: 280px; display: grid; place-items: center; position: relative; }
.fl-breath .ring .dt-glow { position: absolute; width: 280px; height: 280px; transform: scale(.75); transition: transform 5s ease-in-out; }
.fl-breath .ring.in .dt-glow { transform: scale(1); } .fl-breath .ring.out .dt-glow { transform: scale(.55); }
.fl-breath .play { width: 64px; height: 64px; border-radius: 50%; background: var(--dt-label); color: var(--dt-on-label); display: grid; place-items: center; z-index: 1; }
.fl-breath .play svg { width: 26px; height: 26px; fill: currentColor; }
.fl-breath b { font-size: 22px; font-weight: 500; } .fl-breath small { font-size: 14px; color: var(--dt-muted); }
.fl-ask { color: var(--dt-muted); font-size: 14px; margin-bottom: 10px; }
.fl-text { font-size: 18px; line-height: 28px; white-space: pre-wrap; }
.fl-text::after { content: ""; display: inline-block; width: 2px; height: 22px; background: var(--dt-label); vertical-align: -4px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fl-ctl { position: absolute; left: 0; right: 0; bottom: 34px; display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; padding: 0 20px; }
.fl-ctl .bk { justify-self: start; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--dt-fill); display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.fl-ctl .pl { width: 46px; height: 46px; border-radius: 50%; background: var(--dt-fill); display: grid; place-items: center; justify-self: center; }
.fl-ctl .nx { justify-self: end; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--dt-label); color: var(--dt-on-label); display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.fl-ctl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fl-home { padding: 34px 20px 0; display: grid; gap: 16px; }
.fl-home .hi { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.6px; }
.fl-home .da { font-size: 14px; color: var(--dt-muted); margin-top: 2px; }
.fl-home canvas { width: calc(100% + 40px); margin: 0 -20px; height: 150px; }
.fl-sec { display: flex; justify-content: space-between; } .fl-sec b { font-size: 17px; } .fl-sec span { color: var(--dt-label); font-size: 15px; }
.fl-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; border-top: 1px solid var(--dt-line); display: grid; grid-template-columns: repeat(3, 1fr);
  text-align: center; font-size: 13px; color: var(--dt-muted); padding-top: 10px; background: var(--dt-paper); }
.fl-nav svg { width: 26px; height: 26px; margin: 0 auto 4px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fl-nav .on { color: var(--dt-ink); font-weight: 600; }

/* 3 weave */
.weave-ch { padding-top: clamp(60px, 8vw, 110px); }
.weave-head { position: relative; z-index: 1; }
.sticky .globe-text { padding-top: calc(64px + 5vh); }
.weave-stage { position: relative; height: clamp(300px, 52vh, 520px); margin-top: 10px; }
.big-weave { position: absolute; left: 0; top: 0; width: 100%; height: 72%; }
.weave-read { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 2px; }
.weave-read .num { font-size: clamp(64px, 9vw, 110px); line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; transition: color .3s; }
.weave-read .word { color: var(--dt-muted); font-size: 18px; }
.try { max-width: 520px; margin: 40px auto 0; padding: 24px 26px; border-radius: 20px; background: var(--dt-card); border: 1px solid var(--dt-line); }
.try label { font-weight: 600; }
.try input { display: block; width: 100%; margin-top: 12px; accent-color: var(--dt-label); height: 28px; }
.try-scale { display: flex; justify-content: space-between; color: var(--dt-muted); font-size: 14px; }

/* 4 traces */
[data-track="traces"] { height: 300vh; }   /* by track, so the English page (other ids) gets it too */
.traces { height: 100%; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.phases li { opacity: .3; transition: opacity .4s; padding-left: 18px; border-left: 2px solid var(--dt-line); }
.phases li.on { opacity: 1; border-left-color: var(--dt-label); }
.phases b { display: block; font-size: 22px; letter-spacing: -.3px; } .phases span { color: var(--dt-muted); }
.trace-card { padding: 22px 22px 18px; max-width: 460px; width: 100%; justify-self: center; }
.tc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.tc-title { font-size: 17px; } .tc-sub { color: var(--dt-muted); font-size: 14px; }
.tc-views { position: relative; aspect-ratio: 1 / 1.02; }
.tc-view { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
.tc-view.on { opacity: 1; }
.tc-month .d.mood { transform: scale(.3); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .25s; }
.tc-month .d.mood.in { transform: none; opacity: 1; }
.tc-year text { font-size: 9px; fill: var(--dt-muted); } .tc-year text.now { fill: var(--dt-label); font-weight: 700; }
.tc-year circle { transition: opacity .3s; } .tc-year .empty { fill: var(--dt-fill); } .tc-year .later { fill: var(--dt-fill); opacity: .5; }
.tc-year .ring { fill: none; stroke: var(--dt-label); stroke-width: 1.2; }
.tc-curve { display: grid; align-content: center; gap: 6px; }
.tc-big { font-size: 34px; font-weight: 600; letter-spacing: -.5px; }
.tc-trend { width: 100%; height: auto; overflow: visible; }
.tc-trend .hair { stroke: var(--dt-line); } .tc-trend .avg { stroke: var(--dt-label); stroke-dasharray: 3 4; opacity: .7; }
.tc-trend .line { fill: none; stroke: var(--dt-ink); stroke-width: 1.6; opacity: .75; }
.tc-trend text { font-size: 11px; fill: var(--dt-muted); }

/* 5 globe */
.globe-ch .track { height: 300vh; }
.globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-text { position: relative; z-index: 2; pointer-events: none; }
/* keeps the text readable when the globe comes close */
.globe-ch .sticky::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--dt-paper) 0, color-mix(in srgb, var(--dt-paper) 80%, transparent) 30%, transparent 52%); }
@media (max-width: 900px) { .globe-ch .sticky::before { background: linear-gradient(var(--dt-paper) 0, color-mix(in srgb, var(--dt-paper) 85%, transparent) 36%, transparent 52%); } }
.globe-text > * { max-width: 470px; }
.globe-text .note { max-width: 380px; }

/* 6 streak */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feats { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.feats li { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid color-mix(in srgb, #FFB066 60%, transparent); }
.feats span { color: var(--dt-muted); }
.streak-demo { max-width: 420px; width: 100%; justify-self: center; display: grid; gap: 18px; }
.streak-demo .dt-streak { transition: background .7s, box-shadow .7s; }
.streak-demo .dt-streak.pop { animation: pop .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pop { 40% { transform: scale(1.12); } }
/* home screen widgets, as in widget_streak.xml / widget_write.xml */
.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 168px)); gap: 14px; }
.widget { aspect-ratio: 1; border-radius: 20px; background: var(--dt-card); border: 1px solid var(--dt-line); display: flex; flex-direction: column; min-width: 0; }
.w-streak { padding: 14px 18px; justify-content: center; }
.w-write { padding: 16px; }
.w-top { display: flex; align-items: center; gap: 4px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dt-muted); }
.w-top span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-top em { font-style: normal; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--dt-ink); }
.w-sun { width: 24px; height: 24px; fill: none; stroke: var(--dt-muted); stroke-width: 1.8; stroke-linecap: round; transition: stroke .5s; }
.done .w-sun { stroke: var(--dt-label); }
.w-write .w-sun { width: 15px; height: 15px; }
.w-num { font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -.03em; margin-top: 2px; }
.w-label { font-size: 14px; font-weight: 500; }
.widget small { color: var(--dt-muted); font-size: 12px; } .widget small:first-of-type { margin-top: 8px; }
.w-title { flex: 1; font-size: 17px; font-weight: 500; line-height: 1.3; margin-top: 6px; }
.w-btn { height: 42px; border-radius: 999px; background: var(--dt-label); color: var(--dt-on-label); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; }
.w-write.done .w-btn { background: var(--dt-fill); color: var(--dt-ink); }
.w-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 7 week */
.review { padding: 22px 24px; }
.rv-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.rv-top div { display: grid; } .rv-top span { color: var(--dt-muted); font-size: 14px; }
.rv-dot { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#7B52E0, #E04FD8, #FF5E9C, #FFB066, #7B52E0); opacity: .85; }
.rv-p h4 { margin: 16px 0 4px; font-size: 15px; }
.rv-p p { margin: 0; color: var(--dt-muted); font-size: 15.5px; }
.js .rv-p { opacity: 0; transform: translateY(10px); transition: opacity .7s, transform .7s; }
.js .rv-p.in { opacity: 1; transform: none; }
/* topic cards exactly like the app's carousel (InsightCarousel.kt TopicCard): 180 high, own colour per topic */
.topics-head { margin: 56px 0 0; } .topics-head h3 { font-size: 17px; letter-spacing: -.2px; margin: 0; } .topics-head .note { margin: 2px 0 0; }
.topics { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.topics li { --a: #E04FD8; --tint: color-mix(in srgb, var(--a) 75%, #000); position: relative; overflow: hidden; height: 180px; padding: 18px;
  border-radius: 20px; background: var(--dt-card); border: 1px solid var(--dt-line); display: flex; flex-direction: column; }
[data-theme="dark"] .topics li { --tint: var(--a); }
.topics li[data-topic="strengths"] { --a: #7B6CF0; } .topics li[data-topic="drive"] { --a: #E04FD8; } .topics li[data-topic="light"] { --a: #FFA94D; }
.topics li[data-topic="proud"] { --a: #FF5E9C; } .topics li[data-topic="own"] { --a: #9A93A3; }
.tp-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  background: color-mix(in srgb, var(--a) 16%, transparent); color: var(--tint); }
[data-theme="dark"] .tp-ic { background: color-mix(in srgb, var(--a) 20%, transparent); }
.tp-ic svg { width: 19px; height: 19px; }
.topics svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topics b { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.2px; position: relative;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-sub { color: var(--dt-muted); font-size: 14px; line-height: 20px; margin-top: 2px; position: relative;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-bg { position: absolute; right: -18px; bottom: -26px; width: 100px; height: 100px; color: color-mix(in srgb, var(--a) 12%, transparent); }
[data-theme="dark"] .tp-bg { color: color-mix(in srgb, var(--a) 14%, transparent); }
@media (max-width: 1000px) {
  /* swipe sideways like the app's carousel, the next card peeks in */
  .topics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(-1 * var(--gutter, 20px)); margin-right: calc(-1 * var(--gutter, 20px));
    padding: 0 var(--gutter, 20px); scroll-padding: 0 var(--gutter, 20px); }
  .topics::-webkit-scrollbar { display: none; }
  .topics li { flex: 0 0 min(78vw, 290px); scroll-snap-align: start; }
}

/* 8 dawn */
.dawn-ch { padding-top: clamp(90px, 12vw, 160px); }
.dawn-ch .track { height: 260vh; }
.dawn { --sky1: #000; --sky2: #0b0716; --fg: #F5F5F5; --sun: 0; color: var(--fg); background: linear-gradient(var(--sky1), var(--sky2)); }
.sky { position: absolute; inset: 0; }
.sky .stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: calc(1 - var(--sun)); }
.sunrise { position: absolute; left: 50%; bottom: 0; width: 120vmax; height: 120vmax; transform: translate(-50%, calc(62% - var(--sun) * 30%)); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, .95) 0 6%, rgba(255, 176, 102, .55) 12%, rgba(255, 94, 156, .22) 28%, transparent 55%); opacity: calc(.2 + var(--sun) * .8); }
/* at the end of the sunrise the sky's lower part melts into the page, so the next section follows without an edge */
.dawn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; pointer-events: none;
  background: linear-gradient(transparent, var(--dt-paper) 92%); opacity: var(--end, 0); }
.dawn-in { position: relative; z-index: 1; height: 100%; display: grid; align-content: center; justify-items: center; text-align: center; }
.dawn-in .eyebrow { color: inherit; opacity: .7; }
.words { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; max-width: 22ch; margin: 0; }
.words span { opacity: .16; transition: opacity .35s; } .words span.lit { opacity: 1; }
.checks { list-style: none; padding: 0; margin: 60px auto 0; max-width: 760px; display: grid; gap: 14px; }
.checks li { padding: 16px 20px 16px 52px; border-radius: 18px; background: var(--dt-card); border: 1px solid var(--dt-line); color: var(--dt-muted); position: relative; }
.checks li b { color: var(--dt-ink); }
.checks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, #FFB066 30%, transparent); }
.checks li::after { content: ""; position: absolute; left: 24px; top: 24px; width: 8px; height: 5px; border: solid #B26A1F; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
[data-theme="dark"] .checks li::after { border-color: #FFC994; }

/* 9 devices */
/* no pinned stage: the entry travels with normal scrolling (wish of the user, 2026-11-18) */
[data-track="devices"] { height: auto; }
[data-track="devices"] .sticky { position: relative; height: auto; overflow: visible; padding: 48px 0 0; }
.devices { height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; position: relative; }
.devices .dt-phone { width: 250px; }
.browser { border-radius: 16px; background: var(--dt-card); border: 1px solid var(--dt-line); overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .14); }
.br-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--dt-line); }
.br-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--dt-fill); }
.br-bar span { margin-left: 14px; flex: 1; max-width: 340px; height: 26px; border-radius: 8px; background: var(--dt-fill); font-size: 13px; color: var(--dt-muted); display: flex; align-items: center; padding: 0 12px; }
.br-app { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 380px; background: var(--dt-paper); }
.br-list { border-right: 1px solid var(--dt-line); padding: 18px 0; }
.br-list h4 { margin: 0 20px 8px; font-size: 20px; }
.br-list .dt-row { padding: 10px 16px; } .br-list .dt-row .t { font-size: 14.5px; } .br-list .dt-row .s { font-size: 12.5px; }
.br-list .dt-row.slot { opacity: 0; } .br-list .dt-row.slot.landed { opacity: 1; }
.br-entry { padding: 26px 30px; }
.br-entry .hd { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.br-entry h5 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.br-entry h6 { margin: 16px 0 4px; font-size: 13px; color: var(--dt-muted); font-weight: 500; }
.br-entry p { margin: 0; font-size: 15px; }
.br-entry { transition: opacity .5s; } .br-entry.wait { opacity: 0; }
.flyer { position: absolute; z-index: 5; background: var(--dt-card); border: 1px solid var(--dt-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
  pointer-events: none; transform-origin: 0 0; }
.flyer .dt-row { padding: 10px 14px; }

/* 10 signup */
.signup { max-width: 640px; margin: 0 auto; text-align: center; display: grid; justify-items: center; }
.signup-logo { margin-bottom: 26px; }
.signup .sub { margin-left: auto; margin-right: auto; }
.form { display: flex; gap: 10px; margin-top: 30px; width: 100%; max-width: 520px; }
.input { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 1px solid var(--dt-line); background: var(--dt-card); color: var(--dt-ink); padding: 0 20px; font: inherit; }
.input:focus { outline: 2px solid var(--dt-label); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; text-align: left; font-size: 14px; color: var(--dt-muted); margin-top: 16px; max-width: 520px; }
.consent input { flex: none; margin-top: 3px; accent-color: var(--dt-label); }
.status { min-height: 24px; margin: 14px 0 0; } .status.ok { color: var(--dt-label); } .status.err { color: #C0392B; }

.foot { margin-top: 120px; border-top: 1px solid var(--dt-line); padding: 28px 0 40px; color: var(--dt-muted); font-size: 14px; position: relative; z-index: 1; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; } .foot a { text-decoration: none; } .foot a:hover { color: var(--dt-ink); }

/* ---------- phones and small windows ---------- */
@media (max-width: 900px) {
  .evening { grid-template-columns: 1fr; gap: 0; }
  .stage { top: 64px; height: auto; z-index: 2; padding: 10px 0 14px; background: linear-gradient(var(--dt-paper) 85%, transparent); }
  .stage .dt-phone { width: 46vw; max-width: 210px; }
  .steps { padding: 4vh 0 10vh; }
  .step { min-height: 46vh; justify-content: flex-start; }
  .traces { grid-template-columns: 1fr; gap: 18px; align-content: center; }
  .phases { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .phases li { padding-left: 10px; } .phases b { font-size: 16px; } .phases span { display: none; }
  .phases li.on span { display: none; }
  .trace-card { max-width: 380px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .devices { grid-template-columns: 1fr; gap: 20px; align-content: center; justify-items: center; }
  .devices .dt-phone { width: 150px; }
  .browser { width: 100%; }
  .br-app { grid-template-columns: 1fr; min-height: 0; }
  .br-list { border-right: 0; border-bottom: 1px solid var(--dt-line); padding: 12px 0 6px; } .br-list h4 { font-size: 16px; }
  .br-list > div:nth-of-type(n+3) { display: none; }
  .devices { padding-top: 64px; }
  .devices .dt-phone { width: 140px; --bz: 5px; box-shadow: 0 0 0 5px #1d1b21, 0 0 0 6px #3a3640, 0 16px 34px rgba(0, 0, 0, .28); }
  .br-entry { padding: 16px 18px; } .br-entry h6, .br-entry h6 + p { display: none; } .br-entry h6:first-of-type, .br-entry h6:first-of-type + p { display: block; }
  .thread-line { stroke-width: 1.5; opacity: .7; }
  .weave-stage { height: clamp(280px, 46vh, 420px); }
}
@media (max-width: 560px) {
  .wrap { --gutter: 16px; }
  /* stacked: the field keeps its full height (flex: 1 squeezed it to a thin line in a column) */
  .form { flex-direction: column; gap: 10px; } .form .input { flex: none; width: 100%; height: 52px; } .form .btn { width: 100%; height: 52px; }
  .consent { align-items: flex-start; }
  .cta-pill { padding: 0 14px; font-size: 14px; }
  .brand { font-size: 0; gap: 0; } .brand img { width: 30px; }
}

/* ---------- without motion: everything simply finished ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { height: auto !important; } .sticky { position: relative; height: auto; min-height: 0; padding: 40px 0; }
  .weave-ch .sticky { height: 80vh; } .globe-ch .sticky { height: 90vh; } .dawn-ch .sticky { height: 80vh; }
  .step { opacity: 1; min-height: 0; padding: 30px 0; }
  .js .rv-p { opacity: 1; transform: none; }
}
