@font-face {
  font-family: 'Outfit Variable';
  src: url('/assets/fonts/outfit-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend Variable';
  src: url('/assets/fonts/lexend-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --font-sans: 'Outfit Variable', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-math: 'Lexend Variable', 'Outfit Variable', ui-sans-serif, system-ui, sans-serif;

  /* Warm Paper & Vermilion/Emerald (Light) */
  --bg-canvas: #faf6f0;
  --bg-surface: #ffffff;
  --bg-elevated: #f3ece1;
  --bg-nav: rgba(250, 246, 240, 0.9);
  --text-primary: #18181b;
  --text-muted: #524e49;
  --border-subtle: #e2d9cc;
  --border-strong: #c7bcb0;
  --accent-primary: #c2410c;
  --accent-primary-hover: #9a3412;
  --accent-primary-fg: #ffffff;
  --accent-secondary: #0ca678;
  --accent-secondary-bg: #d1fae5;
  --accent-secondary-fg: #065f46;
  --gold-bg: #fef3c7;
  --gold-fg: #92400e;
  --shadow-card: 0 6px 20px rgba(24, 24, 27, 0.055);
  --shadow-phone: 0 20px 44px rgba(24, 24, 27, 0.13);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Softened Night Mode — Slate-Charcoal & Warm Apricot-Terracotta */
    --bg-canvas: #1b1e23;
    --bg-surface: #23272e;
    --bg-elevated: #2c313a;
    --bg-nav: rgba(27, 30, 35, 0.92);
    --text-primary: #ece7df;
    --text-muted: #b8b2a9;
    --border-subtle: #363c47;
    --border-strong: #4b5362;
    --accent-primary: #e8824a;
    --accent-primary-hover: #f09562;
    --accent-primary-fg: #1b1e23;
    --accent-secondary: #38b28b;
    --accent-secondary-bg: #17332b;
    --accent-secondary-fg: #9be5cb;
    --gold-bg: #352a18;
    --gold-fg: #f7dfa6;
    --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.26);
    --shadow-phone: 0 20px 44px rgba(0, 0, 0, 0.44);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.62;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2.5px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  box-shadow: var(--shadow-card);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  transition: color 140ms ease, background 140ms ease;
}

.header-link:hover,
.header-link[aria-current='page'] {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.lang-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.22rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}

.lang-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  transition: background 140ms ease, color 140ms ease;
}

.lang-link:hover {
  color: var(--text-primary);
}

.lang-link[aria-current='page'] {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.85rem;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--accent-primary-fg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  border-radius: 0.7rem;
}

.store-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.72rem 1.05rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.15;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: default;
  user-select: none;
}

.store-pill.primary {
  background: var(--accent-primary);
  color: var(--accent-primary-fg);
  border-color: transparent;
}

a.store-pill {
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

a.store-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.store-pill-sm {
  padding: 0.45rem 0.88rem;
  font-size: 0.84rem;
  border-radius: 0.7rem;
}

.store-pill-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--accent-secondary);
  flex-shrink: 0;
}

.store-pill.primary .store-pill-dot {
  background: currentColor;
  opacity: 0.88;
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 5.5vw, 4.5rem) clamp(2.25rem, 5vw, 3.75rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  background: var(--accent-secondary-bg);
  color: var(--accent-secondary-fg);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0 0 1.05rem;
}

.hero-lead {
  font-size: clamp(1.03rem, 1.55vw, 1.16rem);
  color: var(--text-muted);
  margin: 0 0 1.65rem;
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.hero-note {
  font-size: 0.91rem;
  color: var(--text-muted);
  margin: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 19rem);
  padding: 0.52rem;
  border-radius: 2rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-phone);
}

.phone-frame img {
  width: 100%;
  border-radius: 1.52rem;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* Trust strip */
.trust-strip {
  border-block: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding-block: 1.05rem;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.75rem;
  font-weight: 650;
  font-size: 0.94rem;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--accent-secondary);
}

/* Sections */
.section {
  padding-block: clamp(2.85rem, 5.5vw, 4.5rem);
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border-subtle);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.15rem;
}

.section-kicker {
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin: 0 0 0.45rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
  margin: 0 0 0.65rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03rem;
}

/* Cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.2rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20.5rem), 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.2rem;
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.step-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-bg);
  color: var(--gold-fg);
  font-family: var(--font-math);
  font-size: 0.79rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card h3 {
  font-size: 1.16rem;
  margin: 0 0 0.5rem;
  line-height: 1.26;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.math-chip {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.4rem 0.72rem;
  border-radius: 0.62rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-math);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.card p + .math-chip {
  margin-top: 1rem;
}

/* Highlight Grid (Practical details parents & teachers care about) */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.detail-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.05rem;
  padding: 1.2rem 1.3rem;
}

.detail-item h3 {
  font-size: 1.04rem;
  margin: 0 0 0.4rem;
}

.detail-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Stages */
.stage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}

.stage-badge {
  display: inline-block;
  font-size: 0.81rem;
  font-weight: 700;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  background: var(--accent-secondary-bg);
  color: var(--accent-secondary-fg);
  margin-bottom: 0.8rem;
}

.stage-card h3 {
  font-size: 1.32rem;
  margin: 0 0 0.75rem;
}

.module-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.5rem;
  font-size: 0.96rem;
}

.module-list strong {
  color: var(--text-primary);
}

/* Screenshots gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1.1rem;
}

.shot-card {
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.3rem;
  padding: 0.48rem 0.48rem 0.7rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.shot-card img {
  width: 100%;
  border-radius: 0.95rem;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot-card figcaption {
  font-size: 0.83rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
  padding-inline: 0.35rem;
}

/* Pricing */
.price-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 1.3rem;
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.price-card.featured {
  border-color: var(--accent-primary);
}

.price-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.price-tag {
  font-family: var(--font-math);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0;
}

.price-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.48rem;
  font-size: 0.96rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 50rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 0.95rem 1.2rem;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-math);
  font-size: 1.25rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* CTA banner */
.cta-banner {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 1.45rem;
  padding: clamp(1.65rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  box-shadow: var(--shadow-card);
}

.cta-banner h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.cta-banner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 50ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 1.9rem 2.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* Legal document layout */
.legal-main {
  padding-block: 2.5rem 4rem;
  max-width: 48rem;
}

.legal-main h1 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.18;
  margin: 0 0 0.5rem;
}

.legal-main h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.85rem;
}

.legal-main h3 {
  font-size: 1.06rem;
  margin: 1.35rem 0 0.45rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.4rem;
}

.legal-lang-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  padding: 0.7rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.8rem;
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.legal-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 2.4rem 0;
}

.legal-id-svg {
  display: block;
  width: min(100%, 30.5rem);
  height: auto;
  color: var(--text-primary);
  margin: 0.45rem 0 0.7rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.65rem;
}

/* Blog & Editorial Long-Form Articles */
.blog-shell {
  padding-block: clamp(2.4rem, 5vw, 4rem) 4.5rem;
}

.blog-index-head {
  max-width: 48rem;
  margin-bottom: 2.25rem;
}

.blog-index-head h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}

.blog-index-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.06rem;
}

.posts-grid {
  display: grid;
  gap: 1.35rem;
}

.posts-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 1.35rem;
}

.post-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 1.35rem;
  padding: clamp(1.5rem, 3.5vw, 2.15rem);
  box-shadow: var(--shadow-card);
  max-width: 52rem;
  transition: border-color 150ms ease;
}

.posts-grid-home .post-card {
  max-width: none;
  display: flex;
  flex-direction: column;
}

.posts-grid-home .post-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.post-card:hover {
  border-color: var(--accent-primary);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.post-card h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.22;
  margin: 0 0 0.65rem;
}

.post-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent-primary);
}

.post-card p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
}

.article-wrap {
  max-width: 46rem;
  margin-inline: auto;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-header h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0.6rem 0 0.95rem;
}

.article-deck {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.article-toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.15rem 1.35rem;
  margin-bottom: 2.25rem;
}

.article-toc strong {
  display: block;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 0.55rem;
}

.article-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.article-toc a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.prose h2 {
  font-size: clamp(1.38rem, 2.5vw, 1.72rem);
  line-height: 1.22;
  letter-spacing: -0.018em;
  margin: 2.5rem 0 0.8rem;
  scroll-margin-top: 5.25rem;
}

.prose h3 {
  font-size: 1.14rem;
  line-height: 1.3;
  margin: 1.6rem 0 0.5rem;
}

.prose p {
  margin: 0 0 1.15rem;
  font-size: 1.04rem;
  line-height: 1.72;
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.5rem;
  font-size: 1.01rem;
}

.prose code,
.math-inline {
  font-family: var(--font-math);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: 0.94em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.12rem 0.42rem;
  border-radius: 0.4rem;
}

.callout-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0.95rem;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-card);
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.scope-note {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-secondary);
  border-radius: 0.95rem;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.85rem;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.scope-note strong {
  color: var(--text-primary);
}

.scope-note p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.62;
}

.related-box {
  margin-top: 2.25rem;
  padding: 1.3rem 1.45rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 1.1rem;
}

.related-box .section-kicker {
  margin-bottom: 0.35rem;
}

.related-box h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.28;
}

.related-box h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.related-box h3 a:hover {
  color: var(--accent-primary);
}

.related-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.compare-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
}

.compare-card h3 {
  margin-top: 0;
  font-size: 1.02rem;
}

.compare-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.ref-list {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.91rem;
  color: var(--text-muted);
}

.ref-list h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

.ref-list ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: min(100%, 16rem);
  }
}
