:root {
  --green-50: #F0FDF4;
  --green-100: #DCFCE7;
  --green-500: #22C55E;
  --green-600: #16A34A;
  --green-700: #15803D;

  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0F172A;

  --brand: var(--green-500);
  --brand-hover: var(--green-600);
  --brand-soft: var(--green-100);
  --brand-tint: var(--green-50);

  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-500);

  --bg-page: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-tint: var(--slate-50);

  --border: var(--slate-200);
  --border-strong: var(--slate-300);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);

  --container: 1200px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4 {
  overflow-wrap: break-word;
  hyphens: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.brand-mark svg { width: 22px; height: 22px; }

.nav-links {
  display: none;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text-primary); background: var(--slate-100); }

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-full);
  border: 0;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.1s;
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--brand-hover); }
.nav-cta:active { transform: translateY(1px); }
.nav-cta:focus-visible { outline: 3px solid rgba(34,197,94,.35); outline-offset: 2px; }

/* Hero */
.hero {
  padding: 40px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

/* Text-only hero — dùng khi hero không có <div class="hero-visual"> */
.hero-grid:not(:has(.hero-visual)) .hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero-grid:not(:has(.hero-visual)) .hero-copy .lede { margin-left: auto; margin-right: auto; }
.hero-grid:not(:has(.hero-visual)) .mini-features { margin-left: auto; margin-right: auto; }
.hero-grid:not(:has(.hero-visual)) .hero-download { justify-content: center; }

.hero-copy h1 {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-copy h1 .accent { color: var(--brand); }
.hero-copy .lede {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 28px;
}

.mini-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
  margin-bottom: 32px;
  max-width: 480px;
}
.mini-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.mini-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-feature-icon svg { width: 22px; height: 22px; }
.mini-feature-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
  max-width: 14ch;
}

.hero-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.hero-store-badges {
  margin-bottom: 0;
  flex-wrap: wrap;
}
.learn-more-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 4px;
  transition: color 0.15s;
  white-space: nowrap;
}
.learn-more-link:hover { color: var(--brand-hover); text-decoration: underline; }
.learn-more-link:focus-visible { outline: 3px solid rgba(34,197,94,.35); outline-offset: 2px; border-radius: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(34,197,94,.35); outline-offset: 2px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--slate-100); border-color: var(--slate-400); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual img {
  width: 100%;
  max-width: 640px;
  height: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
}

/* Section headings */
.section { padding: 72px 0; }
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-title .accent { color: var(--brand); }

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* How It Works */
.how-it-works {
  background: linear-gradient(180deg, var(--brand-tint) 0%, #FFFFFF 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-number {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.step-illustration {
  width: 100%;
  max-width: 200px;
  height: 96px;
  margin: 8px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.step-illustration svg { width: 100%; height: 100%; }
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 0.875rem; color: var(--text-secondary); }
.step-arrow { display: none; color: var(--slate-300); align-self: center; }
.step-arrow svg { width: 20px; height: 20px; }

/* Use Cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.use-cases-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.use-cases-heading .accent { color: var(--brand); }

.personas { display: flex; flex-direction: column; gap: 20px; }
.persona { display: flex; align-items: flex-start; gap: 14px; }
/* Persona wrapped in <a> — clickable card variant used on home use-cases */
.persona-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 12px;
  margin: -10px -12px;
  border-radius: var(--r-md);
  color: inherit;
  transition: background 0.15s, transform 0.1s;
}
.persona-link:hover { background: var(--brand-tint); }
.persona-link:hover .persona-text h4 { color: var(--brand-hover); }
.persona-link:active { transform: translateY(1px); }
.persona-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.persona-icon svg { width: 20px; height: 20px; }
.persona-text h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.persona-text p { font-size: 0.875rem; color: var(--text-secondary); }

.lifestyle-media {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--slate-100);
  aspect-ratio: 3 / 2;
  display: block;
  align-self: center;
  box-shadow: var(--shadow-md);
  width: 100%;
}
.lifestyle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* CTA card */
.start-card {
  background: var(--brand-tint);
  border: 1px solid var(--green-100);
  border-radius: var(--r-2xl);
  padding: 32px 28px;
}
.start-card .eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}
.start-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 24px;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #0F172A;
  color: #fff;
  border-radius: var(--r-md);
  min-height: 52px;
  min-width: 156px;
  transition: background 0.15s;
}
.store-badge:hover { background: #1E293B; }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1; }
.store-badge-text .small {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 3px;
}
.store-badge-text .big {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.subfeatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--green-100);
}
.subfeature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.subfeature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: #FFFFFF;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.subfeature-icon svg { width: 20px; height: 20px; }
.subfeature-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Blog post layout */
.blog-post { max-width: 720px; margin: 0 auto; padding: 48px 0 80px; }
.blog-post-header { margin-bottom: 32px; }
.blog-post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.blog-post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.blog-post-body { font-size: 1.0625rem; line-height: 1.7; }
.blog-post-body h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px; }
.blog-post-body h3 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; }
.blog-post-body p { margin-bottom: 20px; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 20px 24px; }
.blog-post-body li { margin-bottom: 8px; }
.blog-post-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.blog-post-cta p { margin-bottom: 16px; font-weight: 600; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  background: #FFFFFF;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}
footer nav a {
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
footer nav a:hover { color: var(--brand); background: var(--brand-tint); }
.copyright { font-size: 0.8125rem; color: var(--text-muted); }

/* Footer link clusters (Use Cases + Languages) */
.footer-clusters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px 40px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.footer-cluster h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-cluster ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cluster a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color 0.15s;
}
.footer-cluster a:hover { color: var(--brand); }

/* Responsive */
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subfeatures { gap: 16px; }
}

@media (min-width: 900px) {
  .nav-links { display: inline-flex; }
  .nav-cta { display: inline-flex; }
  .hero { padding: 64px 0 80px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
  }
  /* Text-only hero giữ 1 cột trên desktop */
  .hero-grid:not(:has(.hero-visual)) { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .use-cases-grid {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr) minmax(280px, 1fr);
    gap: 32px;
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .hero { padding: 80px 0 96px; }
  .section { padding: 96px 0; }
  .features-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .steps-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Landing section subtitle (pillar pages) ───────────────────────── */
.section-subtitle {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ─── Persona grid (use-case cards on pillar landing pages) ─────────── */
.personas-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.personas-grid .persona {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.personas-grid .persona:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.personas-grid .persona-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.personas-grid .persona-icon svg { width: 22px; height: 22px; }
.personas-grid .persona-text h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.personas-grid .persona-text p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ─── Use-case spotlight — deep-dive narrative under persona grid ───── */
.use-case-spotlight {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--brand-tint) 0%, var(--bg-tint) 100%);
  border: 1px solid var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-lg);
  padding: 28px 32px;
}
.use-case-spotlight .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-hover);
  margin-bottom: 6px;
}
.use-case-spotlight h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  line-height: 1.35;
}
.use-case-spotlight p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}
.use-case-spotlight p + p { margin-top: 12px; }

/* ─── Tier comparison table (Free vs Premium) ─────────────────────────── */
.tier-table-wrap {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
}
.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.tier-table thead th {
  background: var(--bg-tint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.tier-table thead th.tier-premium {
  color: var(--brand-hover);
  background: var(--brand-tint);
}
.tier-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: top;
}
.tier-table tbody tr:last-child td { border-bottom: 0; }
.tier-table td.tier-feature { font-weight: 600; }
.tier-table td.tier-yes::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  margin-right: 6px;
}
.tier-table td.tier-no { color: var(--text-muted); }
.tier-table td.tier-note {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ─── EPUB vs PDF comparison table ──────────────────────────────────────── */
.comparison-table-wrap { max-width: 780px; margin: 0 auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.comparison-table thead th {
  background: var(--bg-tint);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.comparison-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-primary);
  line-height: 1.5;
}
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table td:first-child { font-weight: 600; color: var(--text-primary); }

/* ─── Content-fit best-for/less-suited grid (shared pillar pattern) ─────── */
.content-fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .content-fit-grid { grid-template-columns: 1fr 1fr; }
}
.content-fit-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  background: var(--bg-card);
}
.content-fit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.content-fit-yes { border-left: 4px solid var(--brand); }
.content-fit-yes h3 { color: var(--brand-hover); }
.content-fit-no { border-left: 4px solid var(--slate-400); }
.content-fit-no h3 { color: var(--text-secondary); }
.content-fit-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-fit-yes ul li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.content-fit-no ul li::before { content: "— "; color: var(--slate-400); font-weight: 700; }
.content-fit-card ul li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.content-fit-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ─── Related pillar cards (Explore section) ────────────────────────────── */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.related-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 24px 56px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  color: inherit;
}
.related-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.related-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.related-card:hover h3 { color: var(--brand-hover); }
.related-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.related-arrow {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 1.25rem;
  color: var(--brand);
  transition: transform 0.15s ease;
}
.related-card:hover .related-arrow { transform: translateX(4px); }

/* ─── Feature-matrix table (personas × features) ────────────────────────── */
.feature-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.feature-matrix-table thead th {
  background: var(--bg-tint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.feature-matrix-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: top;
  line-height: 1.5;
}
.feature-matrix-table tbody tr:last-child td { border-bottom: 0; }
.feature-matrix-table td:first-child { font-weight: 600; }
.feature-matrix-table td:last-child { color: var(--text-secondary); font-size: 0.875rem; }

/* ─── Personas grid — 8 items: 4 cols desktop, 2 tablet, 1 mobile ──────── */
.personas-grid.personas-grid-8 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1200px;
}

/* ─── Small mobile (≤480px) tối ưu ──────────────────────────────────────── */
@media (max-width: 480px) {
  /* Container padding gọn hơn để tăng content area */
  .container { padding: 0 16px; }

  /* Hero */
  .hero { padding: 32px 0 48px; }
  .hero-copy h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); margin-bottom: 16px; }
  .hero-copy .lede { font-size: 1rem; margin-bottom: 24px; }

  /* Mini-features: 2 cột giữ được label ngắn */
  .mini-features { gap: 16px 8px; margin-bottom: 24px; max-width: 100%; }
  .mini-feature-icon { width: 40px; height: 40px; }
  .mini-feature-icon svg { width: 20px; height: 20px; }
  .mini-feature-label { font-size: 0.75rem; }

  /* Store badges wrap gọn */
  .hero-download { gap: 12px; }
  .store-badges { gap: 10px; }
  .store-badge { padding: 10px 14px; }
  .store-badge svg { width: 24px; height: 24px; }
  .store-badge-text .small { font-size: 0.5625rem; }
  .store-badge-text .big { font-size: 0.9375rem; }

  /* Section padding + heading gọn hơn */
  .section { padding: 48px 0; }
  .section-header { margin: 0 auto 32px; }
  .section-title { font-size: clamp(1.375rem, 6vw, 1.875rem); }
  .section-subtitle { font-size: 0.9375rem; }

  /* Prose section: dễ đọc + margin gọn */
  .prose-section p { font-size: 0.9375rem; margin-bottom: 12px; }
  .prose-section ul, .prose-section ol { padding-left: 20px; }
  .prose-section li { font-size: 0.9375rem; }

  /* Persona / feature cards: padding gọn */
  .personas-grid { gap: 14px; grid-template-columns: 1fr; }
  .personas-grid .persona { padding: 18px 20px; }
  .personas-grid .persona-text h3 { font-size: 1rem; }
  .personas-grid .persona-text p { font-size: 0.875rem; }

  /* Use-case spotlight */
  .use-case-spotlight { padding: 20px 20px; margin-top: 28px; }
  .use-case-spotlight h3 { font-size: 1.125rem; }
  .use-case-spotlight p { font-size: 0.9375rem; }

  /* Content-fit cards giữ 1 cột (base đã đúng) — tinh chỉnh padding */
  .content-fit-card { padding: 18px 20px; }
  .content-fit-card ul li { font-size: 0.875rem; }

  /* Tier + comparison tables: scroll ngang nếu tràn, padding gọn */
  .tier-table-wrap, .comparison-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tier-table, .comparison-table { font-size: 0.8125rem; min-width: 480px; }
  .tier-table thead th, .comparison-table thead th { padding: 10px 12px; }
  .tier-table tbody td, .comparison-table tbody td { padding: 10px 12px; }

  /* FAQ tap target rộng */
  .faq-list { gap: 8px; }
  .faq-item summary { padding: 14px 16px; font-size: 0.9375rem; min-height: 48px; }
  .faq-item dd { padding: 0 16px 14px; font-size: 0.9375rem; line-height: 1.55; }

  /* Nav mobile */
  .nav { height: 64px; }
  .brand { font-size: 1.125rem; }

  /* CTA section cuối */
  .cta { padding: 40px 0; }
  .cta-inner h2 { font-size: 1.5rem; }
  .cta-inner p { font-size: 0.9375rem; }

  /* Footer */
  footer nav { flex-wrap: wrap; gap: 6px 12px; justify-content: center; }
  .footer-inner { gap: 12px; text-align: center; }
}

/* Bổ sung: iPhone SE / very small (≤360px) — thu H1 hero xuống mức đọc được */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero-copy h1 { font-size: 1.625rem; line-height: 1.15; }
  .mini-features { grid-template-columns: 1fr 1fr; }
}
