/* Nunito (variable 400-900, latin subset) is self-hosted: no third-party font requests from a kids' site. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/nunito-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Tumbly site styles. Tokens first (see BRAND.md), then layout, then components. */
:root {
  --coral: #ff7a59;
  --coral-ink: #b8401f; /* coral text on light: AA */
  --teal: #2bb8a6;
  --teal-ink: #0d7a6c;
  --grape: #7c6cf2;
  --sun: #ffc845;
  --ink: #1b2340;
  --ink-2: #4a5270;
  --cream: #fff7ec;
  --paper: #ffffff;
  --line: #f0e3d0;
  --bg: var(--cream);
  --card: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-2);
  --shadow: 0 10px 30px rgba(27, 35, 64, .08);
  --radius: 22px;
  --wrap: 1120px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11162b; --card: #1a2140; --text: #fff7ec; --muted: #b7bdd6; --line: #2a3360;
    --coral-ink: #ff9b80; --teal-ink: #5fd8c7; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11162b; --card: #1a2140; --text: #fff7ec; --muted: #b7bdd6; --line: #2a3360;
  --coral-ink: #ff9b80; --teal-ink: #5fd8c7; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--font); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 900; }
h1 { font-size: clamp(38px, 6.4vw, 68px); }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 26px; letter-spacing: -.03em; }
.brand svg { width: 40px; height: 40px; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 12px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #1b2340; background: var(--coral); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: color-mix(in srgb, var(--coral) 14%, transparent); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 800 18px/1 var(--font); text-decoration: none; padding: 16px 24px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; min-height: 52px; }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--coral); color: #1b2340; box-shadow: 0 5px 0 #d9583a; }
.btn-primary:active { box-shadow: 0 3px 0 #d9583a; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn-sm { padding: 10px 16px; min-height: 42px; font-size: 16px; }
.btn-xl { font-size: 22px; padding: 20px 32px; min-height: 64px; }

/* hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero .eyebrow { display: inline-block; font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 14px; }
.hero p.lede { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: 34ch; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 36px; } }

/* island (sub-app picker on the home page) */
.island { position: relative; aspect-ratio: 1 / .86; width: 100%; }
.island svg.sea { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot { position: absolute; width: 19%; transform: translate(-50%, -50%); text-align: center; text-decoration: none; color: var(--ink); }
.spot .bubble { display: grid; place-items: center; aspect-ratio: 1; border-radius: 30%; font-size: clamp(30px, 5vw, 50px); background: #fff; box-shadow: 0 8px 0 rgba(27, 35, 64, .12); transition: transform .15s ease; }
.spot:hover .bubble { transform: translateY(-4px) rotate(-3deg); }
.spot .name { display: inline-block; white-space: nowrap; margin-top: 8px; font-weight: 900; font-size: clamp(13px, 1.6vw, 16px); background: #fff; padding: 2px 10px; border-radius: 999px; }
.spot .tag { display: block; white-space: nowrap; margin-top: 2px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #1b2340; }
.spot.live .bubble { background: var(--coral); box-shadow: 0 8px 0 #d9583a; animation: bob 3s ease-in-out infinite; }
.spot.soon { opacity: .9; }
.spot.soon .bubble { filter: saturate(.7); }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .spot.live .bubble { animation: none; } html { scroll-behavior: auto; } }

/* sections */
section.band { padding: 72px 0; }
section.band.alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 20px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .icon { width: 56px; height: 56px; display: grid; place-items: center; font-size: 30px; border-radius: 18px; margin-bottom: 14px; background: color-mix(in srgb, var(--sun) 35%, transparent); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #08302b; font-weight: 900; margin-bottom: 10px; }

/* product cards */
.product { display: flex; flex-direction: column; gap: 10px; }
.product .pill { align-self: flex-start; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--line); color: var(--text); }
.product.live .pill { background: var(--teal); color: #08302b; }
.product .emoji { font-size: 40px; }

/* pricing */
.price { display: flex; flex-direction: column; gap: 6px; }
.price .amount { font-size: 40px; font-weight: 900; letter-spacing: -.02em; }
.price .amount small { font-size: 18px; font-weight: 700; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 12px 0 0; }
.price li { padding: 6px 0 6px 30px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #08302b; font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.price.featured { border: 3px solid var(--coral); }

/* faq */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--coral-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* story demo (roadstory) */
.demo { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff7ec; box-shadow: var(--shadow); }
.demo .art { position: relative; aspect-ratio: 16 / 9; background: #2a3360; }
.demo .art img { width: 100%; height: 100%; object-fit: cover; }
.demo .panel { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.demo .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.demo .chip { border: 0; font: 800 15px/1 var(--font); padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff7ec; cursor: pointer; }
.demo .chip[aria-pressed="true"] { background: var(--sun); color: #1b2340; }
.demo .caption { font-size: 19px; font-weight: 700; min-height: 3.2em; margin: 0; }
.demo audio { width: 100%; }


.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 12px; min-height: 52px; }
.store-badge small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store-badge b { display: block; font-size: 18px; line-height: 1.1; }
.store-badge svg { width: 26px; height: 26px; }

/* notify form */
.notify { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.notify input { flex: 1 1 220px; min-height: 52px; font: 600 18px var(--font); padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--text); }
.notify input:focus { border-color: var(--grape); outline: none; }
.notify .msg { flex-basis: 100%; font-weight: 700; min-height: 1.6em; margin: 0; }

/* prose (legal, support) */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-weight: 700; }
.callout { background: color-mix(in srgb, var(--teal) 14%, var(--card)); border-radius: 18px; padding: 18px 22px; margin: 20px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 800; background: color-mix(in srgb, var(--sun) 16%, var(--card)); }
.prose .toc { columns: 2 220px; padding-left: 1.2em; }
.prose .toc li { break-inside: avoid; }

/* tesla steps */
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 54px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--coral); color: #1b2340; font-weight: 900; display: grid; place-items: center; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 16px; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 24px; }
.site-foot .fh { margin: 0 0 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: var(--text); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
@media (max-width: 720px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

/* /t: back-seat keypad (Tesla rear screen ~1280x800, tablets) */
body.tpage { background: radial-gradient(circle at 30% 20%, #2a3a6a, #11162b); color: #fff7ec; min-height: 100vh; }
.t-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; padding: 3vh 16px; text-align: center; }
.t-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 30px; }
.t-brand svg { width: 48px; height: 48px; }
.t-title { font-size: clamp(26px, 4vw, 44px); margin: 0; }
.t-code { font-size: clamp(54px, 10vw, 110px); font-weight: 900; letter-spacing: .12em; color: var(--sun); line-height: 1; }
.t-pad { display: grid; grid-template-columns: repeat(3, clamp(76px, 11vw, 120px)); gap: clamp(10px, 1.6vw, 18px); }
.t-pad button { height: clamp(64px, 10vh, 104px); border: 0; border-radius: 22px; background: rgba(255, 255, 255, .12); color: #fff7ec; font: 900 clamp(28px, 4.5vw, 46px) var(--font); cursor: pointer; }
.t-pad button:active { background: var(--coral); color: #1b2340; }
.t-pad button:last-child { background: var(--teal); color: #08302b; }
.t-help { color: #b7bdd6; font-size: 18px; margin: 0; }
.t-help a { color: #fff7ec; }
