/* SPDX-License-Identifier: LicenseRef-Relocat-Proprietary */
/* Copyright (C) 2025-2026 Ruslan Zykun. All rights reserved. */
/* relocat.org/why — the "for readers" promo page. Warm, editorial, one reading column.
 * Loaded only by web/public/why.html. Every rule is scoped under `.why` (the page
 * wrapper) so nothing leaks into the shared header/footer; the `html` rules
 * (smooth scroll, anchor offset under the sticky header) are the only unscoped ones.
 * No scroll-snap: the design's snapping was removed at the operator's request (2026-10-10).
 * Relies on tokens.css (colours, fonts, .btn, .logo, focus ring) and shell.css
 * (page header and footer chrome, Google Play badge). Warm paper tint is derived from --brand
 * via color-mix. */
.why{--r-sm:8px;--r:14px;--r-lg:22px;--g:22px;
--paper:color-mix(in oklab,var(--brand) 7%,var(--bg-page));
--paper-2:color-mix(in oklab,var(--brand) 13%,var(--bg-page));
--ink-brand:#7A5A10;
--brand-light:rgba(242,184,32,.15);--brand-border:rgba(242,184,32,.35)}
[data-theme="dark"] .why{--ink-brand:#F2B820}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .why{--ink-brand:#F2B820}}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* overflow-x:clip, not hidden: hidden on a div makes .why a scroll container, which steals the
   sticky containing block from the viewport. clip only clips. */
.why{font-size:18px;line-height:1.7;overflow-x:clip;background:var(--bg-page)}
/* Highlighter — the one warm brand gesture, used sparingly on key phrases */
.why .hl{background:linear-gradient(transparent 58%,rgba(242,184,32,.38) 58%,rgba(242,184,32,.38) 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .08em}
/* :where(.why) scopes the link rule to the page at zero specificity, so it stays (0,0,1) / (0,1,1) as in
   the design and .btn, .why .next and .why .q h2 a still win over it. */
:where(.why) a{color:var(--accent-text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
:where(.why) a:hover{color:var(--accent-hover)}
.why .wrap{max-width:1080px;margin:0 auto;padding:0 var(--g)}
.why .read{max-width:640px}
.why .btn,.why .btn-icon{border-radius:var(--r-sm)}
.why .btn{text-decoration:none;min-height:50px;font-size:16px;padding:12px 20px}
.why .btn-ghost,.why .btn-ghost:hover{color:var(--text-primary)}
.why h1,.why h2,.why h3{text-wrap:balance;font-weight:650}
.why p,.why li{text-wrap:pretty}
.why p{margin:0 0 1em}
.why strong{font-weight:600;color:var(--text-primary)}

/* Screens */
.why .dk{display:none!important}
[data-theme="dark"] .why .dk{display:block!important}[data-theme="dark"] .why .lt{display:none!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .why .dk{display:block!important}:root:not([data-theme="light"]) .why .lt{display:none!important}}
.why .dev{margin:0;background:color-mix(in oklab,var(--text-primary) 7%,var(--bg));border:1px solid var(--border-strong);border-radius:30px;padding:7px;box-shadow:0 18px 40px -18px rgba(60,40,0,.25)}
.why .dev img{display:block;width:100%;height:auto;aspect-ratio:9/19.5;border-radius:24px;object-fit:cover;outline:1px solid var(--border-strong);outline-offset:-1px}
/* Dark: lighter bezel + soft brand glow so screens separate from the page */
[data-theme="dark"] .why .dev{background:#262626;border-color:rgba(255,255,255,.16);box-shadow:0 0 0 1px rgba(242,184,32,.22),0 28px 70px -24px rgba(242,184,32,.35),0 0 40px -10px rgba(242,184,32,.12)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .why .dev{background:#262626;border-color:rgba(255,255,255,.16);box-shadow:0 0 0 1px rgba(242,184,32,.22),0 28px 70px -24px rgba(242,184,32,.35),0 0 40px -10px rgba(242,184,32,.12)}}
.why .cap{font-size:14px;line-height:1.5;color:var(--text-secondary);margin:12px 4px 0;text-align:center}

/* Hero */
.why .hero{padding-top:56px;padding-bottom:64px}
.why .hello{display:inline-flex;align-items:center;gap:10px;font-size:15px;color:var(--text-secondary);margin-bottom:22px}
.why .hello::before{content:'';width:10px;height:10px;border-radius:999px;background:var(--brand);box-shadow:0 0 0 5px var(--brand-light)}
.why h1{font-size:clamp(36px,9vw,60px);line-height:1.08;letter-spacing:-.03em;margin:0 0 24px;max-width:17ch}
.why h1 .hl{color:inherit}
.why .lede{font-size:clamp(19px,4.8vw,22px);line-height:1.6;color:var(--text-secondary);max-width:36ch}
.why .lede strong{color:var(--text-primary);font-weight:500}
.why .cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.why .fine{margin:16px 0 0;font-size:15px;color:var(--text-secondary)}
.why .hero-vis{margin-top:52px;display:grid;align-items:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:460px}
.why .hero-vis .dev:last-child{position:relative;z-index:1;margin-top:clamp(40px,14vw,72px);transform:translateX(calc(-16px - 12%))}

/* "You're not the only one" — warm band */
.why .band{background:var(--bg);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:64px 0}
.why .band h2{font-size:clamp(26px,6.4vw,36px);line-height:1.2;letter-spacing:-.02em;margin:0 0 20px}
.why .band p{color:var(--text-secondary)}
.why .facts{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:0}
.why .facts li{display:flex;flex-direction:column;gap:6px;padding:22px 0;border-top:1px solid var(--border-strong)}
.why .facts li:last-child{border-bottom:1px solid var(--border-strong)}
.why .facts b{font-size:clamp(34px,9vw,46px);line-height:1;font-weight:700;letter-spacing:-.035em;color:var(--text-primary);font-variant-numeric:tabular-nums;align-self:flex-start}
.why .facts span{font-size:16.5px;line-height:1.5;color:var(--text-primary);max-width:34ch}
.why .facts cite{font-style:normal;font-size:13px;color:var(--text-secondary)}

/* Chapters — a question the reader has, then our answer */
.why .intro{padding:88px 0 72px;border-bottom:1px solid var(--border-strong);text-align:center}
.why .intro .read{margin:0 auto}
.why .intro .next{margin-top:36px}
.why .eyebrow{font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-secondary);margin:0 0 12px}
.why .intro h2{font-size:clamp(30px,7.6vw,48px);line-height:1.15;letter-spacing:-.025em;margin:0 auto;max-width:20ch}
.why .intro p{color:var(--text-secondary);font-size:19px}
.why .ch{padding:56px 0;border-bottom:1px solid var(--border-strong);scroll-margin-top:var(--topbar-h)}
.why .ch:last-of-type{border-bottom:0}
.why .ch-grid{display:grid;gap:36px}
.why .q{margin:0 0 20px}
.why .q .who{display:block;font-size:14px;color:var(--text-secondary);margin:0 0 10px}
.why .q h2{margin:0;font-size:clamp(24px,6vw,32px);line-height:1.25;letter-spacing:-.02em;font-weight:600}
.why .q h2 a{color:inherit;text-decoration:none}
.why .q h2 a::before{content:'“';color:var(--brand);font-weight:700;margin-right:.04em}
.why .q h2 a::after{content:'”';color:var(--brand);font-weight:700;margin-left:.02em}
.why .q h2 a:hover{text-decoration:underline;text-decoration-color:var(--brand);text-decoration-thickness:2px}
.why .ch .body{color:var(--text-secondary)}
.why .ch .body>p:first-child{color:var(--text-primary);font-size:20px;line-height:1.6}
.why .helps{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:26px 32px}
.why .helps li{position:relative;padding:18px 0 0;border-top:1px solid var(--border-strong);font-size:16.5px;line-height:1.6;color:var(--text-secondary)}
.why .helps li::before{content:'';position:absolute;top:-2px;left:0;width:32px;height:3px;background:var(--brand)}
.why .helps strong{display:block;color:var(--text-primary);font-size:17.5px;margin-bottom:4px}
.why .side{max-width:260px;margin:0 auto;width:72%}
.why .side.pair{max-width:400px;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}

.why .ch-foot{display:flex;justify-content:center}
.why .next{display:inline-flex;align-items:center;gap:12px;margin-top:44px;min-height:44px;color:var(--text-secondary);text-decoration:none;font-size:15px}
.why .next .arr{width:44px;height:44px;border-radius:999px;border:1px solid var(--border-strong);background:var(--bg);color:var(--text-primary);display:flex;align-items:center;justify-content:center}
.why .next:hover{color:var(--text-primary)}
.why .next:hover .arr{border-color:var(--brand);background:var(--brand-light)}
.why .ch.alt{background:var(--bg);border-top:1px solid var(--border)}
@media (prefers-reduced-motion:no-preference){.why .next .arr{transition:background .15s ease,border-color .15s ease}.why .next:hover .arr svg{animation:nudge .9s ease-in-out infinite}@keyframes nudge{50%{transform:translateY(3px)}}}

/* Being straight with you */
.why .straight{padding:72px 0}
.why .straight h2{font-size:clamp(28px,7vw,42px);line-height:1.15;letter-spacing:-.025em;margin:0 0 16px}
.why .straight>.wrap>.read>p{color:var(--text-secondary);font-size:19px}
.why .ledger{display:grid;margin-top:36px;border:1px solid var(--border-strong);border-radius:var(--r-lg);overflow:hidden;background:var(--bg)}
.why .col{padding:30px 26px 26px;display:flex;flex-direction:column}
.why .col .tag{white-space:nowrap;align-self:flex-start;display:inline-flex;align-items:center;gap:8px;font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;padding:5px 10px;border-radius:999px;border:1px solid var(--border-strong);color:var(--text-secondary);margin-bottom:18px}
.why .col .tag svg{width:13px;height:13px}
.why .col h3{margin:0 0 20px;font-size:clamp(22px,5vw,27px);line-height:1.2;letter-spacing:-.02em;font-weight:650}
.why .col ul{margin:0;padding:0;list-style:none;display:grid;gap:0}
.why .col li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:baseline;padding:13px 0;border-top:1px solid var(--border);font-size:16.5px;line-height:1.5;color:var(--text-primary)}
.why .col li::before{content:'';width:10px;height:10px;border-radius:999px;border:1.5px solid var(--text-secondary);transform:translateY(-1px)}
.why .col.never{background:#1A1A1A;color:#F5F5F3}
[data-theme="dark"] .why .col.never{background:#000;box-shadow:inset 1px 0 0 rgba(242,184,32,.25)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .why .col.never{background:#000;box-shadow:inset 1px 0 0 rgba(242,184,32,.25)}}
.why .col.never .tag{border-color:rgba(242,184,32,.5);color:var(--brand)}
.why .col.never h3{color:#F5F5F3}
.why .col.never li{color:#F5F5F3;border-top-color:rgba(255,255,255,.12)}
.why .col.never li::before{border:0;background:var(--brand);border-radius:3px;width:10px;height:12px}
.why .except{grid-column:1/-1;display:flex;flex-direction:column;gap:12px;padding:22px 26px 24px;border-top:1px solid var(--border-strong);background:var(--brand-light)}
.why .except .tag{flex-shrink:0;white-space:nowrap;align-self:flex-start;display:inline-flex;align-items:center;gap:8px;font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;padding:5px 10px;border-radius:999px;background:var(--bg);border:1px solid var(--brand-border);color:var(--text-primary)}
.why .except .tag svg{width:13px;height:13px;color:var(--ink-brand)}
.why .except p{margin:0;font-size:17px;line-height:1.55;color:var(--text-primary);max-width:60ch}

/* Cities */
.why .cities-sec{padding:72px 0;background:var(--bg);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.why .cities-sec h2{font-size:clamp(28px,7vw,42px);line-height:1.15;letter-spacing:-.025em;margin:0 0 16px}
.why .cities-sec .read>p{color:var(--text-secondary)}
.why .tbl-x{margin-top:28px;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--border-strong);border-radius:var(--r)}
.why .cities{width:100%;min-width:520px;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:16px}
.why .cities th,.why .cities td{text-align:left;padding:14px 16px;border-bottom:1px solid var(--border);white-space:nowrap}
.why .cities tbody tr:last-child>*{border-bottom:0}
.why .cities thead th{font-size:13px;font-weight:600;color:var(--text-secondary);background:var(--bg-page);line-height:1.35;white-space:normal}
.why .cities tbody th{font-weight:600}
.why .cities td small{color:var(--text-secondary);font-size:13.5px}

/* Letter */
.why .letter-sec{padding:80px 0}
.why .letter{background:var(--bg);border:1px solid var(--brand-border);border-radius:var(--r-lg);padding:32px 26px;max-width:680px;box-shadow:0 24px 50px -30px rgba(60,40,0,.3)}
.why .letter h2{font-size:clamp(26px,6.4vw,36px);line-height:1.2;letter-spacing:-.02em;margin:0 0 20px}
.why .letter p{color:var(--text-secondary)}
.why .letter ul{list-style:none;margin:22px 0;padding:0 0 0 28px;display:grid;gap:10px}
.why .letter li{display:flex;gap:14px;align-items:baseline;font-size:19px;line-height:1.5;font-weight:400;color:var(--text-primary)}
.why .letter li::before{content:'';flex:0 0 auto;width:10px;height:10px;border-radius:999px;background:var(--brand);transform:translateY(-2px)}
.why .sign{margin:26px 0 0;font-family:var(--font-logo);font-size:22px;color:var(--text-primary)}

/* Join */
.why .join{padding:24px 0 96px}
.why .join h2{font-size:clamp(30px,7.6vw,46px);line-height:1.1;letter-spacing:-.025em;margin:0 0 16px}
.why .join p{color:var(--text-secondary);font-size:19px}

/* Disclosures */
.why details{margin-top:22px}
.why summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:15px;color:var(--text-secondary)}
.why summary::-webkit-details-marker{display:none}
.why summary::before{content:'+';font-family:var(--font-mono);width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-strong);border-radius:999px;font-size:13px}
.why details[open] summary::before{content:'−'}
.why summary:hover{color:var(--text-primary)}
.why .dbody{padding:4px 0 6px;font-size:15px;line-height:1.65;color:var(--text-secondary)}
.why .dbody ul{margin:0;padding-left:18px}
.why .dbody p{margin:0 0 10px}
.why .algo{width:100%;border-collapse:collapse;font-size:15px;margin-bottom:10px}
.why .algo th,.why .algo td{text-align:left;vertical-align:top;padding:9px 0;border-bottom:1px solid var(--border)}
.why .algo th{font-family:var(--font-mono);font-weight:500;font-size:13.5px;color:var(--text-primary);padding-right:16px;white-space:nowrap}

@media (prefers-reduced-motion:no-preference){.why .btn{transition:opacity .15s ease,background .15s ease}}

@media (min-width:600px){
.why{--g:32px}
.why .facts{grid-template-columns:minmax(0,1fr)}
.why .helps{grid-template-columns:repeat(2,minmax(0,1fr))}
.why .ledger{grid-template-columns:repeat(2,minmax(0,1fr))}
.why .col{padding:36px 36px 30px}
.why .except{flex-direction:row;align-items:baseline;gap:20px;padding:22px 36px}
.why .letter{padding:48px 52px}}

@media (min-width:900px){
.why{font-size:19px}
.why .hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:64px;align-items:center;padding-top:88px;padding-bottom:96px}
.why .hero-vis{margin:0 0 0 auto;width:100%}
.why .band{padding:88px 0}
.why .band .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:start}
.why .facts{margin:0;grid-template-columns:minmax(0,1fr)}
.why .ch{padding:80px 0}
.why .ch-grid{grid-template-columns:minmax(0,1fr) 300px;gap:80px;align-items:start}
.why .ch-grid.wide{grid-template-columns:minmax(0,1fr) 400px}
.why .ch-grid .helps{grid-template-columns:minmax(0,1fr)}
@media (min-width:1180px){.why .ch-grid .helps{grid-template-columns:repeat(2,minmax(0,1fr))}}
.why .side{width:100%;position:sticky;top:calc(var(--topbar-h) + 32px)}
.why .ch.alt .ch-grid{grid-template-columns:300px minmax(0,1fr)}
.why .ch.alt .ch-grid>.side{order:-1}
.why .straight,.why .cities-sec{padding:96px 0}
.why .letter-sec{padding:104px 0}}

/* Full-screen chapters on desktop, with plain scrolling (no snapping). scroll-padding-top keeps
   in-page anchor jumps (#vault, #share…) from landing under the sticky header. */
@media (min-width:900px) and (min-height:640px){
html{scroll-padding-top:var(--topbar-h)}
.why .ch{min-height:calc(100svh - var(--topbar-h));display:flex;flex-direction:column;justify-content:center;padding:32px 0 20px}
.why .ch-grid,.why .ch.alt .ch-grid{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:56px}
.why .ch.alt .ch-grid{grid-template-columns:auto minmax(0,1fr)}
.why .ch .side{position:static;width:min(300px,calc((100svh - var(--topbar-h) - 150px) * .4615))}
.why .ch .q{margin-bottom:14px}
.why .ch .q h2{font-size:clamp(22px,2.3vw,30px)}
.why .ch .body{font-size:17px;line-height:1.6}
.why .ch .body>p:first-child{font-size:18px;line-height:1.55}
.why .ch .body p{margin-bottom:.7em}
.why .ch .helps{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px;margin-top:18px}
.why .ch .helps li{font-size:15px;line-height:1.5;padding-top:14px}
.why .ch .helps strong{font-size:16px}
.why .ch details{margin-top:10px}
.why .ch .next{margin-top:14px}
.why .intro{min-height:calc(70svh - var(--topbar-h));display:flex;flex-direction:column;justify-content:center}}

/* Align the 60px Play badge with the 50px ghost button */
.why .cta{align-items:center}
