/* L2Cache 2.0 homepage. Type: Apple's system fonts (SF Pro, SF Mono on Mac and iPhone), no web fonts. Direction (unslop by Damir Sokolovsky, @heydamir, CC BY 4.0):
   exact, quiet, a little warm; a developer's desk late at night; the cache tax card and the
   live demo are the two rich moments; cache temperature dots (amber warm, blue cold) are the
   signature. Light and dark themes; app windows, the terminal and the tax card stay dark in both. */


:root {
  --bg: #f6f5f1;
  --deep: #eeece6;
  --band-alt: #ecebe5;
  --card: #ffffff;
  --raised: #efede8;
  --line: rgba(22, 24, 31, 0.09);
  --line-2: rgba(22, 24, 31, 0.15);
  --text: #16181f;
  --text-2: #4f5565;
  --text-3: #6b7283;
  --accent: #6a3cd2;
  --accent-ink: #7638d9;
  --warm: #b8730f;
  --cold: #2f6fd6;
  --ok: #16a34a;
  --bad: #dc2626;
  --btn-bg: #16181f;
  --btn-fg: #ffffff;
  --btn-hover: #2a2d38;
  --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 48px -24px rgba(20, 22, 30, 0.35);
  color-scheme: light;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1200px;

  /* Names the demo and carousel rules (demo.css) were written against */
  --surface: var(--card);
  --border: var(--line);
  --bg-alt: var(--raised);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--card));
  --accent-hover: var(--text);
  --on-accent: #ffffff;
  --dark-frame: #0d0d10;
  --font-display: var(--font-head);
  --font-mono: var(--mono);
  --radius: 14px;
  --radius-lg: 20px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --c-agent: #9b6bff; --stage-teal: #22b3a3; --c-term: #2fa36b; --c-git: #e5832d; --c-shot: #3b82f6; --c-clip: #d6489b;
}

/* Dark tokens: the same block for "follow the Mac" and for the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d14; --deep: #07080d; --card: #11141c; --raised: #1a1e28; --band-alt: #10131b;
    --line: rgba(238, 240, 245, 0.08); --line-2: rgba(238, 240, 245, 0.14);
    --text: #eef0f5; --text-2: #a3a9b8; --text-3: #7a8296;
    --accent: #a98bf5; --accent-ink: #8b6cf0; --warm: #f5b34b; --cold: #6ea8fe; --ok: #4cc38a; --bad: #e5484d;
    --btn-bg: #eef0f5; --btn-fg: #07080d; --btn-hover: #ffffff;
    --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d14; --deep: #07080d; --card: #11141c; --raised: #1a1e28; --band-alt: #10131b;
  --line: rgba(238, 240, 245, 0.08); --line-2: rgba(238, 240, 245, 0.14);
  --text: #eef0f5; --text-2: #a3a9b8; --text-3: #7a8296;
  --accent: #a98bf5; --accent-ink: #8b6cf0; --warm: #f5b34b; --cold: #6ea8fe; --ok: #4cc38a; --bad: #e5484d;
  --btn-bg: #eef0f5; --btn-fg: #07080d; --btn-hover: #ffffff;
  --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
/* Product objects (tax card, terminal) are dark in both themes. */
.ink {
  --card: #11141c; --deep: #07080d; --raised: #1a1e28;
  --line: rgba(238, 240, 245, 0.08); --line-2: rgba(238, 240, 245, 0.14);
  --text: #eef0f5; --text-2: #a3a9b8; --text-3: #7a8296;
  --accent: #a98bf5; --warm: #f5b34b; --cold: #6ea8fe; --ok: #4cc38a; --bad: #e5484d;
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
a:not(:where(.hero-shot, .feat-dlg) *) { color: inherit; text-decoration: none; }
img:not(:where(.hero-shot, .feat-dlg) *), svg:not(:where(.hero-shot, .feat-dlg) *) { display: block; max-width: 100%; }
button:not(:where(.hero-shot, .feat-dlg) *) { font: inherit; color: inherit; }
h1:not(:where(.hero-shot, .feat-dlg) *), h2:not(:where(.hero-shot, .feat-dlg) *), h3:not(:where(.hero-shot, .feat-dlg) *) { margin: 0; font-family: var(--font-head); font-weight: 600; }
p:not(:where(.hero-shot, .feat-dlg) *) { margin: 0; }
kbd:not(:where(.hero-shot, .feat-dlg) *) { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--raised); font: 500 13px/1 var(--mono); color: var(--text); vertical-align: 2px; }
code:not(:where(.hero-shot, .feat-dlg) *) { font: 400 0.9em var(--mono); padding: 2px 6px; border-radius: 4px; background: var(--raised); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 16px; border-radius: 8px; background: var(--card); color: var(--text); }
.skip-link:focus { top: 16px; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.temp { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.temp.is-warm { background: var(--warm); }
.temp.is-cold { background: var(--cold); }
.ff-mono { font-family: var(--mono); }
.kicker { font: 400 14px/1.4 var(--mono); color: var(--accent); }
.post-meta { font: 400 14px/1.4 var(--mono); color: var(--text-3); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 10px; font-weight: 500; font-size: 18px; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.button:active { transform: scale(0.98); }
.button svg { width: 18px; height: 18px; }
.button-primary { background: var(--btn-bg); color: var(--btn-fg); }
.button-primary:hover { background: var(--btn-hover); }
.button-quiet { color: var(--text); border: 1px solid var(--line-2); background: var(--card); }
.button-quiet:hover { background: var(--raised); }
.text-link { color: var(--accent); font-weight: 500; transition: color 160ms var(--ease); }
.text-link:hover { color: var(--text); }

/* Header */
.masthead { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.menu { display: flex; gap: 20px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 16px; color: var(--text-2); }
.menu a { transition: color 160ms var(--ease); }
.menu a:hover { color: var(--text); }
.bar .button { height: 36px; padding: 0 16px; font-size: 16px; border-radius: 8px; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.icon-button:hover { background: var(--raised); color: var(--text); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-toggle { display: none; }

/* Top: headline left, the decision right, the live demo below */
.top { padding-top: 64px; padding-bottom: 96px; border-bottom: 1px solid var(--line); }
.top-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.top h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; margin-top: 16px; }
.top h1 .soft { color: var(--text-2); }
.app-name { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 600 18px/1.3 var(--font-head); letter-spacing: -0.01em; }
.app-name img { width: 28px; height: 28px; border-radius: 7px; }
.top-side { display: grid; gap: 24px; }
.top-sub { font-size: 21px; line-height: 1.55; color: var(--text-2); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.fine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 16px; color: var(--text-3); }
.fine span { display: inline-flex; align-items: center; gap: 6px; }
.fine .i { width: 14px; height: 14px; }
.challenge { font-size: 17px; color: var(--text-2); padding-left: 16px; border-left: 2px solid var(--accent-ink); }
.challenge strong { color: var(--text); font-weight: 500; }

/* The live demo inside the top section; demo.css styles it exactly as on the old page, in both themes */
#explore { margin-top: 72px; scroll-margin-top: 80px; }
.top .hero-shot.mock.stage { width: 100%; margin: 0; }

/* A day: five moments that drive the demo */
.moments-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.moments-head h2 { font-size: 24px; letter-spacing: -0.01em; }
.moments-head p { font-size: 16px; color: var(--text-3); }
.moments { list-style: none; margin: 16px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.moments li { position: relative; padding: 16px 16px 0 0; }
.moments li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text-3); transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.moments li.is-alert::before { background: var(--cold); border-color: var(--cold); }
.moments li.is-current::before { background: var(--accent); border-color: var(--accent); }
.moments time { font: 400 14px var(--mono); color: var(--text-3); }
.moments li.is-alert time { color: var(--cold); }
.moments button { display: block; margin-top: 4px; padding: 0; border: 0; background: none; text-align: left; font-size: 19px; line-height: 1.35; cursor: pointer; transition: color 160ms var(--ease); }
.moments button::after { content: ""; position: absolute; inset: 0; }
.moments button:hover, .moments li.is-current button { color: var(--accent); }
.more-moments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 32px; font-size: 16px; color: var(--text-3); }
.more-moments button { padding: 0; border: 0; background: none; color: var(--text-2); border-bottom: 1px solid var(--line-2); cursor: pointer; transition: color 160ms var(--ease); }
.more-moments button:hover, .more-moments button[aria-pressed="true"] { color: var(--text); }

/* Sections */
.band { padding: 112px 0; border-bottom: 1px solid var(--line); }
/* Every other section sits on a slightly deeper tone, so sections read as separate blocks, most of all on phones. */
.band:nth-of-type(even) { background: var(--band-alt); }
.band-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 56px; }
.band-head h2, .split-copy h2, .faq-grid h2, .posts-head h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.band-head p:not(.kicker) { font-size: 20px; color: var(--text-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.split-copy { display: grid; gap: 20px; align-content: start; }
.split-copy > p:not(.kicker):not(.small-print) { color: var(--text-2); font-size: 20px; }
.split-copy strong { color: var(--text); font-weight: 500; }
.split-copy a:not(.button) { color: var(--accent); }

/* Cache tax card: pinned beside the story and steps */
#cost .split { align-items: start; }
#cost .tax { position: sticky; top: 96px; }
.tax { display: grid; gap: 20px; padding: 32px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shot-shadow); }
.tax-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.tax-top > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.tax-top .ff-mono { color: var(--text-3); }
.tax-share { display: flex; align-items: center; gap: 20px; }
.tax-share strong { font: 500 clamp(64px, 7vw, 96px)/1 var(--font); letter-spacing: -0.03em; color: var(--warm); font-variant-numeric: tabular-nums; }
.tax-share > span { font-size: 22px; line-height: 1.35; max-width: 16rem; }
.tax-nums { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; }
.tax-nums > span { display: block; padding: 14px 16px; }
.tax-nums > span + span { border-left: 1px solid var(--line); }
.tax-nums b { display: block; font: 500 24px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.tax-nums b + span { font-size: 14px; color: var(--text-3); }
.tax-note { font-size: 16px; color: var(--text-2); }
.tax-track { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.tax-track i:nth-child(1) { flex: 122; background: var(--warm); }
.tax-track i:nth-child(2) { flex: 0.6; background: #f59a4b; }
.tax-track i:nth-child(3) { flex: 2; background: var(--bad); }
.tax-key { display: flex; flex-wrap: wrap; gap: 16px; font: 400 13px var(--mono); color: var(--text-3); }
.tax-key span { display: inline-flex; align-items: center; gap: 6px; }
.tax-key i { width: 8px; height: 8px; border-radius: 2px; }
.tax-end { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

/* Three jobs */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.job { display: flex; flex-direction: column; }
.job > .kicker { margin-bottom: 12px; }
.job h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
.job > p { margin: 8px 0 24px; color: var(--text-2); font-size: 17px; }
.row { position: relative; display: grid; grid-template-columns: 18px 1fr 18px; gap: 4px 14px; width: 100%; padding: 20px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.row > .i:first-child { margin-top: 3px; color: var(--text-3); }
.row .row-open { margin-top: 3px; color: var(--text-3); transition: color 160ms var(--ease), transform 160ms var(--ease); }
.row:hover .row-open { color: var(--accent); transform: translateX(2px); }
.row-title { font-size: 18px; font-weight: 500; }
.row-title small { display: block; font: 400 13px/1.6 var(--mono); color: var(--text-3); margin-bottom: 2px; }
.row-text { grid-column: 2; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.row-fig { grid-column: 2; margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 500 22px var(--mono); }
.row-fig .from { color: var(--warm); }
.row-fig .to { color: var(--ok); }
.row-fig small { font: 400 13px var(--font); color: var(--text-3); }
.row:hover .row-title { color: var(--accent); }
.also { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.also p { display: flex; gap: 14px; color: var(--text-2); font-size: 17px; }
.also p .i { margin-top: 3px; color: var(--text-3); }
.also strong { color: var(--text); font-weight: 500; }
.also a { color: var(--accent); }

/* How it saves your limit */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; scroll-margin-top: 96px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 2px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.step-icon { grid-row: span 3; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--text-2); }
.steps strong { font-weight: 500; font-size: 19px; }
.steps p { color: var(--text-2); font-size: 17px; }
.small-print { font-size: 14px; color: var(--text-3); }
.small-print a { color: var(--accent); }
.cli { margin: 0; border-radius: 14px; border: 1px solid var(--line-2); background: var(--deep); overflow: hidden; box-shadow: var(--shot-shadow); }
.cli-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.cli-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--raised); }
.cli-bar span { margin-inline: auto; font-size: 14px; color: var(--text-3); }
.cli pre { margin: 0; padding: 24px; font: 400 16px/1.9 var(--mono); color: var(--text-2); white-space: pre-wrap; }
.cli .prompt { color: var(--ok); }
.cli .cmd { color: var(--text); }
.cli .line-cold, .cli .line-held, .cli .line-ok { display: block; padding-left: 12px; border-left: 2px solid var(--cold); }
.cli .line-cold b { color: var(--cold); font-weight: 500; }
.cli .line-held { border-color: var(--warm); }
.cli .line-held b { color: var(--warm); font-weight: 500; }
.cli .line-ok { border-color: var(--ok); }
.cli .line-ok b { color: var(--ok); font-weight: 500; }
.caption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--text-3); }

/* Privacy */
.stores { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.stores div { padding: 24px; display: grid; gap: 8px; align-content: start; }
.stores div + div { border-left: 1px solid var(--line); }
.stores .i { color: var(--text-3); margin-bottom: 8px; }
.stores b { font-weight: 500; }
.stores span { font-size: 16px; color: var(--text-2); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.notes b { display: block; font-weight: 500; margin-bottom: 4px; }
.notes p { color: var(--text-2); font-size: 17px; }

/* Pricing */
.price { padding: 32px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); display: grid; gap: 20px; }
.price-val { display: block; font: 500 56px/1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-type { display: block; margin-top: 8px; font-size: 16px; color: var(--text-2); }
.price-strike { text-decoration: line-through; color: var(--text-3); }
.price ul { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 17px; color: var(--text-2); }
.price li { display: flex; align-items: center; gap: 10px; }
.price li .i { width: 16px; height: 16px; color: var(--ok); }
.price .small-print { text-align: center; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--text-3); transition: transform 200ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--text-2); font-size: 17px; }

/* Blog */
.posts-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.posts-head .band-head { margin: 0; }
.posts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.post-lead { display: grid; gap: 12px; align-content: start; padding: 32px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); transition: border-color 160ms var(--ease); }
.post-lead:hover { border-color: var(--text-3); }
.post-lead h3 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.post-lead p { color: var(--text-2); }
.post { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.post:last-child { border-bottom: 1px solid var(--line); }
.post h3 { font-size: 19px; transition: color 160ms var(--ease); }
.post:hover h3 { color: var(--accent); }
.post p { grid-column: 1; font-size: 16px; color: var(--text-2); }
.post .post-meta { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 400 13px var(--mono); color: var(--text-3); }

/* Footer */
.foot-wrap { padding: 72px 0 40px; background: var(--deep); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; }
.foot h3 { margin: 0 0 12px; font-size: 14px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-3); }
.foot a { transition: color 160ms var(--ease); }
.foot a:hover { color: var(--text); }
.foot .tagline { margin-top: 12px; font-size: 14px; color: var(--text-3); }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 48px; }
.footer-badges img { height: 40px; width: auto; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.foot-base nav { display: flex; gap: 20px; }
.foot-base nav a { display: inline-block; padding: 4px 0; }

/* One entrance on load */
@media (prefers-reduced-motion: no-preference) {
  .top-grid > *, #explore { animation: rise 500ms var(--ease) both; }
  .top-side { animation-delay: 60ms; }
  #explore { animation-delay: 120ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } body { transition: none; } }

@media (max-width: 1100px) {
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .menu.is-open { display: flex; }
  .menu a { display: block; padding: 10px 0; font-size: 18px; }
  .menu-toggle { display: inline-grid; }
  .bar .theme-toggle { margin-left: auto; }
  .top-grid, .split, .faq-grid, .posts { grid-template-columns: 1fr; gap: 40px; }
  .jobs { grid-template-columns: 1fr; gap: 48px; }
  .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .foot { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .bar { gap: 12px; }
  .bar .button { display: none; }
  .top { padding-top: 40px; padding-bottom: 64px; }
  .top h1 { font-size: 40px; }
  #explore { margin-top: 48px; }
  /* Phones: one swipeable row, so the demo stays on screen under the moments. */
  .moments { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 6px 16px 4px; border-top: 0; overscroll-behavior-x: contain; }
  .moments li { border-top: 1px solid var(--line-2); }
  .moments::-webkit-scrollbar { display: none; }
  .moments li { flex: 0 0 64%; scroll-snap-align: start; scroll-margin-left: 16px; }
  .moments button { font-size: 17px; }
  .moments-head p { display: none; }
  .moments { margin-bottom: 24px; }
  /* Phones: feature rows are title-only; the pop-up carries the detail. */
  .row-text, .row-fig { display: none; }
  .band { padding: 80px 0; }
  .band-head { margin-bottom: 40px; }
  .tax { padding: 20px; }
  #cost .tax { position: static; }
  .tax-share { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tax-nums b { font-size: 20px; }
  .also, .notes { grid-template-columns: 1fr; }
  .stores { grid-template-columns: 1fr 1fr; }
  .stores div:nth-child(3) { border-left: 0; }
  .stores div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr 1fr; }
  .posts-head { flex-direction: column; align-items: start; }
  .post { grid-template-columns: 1fr; }
  .post .post-meta { grid-row: auto; grid-column: 1; text-align: left; margin-top: 4px; }
  .post-lead { padding: 24px; }
}
