/* getmagnet.app home. Tokens are the app's design system (TorrentMagnet tokens.json): one place for every colour,
   size and text style. Inside a phone mock, sizes are in the app's dp: var(--dp) is one dp at the mock's width. */
:root {
  color-scheme: light;
  --brand: #0F7A55;
  --brand-dark: #35B487;
  --on-brand: #FFFFFF;
  --surface: #FFFFFF;
  --surface-dark: #111412;
  --on-surface: #191C1A;
  --on-surface-dim: #5E655F;
  --on-surface-dark: #ECEEEA;
  --on-surface-dim-dark: #A3A9A3;
  --black: #000000;
  --on-black: #FFFFFF;
  --chip: #F5F5F5;
  --line: #E2E4DF;
  --nav-off: #9DA39D;
  --switch-off: #D5D8DC;
  --danger: #B3261E;
  --frame: #121514;
  --paper: #FFFFFF;
  --top-bg: rgba(255, 255, 255, 0.86);

  --space-4: 4px; --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-24: 24px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius-small: 12px; --radius-chip: 16px; --radius-box: 20px; --radius-pill: 28px; --radius-card: 26px;
  --shadow-card: 0 26px 60px -24px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-phone: 0 50px 90px -40px rgba(15, 122, 85, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.5);

  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: Caveat, "Comic Sans MS", cursive;
  --page: 1200px;
}
/* Dark: the app's own night palette (tokens.json, dark theme). Phone setting, unless the person picked one. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand: #35B487; --on-brand: #08140F; --surface: #111412; --surface-dark: #0A0C0B; --on-surface: #ECEEEA;
    --on-surface-dim: #A3A9A3; --black: #FFFFFF; --on-black: #000000; --chip: #2C2C2C; --line: #2C312D;
    --nav-off: #6E746E; --switch-off: #4D4D4D; --danger: #F2837B; --frame: #2B302D; --paper: #1B1F1C;
    --shadow-card: 0 26px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --top-bg: rgba(17, 20, 18, 0.86);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #35B487; --on-brand: #08140F; --surface: #111412; --surface-dark: #0A0C0B; --on-surface: #ECEEEA;
  --on-surface-dim: #A3A9A3; --black: #FFFFFF; --on-black: #000000; --chip: #2C2C2C; --line: #2C312D;
  --nav-off: #6E746E; --switch-off: #4D4D4D; --danger: #F2837B; --frame: #2B302D; --paper: #1B1F1C;
  --shadow-card: 0 26px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --top-bg: rgba(17, 20, 18, 0.86);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--on-surface); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
h1, h2 { text-wrap: balance; font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(34px, 4.8vw, 60px); }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--on-surface-dim); }
.eyebrow { margin: 0 0 var(--space-12); font-size: 15px; font-weight: 700; color: var(--brand); }
.hand { font-family: var(--hand); font-weight: 700; font-size: 27px; line-height: 1.1; color: var(--brand); margin: 0; }
.hand svg path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--top-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-surface); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.top-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.top-links a { color: var(--on-surface-dim); text-decoration: none; }
.top-links a:hover { color: var(--on-surface); }
.badge-sm { height: 52px; display: block; margin: -8px -10px; }
.badge { height: 84px; display: block; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }

/* Hero */
.hero { text-align: center; padding-top: 40px; }
.hero-icon { display: block; margin: 0 auto 30px; border-radius: 27px; box-shadow: 0 22px 44px -18px rgba(15, 122, 85, 0.55), 0 2px 6px rgba(0, 0, 0, 0.12); }
.hero h1 { font-size: clamp(42px, 6.6vw, 82px); max-width: 15ch; margin: 0 auto 22px; }
.mark { position: relative; display: inline-block; color: var(--brand); }
.mark svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: 0.26em; overflow: visible; }
.mark path { fill: none; stroke: var(--brand-dark); stroke-width: 7; stroke-linecap: round; }
.mark path.thin { stroke-width: 3; opacity: 0.6; }
.hero .lede { max-width: 37ch; margin: 0 auto 22px; }
.cta { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hand-cta { display: inline-flex; align-items: center; gap: 6px; transform: rotate(-4deg); }

/* Stage: the phone with cards around it */
.stage { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px; padding-top: 56px; padding-bottom: 104px; }
.side { flex: 1 1 280px; max-width: 330px; display: flex; flex-direction: column; gap: 28px; }
.side .hand { text-align: center; }
.hand-l { transform: rotate(-2deg); }
.hand-r { transform: rotate(2deg); }
.card { background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(2.5deg); }
@media (max-width: 900px) { .tilt-l, .tilt-r { transform: none; } .side { order: 2; } }

/* The phone mock: the app's own screen, sized in dp */
.phone { flex: 0 0 auto; width: min(360px, 100%); background: var(--frame); border-radius: 50px; padding: 11px; box-shadow: var(--shadow-phone); }
.screen { --dp: calc(100cqi / 360); container-type: inline-size; position: relative; aspect-ratio: 360 / 760; background: var(--surface); border-radius: 40px; overflow: hidden; display: flex; flex-direction: column; color: var(--on-surface); line-height: 1.21; }
.screen svg { width: calc(24 * var(--dp)); height: calc(24 * var(--dp)); flex: none; }
.sbar { height: calc(34 * var(--dp)); display: flex; justify-content: space-between; align-items: center; padding: 0 calc(26 * var(--dp)); font-size: calc(13 * var(--dp)); font-weight: 600; }
.sbar-r { display: flex; gap: calc(5 * var(--dp)); align-items: center; }
.sig { width: calc(16 * var(--dp)); height: calc(10 * var(--dp)); background: linear-gradient(90deg, var(--on-surface) 20%, transparent 20% 27%, var(--on-surface) 27% 47%, transparent 47% 54%, var(--on-surface) 54% 74%, transparent 74% 81%, var(--on-surface) 81%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.bat { width: calc(22 * var(--dp)); height: calc(11 * var(--dp)); border-radius: calc(3 * var(--dp)); border: calc(1.4 * var(--dp)) solid var(--on-surface); background: linear-gradient(90deg, var(--on-surface) 85%, transparent 85%) content-box; padding: calc(1.5 * var(--dp)); }
.tbar { height: calc(56 * var(--dp)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(16 * var(--dp)); }
.t-title { font-size: calc(28 * var(--dp)); font-weight: 700; }
.t-icons { display: flex; gap: calc(12 * var(--dp)); }
.chips { display: flex; gap: calc(8 * var(--dp)); padding: calc(4 * var(--dp)) calc(16 * var(--dp)) 0; }
.chip { height: calc(34 * var(--dp)); padding: 0 calc(14 * var(--dp)); border-radius: calc(17 * var(--dp)); background: var(--chip); display: inline-flex; align-items: center; gap: calc(4 * var(--dp)); font-size: calc(15 * var(--dp)); font-weight: 500; white-space: nowrap; }
.chip i { font-style: normal; color: var(--on-surface-dim); }
.chip.on { background: var(--black); color: var(--on-black); }
.chip.on i { color: var(--on-black); opacity: 0.7; }
.sline { display: flex; gap: calc(14 * var(--dp)); align-items: center; padding: calc(14 * var(--dp)) calc(16 * var(--dp)) calc(6 * var(--dp)); font-size: calc(12 * var(--dp)); color: var(--on-surface-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sline .g { color: var(--brand); }
.sort { margin-left: auto; display: inline-flex; align-items: center; gap: calc(4 * var(--dp)); color: var(--on-surface); font-size: calc(14 * var(--dp)); }
.screen .sort svg { width: calc(16 * var(--dp)); height: calc(16 * var(--dp)); }
.rows { flex: 1; overflow: hidden; }
.trow { display: flex; align-items: flex-start; padding: calc(8 * var(--dp)) calc(4 * var(--dp)); }
.trow-icon { width: calc(44 * var(--dp)); height: calc(36 * var(--dp)); display: flex; align-items: center; justify-content: center; flex: none; color: var(--on-surface); }
.trow-icon.active { color: var(--brand); }
.trow-main { flex: 1; min-width: 0; padding-top: calc(2 * var(--dp)); }
.trow-name { font-size: calc(14 * var(--dp)); font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trow-cells { display: flex; justify-content: space-between; gap: calc(8 * var(--dp)); margin-top: calc(2 * var(--dp)); font-size: calc(12 * var(--dp)); color: var(--on-surface-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trow-bar { height: calc(4 * var(--dp)); border-radius: calc(2 * var(--dp)); background: var(--line); margin-top: calc(7 * var(--dp)); overflow: hidden; }
.trow-bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width 0.6s linear; }
.trow-more { width: calc(40 * var(--dp)); display: flex; justify-content: center; padding-top: calc(6 * var(--dp)); color: var(--on-surface-dim); }
.trow-more b { width: calc(4 * var(--dp)); height: calc(18 * var(--dp)); background: radial-gradient(circle, var(--on-surface-dim) 45%, transparent 50%) 0 0 / 100% 33.33%; }
.fab { position: absolute; right: calc(16 * var(--dp)); bottom: calc(96 * var(--dp)); height: calc(56 * var(--dp)); padding: 0 calc(22 * var(--dp)) 0 calc(16 * var(--dp)); border-radius: calc(28 * var(--dp)); background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; gap: calc(6 * var(--dp)); font-size: calc(17 * var(--dp)); font-weight: 700; box-shadow: 0 calc(8 * var(--dp)) calc(20 * var(--dp)) calc(-6 * var(--dp)) rgba(15, 122, 85, 0.7); }
.nav { height: calc(82 * var(--dp)); border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; background: var(--surface); }
.nav span { display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--dp)); font-size: calc(12 * var(--dp)); font-weight: 700; color: var(--nav-off); width: calc(100 * var(--dp)); }
.nav span.on { color: var(--brand); }
.nav svg { width: calc(26 * var(--dp)); height: calc(26 * var(--dp)); }

/* Save to card (the app's sheet) */
.saveto { padding: 22px; }
.st-name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; margin-bottom: 14px; }
.st-facts { display: flex; gap: 26px; margin-bottom: 16px; }
.st-facts span { display: block; font-size: 12px; color: var(--on-surface-dim); }
.st-facts b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-facts .seeds { color: var(--brand); }
.st-facts .peers { color: var(--danger); }
.st-label { font-size: 12px; color: var(--on-surface-dim); margin-bottom: 6px; }
.st-folder, .st-seq { background: var(--chip); border-radius: var(--radius-chip); padding: 12px 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.st-folder svg, .st-seq svg { width: 22px; height: 22px; flex: none; }
.st-folder div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-folder b { font-size: 14px; font-weight: 600; }
.st-folder span { font-size: 12px; color: var(--on-surface-dim); }
.st-folder em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--brand); flex: none; }
.st-folder b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-seq span { flex: 1; font-size: 14px; }
.st-btns { display: flex; gap: var(--space-12); margin-top: 6px; }
.st-btns span { flex: 1; height: 48px; border-radius: var(--radius-chip); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.b-grey { background: var(--chip); }
.b-main { background: var(--brand); color: var(--on-brand); }

/* The app's switch: track 58 x 32, thumb 34 wide, 3 in */
.sw { --w: 46px; --h: 26px; width: var(--w); height: var(--h); border-radius: calc(var(--h) / 2); background: var(--switch-off); border: 0; padding: 0; position: relative; flex: none; cursor: pointer; transition: background 0.2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(var(--h) + 2px); height: calc(var(--h) - 6px); border-radius: calc(var(--h) / 2); background: var(--surface); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sw.on { background: var(--black); }
.sw.on::after { transform: translateX(calc(var(--w) - var(--h) - 8px)); }
.st-seq .sw { --w: 40px; --h: 24px; }

/* Mini piece map card and peers */
.mini { padding: 20px; }
.mini canvas { width: 100%; aspect-ratio: 16 / 9; display: block; }
.mini-strip { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-variant-numeric: tabular-nums; }
.mini-strip b { font-size: 26px; font-weight: 800; }
.mini-strip span { font-size: 13px; color: var(--on-surface-dim); }
.peerscard { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.pc-head { font-size: 13px; font-weight: 600; color: var(--on-surface-dim); }
.pc-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.pc-row span { color: var(--on-surface-dim); }

/* Sections */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 104px; padding-bottom: 104px; }
.split-text { flex: 1 1 340px; min-width: 0; }
.split-text h2 { margin-bottom: 20px; }
.split-text p { font-size: 19px; color: var(--on-surface-dim); max-width: 40ch; margin: 0 0 16px; }
.split-art { flex: 1 1 480px; min-width: 0; }
.split-art.center { display: flex; justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 17px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--brand); font-weight: 800; }

.dark { background: var(--surface-dark); color: var(--on-surface-dark); }
.dark .split-text p { color: var(--on-surface-dim-dark); }
.hand-dark { color: var(--brand-dark); }
.split-art canvas { width: 100%; aspect-ratio: 3 / 2; display: block; }
.big-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-top: 20px; font-variant-numeric: tabular-nums; color: var(--on-surface-dim-dark); }
.big-strip b { font-size: 44px; font-weight: 800; color: var(--on-surface-dark); margin-right: 10px; }
.big-strip em { font-style: normal; font-size: 18px; white-space: nowrap; }
.big-strip > span { white-space: nowrap; }

/* Search mock */
.sbox { margin: calc(4 * var(--dp)) calc(16 * var(--dp)) 0; height: calc(52 * var(--dp)); border-radius: calc(20 * var(--dp)); background: var(--chip); display: flex; align-items: center; gap: calc(12 * var(--dp)); padding: 0 calc(16 * var(--dp)); font-size: calc(16 * var(--dp)); }
.caret { width: 2px; height: calc(20 * var(--dp)); background: var(--brand); margin-left: calc(-10 * var(--dp)); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.srcs { display: flex; gap: calc(8 * var(--dp)); padding: calc(12 * var(--dp)) calc(16 * var(--dp)) calc(4 * var(--dp)); overflow: hidden; white-space: nowrap; }
.src { height: calc(34 * var(--dp)); border-radius: calc(17 * var(--dp)); background: var(--chip); display: inline-flex; align-items: center; gap: calc(6 * var(--dp)); padding: 0 calc(12 * var(--dp)); font-size: calc(14 * var(--dp)); flex: none; }
.src img { width: calc(18 * var(--dp)); height: calc(18 * var(--dp)); border-radius: 50%; }
.src img + img { margin-left: calc(-10 * var(--dp)); }
.src i { font-style: normal; color: var(--on-surface-dim); font-variant-numeric: tabular-nums; }
.screen .src svg { width: calc(14 * var(--dp)); height: calc(14 * var(--dp)); }
.rhead { display: flex; align-items: center; padding: calc(10 * var(--dp)) calc(16 * var(--dp)) calc(4 * var(--dp)); font-size: calc(14 * var(--dp)); color: var(--on-surface-dim); }
.results { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.hit { display: flex; gap: calc(12 * var(--dp)); align-items: center; padding: calc(10 * var(--dp)) calc(16 * var(--dp)); animation: hit-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes hit-in { from { opacity: 0; transform: translateY(calc(8 * var(--dp))); } }
.hit-main { flex: 1; min-width: 0; }
.hit-name { font-size: calc(15 * var(--dp)); font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit-meta { font-size: calc(13 * var(--dp)); color: var(--on-surface-dim); margin-top: calc(3 * var(--dp)); font-variant-numeric: tabular-nums; }
.hit-meta .s { color: var(--brand); font-weight: 600; }
.hit-meta .p { color: var(--danger); font-weight: 600; }
.hit img { width: calc(18 * var(--dp)); height: calc(18 * var(--dp)); border-radius: 50%; }

/* Play timeline */
.timeline { padding: 22px; }
.tl-file { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.tl-file > svg { width: 28px; height: 28px; flex: none; }
.tl-file div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tl-file b { font-size: 16px; font-weight: 600; }
.tl-file span { font-size: 13px; color: var(--on-surface-dim); font-variant-numeric: tabular-nums; }
.tl-play { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }
.tl-play svg { width: 22px; height: 22px; }
.tl-bar { display: flex; gap: 2px; height: 40px; position: relative; }
.tl-bar i { flex: 1; border-radius: 2px; background: var(--line); transition: background 0.35s; }
.tl-bar i.on { background: var(--brand); }
.tl-bar i.head { background: var(--black); }
.tl-legend { display: flex; gap: 20px; margin-top: 14px; font-size: 13px; color: var(--on-surface-dim); }
.tl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.lg-on { background: var(--brand); }
.lg-head { background: var(--black); }
.hand-play { margin-top: 18px; text-align: right; transform: rotate(-2deg); }

/* Settings card */
.settings { padding: 8px 20px; width: min(420px, 100%); }
.set-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row > svg { width: 24px; height: 24px; flex: none; }
.set-row div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.set-row b { font-size: 16px; font-weight: 600; }
.set-row span { font-size: 13px; color: var(--on-surface-dim); }

/* Opens */
.open-sec { padding-top: 40px; padding-bottom: 80px; }
.open-sec h2 { margin-bottom: 40px; }
.opens { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.open-item { display: flex; flex-direction: column; gap: 8px; }
.open-item svg { width: 32px; height: 32px; color: var(--brand); margin-bottom: 6px; }
.open-item b { font-size: 20px; font-weight: 700; }
.open-item span { color: var(--on-surface-dim); }

/* Languages */
.langs-sec { text-align: center; padding-top: 80px; padding-bottom: 40px; }
.langs-sec .lede { margin: 14px auto 48px; max-width: 40ch; }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.lang { width: 250px; padding: 18px; text-align: start; transform: rotate(var(--r)); display: flex; flex-direction: column; gap: 4px; }
.lang small { font-size: 12px; font-weight: 600; color: var(--on-surface-dim); margin-bottom: 4px; }
.lang b { font-size: 15px; font-weight: 600; }
.lang span { font-size: 13px; color: var(--on-surface-dim); }
.lbar { display: block; height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.lbar i { display: block; height: 100%; width: 72%; background: var(--brand); }
@media (max-width: 900px) { .lang { transform: none; } }

/* Real screenshots, same height */
.shots-sec { padding-top: 96px; padding-bottom: 64px; text-align: center; }
.shots-sec h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 40px; }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.shots figure { margin: 0; width: min(240px, calc(50% - 12px)); background: var(--frame); border-radius: 34px; padding: 7px; box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.45); }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1200; border-radius: 28px; }
.credit { font-size: 13px; color: var(--on-surface-dim); margin-top: 20px; }

/* Questions, guides, end */
.faq-sec { max-width: 760px; padding-top: 24px; padding-bottom: 40px; }
.faq-sec h2, .guides-sec h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 20px; }
.faq-sec details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-sec details:last-child { border-bottom: 1px solid var(--line); }
.faq-sec summary { font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-sec summary::-webkit-details-marker { display: none; }
.faq-sec summary::after { content: "+"; color: var(--brand); font-weight: 400; font-size: 24px; line-height: 1; }
.faq-sec details[open] summary::after { content: "–"; }
.faq-sec p { margin: 12px 0 0; color: var(--on-surface-dim); }
.guides-sec { max-width: 760px; padding-bottom: 40px; }
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.guide-list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--on-surface); text-decoration: none; font-weight: 600; }
.guide-list a:hover { color: var(--brand); }
.end { text-align: center; padding-top: 48px; padding-bottom: 96px; }
.end-icon { display: block; margin: 0 auto 22px; border-radius: 20px; box-shadow: 0 18px 36px -16px rgba(15, 122, 85, 0.55); }
.end h2 { margin-bottom: 18px; font-size: clamp(34px, 4.6vw, 56px); }
.end .badge { display: inline-block; }
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; padding-bottom: 32px; font-size: 14px; color: var(--on-surface-dim); }
.foot a { color: var(--on-surface-dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .hit { animation: none; }
  .trow-bar i, .tl-bar i { transition: none; }
}

/* Anchors clear the sticky top bar */
section[id] { scroll-margin-top: 72px; }

/* Phones: tighter rhythm between sections */
@media (max-width: 640px) {
  .split { gap: 32px; padding-top: 64px; padding-bottom: 64px; }
  .stage { padding-top: 40px; padding-bottom: 64px; gap: 28px; }
  .langs-sec, .shots-sec { padding-top: 56px; }
  .open-sec { padding-bottom: 48px; }
  .shots { gap: 16px; }
  .shots figure { border-radius: 26px; padding: 5px; }
  .shots img { border-radius: 22px; }
  .big-strip b { font-size: 36px; }
  .badge { height: 72px; }
}

/* Light / dark toggle */
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chip); color: var(--on-surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn .moon { fill: currentColor; stroke: none; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}

/* The promise, under the lede */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.utp { list-style: none; padding: 0; margin: 0 auto 30px; display: inline-flex; flex-direction: column; gap: 10px; text-align: left; font-size: 17px; }
.utp li { display: flex; gap: 10px; align-items: baseline; }
.utp li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; transform: translateY(4px); }
.utp li span, .utp li { color: var(--on-surface-dim); }
.utp b { color: var(--on-surface); font-weight: 700; }

/* Guides: cards that open the guide in place */
.guides-sec { max-width: var(--page); padding-top: 56px; }
.guides-sec .lede { margin: 0 0 28px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; scroll-margin-top: 80px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius-card); background: var(--chip); color: var(--on-surface); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.guide-card[aria-expanded="true"] { background: var(--paper); box-shadow: 0 0 0 2px var(--brand); }
.guide-card small { font-size: 13px; font-weight: 600; color: var(--brand); }
.guide-card b { font-size: 19px; line-height: 1.3; font-weight: 700; }
.guide-card span { font-size: 15px; color: var(--on-surface-dim); }
.reader { margin-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.reader-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-size: 15px; }
.reader-page { color: var(--on-surface-dim); }
.reader-close { border: 0; border-radius: var(--radius-small); background: var(--chip); color: var(--on-surface); font: 700 14px var(--sans); height: 40px; padding: 0 16px; cursor: pointer; }
.reader-body article { max-width: 66ch; margin: 0 auto; padding-bottom: 32px; }
.reader-title { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 12px; }
.reader-body .byline { font-size: 14px; color: var(--on-surface-dim); margin: 0; }
.reader-body .answer { font-size: 18px; border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; margin: 24px 0; }
.reader-body h2:not(.reader-title) { font-size: 24px; letter-spacing: -0.02em; font-weight: 800; margin: 1.8em 0 0.5em; }
.reader-body p, .reader-body li { color: var(--on-surface); opacity: 0.88; }
.reader-body ul, .reader-body ol { padding-left: 1.2em; }
.reader-body li { margin: 0.35em 0; }
.reader-body .phone { width: min(260px, 70vw); margin: 24px auto 8px; border-radius: 34px; padding: 7px; }
.reader-body .phone img { display: block; width: 100%; border-radius: 28px; }
.reader-body .shot-caption { text-align: center; font-size: 13px; color: var(--on-surface-dim); }
.reader-body .faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.reader-body .faq summary { font-weight: 600; cursor: pointer; }
.reader-body .note-box { background: var(--chip); border-radius: 16px; padding: 16px 18px; margin: 24px 0; }
.reader-body .app-card { display: none; }

/* Pictures of the app follow the page's light or dark look */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}

/* Guide pieces inside the home page's reader: two phones side by side, and tables */
.reader-body .phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 24px 0 8px; }
.reader-body .phones .phone { margin: 0; width: min(230px, 42vw); }
.reader-body .table-wrap { overflow-x: auto; margin: 20px 0 6px; border: 1px solid var(--line); border-radius: 14px; }
.reader-body table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.reader-body th, .reader-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.reader-body th { background: var(--chip); font-size: 13px; color: var(--on-surface-dim); }
.reader-body tr:last-child td { border-bottom: 0; }
