/* home.css — the public welcome page (static/home.html). Standalone: this page does not
   load the app's Tailwind runtime or app.css. Concept: a reading room at night.
   Mycelia = the network (organic growth, moss). Rays = clarity (straight light, the glow
   accent — used only for interactive highlights). */

/* Tokens (colour, type, motion) come from tokens.css — this page is the design reference
   for the whole app, so it must not keep a private copy. Only page-local layout values here. */
:root {
  --gut: clamp(16px, 5vw, 56px);
  /* vertical rhythm for this page: section padding, the gap under a section head, and the
     gap between blocks inside a section. Desktop was 140–190px; mobile shrinks harder. */
  --sec: clamp(52px, 7.5vw, 96px);
  --sec-lg: clamp(64px, 9vw, 120px);
  --head-gap: clamp(24px, 3.5vw, 40px);
  --block-gap: clamp(32px, 4.5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { background: var(--mr-bg); color: var(--mr-bone); font: 400 17px/1.6 var(--mr-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--mr-glow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--mr-surface); color: var(--mr-bone); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 820px; }
section { position: relative; }
h1, h2 { font-family: var(--mr-serif); font-weight: var(--mr-heading-weight); letter-spacing: var(--mr-heading-tracking); text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.005em; }
.kicker { color: var(--mr-moss-lit); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.body-lg { margin-top: 14px; font-size: clamp(17px, 1.5vw, 19px); color: var(--mr-bone-2); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: var(--head-gap); }
/* Desktop: the heading on the left, the intro on the right, so a section head is one band. */
@media (min-width: 1000px) {
  .section-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(32px, 5vw, 72px); align-items: end; }
  .section-head > .kicker, .section-head > h2 { grid-column: 1; }
  .section-head > .body-lg { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: end; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background .4s var(--mr-ease), border-color .4s var(--mr-ease), color .4s var(--mr-ease); }
.btn-primary { background: var(--mr-moss); color: var(--mr-on-moss); }
.btn-primary:hover { background: var(--mr-moss-2); }
.btn-ghost { border-color: var(--mr-line-2); color: var(--mr-bone); background: transparent; }
.btn-ghost:hover { border-color: rgba(var(--mr-glow-rgb), .55); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gut); transition: background .5s var(--mr-ease), border-color .5s var(--mr-ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--mr-bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--mr-line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mr-serif); font-weight: var(--mr-heading-weight); font-size: 18px; white-space: nowrap; }
.brand img { border-radius: 7px; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { min-width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: var(--mr-bone-2); font-size: 16px; }
.icon-btn:hover { color: var(--mr-bone); background: var(--mr-glow-soft); }
.lang-btn { font-size: 13px; font-weight: 700; padding: 0 8px; }
.nav-login { padding: 0 12px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--mr-bone-2); line-height: 40px; }
.nav-login:hover { color: var(--mr-bone); }

/* ── 1 hero ────────────────────────────────────────────── */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 104px 0 64px; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--mr-bg) 0%, color-mix(in srgb, var(--mr-bg) 70%, transparent) 38%, transparent 70%), linear-gradient(0deg, var(--mr-bg) 0%, transparent 22%); }
.hero-copy { position: relative; }
.hero h1 { font-size: clamp(42px, 7vw, 92px); line-height: 1.02; max-width: 15ch; }
.hero h1 .h1-2 { color: var(--mr-bone-2); }
.hero .lede { margin-top: 22px; max-width: 54ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--mr-bone-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ctas.center { justify-content: center; }
.fine { margin-top: 18px; font-size: 14px; color: var(--mr-bone-3); }

/* ── 2 problem ─────────────────────────────────────────── */
.problem { padding: var(--sec-lg) 0; overflow: hidden; border-top: 1px solid var(--mr-line); }
.problem-copy { position: relative; text-align: center; }
.problem-copy .body-lg { margin-left: auto; margin-right: auto; }
.problem-copy::before { content: ""; position: absolute; inset: -40px -20px; z-index: -1; background: radial-gradient(closest-side, var(--mr-bg) 55%, transparent); }
.problem-copy { z-index: 1; }
.drift { position: absolute; inset: 0; pointer-events: none; }
.drift span::before { content: attr(data-n); }
.drift span { position: absolute; left: var(--x); top: var(--y); font: 400 var(--fs, 14px)/1 var(--mr-mono); color: var(--mr-bone-3); opacity: var(--o, .5); white-space: nowrap; transform: rotate(var(--r)); animation: drift var(--t, 24s) ease-in-out var(--dl, 0s) infinite alternate; }
.drift.paused span { animation-play-state: paused; }
@keyframes drift { to { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * -1)); } }

/* ── 3 engine: the Organize story ──────────────────────── */
.engine { padding: var(--sec) 0; border-top: 1px solid var(--mr-line); }
.org-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: var(--head-gap); }
.org-head h2 { max-width: 18ch; }
.org-ctl { display: flex; gap: 10px; }
.org-ctl [hidden] { display: none; }
.org { position: relative; min-height: 300px; }
.org-folders, .org-files { position: absolute; inset: 0; }
.org-folder { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; height: 30px; font: 600 15px/1 var(--mr-sans); color: var(--mr-bone); opacity: 0; transition: opacity .6s var(--mr-ease); }
.org-folder .tw { width: 18px; height: 14px; border-radius: 2px 2px 3px 3px; border: 1.5px solid var(--mr-moss-lit); position: relative; flex: none; }
.org-folder .tw::before { content: ""; position: absolute; left: -1.5px; top: -5px; width: 8px; height: 4px; border: 1.5px solid var(--mr-moss-lit); border-bottom: 0; border-radius: 2px 2px 0 0; }
.org.is-sorted .org-folder { opacity: 1; }
.org-threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.org-threads path { fill: none; stroke: rgba(var(--mr-thread-rgb), .85); stroke-width: 1.5; stroke-linecap: round; }
.org-card { position: absolute; left: 0; top: 0; border-radius: 10px; background: var(--mr-surface); border: 1px solid var(--mr-line-2); box-shadow: var(--mr-shadow-1); overflow: hidden; transition: transform .9s var(--mr-ease), box-shadow .6s var(--mr-ease), border-color .6s var(--mr-ease); will-change: transform; }
.org-card.no-anim { transition: none; }
.org-card[hidden] { display: none; }
.oc-raw, .oc-clear { position: absolute; inset: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.oc-raw { justify-content: space-between; }
.oc-raw .fname { font: 400 13.5px/1.3 var(--mr-mono); color: var(--mr-bone); overflow-wrap: anywhere; }
.oc-raw .file-glyph { width: 22px; height: 28px; border-radius: 2px 8px 2px 2px; border: 1.5px solid var(--mr-line-2); position: relative; }
.oc-clear { background: var(--mr-surface); clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--mr-ease); }
.org-card.read .oc-clear { clip-path: inset(0 0 0 0); }
.org-card.read { border-color: rgba(var(--mr-glow-rgb), .45); }
.org.is-sorted .org-card.read { border-color: var(--mr-line-2); }
.oc-title { font: var(--mr-heading-weight) 15px/1.25 var(--mr-serif); color: var(--mr-bone); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-path { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; font: 400 11px/1.3 var(--mr-mono); color: var(--mr-bone-2); }
.oc-path span { padding: 2px 6px; border-radius: 5px; border: 1px solid var(--mr-line-2); white-space: nowrap; }
.oc-path span:first-child { display: none; }
.oc-path span:first-child + i { display: none; }
.oc-path span.leaf { color: var(--mr-glow); border-color: rgba(var(--mr-glow-rgb), .5); }
.oc-path i { font-style: normal; color: var(--mr-bone-3); }
.org-ray { position: absolute; top: -16px; bottom: -16px; left: 0; width: 2px; background: var(--mr-glow); box-shadow: 0 0 22px 6px rgba(var(--mr-glow-rgb), .4), -60px 0 90px -10px rgba(var(--mr-glow-rgb), .2); opacity: 0; transform: translateX(-20px); pointer-events: none; z-index: 30; }
.org.is-scanning .org-ray { opacity: 1; transform: translateX(calc(var(--org-w, 1000px) + 20px)); transition: transform 1.45s linear, opacity .2s; }

/* ── 4 toolkit ─────────────────────────────────────────── */
.toolkit { padding: var(--sec) 0; border-top: 1px solid var(--mr-line); }
.tools { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tool { --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg; grid-column: span 2; position: relative; padding: 22px 22px 26px; border-radius: 14px; background: var(--mr-surface); border: 1px solid var(--mr-line); overflow: hidden; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--mr-ease), border-color .6s var(--mr-ease); }
.tool:nth-child(4), .tool:nth-child(5) { grid-column: span 3; }
.tool::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--mr-ease); background: radial-gradient(360px circle at var(--mx) var(--my), rgba(var(--mr-glow-rgb), .09), transparent 60%); }
.tool:hover::before { opacity: 1; }
.tool:hover { border-color: var(--mr-line-2); }
.tool h3 { margin-top: 16px; }
.tool p { margin-top: 8px; font-size: 15.5px; color: var(--mr-bone-2); }
.demo { position: relative; height: 112px; border-radius: 10px; background: var(--mr-bg-2); border: 1px solid var(--mr-line); overflow: hidden; }
.demo * { animation-play-state: paused; }
.tool.live .demo * { animation-play-state: running; }
/* classification: path chips arrive one by one behind a light sweep */
.demo-classify { display: flex; align-items: center; gap: 6px; padding: 0 14px; flex-wrap: wrap; align-content: center; }
.chip { font: 400 12px/1 var(--mr-mono); padding: 7px 9px; border-radius: 6px; border: 1px solid var(--mr-line-2); color: var(--mr-bone-2); opacity: 0; animation: chip 6s var(--mr-ease) infinite; }
.chip.c2 { animation-delay: .5s; } .chip.c3 { animation-delay: 1s; }
.chip.final { color: var(--mr-glow); border-color: rgba(var(--mr-glow-rgb), .5); }
@keyframes chip { 0%, 8% { opacity: 0; transform: translateY(6px); } 18%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.demo .sweep { position: absolute; top: 0; bottom: 0; left: -10%; width: 2px; background: var(--mr-glow); box-shadow: 0 0 14px 3px rgba(var(--mr-glow-rgb), .35); animation: sweep 6s linear infinite; }
@keyframes sweep { 0% { left: -4%; opacity: 0; } 4% { opacity: 1; } 30% { left: 104%; opacity: 1; } 31%, 100% { left: 104%; opacity: 0; } }
/* reader: a highlight drawn across a line */
.demo-reader { display: flex; flex-direction: column; justify-content: center; gap: 11px; padding: 0 18px; }
.ln { position: relative; height: 7px; border-radius: 4px; background: var(--mr-line-2); }
.ln.w90 { width: 90%; } .ln.w75 { width: 75%; } .ln.w85 { width: 85%; } .ln.w55 { width: 55%; }
.ln.hl i { position: absolute; left: -3px; top: -5px; bottom: -5px; width: 0; border-radius: 3px; background: rgba(var(--mr-thread-rgb), .45); animation: hl 5s var(--mr-ease) infinite; }
@keyframes hl { 0%, 10% { width: 0; } 45%, 85% { width: calc(100% + 6px); } 100% { width: calc(100% + 6px); opacity: 0; } }
/* quiz: a card flips, review intervals fill in */
.demo-quiz { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; perspective: 600px; }
.qcard { position: relative; flex: 1; height: 68px; transform-style: preserve-3d; animation: flip 7s var(--mr-ease) infinite; }
.qf, .qb { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px 10px; text-align: center; font-size: 13px; line-height: 1.3; border-radius: 8px; border: 1px solid var(--mr-line-2); background: var(--mr-surface); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.qb { transform: rotateY(180deg); color: var(--mr-glow); border-color: rgba(var(--mr-glow-rgb), .45); }
@keyframes flip { 0%, 35% { transform: none; } 45%, 85% { transform: rotateY(180deg); } 95%, 100% { transform: none; } }
.reps { display: grid; gap: 4px; font: 400 11px/1 var(--mr-mono); color: var(--mr-bone-3); }
.reps i { font-style: normal; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--mr-line); animation: rep 7s var(--mr-ease) infinite; }
.reps i:nth-child(2) { animation-delay: .4s; } .reps i:nth-child(3) { animation-delay: .8s; } .reps i:nth-child(4) { animation-delay: 1.2s; }
@keyframes rep { 0%, 45% { color: var(--mr-bone-3); border-color: var(--mr-line); } 55%, 90% { color: var(--mr-moss-lit); border-color: rgba(var(--mr-thread-rgb), .6); } }
/* sharing: a thread links two people, access switches view ↔ edit */
.demo-share svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-share circle { fill: var(--mr-surface); stroke: var(--mr-line-2); stroke-width: 1.5; }
.demo-share .link { fill: none; stroke: rgba(var(--mr-thread-rgb), .9); stroke-width: 1.5; stroke-dasharray: 170; stroke-dashoffset: 170; animation: link 6s var(--mr-ease) infinite; }
@keyframes link { 0%, 8% { stroke-dashoffset: 170; } 40%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.access { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; border: 1px solid var(--mr-line-2); border-radius: 6px; overflow: hidden; font-size: 12px; }
.access b { font-weight: 600; padding: 4px 9px; color: var(--mr-bone-3); animation: acc 6s steps(1) infinite; }
.access .a-edit { animation-delay: 3s; }
@keyframes acc { 0%, 49% { color: var(--mr-glow); background: var(--mr-glow-soft); } 50%, 100% { color: var(--mr-bone-3); background: transparent; } }
/* privacy: a lock inside isolated session rings */
.demo-private { display: grid; place-items: center; }
.demo-private .lock { width: 30px; height: 30px; fill: none; stroke: var(--mr-bone-2); stroke-width: 1.6; stroke-linecap: round; position: relative; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(var(--mr-thread-rgb), .55); transform: translate(-50%, -50%); animation: ring 5s ease-out infinite; }
.ring.r1 { width: 56px; height: 56px; } .ring.r2 { width: 84px; height: 84px; animation-delay: .6s; } .ring.r3 { width: 112px; height: 112px; animation-delay: 1.2s; }
@keyframes ring { 0%, 100% { opacity: .25; } 40% { opacity: .9; } }

/* ── 5 watch ───────────────────────────────────────────── */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.videos.single { grid-template-columns: minmax(0, 1fr); max-width: 1120px; }
.player { position: relative; border-radius: 12px; overflow: hidden; background: var(--mr-media); border: 1px solid var(--mr-line-2); box-shadow: var(--mr-shadow-2); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; background: var(--mr-media); }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, transparent 40%, rgba(var(--mr-media-rgb), .35)); }
.play span { width: 74px; height: 74px; border-radius: 50%; background: rgba(var(--mr-on-media-rgb), .9); display: grid; place-items: center; transition: transform .5s var(--mr-ease), background .5s var(--mr-ease); }
.play span::after { content: ""; margin-left: 5px; border-left: 18px solid var(--mr-moss); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.play:hover span { transform: scale(1.05); background: var(--mr-on-media); }
.play:focus-visible { outline-offset: -4px; }
.fs { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 8px; background: rgba(var(--mr-media-rgb), .55); display: grid; place-items: center; }
.fs svg { width: 18px; height: 18px; fill: none; stroke: var(--mr-on-media); stroke-width: 2; }
.video-item h3 { margin-top: 16px; font-family: var(--mr-serif); font-weight: var(--mr-heading-weight); font-size: 24px; }
.video-item p { margin-top: 6px; color: var(--mr-bone-2); max-width: 52ch; }

/* ── 6 why ─────────────────────────────────────────────── */
.why { padding: var(--sec) 0; border-top: 1px solid var(--mr-line); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.half { border-radius: 14px; border: 1px solid var(--mr-line); background: var(--mr-surface); overflow: hidden; }
.net-window { height: 220px; }
.half-myc { background: transparent; }
.half-myc .half-copy { background: var(--mr-surface); border-top: 1px solid var(--mr-line); }
.half-copy { padding: 22px 24px 28px; }
.half-copy h3 { font-family: var(--mr-serif); font-weight: var(--mr-heading-weight); font-size: 26px; }
.half-myc h3 { color: var(--mr-moss-lit); }
.half-copy p { margin-top: 10px; color: var(--mr-bone-2); }
.xray { position: relative; height: 220px; display: grid; align-content: center; padding: 0 28px; background: var(--mr-bg-2); overflow: hidden; }
.xray-noise, .xray-clear { grid-area: 1 / 1; display: grid; gap: 14px; font: 400 15px/1 var(--mr-mono); }
.xray-noise { color: var(--mr-bone-3); filter: blur(1.6px); opacity: .7; }
.xray-clear { color: var(--mr-glow); -webkit-mask: linear-gradient(90deg, transparent 0 40%, #000 47% 53%, transparent 60% 100%) 100% 0 / 300% 100% no-repeat; mask: linear-gradient(90deg, transparent 0 40%, #000 47% 53%, transparent 60% 100%) 100% 0 / 300% 100% no-repeat; animation: xclear 7s linear infinite; }
.xray-beam { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--mr-glow); box-shadow: 0 0 22px 6px rgba(var(--mr-glow-rgb), .35); animation: xbeam 7s linear infinite; }
@keyframes xclear { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes xbeam { from { left: 0; } to { left: 100%; } }
.xray * { animation-play-state: paused; }
.half-ray.live .xray * { animation-play-state: running; }

.map-teaser { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: var(--block-gap); }
.map-copy h3 { font-family: var(--mr-serif); font-weight: var(--mr-heading-weight); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.map-hint { margin-top: 14px; color: var(--mr-bone-3); font-size: 15px; }
.map-readout { margin-top: 18px; min-height: 3.2em; font: 400 14px/1.6 var(--mr-mono); color: var(--mr-glow); }
.map { width: 100%; height: auto; aspect-ratio: 620 / 470; overflow: visible; }
.map .edge { fill: none; stroke: rgba(var(--mr-thread-rgb), .32); stroke-width: 1; transition: stroke .5s var(--mr-ease), stroke-width .5s var(--mr-ease); }
.map .edge.on { stroke: rgba(var(--mr-glow-rgb), .85); stroke-width: 1.6; }
.map .node { cursor: pointer; outline: none; }
.map .node circle { fill: var(--mr-surface); stroke: rgba(var(--mr-thread-rgb), .9); stroke-width: 1.5; transition: fill .5s var(--mr-ease), stroke .5s var(--mr-ease); }
.map .hub circle { fill: var(--mr-moss); stroke: none; }
.map .node text { font: 500 13px var(--mr-sans); fill: var(--mr-bone-2); pointer-events: none; transition: fill .5s var(--mr-ease); }
.map .doc text { font: 400 11.5px var(--mr-mono); opacity: 0; transition: opacity .5s var(--mr-ease); }
.map .node.on circle { stroke: var(--mr-glow); fill: rgba(var(--mr-glow-rgb), .25); }
.map .hub.on circle { fill: var(--mr-glow); }
.map .node.on text { fill: var(--mr-bone); opacity: 1; }
.map .node:focus-visible circle { stroke: var(--mr-glow); stroke-width: 3; }
.map.dim .node:not(.on) { opacity: .45; }

/* ── 7 how it works: the two videos ─────────────────────── */
.flow { padding: var(--sec) 0; border-top: 1px solid var(--mr-line); }

/* ── 8 closing ─────────────────────────────────────────── */
.closing { padding: var(--sec-lg) 0; border-top: 1px solid var(--mr-line); text-align: center; background: radial-gradient(60% 70% at 50% 100%, rgba(var(--mr-thread-rgb), .14), transparent 70%); }
.closing h2 { font-size: clamp(34px, 5vw, 60px); }
.closing .body-lg { margin-left: auto; margin-right: auto; }
.foot { border-top: 1px solid var(--mr-line); padding: 26px 0 34px; font-size: 14px; color: var(--mr-bone-3); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-family: var(--mr-serif); font-weight: var(--mr-heading-weight); font-size: 16px; color: var(--mr-bone-2); }
.foot-brand img { border-radius: 5px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links a { text-decoration: none; color: var(--mr-bone-2); }
.foot-links a:hover { color: var(--mr-bone); text-decoration: underline; text-underline-offset: 3px; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .tools { grid-template-columns: 1fr 1fr; }
  .tool, .tool:nth-child(4), .tool:nth-child(5) { grid-column: span 1; }
  .tool:nth-child(5) { grid-column: span 2; }
  .videos, .split, .map-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-login { display: none; }
  .brand span { font-size: 17px; }
  .tools { grid-template-columns: 1fr; }
  .tool:nth-child(5) { grid-column: span 1; }
  .hero { padding-top: 104px; }
  .hero-shade { background: linear-gradient(0deg, var(--mr-bg) 8%, color-mix(in srgb, var(--mr-bg) 55%, transparent) 60%, color-mix(in srgb, var(--mr-bg) 30%, transparent)); }
  .demo { height: 92px; }
  .net-window, .xray { height: 180px; }
  .tool { padding: 18px 18px 20px; }
  .tools { gap: 12px; }
}
@media (max-width: 400px) { .brand span { display: none; } }

/* Reduced motion: every scene shows its finished, still state. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chip { opacity: 1; }
  .ln.hl i { width: calc(100% + 6px); }
  .demo-share .link { stroke-dashoffset: 0; }
  .access .a-view { color: var(--mr-glow); background: var(--mr-glow-soft); }
  .xray-clear { -webkit-mask: none; mask: none; }
  .xray-noise, .xray-beam, .demo .sweep { display: none; }
  .tool { transform: none !important; }
}
