/* Mind Tiles marketing site (index, pricing, faq, legal, 404, delete-account) and the blog
   (functions/blog/render.js adds a few blog-only rules inline).
   Light by default, dark via prefers-color-scheme. Content is visible without JS. */

:root {
  --brand: #1D4ED8;
  --brand-2: #2563EB;
  --brand-light: #93C5FD;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FC;
  --surface: #FFFFFF;
  --surface-2: #EEF3FB;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #DCE3EE;
  --input-border: #64748B;
  --accent-text: #1D4ED8;
  --btn-bg: #1D4ED8;
  --btn-bg-hover: #1E40AF;
  --btn-text: #FFFFFF;
  --focus: #1D4ED8;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
  --shot-shadow: 0 2px 6px rgba(15, 23, 42, .08), 0 18px 40px rgba(29, 78, 216, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1217;
    --bg-alt: #151A21;
    --surface: #1A2029;
    --surface-2: #1F2834;
    --text: #E8ECF2;
    --text-muted: #A9B3C1;
    --border: #2B3441;
    --input-border: #6B7A90;
    --accent-text: #93C5FD;
    --btn-bg: #2563EB;
    --btn-bg-hover: #1D4ED8;
    --btn-text: #FFFFFF;
    --focus: #93C5FD;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shot-shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.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: 16px; top: -100px; z-index: 1000;
  background: var(--btn-bg); color: var(--btn-text); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo-word { display: flex; flex-direction: column; font-weight: 900; font-size: 15px; line-height: 1; letter-spacing: .5px; }
.logo-word span:first-child { color: #1E40AF; }
.logo-word span:last-child { color: #2563EB; }
@media (prefers-color-scheme: dark) { .logo-word span:first-child { color: #60A5FA; } .logo-word span:last-child { color: #93C5FD; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; border-radius: 10px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; text-underline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--bg); } }
.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.nav .logo { margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav-links a:hover { background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--accent-text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { color: var(--text); font-weight: 600; text-decoration: none; padding: 8px 10px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; gap: 8px; }
  .nav-login { display: none; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer;
  }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 8px; }
  .js .nav-links { display: none; flex-direction: column; align-items: stretch; padding: 4px 0 12px; }
  .js .nav-open .nav-links { display: flex; }
  .js .nav-links a { padding: 12px; }
  .nav-links .nav-login-mobile { display: block; }
}
@media (min-width: 861px) { .nav-login-mobile { display: none !important; } }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
@media (max-width: 600px) { .section { padding: 52px 0; } }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-muted); }
.small { font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } .hero { padding: 72px 0 88px; } }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.4em; }
.topic-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.topic-form input {
  flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 0 16px; font: inherit; font-size: 1.05rem;
  color: var(--text); background: var(--surface); border: 2px solid var(--input-border); border-radius: 12px;
}
.topic-form input::placeholder { color: var(--text-muted); opacity: 1; }
.topic-form input:focus-visible { border-color: var(--focus); outline: 3px solid var(--focus); outline-offset: 2px; }
.topic-form .btn { min-height: 52px; flex: 0 0 auto; }
@media (max-width: 480px) { .topic-form .btn { width: 100%; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips a {
  display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 600;
}
.chips a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.chips-label { font-size: .9rem; color: var(--text-muted); margin: 14px 0 0; }
.microcopy { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin: 12px 0 0; color: var(--text); font-weight: 600; font-size: .95rem; }
.hero-next { margin: 6px 0 0; font-size: .92rem; color: var(--text-muted); }
.microcopy li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--brand-2); margin-right: 8px; vertical-align: 1px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.stores-badges { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) { .stores-label { flex: 1 0 100%; } }
.stores-label { font-size: .92rem; color: var(--text-muted); margin-right: 4px; }
/* Both badges at the same visual height (the Play PNG has no built-in padding). */
.stores img, .footer-stores img { height: 40px; width: auto; }

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
.shot img { border-radius: 18px; box-shadow: var(--shot-shadow); border: 1px solid var(--border); background: var(--surface); }
.shot figcaption { margin-top: 12px; font-size: .92rem; color: var(--text-muted); text-align: center; }
.shot-phone { max-width: 300px; margin-left: auto; margin-right: auto; }
.shot-tablet, .shot-hero { max-width: 520px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .shot-hero { max-width: 360px; } }
/* Neutral phone bezel: the same dark frame on both themes, so dark-only and light/dark captures look like one set. */
.device { background: #0B0E14; padding: 7px; border-radius: 30px; box-shadow: var(--shot-shadow); }
.device img { border-radius: 23px !important; border: 0 !important; box-shadow: none !important; background: #0B0E14 !important; }
@media (prefers-color-scheme: dark) { .device { box-shadow: 0 0 0 1px #2B3441, var(--shot-shadow); } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 20px; list-style: none; padding: 0; margin: 36px 0 0; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--btn-bg); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.steps p { color: var(--text-muted); margin: 0; }

/* ---------- Feature rows ---------- */
.feature { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .feature.flip > .feature-media { order: -1; } }
.feature ul.ticks { list-style: none; padding: 0; margin: 1em 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 6px;
  background: var(--btn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.feature-media { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.feature-media.single { grid-template-columns: minmax(0, 1fr); }
.feature-media .shot-phone { max-width: 260px; }
.feature-cta { margin-top: 1.4em; }

/* ---------- Gallery (see what you get) ---------- */
.gallery { display: grid; gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 40px auto 0; max-width: 900px; }
@media (max-width: 699px) {
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72%, 260px); gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding: 4px 16px 12px; margin: 32px -16px 0; scrollbar-width: thin; }
  .gallery .shot { scroll-snap-align: center; }
}
.gallery-hint { display: none; margin: 4px 0 0; font-size: .9rem; color: var(--text-muted); text-align: center; }
@media (max-width: 699px) { .gallery-hint { display: block; } }
.gallery .shot figcaption strong { display: block; color: var(--text); font-size: 1rem; }
.note { margin-top: 28px; font-size: .95rem; color: var(--text-muted); }
.accuracy { max-width: 70ch; margin: 28px auto 0; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: .98rem; }
.accuracy strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--text-muted); margin: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; margin: 36px 0 20px; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.plan.best { border: 2px solid var(--brand-2); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .8rem; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--btn-bg); padding: 4px 10px; border-radius: 999px; }
.plan h3, .plan .plan-name { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.plan-price { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin: 0; }
a.plan-link { color: inherit; text-decoration: none; }
a.plan-link:hover { border-color: var(--accent-text); box-shadow: var(--shadow); }
.platform-line { max-width: 62ch; margin: 0 auto; color: var(--text-muted); }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.plan-sub { color: var(--text-muted); margin: 0; font-size: .95rem; }
.plan .btn { margin-top: auto; }
.plan-spacer { flex: 1; min-height: 12px; }
@media (max-width: 819px) {
  .plans { gap: 18px; margin-top: 28px; }
  .plans .plan { text-align: left; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 14px 18px; }
  .plans .plan h3, .plans .plan .plan-name { flex: 1 0 100%; }
  .plans .plan-price { font-size: 1.7rem; }
  .plans .plan-sub { flex: 1 0 100%; }
  .plans .plan .btn, .plans .plan-spacer { display: none; }
  .plans .plan-badge { left: auto; right: 14px; transform: none; }
}
.plans-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 26px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--btn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.fineprint { font-size: .9rem; color: var(--text-muted); max-width: 70ch; }
.fineprint p { margin-bottom: .6em; }

/* ---------- FAQ (details) ---------- */
.faq-list { max-width: 820px; margin: 28px auto 0; }
.faq-list details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; font-weight: 600; color: var(--accent-text); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list .answer { padding: 0 18px 16px; color: var(--text-muted); }
.faq-list .answer p:last-child, .faq-list .answer ul:last-child, .faq-list .answer ol:last-child { margin-bottom: 0; }
.faq-list .answer li { margin-bottom: 4px; }
.faq-group { scroll-margin-top: 84px; }
.faq-group h2 { font-size: 1.4rem; margin: 44px auto 0; max-width: 820px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 24px 0 0; }
.jump a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; background: var(--surface); }
.jump a:hover { border-color: var(--accent-text); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--btn-bg); color: #fff; border-radius: 24px; padding: 40px 24px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #E6EEFF; }
.cta-band .topic-form { margin: 18px auto 0; }
.cta-band .topic-form input { border-color: transparent; background: #fff; color: #0F172A; }
.cta-band .topic-form input::placeholder { color: #475569; }
.cta-band .topic-form input:focus-visible, .cta-band .btn:focus-visible { outline-color: #fff; }
.cta-band .btn-primary { background: #fff; color: #1D4ED8; }
.cta-band .btn-primary:hover { background: #E6EEFF; }
.cta-band a:not(.btn) { color: #fff; }
.cta-inline { margin: 40px auto 0; max-width: 820px; }
@media (prefers-color-scheme: dark) { .cta-band { background: #1E3A8A; } }

/* ---------- Platform row ---------- */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.platforms li { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }

/* ---------- Prose (legal, delete-account, 404) ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 48px 16px 72px; }
.prose h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
/* Keyboard-scrollable table region with a right-edge fade while more columns are hidden. */
.table-scroll { overflow-x: auto; margin: 1em 0 1.5em; border-radius: 6px;
  background: linear-gradient(to right, var(--bg) 30%, transparent) left / 24px 100% no-repeat local,
    linear-gradient(to left, var(--bg) 30%, transparent) right / 24px 100% no-repeat local,
    linear-gradient(to right, rgba(15, 23, 42, .18), transparent) left / 12px 100% no-repeat scroll,
    linear-gradient(to left, rgba(15, 23, 42, .18), transparent) right / 12px 100% no-repeat scroll; }
.table-scroll table { display: table; margin: 0; overflow: visible; }
.table-hint { display: none; font-size: .9rem; color: var(--text-muted); margin-bottom: .4em; }
@media (max-width: 760px) { .table-hint { display: block; } }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose code { word-break: break-word; }
.updated { color: var(--text-muted); font-style: italic; }
.prose .legal-content, .prose .legal-content * { max-width: 100%; }
.prose .legal-content { overflow-wrap: anywhere; }
.callout { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--brand-2); border-radius: 10px; padding: 14px 16px; margin: 1.2em 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--text-muted); margin: 12px 0; max-width: 34ch; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a, .site-footer .linklike { color: var(--text); text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--accent-text); text-decoration: underline; }
.social { display: flex; gap: 14px; margin-top: 12px; }
.social a { color: var(--text-muted); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px; color: var(--text-muted); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom p { margin: 0; }
.footer-stores { display: flex; flex-wrap: wrap; gap: 8px; }

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


/* Legal page blocks */
.highlight-box, .contact-info { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--brand-2); border-radius: 10px; padding: 14px 16px; margin: 1.2em 0; }
.highlight-box p:last-child, .contact-info ul:last-child { margin-bottom: 0; }
.cookie-type { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 1px solid var(--border); background: var(--surface); color: var(--text); white-space: nowrap; }
.prose h4 { font-size: 1.05rem; margin-top: 1.4em; }
.prose h5 { font-size: 1rem; margin: 1em 0 .4em; }

/* Tables scroll sideways on small screens instead of breaking words letter by letter. */
.prose th, .prose td { overflow-wrap: normal; word-break: normal; min-width: 7.5rem; }
.prose td:nth-child(4), .prose th:nth-child(4) { min-width: 15rem; }

/* Phones: tighter cards, steps and phone shots so the homepage stays short. */
@media (max-width: 600px) {
  .section { padding: 44px 0; }
  .steps, .cards { gap: 12px; margin-top: 24px; }
  .steps li { position: relative; padding: 16px 18px 16px 62px; }
  .steps li::before { position: absolute; left: 16px; top: 16px; margin: 0; }
  .steps h3, .card h3 { font-size: 1.08rem; }
  .card { padding: 16px 18px; }
  .feature { gap: 24px; }
  .feature-media .shot-phone { max-width: 220px; }
  .gallery { grid-auto-columns: min(62%, 220px); }
}


/* ==========================================================================
   Visual layer (Nov 2026): the tile motif from the logo, a deep "ink" band,
   mint for progress and done, and a few motion moments. Decoration only:
   every animation sits behind prefers-reduced-motion: no-preference or the
   html.motion class (added by site.js only when motion is allowed), and no
   content starts hidden without JS.
   ========================================================================== */
:root {
  --ink: #0B1A45;
  --ink-text: #F1F5FF;
  --ink-muted: #C3D3F3;
  --mint: #10B981;
  --mint-ink: #6EE7B7;
  --sun: #FBBF24;
  --ready-bg: #D1FAE5;
  --ready-text: #065F46;
  --glow: 0 10px 28px rgba(37, 99, 235, .28);
  --tile-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='4' y='4' width='48' height='48' rx='13' fill='none' stroke='%232563EB' stroke-opacity='.13' stroke-width='1.5'/%3E%3C/svg%3E");
  --tile-grid-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='4' y='4' width='48' height='48' rx='13' fill='none' stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='1.5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #0A1533;
    --ready-bg: rgba(16, 185, 129, .18);
    --ready-text: #A7F3D0;
    --glow: 0 10px 28px rgba(37, 99, 235, .4);
    --tile-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='4' y='4' width='48' height='48' rx='13' fill='none' stroke='%2393C5FD' stroke-opacity='.08' stroke-width='1.5'/%3E%3C/svg%3E");
  }
}
::selection { background: #BFDBFE; color: #0F172A; }

/* Wide decorations never cause sideways scrolling. */
main > section { overflow-x: clip; }

/* ---------- Header: a shadow once the page scrolls (class from site.js) ---------- */
.site-header { transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }

/* ---------- Buttons and chips: respond to the pointer ---------- */
.btn { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn-primary { background: linear-gradient(180deg, #2563EB, #1D4ED8); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 4px 12px rgba(29, 78, 216, .22); }
.btn-primary:hover { background: linear-gradient(180deg, #1D4ED8, #1E40AF); box-shadow: var(--glow); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost:hover { transform: translateY(-1px); }
.chips a, .jump a { transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.chips a:hover, .jump a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(37, 99, 235, .14); }
.microcopy li:nth-child(2)::before { background: var(--brand-light); }
.microcopy li:nth-child(3)::before { background: var(--mint); }

/* ---------- Tile backdrop: grid of rounded tiles plus a soft colour wash ---------- */
.tiles-bg { position: relative; isolation: isolate; }
.tiles-bg::before, .tiles-bg::after { content: ""; position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.tiles-bg::before {
  z-index: -1; height: 100%;
  background: var(--tile-grid) center top / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 30%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 30%, #000 20%, transparent 72%);
}
.tiles-bg::after {
  z-index: -2; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  background:
    radial-gradient(38% 46% at 82% 18%, rgba(147, 197, 253, .5), transparent 70%),
    radial-gradient(30% 40% at 4% 88%, rgba(16, 185, 129, .13), transparent 70%),
    radial-gradient(30% 30% at 40% 0%, rgba(37, 99, 235, .1), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  .tiles-bg::after {
    background:
      radial-gradient(38% 46% at 82% 18%, rgba(37, 99, 235, .3), transparent 70%),
      radial-gradient(30% 40% at 4% 88%, rgba(16, 185, 129, .1), transparent 70%),
      radial-gradient(30% 30% at 40% 0%, rgba(147, 197, 253, .08), transparent 70%);
  }
}
#pricing.tiles-bg::before, .tiles-bg-short::before {
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 15%, transparent 70%);
}
#pricing.tiles-bg::before, #pricing.tiles-bg::after { height: 560px; }
.tiles-bg-short::before, .tiles-bg-short::after { height: 420px; }
@media (prefers-reduced-motion: no-preference) {
  .tiles-bg::after { animation: mt-wash 16s ease-in-out infinite alternate; }
}
@keyframes mt-wash { to { transform: translate3d(-4%, 3%, 0) scale(1.06); } }

/* ---------- Hero ---------- */
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); letter-spacing: -.035em; text-wrap: balance; }
.hero .lead { text-wrap: pretty; }
.hero .topic-form input { transition: border-color .18s ease, box-shadow .18s ease; box-shadow: 0 8px 24px rgba(37, 99, 235, .10); }
.hero .topic-form input:focus { box-shadow: 0 0 0 6px rgba(37, 99, 235, .14), 0 8px 24px rgba(37, 99, 235, .14); }

/* Floating tiles (aria-hidden). --py is the scroll offset from site.js for a light parallax. */
.tile-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ft {
  position: absolute; display: block; aspect-ratio: 1; border-radius: 26%;
  translate: 0 calc(var(--py, 0) * var(--d, -.1) * 1px);
  transform: rotate(var(--r, 0deg));
}
.ft1 { width: 58px; top: 7%; left: 3%; background: #2563EB; opacity: .12; --r: -8deg; --d: -.18; }
.ft2 { width: 30px; top: 82%; left: 41%; background: #93C5FD; opacity: .55; --r: 12deg; --d: -.3; }
.ft3 { width: 54px; top: 6%; right: 5%; background: #2563EB; --r: 8deg; --d: -.12; box-shadow: var(--glow); }
.ft4 { width: 20px; top: 12%; left: 46%; background: var(--mint); opacity: .55; --r: 20deg; --d: -.35; }
.ft5 { width: 38px; bottom: 9%; right: 3%; background: #1D4ED8; --r: -10deg; --d: -.22; }
.ft6 { width: 88px; bottom: -22px; left: 18%; background: #93C5FD; opacity: .22; --r: 14deg; --d: -.08; }
.ft7 { width: 16px; top: 3%; left: 58%; background: var(--sun); opacity: .7; --r: -14deg; --d: -.4; }
/* The four-point sparkle from the logo. */
.ft-star::after {
  content: ""; position: absolute; inset: 26%; background: #fff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
@media (max-width: 959px) { .ft2, .ft4, .ft7 { display: none; } .ft3 { top: 2%; } .ft5 { bottom: 3%; } }
@media (max-width: 600px) { .ft1 { width: 40px; top: 1%; left: auto; right: 22%; } .ft3 { width: 40px; right: 4%; } .ft6 { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ft { animation: mt-drift var(--t, 11s) ease-in-out infinite alternate; }
  .ft1 { --t: 13s; } .ft2 { --t: 9s; } .ft3 { --t: 12s; } .ft4 { --t: 8s; } .ft5 { --t: 10s; } .ft6 { --t: 15s; } .ft7 { --t: 7s; }
}
@keyframes mt-drift { to { transform: rotate(calc(var(--r, 0deg) + 7deg)) translateY(-12px); } }

/* Screenshot on a stack of tiles. */
.hero .shot-hero { position: relative; isolation: isolate; }
.hero .shot-hero::before, .hero .shot-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 30px; pointer-events: none; }
.hero .shot-hero::before { inset: 7% -5% -4% 9%; background: linear-gradient(140deg, #2563EB, #93C5FD); transform: rotate(4deg); opacity: .85; }
.hero .shot-hero::after { inset: -3% 12% 12% -5%; background: linear-gradient(140deg, rgba(16, 185, 129, .28), rgba(147, 197, 253, .35)); transform: rotate(-5deg); }
@media (max-width: 600px) { .hero .shot-hero::before { inset: 6% -3% -3% 7%; } .hero .shot-hero::after { inset: -2% 10% 10% -3%; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .shot-hero::before { animation: mt-stack-a .9s cubic-bezier(.2, .8, .2, 1) .15s both; }
  .hero .shot-hero::after { animation: mt-stack-b .9s cubic-bezier(.2, .8, .2, 1) .3s both; }
}
@keyframes mt-stack-a { from { transform: rotate(0deg) scale(.94); opacity: 0; } }
@keyframes mt-stack-b { from { transform: rotate(0deg) scale(.94); opacity: 0; } }

/* Phone screenshots in the feature rows sit on a tile too. */
.feature-media .shot-phone { position: relative; isolation: isolate; }
.feature-media .shot-phone::before {
  content: ""; position: absolute; z-index: -1; inset: 9% -7% -3% 14%; border-radius: 38px;
  background: linear-gradient(140deg, #93C5FD, #2563EB); opacity: .45; transform: rotate(6deg);
}
.feature.flip .feature-media .shot-phone::before { inset: 9% 14% -3% -7%; transform: rotate(-6deg); background: linear-gradient(140deg, #6EE7B7, #2563EB); }

/* ---------- Section colour ---------- */
.section-alt { background: linear-gradient(180deg, var(--bg-alt), color-mix(in srgb, var(--bg-alt) 60%, var(--bg))); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .section-alt { background: var(--bg-alt); } }
.eyebrow { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); }

/* ---------- How it works: topic-to-course demo ---------- */
.demo { max-width: 780px; margin: 32px auto 0; text-align: center; }
.demo-stage {
  position: relative; text-align: left; background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 18px; box-shadow: var(--shot-shadow); overflow: hidden;
}
.demo-stage::before { content: ""; position: absolute; inset: 0; background: var(--tile-grid) center / 56px 56px; opacity: .6; pointer-events: none; }
.demo-stage > * { position: relative; }
.demo-bar { display: flex; gap: 8px; align-items: stretch; }
.demo-input {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; min-height: 46px; padding: 0 14px;
  border: 2px solid var(--brand-2); border-radius: 12px; background: var(--surface); font-weight: 600; white-space: nowrap; overflow: hidden;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.demo-typed { display: inline-block; overflow: hidden; vertical-align: bottom; }
.demo-caret { display: inline-block; width: 2px; height: 1.25em; margin-left: 2px; background: var(--brand-2); flex: none; }
.demo-go { display: inline-flex; align-items: center; padding: 0 16px; border-radius: 12px; background: var(--btn-bg); color: #fff; font-weight: 700; white-space: nowrap; }
.demo-tiles { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dt {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 12px 12px 14px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt);
}
.dt-n { font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.dt-t { font-weight: 700; font-size: .97rem; line-height: 1.25; }
.dt-first { background: var(--surface); border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.dt-ready { position: absolute; top: 10px; right: 10px; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--ready-bg); color: var(--ready-text); }
.dt-prog { display: block; height: 6px; margin-top: auto; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.dt-prog span { display: block; height: 100%; background: var(--mint); border-radius: 3px; transform-origin: left; }
/* Skeleton bar shown while a lesson "builds" (only visible during the animation). */
.dt:not(.dt-first)::after {
  content: ""; position: absolute; left: 12px; right: 30%; top: 36px; height: 12px; border-radius: 6px; opacity: 0;
  background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)) 0 0 / 200% 100%;
}
.demo-review { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 700; font-size: .95rem; }
.demo-check {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.demo figcaption { margin: 14px auto 0; max-width: 60ch; color: var(--text-muted); font-size: .95rem; }
.demo-replay { margin-top: 6px; padding: 8px 12px; border: 0; background: none; font: inherit; font-weight: 700; font-size: .92rem; color: var(--accent-text); cursor: pointer; border-radius: 8px; }
.demo-replay:hover { background: var(--surface-2); }
@media (max-width: 640px) {
  .demo-stage { padding: 12px; border-radius: 18px; }
  .demo-bar { flex-wrap: wrap; }
  .demo-go { flex: 1 0 100%; justify-content: center; min-height: 42px; }
  .demo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dt { min-height: 80px; padding: 10px; }
  .dt-t { font-size: .92rem; }
  .dt-ready { position: static; align-self: flex-start; order: -1; margin-bottom: 2px; }
}

/* Demo timeline. site.js adds .is-armed (animations assigned, paused on their first frame)
   only when motion is allowed, then .is-live when the demo scrolls into view.
   Without JS, or with reduced motion, the finished state shows. */
.motion .demo.is-armed .demo-typed { animation: mt-type 1.3s steps(18, end) .3s both; }
.motion .demo.is-armed .demo-caret { animation: mt-blink .7s steps(1) 0s 4; }
.motion .demo.is-armed .demo-go { animation: mt-press .35s ease 1.8s both; }
.motion .demo.is-armed .dt { animation: mt-tile-in .5s cubic-bezier(.2, .9, .3, 1.25) calc(2.1s + var(--i) * .09s) both; }
.motion .demo.is-armed .dt:not(.dt-first) .dt-t { animation: mt-fade-in .35s ease calc(3.3s + var(--i) * .3s) both; }
.motion .demo.is-armed .dt:not(.dt-first)::after { animation: mt-skeleton calc(1.2s + var(--i) * .3s) linear calc(2.1s + var(--i) * .09s) both; }
.motion .demo.is-armed .dt-ready { animation: mt-pop .4s cubic-bezier(.2, .9, .3, 1.4) 2.9s both; }
.motion .demo.is-armed .dt-prog span { animation: mt-fill 1.2s ease-in-out 3.4s both; }
.motion .demo.is-armed .demo-review { animation: mt-rise .5s ease 4.8s both; }
.motion .demo.is-armed:not(.is-live) *, .motion .demo.is-armed:not(.is-live) *::after { animation-play-state: paused !important; }
.dt:nth-child(1) { --i: 0; } .dt:nth-child(2) { --i: 1; } .dt:nth-child(3) { --i: 2; }
.dt:nth-child(4) { --i: 3; } .dt:nth-child(5) { --i: 4; } .dt:nth-child(6) { --i: 5; }
@keyframes mt-type { from { max-width: 0; } to { max-width: 12em; } }
@keyframes mt-blink { 50% { opacity: 0; } }
@keyframes mt-press { 50% { transform: scale(.94); filter: brightness(1.2); } }
@keyframes mt-tile-in { from { opacity: 0; transform: translateY(12px) scale(.9); } }
@keyframes mt-fade-in { from { opacity: 0; } }
@keyframes mt-skeleton { 0% { opacity: 1; background-position: 100% 0; } 92% { opacity: 1; background-position: -100% 0; } 100% { opacity: 0; } }
@keyframes mt-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes mt-fill { from { transform: scaleX(0); } }
@keyframes mt-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Steps: tile numbers joined by a track ---------- */
.steps li { position: relative; }
.steps li::before { background: linear-gradient(140deg, #2563EB, #1D4ED8); box-shadow: 0 6px 14px rgba(37, 99, 235, .3); border-radius: 11px; }
.steps li:nth-child(3)::before { background: linear-gradient(140deg, #10B981, #047857); box-shadow: 0 6px 14px rgba(16, 185, 129, .3); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 41px; top: 66px; bottom: -21px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-light)); transform-origin: top;
}
@media (min-width: 800px) {
  .steps li:not(:last-child)::after { left: 72px; right: -21px; top: 41px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--brand-2), var(--brand-light)); transform-origin: left; }
}
@media (max-width: 600px) { .steps li:not(:last-child)::after { left: 33px; top: 56px; bottom: -13px; } }
.motion .steps.is-armed li::after { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.motion .steps.is-armed:not(.is-live) li::after { transform: scale(0); }
.motion .steps.is-armed li:nth-child(2)::after { transition-delay: .45s; }

/* ---------- "Why it sticks": deep ink band with a bento of tiles ---------- */
.section-ink {
  position: relative; isolation: isolate; color: var(--ink-text);
  background:
    radial-gradient(45% 60% at 100% 0%, rgba(37, 99, 235, .45), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(16, 185, 129, .16), transparent 70%),
    var(--ink);
}
.section-ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--tile-grid-ink) center / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 65%);
  mask-image: linear-gradient(180deg, #000, transparent 65%);
}
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .lead { color: var(--ink-muted); }
.section-ink :focus-visible { outline-color: #93C5FD; }
.bento { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bt-rev { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "rev rev acc dev" "rev rev acc off" "skip asst vis chk"; }
  .bt-rev { grid-area: rev; } .bt-acc { grid-area: acc; } .bt-dev { grid-area: dev; } .bt-off { grid-area: off; }
  .bt-skip { grid-area: skip; } .bt-asst { grid-area: asst; } .bt-vis { grid-area: vis; } .bt-chk { grid-area: chk; }
}
.bt {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 22px;
  border-radius: 18px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .12);
}
.bt h3 { font-size: 1.1rem; margin: 16px 0 6px; }
.bt p { margin: 0; color: var(--ink-muted); font-size: .97rem; }
.bt-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(140deg, #3B82F6, #1D4ED8); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .4);
}
.bt-icon svg { width: 22px; height: 22px; }
.bt-rev .bt-icon, .bt-chk .bt-icon { background: linear-gradient(140deg, #34D399, #059669); box-shadow: 0 8px 20px rgba(16, 185, 129, .35); }
.bt-acc .bt-icon, .bt-vis .bt-icon { background: linear-gradient(140deg, #BFDBFE, #93C5FD); color: #0B1A45; box-shadow: 0 8px 20px rgba(147, 197, 253, .3); }
.bt-skip .bt-icon { background: linear-gradient(140deg, #FCD34D, #F59E0B); color: #0B1A45; box-shadow: 0 8px 20px rgba(245, 158, 11, .3); }
.bt-rev { padding: 28px; background: linear-gradient(150deg, rgba(37, 99, 235, .38), rgba(16, 185, 129, .1) 70%), rgba(255, 255, 255, .04); border-color: rgba(147, 197, 253, .3); }
.bt-rev h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.bt-rev p { font-size: 1.05rem; max-width: 46ch; }
.bt-acc { background: linear-gradient(170deg, rgba(147, 197, 253, .14), rgba(255, 255, 255, .04)); }
/* Phones: the smaller tiles become compact rows (icon beside the text) to keep the page short. */
@media (max-width: 639px) {
  .bento { gap: 10px; margin-top: 28px; }
  .bt { padding: 18px; }
  .bt-rev { padding: 20px; }
  .bt:not(.bt-rev):not(.bt-acc) { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px; }
  .bt:not(.bt-rev):not(.bt-acc) .bt-icon { grid-row: 1 / span 2; width: 40px; height: 40px; }
  .bt:not(.bt-rev):not(.bt-acc) h3 { margin: 0 0 4px; font-size: 1.05rem; }
  .bt:not(.bt-rev):not(.bt-acc) p { font-size: .95rem; }
  .aa span { min-height: 52px; font-size: 1.45rem; }
}
/* Review schedule: a learned lesson, then reviews at growing gaps. */
.sched { display: flex; align-items: center; align-self: stretch; margin-top: auto; padding-top: 28px; }
.sd { flex: none; width: 16px; height: 16px; border-radius: 5px; background: var(--mint-ink); box-shadow: 0 0 0 4px rgba(110, 231, 183, .14); }
.sd-learn { width: 24px; height: 24px; border-radius: 7px; background: #93C5FD; box-shadow: 0 0 0 5px rgba(147, 197, 253, .16); }
.gap { flex: 1 1 0; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 6px, transparent 6px 11px); }
.g1 { flex-grow: 1; } .g2 { flex-grow: 2; } .g3 { flex-grow: 4; } .g4 { flex-grow: 7; }
.aa { display: flex; align-self: stretch; gap: 10px; margin-top: auto; padding-top: 22px; }
.aa span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 64px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-size: 1.7rem; font-weight: 400; }
.aa .aa-b { font-weight: 900; }
.aa .aa-w { letter-spacing: .18em; padding-left: .18em; font-size: 1.5rem; background: #F1F5FF; color: #0B1A45; }
.motion .sched.is-armed .sd { transition: transform .45s cubic-bezier(.2, .9, .3, 1.4), opacity .3s ease; }
.motion .sched.is-armed:not(.is-live) .sd { transform: scale(.3); opacity: .3; }
.motion .sched.is-armed .sd:nth-child(3) { transition-delay: .15s; } .motion .sched.is-armed .sd:nth-child(5) { transition-delay: .3s; }
.motion .sched.is-armed .sd:nth-child(7) { transition-delay: .45s; } .motion .sched.is-armed .sd:nth-child(9) { transition-delay: .6s; }
.motion .sched.is-armed .sd:nth-child(11) { transition-delay: .75s; }

/* ---------- Plans and cards ---------- */
.plan { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.plan.best {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, #2563EB, #93C5FD 55%, #10B981) border-box;
  box-shadow: 0 18px 44px rgba(37, 99, 235, .18);
}
.plan-badge { background: linear-gradient(90deg, #2563EB, #1D4ED8); box-shadow: 0 4px 12px rgba(37, 99, 235, .35); }
a.plan-link:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(37, 99, 235, .2); }
.cards .card { position: relative; }
.cards .card::before { content: ""; display: block; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 9px; background: linear-gradient(140deg, #3B82F6, #1D4ED8); }
.cards .card:nth-child(4n+2)::before { background: linear-gradient(140deg, #34D399, #059669); }
.cards .card:nth-child(4n+3)::before { background: linear-gradient(140deg, #BFDBFE, #60A5FA); }
.cards .card:nth-child(4n+4)::before { background: linear-gradient(140deg, #FCD34D, #F59E0B); }
@media (max-width: 600px) { .cards .card::before { width: 22px; height: 22px; border-radius: 7px; margin-bottom: 10px; } }

/* ---------- FAQ ---------- */
.faq-list details { transition: border-color .18s ease, box-shadow .18s ease; }
.faq-list details:hover { border-color: color-mix(in srgb, var(--brand-2) 45%, var(--border)); }
.faq-list details[open] { border-color: color-mix(in srgb, var(--brand-2) 55%, var(--border)); box-shadow: 0 8px 22px rgba(37, 99, 235, .08); }
.faq-group h2::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border-radius: 4px; background: linear-gradient(140deg, #3B82F6, #1D4ED8); vertical-align: 1px; }

/* ---------- CTA band: brand gradient with a tile grid and a loose tile ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(147, 197, 253, .18), transparent 65%),
    radial-gradient(45% 70% at 0% 100%, rgba(16, 185, 129, .3), transparent 65%),
    linear-gradient(135deg, #1D4ED8, #1E3A8A);
  box-shadow: 0 24px 60px rgba(29, 78, 216, .25);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--tile-grid-ink) center / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, transparent 30%, #000 80%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, transparent 30%, #000 80%);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; width: 120px; height: 120px; right: -30px; top: -34px; border-radius: 30px;
  background: rgba(147, 197, 253, .22); transform: rotate(16deg); pointer-events: none;
}
.cta-band .btn-primary { background: #fff; color: #1D4ED8; box-shadow: 0 8px 22px rgba(11, 26, 69, .3); }
.cta-band .btn-primary:hover { background: #E6EEFF; }
@media (prefers-color-scheme: dark) {
  .cta-band { background: radial-gradient(50% 80% at 100% 0%, rgba(147, 197, 253, .14), transparent 65%), radial-gradient(45% 70% at 0% 100%, rgba(16, 185, 129, .2), transparent 65%), linear-gradient(135deg, #1E3A8A, #172554); box-shadow: none; }
}
