/*
 * TrackTunes brand layer ("measurement, not luxury").
 *
 * Tokens come from the social-card system (navy ink, exact logo orange) so the web, the
 * app store listing and social all read as one brand. Type matches that system too:
 * Helvetica Neue for words, DIN Condensed for every number (pace, price, counts), like a
 * race timing sheet. D-DIN Condensed Bold is self-hosted (SIL OFL, static/fonts) so the
 * numerals look the same on Android and Windows, where the social cards fall back.
 *
 * Corners are small and square-ish on purpose (4px, like the Strava button and a race bib);
 * only the phone bezel is rounded, because it is a phone.
 *
 * Three layers:
 *   1. Tokens and .tt-* components. Global and prefixed, so any template can opt in
 *      without touching the retro styles in main.css.
 *   2. Page sections used by the landing page (hero, split sheet, features, pricing).
 *   3. Public chrome (nav, mobile menu, cookie banner), scoped to body.tt-public. base.html
 *      sets that class for logged-out visitors only, so the logged-in app keeps its retro
 *      chrome until it is restyled as a whole.
 */

/* ==================== 1. Tokens and components ==================== */

@font-face {
    font-family: 'TT DIN Condensed';
    src: url('../fonts/D-DINCondensed-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --tt-ink: #0B222C;        /* navy, from the social cards */
    --tt-ink-2: #3E5A66;      /* secondary text */
    --tt-muted: #6F8A95;      /* tertiary text */
    --tt-paper: #F3F6F7;      /* cool ground, deliberately not cream */
    --tt-sheet: #FFFFFF;      /* the split sheet */
    --tt-rule: #D3DEE2;       /* hairlines */
    --tt-signal: #E87E57;     /* exact logo orange: reserved for "this song was fast" */
    --tt-signal-ink: #B4532F; /* orange dark enough for text on white */
    --tt-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --tt-num: 'TT DIN Condensed', 'DIN Condensed', 'Arial Narrow', sans-serif;
    --tt-radius: 4px;
}

.tt { font-family: var(--tt-font); color: var(--tt-ink); font-variant-numeric: tabular-nums; }
.tt * { font-family: inherit; }
.tt a:focus-visible, .tt button:focus-visible { outline: 2px solid var(--tt-signal); outline-offset: 3px; }
.tt-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.tt-display { font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.tt-h2 { font-weight: 700; letter-spacing: -0.025em; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; margin: 0 0 14px; }
.tt-num { font-family: var(--tt-num); font-weight: 700; letter-spacing: 0.01em; }
.tt-lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--tt-ink-2); max-width: 44ch; }
.tt-body { font-size: 18px; line-height: 1.6; color: var(--tt-ink-2); max-width: 58ch; }
.tt-small { font-size: 15px; color: var(--tt-muted); }
.tt-link { color: var(--tt-ink); text-decoration: underline; text-decoration-color: var(--tt-rule); text-underline-offset: 3px; }
.tt-link:hover { text-decoration-color: var(--tt-ink); }

.tt-btn { display: inline-block; background: var(--tt-ink); color: #fff; font-weight: 600; font-size: 17px; padding: 14px 26px; border-radius: var(--tt-radius); text-decoration: none; border: 0; cursor: pointer; text-align: center; }
.tt-btn:hover { background: #163846; color: #fff; }
.tt-btn:disabled { opacity: 0.6; cursor: wait; }
.tt-btn-block { display: block; width: 100%; }
.tt-btn-quiet { background: transparent; color: var(--tt-ink); box-shadow: inset 0 0 0 1px var(--tt-rule); }
.tt-btn-quiet:hover { background: #fff; color: var(--tt-ink); box-shadow: inset 0 0 0 1px var(--tt-ink); }

.tt-card { background: var(--tt-sheet); border: 1px solid var(--tt-rule); border-radius: var(--tt-radius); padding: 28px; }
.tt-rule { border: 0; border-top: 1px solid var(--tt-rule); margin: 24px 0; }
.tt-input { width: 100%; font-size: 17px; padding: 13px 16px; border: 1px solid var(--tt-rule); border-radius: var(--tt-radius); background: #fff; color: var(--tt-ink); }
.tt-input:focus { outline: 2px solid var(--tt-ink); outline-offset: 1px; border-color: var(--tt-ink); }
.tt-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }

/* Narrow single-purpose pages: login, email code, get the app. */
.tt-narrow { max-width: 440px; margin: 0 auto; padding: 56px 20px 72px; }
.tt-page-title { font-size: clamp(36px, 4.4vw, 52px); margin: 0 0 12px; }

/* ==================== 2. Page sections ==================== */

/* ---------- Hero ---------- */
.tt-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 48px 0 72px; }
.tt-phone { width: 100%; max-width: 290px; height: auto; margin: 0 auto; display: block; border: 8px solid var(--tt-ink); border-radius: 36px;
    /* Fade the lower third (bezel included) into the page so the eye stops at the track list. */
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 92%); mask-image: linear-gradient(to bottom, #000 58%, transparent 92%); }
.tt-hero h1 { font-size: clamp(40px, 4.8vw, 66px); margin: 0 0 22px; }
.tt-cta { margin-top: 32px; }
.tt-cta-note { margin-top: 12px; font-size: 15px; color: var(--tt-ink-2); }
/* Proof as a fixed two-column row so it never wraps into a ragged line. */
.tt-proof { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 440px; border-top: 1px solid var(--tt-rule); padding-top: 16px; }
.tt-proof > * { font-size: 15px; line-height: 1.35; color: var(--tt-ink-2); text-decoration: none; }
.tt-proof strong { display: block; color: var(--tt-ink); font-family: var(--tt-num); font-weight: 700; font-size: 30px; line-height: 1.1; }
a.tt-proof-item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.tt-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* The split sheet: the product's real output, the one thing Volta can't show. */
.tt-sheet { background: var(--tt-sheet); border: 1px solid var(--tt-rule); border-radius: var(--tt-radius); padding: 22px 22px 16px; }
.tt-sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--tt-rule); }
.tt-sheet-title { font-weight: 700; font-size: 18px; }
.tt-sheet-meta { font-size: 14px; color: var(--tt-muted); white-space: nowrap; }
.tt-rows { list-style: none; margin: 0; padding: 0; }
.tt-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 64px; column-gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #EEF2F4; }
.tt-row:last-child { border-bottom: 0; }
.tt-n { font-family: var(--tt-num); font-weight: 700; font-size: 17px; color: var(--tt-muted); }
.tt-song { min-width: 0; }
.tt-song b { display: block; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-song i { display: block; font-style: normal; font-size: 14px; color: var(--tt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-bar { grid-column: 2 / 4; height: 3px; background: #EEF2F4; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.tt-bar > span { display: block; height: 100%; background: var(--tt-ink-2); border-radius: 3px; transform-origin: left; }
.tt-pace { text-align: right; font-family: var(--tt-num); font-weight: 700; font-size: 24px; line-height: 1; }
.tt-row.is-fast .tt-pace { color: var(--tt-signal-ink); }
.tt-row.is-fast .tt-bar > span { background: var(--tt-signal); }
.tt-sheet-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--tt-rule); font-size: 14px; color: var(--tt-muted); }

/* The one orchestrated moment: pace bars draw in once, in play order. */
@media (prefers-reduced-motion: no-preference) {
    .tt-bar > span { animation: tt-draw 900ms cubic-bezier(.2,.7,.2,1) both; }
    .tt-row:nth-child(2) .tt-bar > span { animation-delay: 120ms; }
    .tt-row:nth-child(3) .tt-bar > span { animation-delay: 240ms; }
    .tt-row:nth-child(4) .tt-bar > span { animation-delay: 360ms; }
    .tt-row:nth-child(5) .tt-bar > span { animation-delay: 480ms; }
    .tt-row:nth-child(6) .tt-bar > span { animation-delay: 600ms; }
    @keyframes tt-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Sections ---------- */
.tt-section { padding: 88px 0; border-top: 1px solid var(--tt-rule); }
.tt-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (min-width: 861px) { .tt-feature > div:first-child { position: sticky; top: 96px; } }
.tt-feature + .tt-feature { margin-top: 96px; }
.tt-feature.flip > :first-child { order: 2; }
.tt-shot { width: 100%; height: auto; border-radius: var(--tt-radius); border: 1px solid var(--tt-rule); background: var(--tt-sheet); display: block; }
.tt-shot.phone { max-width: 300px; margin: 0 auto; }
.tt-facts { list-style: none; padding: 0; margin: 20px 0 0; }
.tt-facts li { padding: 12px 0; border-top: 1px solid var(--tt-rule); font-size: 17px; line-height: 1.5; color: var(--tt-ink-2); max-width: 52ch; }
.tt-facts li b { color: var(--tt-ink); font-weight: 650; }

/* How it works: the intro video beside the three steps. */
.tt-how { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 64px; align-items: center; }
.tt-video { width: 100%; aspect-ratio: 9 / 16; height: auto; display: block; border-radius: var(--tt-radius); background: var(--tt-ink); }
.tt-how .tt-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.tt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; counter-reset: step; }
.tt-step { border-top: 2px solid var(--tt-ink); padding-top: 16px; }
.tt-step h3 { font-weight: 700; letter-spacing: -0.01em; font-size: 21px; margin: 0 0 8px; }
.tt-step h3::before { counter-increment: step; content: counter(step); font-family: var(--tt-num); font-size: 28px; color: var(--tt-muted); margin-right: 12px; vertical-align: -3px; }
.tt-step p { font-size: 17px; line-height: 1.55; color: var(--tt-ink-2); margin: 0; }

/* Pricing: two plans, stated plainly. No "thank you" badge, no donation framing. */
.tt-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; max-width: 820px; }
.tt-plan { background: var(--tt-sheet); border: 1px solid var(--tt-rule); border-radius: var(--tt-radius); padding: 28px; }
.tt-plan.is-main { background: var(--tt-ink); color: #EAF1F3; border-color: var(--tt-ink); }
.tt-plan h3 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.tt-price { font-family: var(--tt-num); font-weight: 700; font-size: 80px; line-height: 0.9; }
.tt-price small { font-family: var(--tt-font); font-size: 17px; font-weight: 500; margin-left: 6px; }
.tt-plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.tt-plan li { padding: 8px 0; font-size: 16px; border-top: 1px solid var(--tt-rule); }
.tt-plan.is-main li { border-top-color: #1E4557; }
.tt-plan .tt-small { margin-top: 6px; }
.tt-plan.is-main .tt-small { color: #8CADB9; }

.tt-maker { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: center; max-width: 820px; }
.tt-maker img { width: 180px; height: 180px; object-fit: cover; border-radius: var(--tt-radius); }


/* Post-Strava connect states keep their logic; only the skin changes. */
.tt-state { background: var(--tt-sheet); border: 1px solid var(--tt-rule); border-radius: var(--tt-radius); padding: 20px; text-align: center; }
.tt-state.is-next { border-color: var(--tt-ink); }
.tt-state h2 { font-weight: 700; font-size: 20px; margin: 8px 0 6px; }

.tt .rhythm-dot { background: none; border: none; font-size: 14px; padding: 2px 4px; cursor: pointer; color: var(--tt-rule) !important; }
.tt .rhythm-dot.active { color: var(--tt-ink) !important; }

@media (max-width: 860px) {
    .tt-hero, .tt-feature { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .tt-feature.flip > :first-child { order: 0; }
    .tt-hero { padding: 32px 0 48px; }
    .tt-phone { max-width: 240px; margin-bottom: -56px; }
    .tt-section { padding: 64px 0; }
    .tt-steps, .tt-plans { grid-template-columns: minmax(0, 1fr); }
    .tt-how { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .tt-video { max-width: 300px; margin: 0 auto; }
    .tt-maker { grid-template-columns: minmax(0, 1fr); }
}

/* ==================== 3. Public chrome (logged-out only) ==================== */

body.tt-public { background: var(--tt-paper) !important; }
body.tt-public main { padding-top: 0; }

body.tt-public .retro-nav { background: rgba(243, 246, 247, 0.92); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--tt-rule); font-family: var(--tt-font); }
@media (min-width: 768px) { body.tt-public nav.retro-nav.md\:block { position: sticky; top: 0; z-index: 50; } }
body.tt-public .retro-nav-link { color: var(--tt-ink-2); text-decoration: none; font-size: 16px; font-weight: 500; }
body.tt-public .retro-nav-link:hover { color: var(--tt-ink); }
body.tt-public .retro-nav-btn { background: var(--tt-ink); color: #fff; border: 0; border-radius: var(--tt-radius); padding: 8px 18px; font-family: var(--tt-font); font-weight: 600; font-size: 15px; }
body.tt-public .retro-nav-btn:hover { background: #163846; }
body.tt-public .retro-nav button { color: var(--tt-ink) !important; }

/* Logged-out mobile menu: a plain list, replacing the emoji tile grid. */
body.tt-public .retro-mobile-menu-dropdown { background: var(--tt-paper); border-top: 1px solid var(--tt-rule); box-shadow: 0 24px 40px -24px rgba(11, 34, 44, 0.35); font-family: var(--tt-font); }
.tt-menu { list-style: none; margin: 0; padding: 8px 20px 20px; }
.tt-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--tt-rule); color: var(--tt-ink); font-size: 18px; font-weight: 500; text-decoration: none; }
.tt-menu .tt-btn { margin-top: 20px; border-bottom: 0; color: #fff; }

/* Cookie banner: same markup and ids (the consent script drives them), new skin. */
body.tt-public #cookie-banner { background: var(--tt-ink) !important; border: 0 !important; font-family: var(--tt-font); box-shadow: 0 -12px 30px -18px rgba(11, 34, 44, 0.6); }
body.tt-public #cookie-banner * { font-family: inherit; }
body.tt-public #cookie-text { color: #EAF1F3; font-size: 15px; }
body.tt-public #cookie-banner .retro-btn { background: #EAF1F3; color: var(--tt-ink); border: 0; border-radius: var(--tt-radius); padding: 7px 16px; font-weight: 600; font-size: 14px; }
body.tt-public #cookie-banner .retro-btn:hover { background: #fff; }
body.tt-public #cookie-banner #optout-cookies { background: transparent; color: #EAF1F3; box-shadow: inset 0 0 0 1px #3E5A66; }
body.tt-public #cookie-banner .retro-link { color: #8CADB9; text-decoration: underline; text-underline-offset: 3px; }

/* Footer (partials/_footer_public.html). */
.tt-footer { font-family: var(--tt-font); color: var(--tt-ink-2); border-top: 1px solid var(--tt-rule); margin-top: 48px; padding: 48px 0 40px; }
.tt-footer * { font-family: inherit; }
.tt-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.tt-footer-brand img { height: 40px; width: auto; }
.tt-footer-brand p { margin-top: 12px; font-size: 15px; max-width: 32ch; line-height: 1.5; }
.tt-footer h4 { font-size: 14px; font-weight: 600; color: var(--tt-muted); margin: 0 0 12px; }
.tt-footer ul { list-style: none; padding: 0; margin: 0; }
.tt-footer li a { display: inline-block; padding: 5px 0; color: var(--tt-ink); text-decoration: none; font-size: 16px; }
.tt-footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tt-footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--tt-rule); font-size: 14px; color: var(--tt-muted); }
.tt-social { display: flex; gap: 6px; }
.tt-social a { color: var(--tt-ink-2); padding: 6px; border-radius: 8px; }
.tt-social a:hover { color: var(--tt-ink); background: #fff; }
.tt-attrib { display: flex; align-items: center; gap: 16px; }
.tt-attrib img { height: 22px; width: auto; }
.tt-attrib span { display: inline-flex; align-items: center; gap: 6px; color: var(--tt-ink-2); }
@media (max-width: 700px) {
    .tt-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tt-footer-brand { grid-column: 1 / -1; }
}

/* ==================== 4. Shared page parts ==================== */

.tt-pagehead { padding: 56px 0 40px; }
.tt-pagehead .tt-lede { margin-top: 4px; }
.tt-back { display: inline-block; margin-bottom: 20px; font-size: 15px; }
.tt-meta { font-size: 15px; color: var(--tt-muted); }
.tt-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--tt-muted); }
.tt-cta-band { background: var(--tt-ink); color: #EAF1F3; border-radius: var(--tt-radius); padding: 40px; margin: 72px 0 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.tt-cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; max-width: 24ch; color: #fff; }
.tt-cta-band p { color: #8CADB9; margin: 8px 0 0; max-width: 52ch; font-size: 17px; line-height: 1.55; }
.tt-cta-band .tt-btn { background: #EAF1F3; color: var(--tt-ink); }
.tt-cta-band .tt-btn:hover { background: #fff; color: var(--tt-ink); }
.tt-seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tt-seg a { padding: 9px 16px; border-radius: var(--tt-radius); font-size: 15px; font-weight: 600; text-decoration: none; color: var(--tt-ink); box-shadow: inset 0 0 0 1px var(--tt-rule); }
.tt-seg a:hover { box-shadow: inset 0 0 0 1px var(--tt-ink); }
.tt-seg a[aria-current="page"] { background: var(--tt-ink); color: #fff; box-shadow: none; }

/* Blog index cards. */
.tt-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.tt-post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--tt-radius); border: 1px solid var(--tt-rule); display: block; }
.tt-post h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 14px 0 8px; }
.tt-post h2 a { color: var(--tt-ink); text-decoration: none; }
.tt-post h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tt-post p { font-size: 16px; line-height: 1.55; color: var(--tt-ink-2); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Blog article body. */
.tt-article { max-width: 720px; }
.tt-article-hero { width: 100%; border-radius: var(--tt-radius); border: 1px solid var(--tt-rule); display: block; }

/* Ranked lists (charts): the split sheet, without the pace bars. */
.tt-rank-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tt-rank { list-style: none; margin: 0; padding: 0; }
.tt-rank li { display: grid; grid-template-columns: 36px 48px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #EEF2F4; }
.tt-rank li:last-child { border-bottom: 0; }
.tt-rank.is-compact li { grid-template-columns: 30px minmax(0, 1fr); padding: 8px 0; }
.tt-rank .tt-n { font-size: 24px; text-align: right; color: var(--tt-ink-2); }
.tt-rank img { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; }
.tt-rank .tt-song b a { color: var(--tt-ink); text-decoration: none; }
.tt-rank .tt-song b a:hover { text-decoration: underline; text-underline-offset: 3px; }

.tt-about-block + .tt-about-block { margin-top: 72px; }
.tt-about-block img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: var(--tt-radius); display: block; }

@media (max-width: 860px) {
    .tt-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tt-rank-grid { grid-template-columns: minmax(0, 1fr); }
    .tt-cta-band { padding: 28px; }
}
@media (max-width: 560px) {
    .tt-posts { grid-template-columns: minmax(0, 1fr); }
}

/* ==================== 5. Retro remap ==================== */
/*
 * Long-form public content (blog post bodies, FAQ answers, press kit, privacy and cookie
 * policies) was written against the retro classes in main.css. Rather than rewrite nine blog
 * posts and several hundred lines of FAQ, wrapping that content in .tt-remap re-skins those
 * classes in the brand layer. New content should use .tt-* classes directly.
 */
.tt-remap, .tt-remap * { font-family: var(--tt-font); }
.tt-remap { color: var(--tt-ink-2); font-size: 17px; line-height: 1.65; }
.tt-remap .retro-header { font-family: var(--tt-font); color: var(--tt-ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.tt-remap .brand-text, .tt-remap strong, .tt-remap b { color: var(--tt-ink); }
.tt-remap .brand-text-muted { color: var(--tt-ink-2); }
.tt-remap .brand-text-light { color: var(--tt-muted); }
.tt-remap .brand-accent { color: var(--tt-ink); }
.tt-remap .brand-orange, .tt-remap .brand-green { color: var(--tt-signal-ink); }
.tt-remap a:not(.retro-btn):not(.tt-btn) { color: var(--tt-ink); text-decoration: underline; text-decoration-color: var(--tt-rule); text-underline-offset: 3px; }
.tt-remap a:not(.retro-btn):not(.tt-btn):hover { text-decoration-color: var(--tt-ink); }
.tt-remap .retro-box, .tt-remap .retro-card { background: var(--tt-sheet); border: 1px solid var(--tt-rule); border-radius: var(--tt-radius); }
.tt-remap .retro-box-highlight { background: var(--tt-sheet); border: 1px solid var(--tt-rule); border-left: 3px solid var(--tt-ink); border-radius: var(--tt-radius); }
.tt-remap .retro-section-header { background: none; color: var(--tt-ink); font-weight: 700; font-size: 20px; padding: 0 0 10px; border-bottom: 1px solid var(--tt-rule); }
.tt-remap .retro-btn, .tt-remap .retro-btn-orange, .tt-remap .retro-btn-green { display: inline-block; background: var(--tt-ink); color: #fff; border: 0; border-radius: var(--tt-radius); padding: 11px 20px; font-weight: 600; font-size: 16px; text-decoration: none; }
.tt-remap .retro-btn:hover { background: #163846; color: #fff; }
.tt-remap .retro-badge { background: none; color: var(--tt-ink-2); box-shadow: inset 0 0 0 1px var(--tt-rule); border-radius: var(--tt-radius); font-size: 13px; font-weight: 600; padding: 2px 8px; }
.tt-remap .retro-table { border: 1px solid var(--tt-rule); font-size: 15px; }
.tt-remap .retro-table th { background: var(--tt-paper); color: var(--tt-ink); border: 1px solid var(--tt-rule); }
.tt-remap .retro-table td, .tt-remap .retro-table tr:nth-child(even) td, .tt-remap .retro-table tr:hover td { background: #fff; border: 1px solid var(--tt-rule); }
.tt-remap .retro-hr { background: var(--tt-rule); }
.tt-remap .retro-stats { font-family: var(--tt-num); font-weight: 700; }
.tt-remap input[type="email"], .tt-remap input[type="text"], .tt-remap textarea { font-size: 17px; padding: 12px 14px; border: 1px solid var(--tt-rule) !important; border-radius: var(--tt-radius); background: #fff !important; color: var(--tt-ink) !important; }
.tt-remap code, .tt-remap .font-mono { font-family: var(--tt-font); font-weight: 600; }

/* FAQ: sections lose their box, each question becomes a hairline row. */
.tt-faq section > .retro-box { background: none; border: 0; padding: 0; }
.tt-faq section { margin-bottom: 56px; }
.tt-faq section > .retro-box > .retro-header { font-size: 28px; }
.tt-faq .space-y-4 > .retro-box { background: none; border: 0; border-top: 1px solid var(--tt-rule); border-radius: 0; margin-top: 0 !important; }
.tt-faq .space-y-4 > .retro-box:last-child { border-bottom: 1px solid var(--tt-rule); }
.tt-faq .space-y-4 > .retro-box > button { padding: 18px 0; }
.tt-faq .space-y-4 > .retro-box > button h3 { font-size: 18px; font-weight: 600; }
.tt-faq .space-y-4 > .retro-box > div { padding-left: 0; padding-right: 0; padding-bottom: 20px; max-width: 68ch; }

/* Legal and policy pages: plain sections under a rule, no boxes. */
.tt-legal .retro-box { background: none; border: 0; border-top: 1px solid var(--tt-rule); border-radius: 0; margin-bottom: 0 !important; }
.tt-legal .retro-box > div { padding: 32px 0 !important; max-width: 72ch; }
.tt-legal .retro-box .retro-header { font-size: 24px; }
/* Blog bodies set many paragraphs to text-sm; bring reading text up, leave captions (text-xs) small. */
.tt-article p:not(.text-xs), .tt-article li { font-size: 17px; line-height: 1.7; }

/* Flash messages on public pages (e.g. "Please log in to access this page."). */
body.tt-public .tt-flash { max-width: 1080px; margin: 16px auto 0; background: #fff; color: var(--tt-ink); border: 1px solid var(--tt-rule); border-left: 3px solid var(--tt-ink); border-radius: var(--tt-radius); font-family: var(--tt-font); font-size: 16px; }
body.tt-public .tt-flash-error { border-left-color: var(--tt-signal-ink); }
