/* KaaChonjo guides: server-rendered blog pages. Light only. Tokens and shapes follow the app (src/styles/base.css, app.css). */
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght.woff2) format('woff2-variations'); }
:root {
  --bg: #f3f6f2; --surface: #fff; --surface-2: #f6f8f5; --surface-3: #eef2ed;
  --line: #e3e9e2; --line-strong: #d3dbd2;
  --ink: #15231c; --ink-2: #3a4842; --muted: #6b7a72; --faint: #95a29b;
  --brand: #208c64; --brand-strong: #1a7552; --brand-soft: #e5f2eb; --brand-line: #cfe4d8; --brand-ring: #208c6433;
  --red: #c4372c; --red-bg: #fdebe9; --amber: #b86e00; --amber-bg: #fff3d9; --blue: #2a6dc2;
  --shadow-1: 0 1px 2px #10241d0f, 0 1px 1px #10241d0a;
  --shadow-2: 0 6px 20px #10241d17;
  --shadow-3: 0 18px 48px #10241d2e;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-synthesis: none; }
a { color: var(--brand-strong); text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
.i { flex: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }

/* Buttons and brand */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, transform .15s var(--ease), box-shadow .15s; }
.btn:hover { background: var(--brand-strong); box-shadow: 0 6px 16px #208c6440; }
.btn:active { transform: scale(.98); }
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-name span { color: var(--brand); opacity: .8; font-weight: 550; }

/* Header (matches the app's top bar) */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.top .brand { margin-right: 4px; }
.sub { font-size: 14.5px; color: var(--muted); font-weight: 600; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.top-nav { display: flex; gap: 2px; min-width: 0; }
.top-nav a { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.top-nav a:hover { background: var(--surface-2); color: var(--ink); }
.top-nav a[aria-current], .top-nav a[data-active] { background: var(--brand-soft); color: var(--brand); }
.open-app { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px; border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s; }
.open-app:hover { background: #d8ecdf; }
.open-app-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
@media (max-width: 1120px) { .wide-only { display: none !important; } }
@media (max-width: 720px) { .top-row { gap: 8px; } .sub { display: none; } .top-nav a { padding: 0 9px; } .top-nav a .i { display: none; } }
@media (max-width: 480px) { .top-nav { display: none; } .open-app { padding-right: 12px; font-size: 13.5px; } }

/* Shared page structure */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.side-sticky { position: sticky; top: 84px; display: grid; gap: 16px; }
@media (max-width: 1023px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } .side-sticky { position: static; max-width: 420px; margin: 0 auto; width: 100%; } }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.side-box h2 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .01em; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin: 0 0 16px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 550; }
.crumbs a:hover { color: var(--ink); }
.crumbs .i { color: var(--faint); }
.cat { font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; }
.meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.meta i, .byline i { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; margin: 0 3px; }

/* Index */
.page-index { padding-top: 32px; padding-bottom: 56px; }
.index-head { max-width: 720px; margin-bottom: 18px; }
.index-head h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.index-head p { margin: 0; color: var(--ink-2); font-size: 17.5px; line-height: 1.55; }
.topics { display: flex; gap: 8px; margin: 0 0 26px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.topics::-webkit-scrollbar { display: none; }
.topics a { flex: none; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 650; height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .15s, background .15s; }
.topics a:hover { border-color: var(--line-strong); }
.topics a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { color: var(--muted); padding: 20px 0; }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); margin-bottom: 22px; transition: box-shadow .2s, border-color .2s, transform .2s var(--ease); }
.feature:hover { box-shadow: var(--shadow-2); border-color: var(--brand-line); transform: translateY(-2px); }
.feature-img img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
@media (max-width: 760px) { .feature-img img { height: auto; aspect-ratio: 1200 / 630; } }
.feature-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.feature-body h2 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.feature-body p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.read { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 15px; margin-top: 4px; }
.feature:hover .read .i { transform: translateX(3px); }
.read .i { transition: transform .2s var(--ease); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature-body { padding: 18px 20px 20px; } .feature-body h2 { font-size: 22px; } }

.grid { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid, .grid-3 { grid-template-columns: 1fr; gap: 14px; } }
.card a { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s, transform .2s var(--ease); }
.card a:hover { box-shadow: var(--shadow-2); border-color: var(--brand-line); transform: translateY(-2px); }
.card-img { overflow: hidden; }
.card-img img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .4s var(--ease); }
.card a:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 17.5px; line-height: 1.3; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 4px; }

.topic-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.topic-list a:first-of-type { border-top: 0; }
.topic-list a:hover, .topic-list a[aria-current] { color: var(--brand); }
.topic-list b { font-size: 12px; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 1px 8px; }

/* Post */
.page-post { padding-top: 22px; padding-bottom: 56px; }
.post-head { margin-bottom: 22px; }
.post-head h1 { margin: 6px 0 12px; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.lede { margin: 0 0 18px; font-size: 19px; color: var(--ink-2); line-height: 1.55; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.byline .brand-mark { width: 34px; height: 34px; border-radius: 50%; }
.byline b { display: block; color: var(--ink); font-size: 14px; }
.byline span { display: inline-flex; align-items: center; flex-wrap: wrap; }
.cover { margin: 0 0 28px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }

.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 0 7px 12px; margin-left: -2px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.4; font-weight: 550; transition: color .15s, border-color .15s; }
.toc a::before { content: counter(toc); color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 700; min-width: 1ch; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--brand); border-left-color: var(--brand); font-weight: 650; }
.toc a[aria-current]::before { color: var(--brand); }
.toc-side ol { max-height: 46vh; overflow: auto; }
.toc-mobile { display: none; margin: 0 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.toc-mobile summary { display: flex; align-items: center; gap: 8px; padding: 13px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary span { margin-left: auto; font-weight: 550; color: var(--muted); font-size: 13.5px; }
.toc-mobile ol { padding: 0 16px 12px; }
@media (max-width: 1023px) { .toc-mobile { display: block; } .side .toc { display: none; } }

.prose { font-size: 17px; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2 { margin: 2em 0 .55em; font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.prose h3 { margin: 1.6em 0 .45em; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.prose h4 { margin: 1.2em 0 .3em; font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 700; }
.prose a { font-weight: 550; }
.prose code { font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose blockquote { margin: 0 0 1.2em; padding: 14px 18px; background: var(--brand-soft); border-radius: 14px; color: var(--ink); }
.prose blockquote p { margin: 0; }
.table { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--surface-2); font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcf9; }
.table td { font-variant-numeric: tabular-nums; }
.table td:last-child { font-weight: 600; }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.share > span { font-weight: 700; font-size: 14.5px; margin-right: 6px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.share a:hover, .share button:hover { border-color: var(--line-strong); color: var(--ink); }
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 18px; }

/* Perks: Free, No ads, No download */
.perks { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.perks li { display: inline-flex; align-items: center; gap: 5px; }
.perks .i { color: #fff; background: var(--brand); border-radius: 50%; padding: 2px; width: 16px; height: 16px; }
.perks-inline { justify-content: flex-start; }

/* Sidebar app card */
.appcard { background: linear-gradient(180deg, var(--brand-soft), var(--surface) 46%); border: 1px solid var(--brand-line); border-radius: 22px; padding: 16px; display: grid; gap: 14px; box-shadow: var(--shadow-1); }
.appcard-top { display: flex; align-items: center; gap: 10px; }
.appcard-top b { display: block; font-size: 16px; letter-spacing: -.01em; }
.appcard-top small { display: block; color: var(--muted); font-size: 13px; }
.appcard .phone { margin: 0 auto; }
.appcard-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 12px; }
.appcard-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.appcard-tabs button:hover { color: var(--ink); }
.appcard-tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-1); }

/* Phone mock-up */
.phone { width: 100%; max-width: 236px; background: var(--surface); border: 7px solid #15231c; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-2); }
.phone-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; }
.phone-bar .brand-mark { width: 20px; height: 20px; border-radius: 6px; }
.phone-bar b { letter-spacing: -.01em; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--brand); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px #22a06b26; animation: blink 1.6s infinite; }
.phone-screen { position: relative; height: 300px; background: var(--surface-2); overflow: hidden; }
.scene { position: absolute; inset: 0; display: none; }
.scene.on { display: block; animation: fade .35s var(--ease); }
.scene small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.3; }
.scene b { display: block; font-size: 12px; line-height: 1.3; }
.dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.dot-red { background: #d93025; } .dot-blue { background: var(--blue); } .dot-amber { background: #d97706; } .dot-teal { background: #0e8a9a; }

.mm { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-route { stroke-dasharray: 420; stroke-dashoffset: 420; }
.scene.on .mm-route { animation: draw 1.6s .1s var(--ease) forwards; }
.pin { position: absolute; width: 30px; height: 30px; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 2px 7px #10241d5c; transform: translate(-50%, -50%) scale(0); }
.pin-red { background: #d93025; } .pin-blue { background: var(--blue); } .pin-amber { background: #d97706; }
.scene.on .pin { animation: pop .45s var(--ease) forwards; }
.scene.on .pin-blue { animation-delay: .5s; } .scene.on .pin-amber { animation-delay: .9s; } .scene.on .pin-red { animation-delay: 1.3s; }
.me { position: absolute; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: #3b7be4; transform: translate(-50%, -50%); box-shadow: 0 0 0 8px #3b7be433; }
.toast { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 9px; padding: 9px 10px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-2); opacity: 0; }
.scene.on .toast { animation: rise .45s 1.7s var(--ease) forwards; }

.road { position: absolute; inset: 0; width: 100%; height: 100%; }
.road-dash { animation: dash .5s linear infinite; }
.cam-pole { transform-origin: 170px 70px; animation: approach 3.2s ease-in infinite; }
.cam-banner { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 14px; background: #15231c; color: #fff; box-shadow: var(--shadow-2); }
.cam-banner small { color: #c3cbc7; }
.scene.on .cam-banner { animation: nudge 3.2s infinite; }
.sign { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 4px solid #d93025; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.puck { position: absolute; left: 50%; bottom: 70px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 4px 12px #10241d40; }
.puck .i { transform: rotate(-45deg); }
.speedo { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-2); text-align: center; transition: background .2s, color .2s; }
.speedo b { font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.speedo.over { background: var(--red-bg); color: var(--red); }
.speedo.over small { color: var(--red); }

.scene-rem, .scene-fuel, .scene-alerts { padding: 12px 10px; display: none; }
.scene-rem.on, .scene-fuel.on, .scene-alerts.on { display: flex; flex-direction: column; gap: 7px; }
.rem-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 2px; }
.rem-head b { font-size: 14px; }
.rem, .fill { display: flex; align-items: center; gap: 9px; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.rem > div { flex: 1; min-width: 0; }
.rem i { display: block; height: 4px; margin-top: 5px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.rem i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--brand); border-radius: 4px; }
.ri { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.rem-warn { border-color: #f3dca8; background: #fffaf0; }
.rem-warn .ri { background: var(--amber-bg); color: var(--amber); }
.rem-warn small { color: var(--amber); font-weight: 650; }
.rem-warn i::after { background: #d97706; }
.rem-warn.expired { border-color: #f4c4bf; background: #fff6f5; }
.rem-warn.expired .ri { background: var(--red-bg); color: var(--red); }
.rem-warn.expired small { color: var(--red); }
.rem-warn.expired i::after { background: var(--red); }
.push { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: #ffffffee; backdrop-filter: blur(6px); box-shadow: var(--shadow-3); opacity: 0; }
.push .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
.scene.on .push { animation: drop 4s 1.2s var(--ease) infinite; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 12px 10px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--brand-line); transform-origin: bottom; }
.bars span.now { background: var(--brand); }
.scene.on .bars span { animation: grow .6s var(--d) var(--ease) both; }
.note { display: flex; align-items: center; gap: 9px; padding: 10px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-1); border: 1px solid var(--line); opacity: 0; }
.scene.on .note { animation: rise .45s var(--d) var(--ease) forwards; }

/* Landscape app card */
.promo { display: grid; grid-template-columns: minmax(0, 1fr) 250px; margin: 2.2em 0; background: var(--surface); border: 1px solid var(--brand-line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-1); font-size: 16px; line-height: 1.5; }
.promo-copy { padding: 24px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.promo-title { margin: 2px 0 0; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.promo-text { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.promo .btn { margin-top: 6px; }
.promo-visual { position: relative; display: flex; justify-content: center; padding-top: 26px; background: radial-gradient(circle at 70% 20%, #d4ebdd 0, transparent 55%), var(--brand-soft); overflow: hidden; }
.promo-visual::before { content: ''; position: absolute; width: 190px; height: 190px; left: -60px; bottom: -70px; border-radius: 50%; background: #d4ebdd; }
.promo-visual .phone { position: relative; max-width: 200px; margin-bottom: -40px; transform: rotate(3deg); transition: transform .3s var(--ease); }
.promo:hover .promo-visual .phone { transform: rotate(0deg) translateY(-6px); }
.phone-crop .phone-screen { height: 280px; }
@media (max-width: 680px) {
  .promo { grid-template-columns: 1fr; }
  .promo-visual { order: -1; height: 200px; padding-top: 18px; }
  .promo-visual .phone { max-width: 190px; transform: none; }
  .promo-copy { padding: 20px; }
  .promo .btn { width: 100%; }
}

/* Calculators inside the landscape card */
.calc { width: 100%; margin: 4px 0 2px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; font-size: 14.5px; }
.calc[hidden] { display: none; }
.calc-q { margin: 0; font-weight: 750; font-size: 15px; }
.calc-row { display: grid; gap: 6px; }
.calc-row > span { color: var(--ink-2); font-weight: 600; }
.calc-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 11px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 34px; border-radius: 8px; font-weight: 750; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 2px #d93025; }
.seg input:focus-visible + span { outline: 3px solid var(--brand-ring); }
.calc input[type=range] { width: 100%; accent-color: var(--brand); height: 28px; margin: 0; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-grid label { display: grid; gap: 5px; color: var(--ink-2); font-weight: 600; }
.calc select, .calc input[type=date] { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 14.5px; }
@media (max-width: 480px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-result { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 650; line-height: 1.45; }
.calc-result.warn { background: var(--amber-bg); color: var(--amber); }
.calc-result.fine, .calc-result.court { background: var(--red-bg); color: var(--red); }
.calc-note { margin: 0; color: var(--muted); font-size: 12.5px; }

/* Mobile app bar */
.mbar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-3); transform: translateY(160%); transition: transform .35s var(--ease); }
.mbar.show { transform: none; }
.mbar > div { flex: 1; min-width: 0; line-height: 1.3; }
.mbar b { display: block; font-size: 14.5px; }
.mbar small { display: block; color: var(--muted); font-size: 12.5px; }
.mbar .brand-mark { width: 36px; height: 36px; }
.mbar-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
@media (min-width: 1024px) { .mbar { display: none; } }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-brand { display: grid; gap: 12px; justify-items: start; max-width: 400px; }
.foot-brand p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.foot nav { display: flex; flex-direction: column; gap: 9px; }
.foot nav h2 { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 700; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.foot nav a:hover { color: var(--brand); }
.foot-base { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.fine { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 640px; }
.foot .foot-links { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; flex: none; }
.foot .foot-links a { font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .foot-base { flex-direction: column-reverse; } }
@media (max-width: 1023px) { .foot { padding-bottom: 96px; } }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-16px); } 10%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: -44; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes approach { from { transform: translate(-20px, -40px) scale(.5); opacity: 0; } 15% { opacity: 1; } to { transform: translate(30px, 150px) scale(1.6); opacity: 1; } }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 75% { transform: translateX(-3px); } 80% { transform: translateX(3px); } 85% { transform: translateX(-2px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .scene.on .push { animation: none; opacity: 1; }
}

/* Keep article styles out of the app card when it sits inside a guide */
.promo-visual { align-items: flex-start; text-decoration: none; color: var(--ink); }
.prose .promo ul, .prose .promo ol { margin: 0; padding: 0; }
.prose .promo li { margin: 0; }
.prose .promo li::marker { content: none; }
.prose .promo h3 { margin: 2px 0 0; font-size: 22px; line-height: 1.25; }
.prose .promo p { margin: 0; }
.prose .promo .calc-q, .prose .promo .calc-result, .prose .promo .calc-note { margin: 0; }
.promo-reminders .push { display: none; }
