/* Crawl Walk Run Games — site styles
   Studio palette comes from the badge (night navy, sunrise orange, parchment, dusk blue).
   App pages swap in their own palette through the theme-* body classes. */

:root {
  --navy: #14202e;
  --navy-2: #1d2d40;
  --orange: #e8872b;
  --orange-text: #b35f12;
  --parchment: #f6eedf;
  --parchment-2: #efe3cc;
  --dusk: #5b8db8;
  --dusk-text: #36668f;
  --ink: #1f2a37;
  --muted: #5a6473;
  --line: #e4dccb;
  --white: #fff;
  --bg: #fffdf8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(20, 32, 46, .10);
  --shadow-lg: 0 20px 50px rgba(20, 32, 46, .18);
  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent: var(--orange);
  --accent-text: var(--orange-text);
  --link: var(--dusk-text);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.eyebrow { font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .6rem; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.28rem); color: var(--muted); max-width: 40em; }
.center .lead { margin-inline: auto; }
.fine { font-size: .92rem; color: var(--muted); }
.text-link { font-weight: 800; }

/* ---------- Buttons & tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 800 1.05rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #1b1206; box-shadow: 0 5px 0 #b8631a; }
.btn-primary:hover { color: #1b1206; background: #f09a45; box-shadow: 0 7px 0 #b8631a; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #b8631a; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { color: inherit; background: rgba(255, 255, 255, .1); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.center-row { justify-content: center; }

.tag { display: inline-block; font: 800 .78rem/1 var(--font-body); letter-spacing: .04em; padding: .45em .8em; border-radius: 999px; vertical-align: middle; }
.tag-soon { background: #fde7cf; color: #8a4a0c; }
.tag-live { background: #dbeafe; color: #1a4f99; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 16px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand img { width: 44px; height: 44px; }
.brand-name { font: 800 1.25rem/1 var(--font-display); color: var(--orange); letter-spacing: .01em; }
.brand-name .c-walk { color: #efe4cf; }
.brand-name .c-run { color: #8fb8dd; }
.brand-name small { display: block; font: 700 .68rem/1.2 var(--font-body); letter-spacing: .38em; color: #c9c1b0; margin-top: 3px; }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); width: 48px; height: 48px; cursor: pointer; border-radius: 10px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 26px; height: 3px; background: currentColor; border-radius: 3px; position: relative; margin: 0 auto; transition: transform .2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a { display: block; padding: .6em 1em; border-radius: 999px; color: #e9e3d6; text-decoration: none; font-weight: 800; }
.site-nav a:hover { background: var(--navy-2); color: var(--white); }
.site-nav a[aria-current="page"] { background: var(--orange); color: #1b1206; }

@media (max-width: 760px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 8px 16px 20px; border-top: 1px solid var(--navy-2); display: none; }
  .js .nav-open .site-nav { display: block; }
  .site-nav ul { flex-wrap: wrap; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: .9em 1em; font-size: 1.1rem; }
  .brand-name { font-size: 1.1rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-cream { background: var(--parchment); }
.section-navy { background: var(--navy); color: #eee7da; }
.section-navy .eyebrow { color: #f5a55a; }
.section-navy p, .section-navy .section-head p:last-child { color: #c8cfd9; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head p:last-child { color: var(--muted); font-size: 1.12rem; margin-bottom: 0; }

/* ---------- Studio hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-studio {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(232, 135, 43, .28), transparent 55%),
    radial-gradient(ellipse at 90% 70%, rgba(91, 141, 184, .30), transparent 55%),
    var(--navy);
  color: var(--white);
  padding-block: clamp(56px, 9vw, 120px);
}
.hero-studio .lead { color: #cfd6e0; }
.hero-studio .eyebrow { color: #f5a55a; }
.hero-compact { padding-block: clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-studio .hero-art img { width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 20px 45px rgba(0, 0, 0, .5)); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .lead { margin-inline: auto; }
  .hero-grid .btn-row, .hero-grid .store-buttons { justify-content: center; }
  .hero-studio .hero-art { order: -1; }
  .hero-studio .hero-art img { max-width: 300px; }
}

/* ---------- Crawl / Walk / Run steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { background: var(--white); border-radius: var(--radius); padding: 32px 28px 28px; box-shadow: var(--shadow); border-top: 8px solid var(--step-color); position: relative; }
.step-crawl { --step-color: var(--orange); }
.step-walk { --step-color: #c9b58f; }
.step-run { --step-color: var(--dusk); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--step-color); color: var(--navy); font: 800 1.3rem/1 var(--font-display); margin-bottom: 12px; }
.step h3 { font-size: 1.7rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }
.step strong { color: var(--ink); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- App cards ---------- */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.app-card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover, .app-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--app-accent); }
.app-card.is-live { grid-column: 1 / -1; flex-direction: row; }
.app-card.is-live .app-card-media { width: 44%; height: auto; min-height: 340px; flex: none; padding-top: 36px; }
.app-card.is-live .app-card-body { justify-content: center; padding: 36px 40px; }
.app-card.is-live .app-card-head h3 { font-size: 2rem; }
.app-card.is-live .app-card-shot { width: 230px; }
.app-card.is-live .app-card-cta { margin-top: 8px; }
.app-card.is-live .app-card-body p { font-size: 1.1rem; }
.app-card-media { background: linear-gradient(180deg, #7cc8f6, #bfe6fb); padding: 28px 28px 0; display: flex; justify-content: center; height: 290px; overflow: hidden; }
.app-card-shot { width: 210px; border-radius: 22px 22px 0 0; border: 6px solid var(--navy); border-bottom: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); object-fit: cover; object-position: top; }
.app-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-card-body p { color: var(--muted); margin: 0; }
.app-card-head { display: flex; gap: 14px; align-items: center; }
.app-card-head h3 { margin: 0; font-size: 1.6rem; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.app-meta { font-weight: 700; font-size: .95rem; color: var(--muted); margin: 0; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.app-card:has(.card-link:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.app-card .tag { align-self: flex-start; }
.app-card-cta { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--app-accent); }
.app-card.is-soon .app-card-body { justify-content: flex-start; }
@media (max-width: 640px) { .app-grid { grid-template-columns: 1fr; } .app-card.is-live { flex-direction: column; } .app-card.is-live .app-card-media { width: auto; min-height: 0; height: 260px; } .app-card.is-live .app-card-body { padding: 24px 26px 28px; } }

/* ---------- Promise grid ---------- */
.promise-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise-grid li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 26px; }
.promise-grid h3 { font-size: 1.25rem; margin: .4em 0 .3em; color: var(--white); }
.promise-grid p { margin: 0; }
.promise-icon { font-size: 2rem; line-height: 1; }
@media (max-width: 860px) { .promise-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promise-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band > div:first-child { max-width: 640px; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; color: var(--muted); }
.section-navy .cta-band p { color: #c8cfd9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 .8rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px;
  background: #0b0b0c; color: #fff; border-radius: 12px; text-decoration: none; border: 1.5px solid #3a3a3c;
  font: 700 1.1rem/1.05 var(--font-body);
}
a.store-btn:hover { color: #fff; transform: translateY(-2px); }
.store-btn small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .02em; opacity: .85; }
.store-icon { width: 26px; height: 26px; }
.store-btn.is-soon { background: rgba(255, 255, 255, .75); color: var(--ink); border: 2px dashed rgba(20, 32, 46, .35); cursor: default; }
.store-btn.is-soon .store-icon { filter: grayscale(.2); }
.on-dark .store-btn.is-soon { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c8cfd9; padding-top: 64px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.25fr 1.15fr; gap: 32px; }
.footer-brand img { width: 96px; height: 96px; margin-bottom: 14px; }
.footer-brand p { max-width: 300px; }
.footer-heading { font: 800 .85rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #f5a55a; margin: 8px 0 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #eee7da; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--navy-2); margin-top: 48px; padding-block: 22px; font-size: .82rem; color: #8e99a8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split, .mode-grid + .split { margin-top: clamp(48px, 7vw, 88px); }
.split-reverse .split-media { order: -1; }
.split-media { display: flex; justify-content: center; }
.split-copy h2 { margin-bottom: .45em; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 38px; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--check-bg, #4caf50); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split-reverse .split-media { order: 0; } }
.about-badge { max-width: 380px; filter: drop-shadow(0 18px 40px rgba(20, 32, 46, .35)); }
.value-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.value-list li { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.value-list p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .value-list { grid-template-columns: 1fr; } }

/* ============================================================
   Spelling Trail theme
   ============================================================ */
.theme-spellingtrail {
  --accent: #f28c1b;
  --accent-text: #b85e00;
  --link: #1a5fb4;
  --st-blue: #1f6fd1;
  --st-sky: #d8f0fd;
  --st-purple: #8a3fd1;
  --st-green: #43a832;
  --st-red: #e53935;
  --st-yellow: #ffc21a;
  background: #fbfdff;
}
.theme-spellingtrail .eyebrow { color: var(--st-blue); }
.theme-spellingtrail h2 { color: #17407a; }

.hero-st {
  background: url("../img/spellingtrail/bg-wide.jpg") center bottom / cover no-repeat, #8fd3fa;
  padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 120px);
}
.hero-st .hero-copy { background: rgba(255, 255, 255, .82); backdrop-filter: blur(6px); border-radius: 28px; padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); }
.hero-st .lead { color: #33475e; margin-top: 1rem; }
.crumbs { font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: inherit; }
.st-title { margin: 0; line-height: 0; }
.st-title img { width: min(420px, 100%); margin-inline: auto 0; margin: -10px 0 -18px -12px; }
.st-ribbon { width: min(400px, 92%); margin-top: -4px; }
.hero-st .hero-art { position: relative; display: flex; justify-content: center; }
.phone-frame { width: min(300px, 78vw); border-radius: 38px; padding: 10px; background: #13233a; box-shadow: 0 30px 60px rgba(10, 40, 80, .35), inset 0 0 0 2px #2c4466; }
.phone-frame img { border-radius: 29px; width: 100%; }
.hero-st .phone-frame { transform: rotate(3deg); }
.float-sticker { position: absolute; width: 110px; border-radius: 50%; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); background: #fff; animation: bob 5s ease-in-out infinite; }
.float-sticker.s1 { left: 2%; top: 12%; }
.float-sticker.s2 { right: 0; bottom: 8%; animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@media (max-width: 860px) {
  .st-title img { margin: -10px auto -18px; }
  .st-ribbon { margin-inline: auto; }
  .float-sticker { width: 80px; }
}

.st-section { background: #fbfdff; }
.st-tint { background: linear-gradient(180deg, #e7f5fe, #f4fbff); }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-grid li { background: var(--white); border-radius: 24px; padding: 30px 28px; box-shadow: 0 6px 0 #d3e6f5, var(--shadow); text-align: center; }
.how-grid p { margin: 0; color: var(--muted); }
.how-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--st-sky); margin-bottom: 14px; }
.how-icon img { width: 54px; height: 54px; }
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }

.mode-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.mode-card { position: relative; background: var(--white); border-radius: 24px; padding: 26px 22px 24px; box-shadow: var(--shadow); border-bottom: 8px solid var(--mode); }
.mode-card h3 { color: var(--mode-text); font-size: 1.55rem; margin: .2em 0 .25em; }
.mode-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.mode-icon { display: block; width: 64px; height: 64px; }
.mode-stage { position: absolute; top: 18px; right: 18px; font: 800 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: .45em .7em; border-radius: 999px; background: var(--mode-bg); color: var(--mode-text); }
.mode-1 { --mode: #43a832; --mode-bg: #e3f5df; --mode-text: #2a7a1d; }
.mode-2 { --mode: #f2b21b; --mode-bg: #fff2cf; --mode-text: #8a5e00; }
.mode-3 { --mode: #1f8fe0; --mode-bg: #dcefff; --mode-text: #145f9c; }
.mode-4 { --mode: #8a3fd1; --mode-bg: #efe2fb; --mode-text: #6a2aa8; }
@media (max-width: 980px) { .mode-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mode-grid { grid-template-columns: 1fr; } }

.sticker-row, .avatar-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.sticker-row img { width: 84px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.sticker-row img:nth-child(odd) { transform: rotate(-6deg); }
.sticker-row img:nth-child(even) { transform: rotate(5deg); }
.avatar-row { justify-content: center; margin-top: 2rem; }
.avatar-row img { width: 72px; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow); margin-left: -14px; }
.avatar-row img:first-child { margin-left: 0; }
.tablet-shot { border-radius: 22px; border: 10px solid #13233a; box-shadow: var(--shadow-lg); }
.theme-spellingtrail .split-media .phone-frame { width: min(280px, 72vw); }

.st-privacy { background: linear-gradient(160deg, #173a6b, #1f6fd1); color: #fff; }
.st-privacy .eyebrow { color: #ffd65a; }
.st-privacy h2 { color: #fff; }
.st-privacy .section-head p, .st-privacy p { color: #dbe8fb; }
.st-privacy .promise-grid li { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.st-privacy .text-link { color: #ffd65a; }
.st-privacy .center { margin: 32px 0 0; }

.table-wrap { overflow-x: auto; border-radius: 24px; box-shadow: var(--shadow); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 1rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #e5eef6; vertical-align: top; }
.compare thead th { background: #17407a; color: #fff; font: 800 1.1rem/1.25 var(--font-display); }
.compare thead .col-full { background: var(--accent); color: #231400; }
.compare tbody th { font-weight: 800; color: var(--ink); width: 34%; }
.compare td:last-child { background: #fff8ee; font-weight: 700; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.price { font: 800 .95rem/1.4 var(--font-body); }
.yes { color: #2a7a1d; font-weight: 800; font-size: 1.2rem; }
.no { color: #9aa5b1; }

.gallery-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.gallery-tabs button { font: 800 1rem/1 var(--font-body); padding: .8em 1.6em; border-radius: 999px; border: 2px solid #c7dcee; background: #fff; color: #17407a; cursor: pointer; min-height: 48px; }
.gallery-tabs button[aria-selected="true"] { background: var(--st-blue); border-color: var(--st-blue); color: #fff; }
.gallery[hidden] { display: none; }
.no-js .gallery-tabs { display: none; }
.no-js .gallery[hidden] { display: flex !important; margin-top: 32px; }
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 20px; -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: start; text-align: center; }
.gallery-phone figure { width: 220px; }
.gallery-tablet figure { width: min(560px, 82vw); }
.gallery img { border-radius: 18px; box-shadow: var(--shadow); border: 5px solid #13233a; }
.gallery figcaption { font-weight: 700; font-size: .92rem; color: var(--muted); margin-top: 10px; }

.faq details { background: #fff; border-radius: 18px; box-shadow: 0 4px 0 #d3e6f5; margin-bottom: 14px; border: 2px solid #e3eef8; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font: 700 1.15rem/1.35 var(--font-display); color: #17407a; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--st-sky); display: grid; place-items: center; font: 800 1.3rem/1 var(--font-body); color: var(--st-blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; margin: 0; color: #3d4b5c; }

.st-cta { background: linear-gradient(135deg, #8a3fd1, #1f6fd1); color: #fff; }
.st-cta h2 { color: #fff; }
.st-cta .cta-band p { color: #e6ddff; }
.st-cta .store-buttons { margin: 0; }

/* ============================================================
   Coming-soon teasers
   ============================================================ */
.hero-teaser {
  background: var(--teaser-bg, none) center / cover no-repeat, linear-gradient(160deg, #fff3e2, #ffe0bd);
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px);
}
.hero-teaser::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .55); }
.hero-teaser .container { position: relative; background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px); border-radius: 28px; padding-block: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .hero-teaser .container { width: calc(100% - 32px); } }
.theme-clockspark .hero-teaser::before { background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .6), transparent 70%); }
.teaser-logo { margin: 0 auto; line-height: 0; }
.teaser-logo img { width: min(460px, 90%); margin-inline: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .15)); }
.teaser-icon { width: 150px; height: 150px; margin: 12px auto 18px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .18)); }
.teaser-title { color: #8a4a0c; font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 0; }
.teaser-headline { font: 800 clamp(1.4rem, 3vw, 2rem)/1.2 var(--font-display); color: var(--ink); margin: 18px 0 10px; }
.hero-teaser .lead { color: #3b4654; }
.theme-cashspark { --accent-text: #177a45; }
.theme-cashspark .eyebrow, .theme-clockspark .eyebrow { color: var(--accent-text); }
.theme-clockspark { --accent-text: #b35f12; }

/* ============================================================
   Legal pages
   ============================================================ */
.theme-legal { background: var(--bg); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--navy); }
.legal h2 { font-size: 1.45rem; margin: 2.2rem 0 .5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--navy); }
.legal h3 { font-size: 1.15rem; margin: 1.6rem 0 .3rem; }
.legal .meta { color: var(--muted); font-weight: 700; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin: .4rem 0; }
.summary { background: var(--parchment); border-radius: var(--radius); padding: 22px 26px; margin: 1.6rem 0; border-left: 6px solid var(--orange); }
.summary h2 { border: 0; padding: 0; margin-top: 0; }
.summary p:last-child { margin-bottom: 0; }
.legal .policy-list { list-style: none; padding: 0; display: grid; gap: 12px; margin: 0; }
.policy-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.policy-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }

/* Support pages reuse the product page's FAQ cards inside the legal layout. */
.support { --st-blue: #1f6fd1; --st-sky: #d8f0fd; }
.support .faq { margin-top: 1rem; }
.support .faq details ul { margin: 0; padding: 0 24px 20px 44px; color: #3d4b5c; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.contact-form-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); scroll-margin-top: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--font-body); color: var(--ink); background: #fffdf8;
  border: 2px solid #d9d0bd; border-radius: var(--radius-sm); padding: 13px 14px; min-height: 52px;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--dusk); box-shadow: 0 0 0 4px rgba(91, 141, 184, .25); }
.field [aria-invalid="true"] { border-color: #c62828; background: #fff6f6; }
.field-error { color: #b71c1c; font-weight: 700; font-size: .95rem; margin: 6px 0 0; }
.field-hint { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; margin-top: 4px; }
.contact-form .fine { text-align: center; margin: 14px 0 0; }
.notice { border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 22px; }
.notice p:last-child { margin-bottom: 0; }
.notice-error { background: #fdecea; color: #8e1b1b; border: 2px solid #f5c2bd; font-weight: 700; }
.notice-success { background: #e8f5e9; color: #1b5e20; border: 2px solid #b9dfbb; text-align: center; padding: 36px 24px; margin: 0; }
.notice-success h2 { font-size: 1.8rem; }
.contact-aside { display: grid; gap: 20px; }
.aside-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 2px solid var(--line); }
.aside-card h2 { font-size: 1.3rem; }
.aside-card p { margin: 0; overflow-wrap: anywhere; }
.aside-card a { color: var(--link); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 22, .9); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 90vh; max-width: 100%; width: auto; border-radius: 16px; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font: 800 1.6rem/1 var(--font-body); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
