/* Smarter Budget — smarterbudget.app
   Colours from the app icon: deep teal, warm gold, on paper-white.
   Headlines in Apple's serif (New York) where available; system fonts only,
   so there are no third-party requests. Logical properties throughout, so a
   right-to-left language can be added later. All motion stops for people who
   ask for reduced motion. */

:root {
  --teal: #0f6b6b;
  --teal-deep: #0b3f52;
  --gold: #f2b632;
  --gold-soft: #fbe6b0;
  --ink: #17242a;
  --ink-2: #536269;
  --paper: #f8f5ef;
  --card: #fffdf9;
  --line: #e6dfd2;
  --tint: #eef3ef;
  --accent: #0f6b6b;
  --accent-ink: #ffffff;
  --bad: #b5452f;
  --shadow: 0 1px 2px rgb(40 30 10 / 6%), 0 10px 30px rgb(40 30 10 / 8%);
  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang TC", "PingFang SC",
          "Hiragino Sans", "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans", system-ui, sans-serif;
  --display: "New York", ui-serif, "Iowan Old Style", "Charter", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}
:lang(zh), :lang(ja) { --display: var(--sans); }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ecf1ef;
    --ink-2: #a5b3b2;
    --paper: #0d1517;
    --card: #142124;
    --line: #233539;
    --tint: #111d20;
    --accent: #4fc2b0;
    --accent-ink: #052022;
    --gold-soft: #4a3a12;
    --bad: #ff8a70;
    --shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 10px 30px rgb(0 0 0 / 30%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.005em; }
:lang(zh) h1, :lang(ja) h1, :lang(zh) h2, :lang(ja) h2 { font-weight: 700; letter-spacing: 0; line-height: 1.25; }
:lang(zh) h1, :lang(ja) h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0 0 1em; }
ul { padding-inline-start: 1.2em; }
button { font: inherit; color: inherit; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { inset-block-start: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon.sm { width: 18px; height: 18px; }
.badge-icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.kicker { font-size: .92rem; font-weight: 650; color: var(--accent); margin-block-end: .7em; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.muted { color: var(--ink-2); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-block-end: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.top nav > a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: .95rem; }
.top nav > a:hover, .top nav > a[aria-current] { color: var(--ink); background: var(--tint); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 999px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.langs summary .icon { width: 18px; height: 18px; }
.langs summary:hover { background: var(--tint); color: var(--ink); }
.langs summary::-webkit-details-marker { display: none; }
.langs div { position: absolute; inset-inline-end: 0; margin-block-start: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); min-width: 170px; z-index: 6; }
.langs a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.langs a:hover, .langs a[aria-current] { background: var(--tint); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper);
  padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(0 0 0 / 15%); }
.get { display: grid; justify-items: start; gap: 10px; margin-block: 14px 4px; }
.get.center { justify-items: center; }
.button.store { padding: 15px 26px; font-size: 1.05rem; box-shadow: 0 10px 24px -10px rgb(15 107 107 / 55%); }
.price-note { margin: 0; color: var(--ink-2); font-size: .95rem; }
.text-link.quiet { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink-2); }
.text-link { font-weight: 600; text-decoration: none; }

/* Reveal on scroll (only when the script runs) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2n) { transition-delay: .08s; }
.bento .reveal:nth-child(3n) { transition-delay: .16s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 64px 40px; }
.glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--teal) 28%, transparent), transparent 70%),
              radial-gradient(closest-side at 70% 60%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 70%);
  filter: blur(20px); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-8%, 6%) rotate(8deg) scale(1.08); } }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--teal); position: relative; white-space: nowrap; }
:lang(zh) .hero h1 em, :lang(ja) .hero h1 em { font-style: normal; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 0; bottom: .02em; height: .14em; background: var(--gold); border-radius: 4px; z-index: -1;
  transform: scaleX(0); transform-origin: left; animation: underline 1s .5s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes underline { to { transform: scaleX(1); } }
@media (prefers-color-scheme: dark) { .hero h1 em { color: var(--accent); } }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.hero-shot { position: relative; display: flex; justify-content: center; padding-block: 20px; }
.phone { width: min(320px, 78vw); border-radius: 46px; border: 10px solid #111516; background: #111516;
  box-shadow: 0 40px 70px -20px rgb(20 40 40 / 40%), 0 0 0 1px rgb(255 255 255 / 6%); }
.hero-shot .phone { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-.6deg); } }

.float { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--card); color: var(--ink);
  border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.float b { font-variant-numeric: tabular-nums; }
.toast { inset-block-start: 22%; inset-inline-start: -4%; animation: toast 6s ease-in-out infinite; }
.toast b { color: var(--bad); }
@keyframes toast { 0%, 12% { opacity: 0; transform: translateY(14px) scale(.96); } 20%, 60% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(-10px); } }
.pace { inset-block-start: 48%; inset-inline-end: -6%; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 16px; }
.pace small { color: var(--ink-2); font-weight: 500; }
.pace .num { position: relative; display: block; font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; height: 1.3em; overflow: hidden; min-width: 5.5ch; }
.pace .from, .pace .to { display: block; animation: swap 6s ease-in-out infinite; }
@keyframes swap { 0%, 28% { transform: translateY(0); } 36%, 88% { transform: translateY(-100%); } 96%, 100% { transform: translateY(0); } }
.funded { inset-block-end: 12%; inset-inline-start: 0; color: var(--teal); animation: pop 6s ease-in-out infinite; }
@media (prefers-color-scheme: dark) { .funded { color: var(--accent); } }
@keyframes pop { 0%, 40% { opacity: 0; transform: scale(.85); } 48%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Currency ticker */
.currencies { padding-block: 56px 28px; border-block: 1px solid var(--line); background: var(--card); overflow: hidden; }
.cur-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px 48px; align-items: end; margin-block-end: 28px; }
.cur-head h2 { margin: 0; }
.cur-head p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.ticker { display: flex; width: max-content; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 7px; animation: ticker 45s linear infinite; }
.ticker li { display: flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-family: var(--mono); font-size: .95rem; color: var(--ink-2); }
.ticker li b { font-family: var(--sans); font-size: 1.15rem; color: var(--ink); }
@keyframes ticker { to { transform: translateX(-100%); } }
[dir="rtl"] .ticker ul { animation-direction: reverse; }

/* Sections */
.section { padding-block: 96px; }
.tint { background: var(--tint); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split-shot { display: flex; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--accent); margin-block-start: 4px; }
.fine-note { font-size: .85rem; color: var(--ink-2); }

/* Demo */
.demo { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.demo-card { background: var(--card); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 18px; }
.demo-env { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.demo-cur select { font: inherit; font-size: .9rem; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.demo-label { margin: 0; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.demo-amount { margin: 0; font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 760; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.demo-amount.is-over { color: var(--bad); font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.demo-amount.tick { animation: tick .35s ease; }
@keyframes tick { 40% { transform: scale(1.04); } }
.demo-meter { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--ink-2) 18%, transparent); margin-block: 14px 10px; overflow: hidden; }
.demo-meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform .5s cubic-bezier(.2,.7,.2,1), background .3s; }
[dir="rtl"] .demo-meter span { transform-origin: right; }
.demo-meter span.is-over { background: var(--bad); }
.demo-detail { margin: 0 0 4px; font-size: .92rem; }
.demo-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 18px 10px; }
.demo-buttons button { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600; font-size: .9rem; transition: transform .15s, background .15s; }
.demo-buttons button small { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.demo-buttons button:hover:not(:disabled) { background: var(--tint); transform: translateY(-2px); }
.demo-buttons button:active:not(:disabled) { transform: scale(.97); }
.demo-buttons button:disabled { opacity: .45; cursor: default; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-actions button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; border: 1px solid transparent; }
.demo-actions .primary { background: var(--ink); color: var(--paper); }
.demo-actions .ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.demo-msg { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--tint); font-size: .92rem; min-height: 3.2em; }
.demo-msg.flash { animation: flash .6s ease; }
@keyframes flash { from { background: var(--gold-soft); } }
.demo-watch { display: grid; justify-items: center; gap: 10px; }
.demo-watch p { margin: 0; color: var(--ink-2); font-size: .85rem; font-weight: 600; text-align: center; max-width: 10em; }
.watch-face { width: 128px; height: 156px; border-radius: 38px; background: #000; border: 6px solid #2b3032; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; color: #fff; box-shadow: var(--shadow); }
.watch-time { font-size: 2rem; font-weight: 650; letter-spacing: -0.02em; }
.watch-comp { display: grid; justify-items: center; font-size: .7rem; color: #9fe0d4; line-height: 1.3; }
.watch-comp b { color: var(--gold); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* Not sure yet story */
.sort-story { position: relative; display: grid; gap: 16px; max-width: 420px; justify-self: center; width: 100%; }
.bank-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow);
  font-family: var(--mono); font-size: .85rem; color: var(--ink-2); animation: arrive 8s ease-in-out infinite; }
.bank-line b { color: var(--ink); }
@keyframes arrive { 0% { opacity: 0; transform: translateY(-16px); } 8%, 100% { opacity: 1; transform: none; } }
.sort-card { position: relative; height: 64px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.slot { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding-inline: 18px; font-weight: 650; }
.slot.unsure { color: #8a5a00; background: var(--gold-soft); animation: unsure 8s ease-in-out infinite; }
@media (prefers-color-scheme: dark) { .slot.unsure { color: var(--gold); } }
.slot.sorted { color: var(--accent); animation: sorted 8s ease-in-out infinite; }
@keyframes unsure { 0%, 10% { opacity: 0; } 16%, 55% { opacity: 1; transform: none; } 62%, 100% { opacity: 0; transform: translateY(-100%); } }
@keyframes sorted { 0%, 58% { opacity: 0; transform: translateY(100%); } 66%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.sort-tag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; }
.count { position: relative; display: inline-block; height: 1.3em; overflow: hidden; min-width: 1.4em; text-align: center; border-radius: 99px; background: var(--ink); color: var(--paper); }
.count i { display: block; font-style: normal; animation: count 8s ease-in-out infinite; }
@keyframes count { 0%, 60% { transform: translateY(0); } 66%, 94% { transform: translateY(-100%); } 100% { transform: translateY(0); } }

/* Bento */
.bento { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile.wide { grid-column: span 2; }
.tile-icon { color: var(--accent); margin-block-end: 14px; }
.tile p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.art { margin-block-start: auto; padding-block-start: 20px; }
.why .bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink-2) 18%, transparent); overflow: hidden; }
.why .bar span { display: block; height: 100%; width: 67%; background: var(--accent); border-radius: inherit; transform-origin: left; animation: grow 5s ease-in-out infinite; }
@keyframes grow { 0% { transform: scaleX(0); } 40%, 90% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.why p { display: flex; gap: 10px; align-items: center; margin-block-start: 12px; font-size: .88rem; color: var(--ink); }
.why .q { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); font-weight: 700; font-size: .8rem; }
.runway { list-style: none; padding: 20px 0 0; display: grid; gap: 10px; }
.runway li { display: grid; grid-template-columns: minmax(5em, max-content) 1fr max-content; gap: 10px; align-items: center; font-size: .85rem; }
.runway b { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--gold))); width: var(--w); transform-origin: left; animation: drain 6s ease-in-out infinite; }
.runway em { white-space: nowrap; font-style: normal; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes drain { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .2; } }
.match { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.match .col { display: grid; gap: 6px; }
.match small { color: var(--ink-2); font-size: .78rem; font-weight: 600; }
.match i { height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--ink-2) 22%, transparent); }
.match .st i { animation: matchrow 6s ease-in-out infinite; }
.match .st i:nth-of-type(2) { animation-delay: .25s; }
.match .st i:nth-of-type(3) { animation-delay: .5s; }
.match .st i.new { animation-name: newrow; animation-delay: .75s; }
@keyframes matchrow { 0%, 20% { background: color-mix(in srgb, var(--ink-2) 22%, transparent); } 35%, 85% { background: color-mix(in srgb, var(--accent) 55%, transparent); } }
@keyframes newrow { 0%, 20% { background: color-mix(in srgb, var(--ink-2) 22%, transparent); } 35%, 85% { background: var(--gold); } }
.match { padding-block-end: 26px; }
.match .ok { position: absolute; inset-inline-end: 0; inset-block-end: 0; display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 650; color: var(--accent); animation: okfade 6s ease-in-out infinite; }
@keyframes okfade { 0%, 40% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
.search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.search .typed { color: var(--ink); overflow: hidden; white-space: nowrap; width: 0; animation: type 5s steps(var(--n)) infinite; }
@keyframes type { 0%, 10% { width: 0; } 50%, 90% { width: calc(var(--n) * 1ch); } 100% { width: 0; } }
.search .caret { width: 2px; height: 1.1em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.backups { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.backups i { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--accent) 20%, transparent); animation: day 7s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes day { 0%, 10% { background: color-mix(in srgb, var(--accent) 20%, transparent); } 20%, 80% { background: var(--accent); } }

/* Platforms */
.center-head { text-align: center; max-width: 42em; margin: 0 auto 36px; }
.center-head p { color: var(--ink-2); font-size: 1.1rem; }
.pills { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pills li { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
/* Mac in front, iPad leaning in from the side */
.devices { position: relative; width: min(980px, 100%); margin-inline: auto; padding-block-end: 6%; perspective: 1400px; }
.mac { width: 100%; border-radius: 16px; border: 10px solid #111516; border-block-end-width: 18px; background: #111516;
  box-shadow: 0 40px 80px -24px rgb(20 40 40 / 35%); }
.tablet { position: absolute; inset-inline-start: -3%; inset-block-end: 0; width: 26%; border-radius: 22px; border: 8px solid #111516;
  background: #111516; box-shadow: 0 30px 60px -18px rgb(20 40 40 / 45%); }
.js .devices.reveal .mac { transform: rotateX(12deg) scale(.95); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.js .devices.reveal .tablet { transform: translateY(40px) rotate(-3deg); opacity: 0; transition: transform 1.2s .25s cubic-bezier(.2,.7,.2,1), opacity .8s .25s; }
.js .devices.reveal.in .mac { transform: none; }
.js .devices.reveal.in .tablet { transform: rotate(-3deg); opacity: 1; }

/* Privacy band */
.dark { background: radial-gradient(120% 140% at 0% 0%, #137b74, var(--teal-deep) 60%, #082a37); color: #eef7f5; }
.dark .kicker { color: var(--gold); }
.dark .trio { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dark .trio li { background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 10%); border-radius: var(--radius); padding: 24px; }
.dark .trio p { color: rgb(238 247 245 / 80%); margin: 0; }
.dark .tile-icon { color: var(--gold); }
.dark .text-link { color: var(--gold); }

.cta .cta-icon { margin: 0 auto 20px; border-radius: 22px; box-shadow: var(--shadow); animation: bob 7s ease-in-out infinite; }
.cta p { color: var(--ink-2); font-size: 1.1rem; }

/* Prose pages */
.prose { padding-block: 56px 80px; }
.prose h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.prose h2 { font-size: 1.45rem; margin-block-start: 2em; }
.prose li { margin-block-end: .5em; }
.prose li::marker { color: var(--accent); }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-block: 28px 8px; }
.summary h2 { margin-block-start: 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-block-end: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--ink-2); }
.notfound { min-height: 50vh; }

/* Footer */
.foot { border-block-start: 1px solid var(--line); padding-block: 40px; color: var(--ink-2); font-size: .95rem; }
.foot-inner { display: grid; gap: 8px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.foot-brand img { border-radius: 7px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--ink-2); }
.foot .fine { font-size: .8rem; margin-block-start: 8px; }

/* Smaller screens */
@media (max-width: 960px) {
  .hero-inner, .split, .cur-head { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .split-shot { order: 2; }
  .bento { grid-template-columns: 1fr 1fr; }
  .dark .trio { grid-template-columns: 1fr; }
  .toast { inset-inline-start: 2%; }
  .pace { inset-inline-end: 2%; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .demo { grid-template-columns: 1fr; }
  .demo-watch { grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
  .demo-watch p { text-align: start; }
  .top nav > a { padding: 6px 7px; font-size: .9rem; }
  .top-inner { padding-block: 6px; }
  .langs summary { padding: 6px 7px; }
  .langs summary > span:not(.visually-hidden) { display: none; }
  .mac { border-width: 5px; border-block-end-width: 9px; border-radius: 10px; }
  .tablet { border-width: 4px; border-radius: 12px; inset-inline-start: 0; width: 30%; }
  .phone { border-radius: 40px; }
}

/* Reduced motion: everything still, nothing hidden */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .devices.reveal .mac, .js .devices.reveal .tablet { opacity: 1; transform: none; }
  .hero h1 em::after { transform: none; }
  .toast, .funded, .slot.sorted, .match .ok { opacity: 1; }
  .slot.sorted { display: none; }
  .search .typed { width: auto; }
}

/* Learn: tutorial index and lesson pages */
.eyebrow { font-size: .9rem; font-weight: 600; color: var(--accent); margin-block-end: .4em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.steps { list-style: none; padding: 0; display: grid; gap: 12px; margin-block: 20px 8px; }
.steps a { display: grid; gap: 4px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.steps a:hover { border-color: var(--accent); }
.step-no { font-size: .85rem; font-weight: 600; color: var(--accent); }
.step-title { font-weight: 700; font-size: 1.1rem; }
.step-sum { color: var(--ink-2); }
.lesson ol li::marker { font-weight: 700; }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 40px 0; }
.lesson-nav a { display: grid; gap: 2px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.lesson-nav a:hover { border-color: var(--accent); }
.lesson-nav .next { text-align: end; grid-column: 2; }
.lesson-nav .muted { font-size: .85rem; font-weight: 500; }
.all-steps { margin-block: 16px 0; }
.disclaimer { font-size: .85rem; color: var(--ink-2); margin-block-start: 40px; padding-block-start: 16px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .lesson-nav { grid-template-columns: 1fr; } .lesson-nav .next { grid-column: 1; } }
.shots { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-block: 24px 8px; }
.shots figure { margin: 0; flex: 0 1 280px; }
.shots img { width: 100%; height: auto; display: block; border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 14px 34px -18px rgb(0 0 0 / 35%); background: var(--card); }
