:root {
  color-scheme: light;
  --paper: #f4f7f8;
  --surface: #ffffff;
  --surface-subtle: #edf3f5;
  --ink: #13232c;
  --muted: #516672;
  --line: #d4dfe5;
  --line-strong: #b9cad3;
  --navy: #0e3a4c;
  --navy-deep: #072434;
  --navy-mid: #164e66;
  --blue-soft: #e6f0f4;
  --accent: #d96d14;
  --accent-hover: #bd5b0c;
  --accent-soft: #fdf0e4;
  --success: #166534;
  --success-soft: #e8f5ee;
  --amber: #b45309;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(7, 36, 52, 0.06), 0 4px 12px rgba(7, 36, 52, 0.04);
  --shadow-md: 0 8px 24px rgba(7, 36, 52, 0.09), 0 2px 6px rgba(7, 36, 52, 0.04);
  --shadow-lg: 0 18px 44px rgba(7, 36, 52, 0.18);
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-underline-offset: 3px;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

a:hover {
  color: var(--navy-deep);
}

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

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 70px;
  padding: 12px max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
  background: rgba(7, 36, 52, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 215, 224, 0.4);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6b26b;
  font-size: 19px;
  font-weight: 800;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.22;
}

.brand strong {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: #b7ced9;
  font-size: 12px;
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.head-link {
  color: #e4eef3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.head-link:hover,
.head-link[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.head-cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Layout Container & Breadcrumbs
   ========================================================================== */
main {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

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

.crumbs a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 109, 20, 0.28);
}

.button-accent:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.button-light {
  background: #ffffff;
  color: var(--navy-deep);
}

.button-light:hover {
  background: #e9f2f6;
  color: var(--navy-deep);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.button-dark {
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--navy);
}

.button-dark:hover {
  color: #ffffff;
  background: var(--navy-deep);
}

.button-soft {
  color: var(--navy-deep);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button-soft:hover {
  background: var(--blue-soft);
  border-color: var(--navy);
  color: var(--navy-deep);
}

/* ==========================================================================
   Hero Sections (Shared + Landing Variant)
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 58%, var(--navy-mid) 100%);
  box-shadow: var(--shadow-lg);
}

.hero-landing {
  margin-top: 26px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f6b26b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-intro {
  max-width: 600px;
  margin: 18px 0 0;
  color: #e3eef3;
  font-size: 17.5px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.sample-note {
  max-width: 560px;
  margin: 16px 0 0;
  color: #c5d9e2;
  font-size: 13px;
  line-height: 1.55;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #d6e6ed;
  font-size: 13.5px;
  font-weight: 500;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust li::before {
  content: "✓";
  color: #f6b26b;
  font-weight: 800;
}

.preview {
  width: min(100%, 380px);
  justify-self: center;
  margin: 0;
  padding: 12px 12px 10px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(4, 22, 34, 0.32);
  transform: rotate(1deg);
  transition: transform 0.25s ease;
}

.preview:hover {
  transform: rotate(0deg);
}

.preview a {
  display: block;
  line-height: 0;
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e2e8ec;
  border-radius: 4px;
}

.preview figcaption {
  padding: 9px 4px 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}

/* ==========================================================================
   Landing Page Sections
   ========================================================================== */
.home-section {
  margin-top: 68px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 10px;
  color: var(--navy-deep);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Problem vs Solution Comparison */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compare-card {
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.compare-card.is-new {
  background: var(--navy-deep);
  color: #ffffff;
  border-color: var(--navy-deep);
}

.compare-card h3 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.compare-card.is-old h3 {
  color: var(--ink);
}

.compare-card.is-new h3 {
  color: #f6b26b;
}

.compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  font-size: 15px;
}

.compare-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
}

.compare-card.is-old .compare-list {
  color: var(--muted);
}

.compare-card.is-old .compare-list li::before {
  content: "✕";
  color: #b91c1c;
  font-weight: 800;
}

.compare-card.is-new .compare-list {
  color: #e6f0f4;
}

.compare-card.is-new .compare-list li::before {
  content: "✓";
  color: #5eead4;
  font-weight: 800;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.feature-card h3 {
  margin: 2px 0 0;
  color: var(--navy-deep);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.32;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Free MEP Resources Strip */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.resource-card {
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.resource-meta {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
}

.resource-card h3 {
  margin: 0 0 8px;
  color: var(--navy-deep);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Guide Cards Grid (Homepage + Hub) */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.guide-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--navy-mid);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guide-card h3 {
  margin: 0 0 8px;
  color: var(--navy-deep);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.58;
}

.guide-more {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
}

.section-footer-link {
  margin-top: 22px;
}

/* Download APK Box */
.download-panel {
  padding: clamp(28px, 4.5vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}

.download-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.download-panel p {
  margin: 0 0 18px;
  color: #d9e7ee;
  font-size: 15.5px;
}

.apk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.apk-meta {
  font-size: 13px;
  color: #b7ced9;
}

.apk-meta a {
  color: #f6b26b;
}

.install-steps {
  margin: 0;
  padding: 22px 24px;
  list-style: none;
  counter-reset: inst;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 14px;
}

.install-steps li {
  counter-increment: inst;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  color: #edf4f7;
}

.install-steps li::before {
  content: counter(inst);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.install-steps strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
}

/* Beta Tester CH Play Panel */
.tester-panel {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 2px solid #f6b26b;
  box-shadow: var(--shadow-md, 0 12px 28px rgba(14, 58, 76, 0.08));
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 32px;
  align-items: center;
}

.tester-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff3e0;
  color: #b45309;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.tester-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy-deep);
}

.tester-panel > div > p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
}

.tester-steps {
  margin: 0 0 20px;
  padding-left: 20px;
  color: #1e293b;
  font-size: 14.5px;
  line-height: 1.65;
  display: grid;
  gap: 8px;
}

.tester-qr-card {
  text-align: center;
  padding: 18px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.tester-qr-card img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.tester-qr-caption {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .tester-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* FAQ Panel */
.faq-wrap {
  max-width: 820px;
}

/* ==========================================================================
   Hub Page (/huong-dan/) Specific Layout
   ========================================================================== */
.hub-header {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
  color: #ffffff;
  margin-bottom: 36px;
}

.hub-header h1 {
  font-size: clamp(28px, 3.8vw, 42px);
}

.hub-header p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #d6e6ed;
  font-size: 16.5px;
}

.hub-cluster {
  margin-top: 44px;
}

.hub-cluster h2 {
  margin: 0 0 6px;
  color: var(--navy-deep);
  font-size: clamp(22px, 2.5vw, 27px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hub-cluster-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.policy-box {
  margin-top: 52px;
  padding: 28px 30px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  box-shadow: var(--shadow-sm);
}

.policy-box h2 {
  margin: 0 0 10px;
  color: var(--navy-deep);
  font-size: 22px;
}

.policy-box p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15.5px;
}

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

/* ==========================================================================
   Article & Existing SEO Content Pages (Backward Compatible)
   ========================================================================== */
.article {
  width: min(790px, 100%);
  margin: 48px auto 72px;
}

.article section + section {
  margin-top: 44px;
}

.article h2 {
  margin: 0 0 14px;
  color: var(--navy-deep);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.article p {
  margin: 0 0 14px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 14.5px;
}

.article th {
  background: var(--blue-soft);
  color: var(--navy-deep);
  text-align: left;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.article td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.example-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) 1.45fr;
  align-items: center;
  gap: 20px;
  margin: 22px 0 16px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.example-row > div {
  display: grid;
  gap: 4px;
}

.example-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.example-row p {
  margin: 0;
}

.quiet {
  color: var(--muted);
  font-size: 14px;
}

.steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 3px 14px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  grid-row: span 2;
  content: counter(step);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 14px;
  font-weight: 800;
}

.steps strong {
  line-height: 1.4;
}

.steps span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

details {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 0 18px;
}

details:first-of-type {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

summary {
  padding: 17px 2px;
  color: var(--navy-deep);
  font-weight: 700;
  cursor: pointer;
}

details p {
  padding: 0 2px 17px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
  border: 1px solid var(--line);
}

.closing h2 {
  margin: 0 0 6px;
  font-size: 21px;
  color: var(--navy-deep);
}

.closing p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.help-link {
  margin-top: 20px !important;
  color: var(--muted);
  font-size: 14px;
}

.guide > header {
  margin-bottom: 38px;
}

.guide .guide-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.guide-evidence {
  margin: 20px 0 0;
}

.guide-evidence img {
  display: block;
  max-width: min(100%, 460px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-evidence figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ==========================================================================
   Site Footer (Simple + Rich Multi-Column)
   ========================================================================== */
.site-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 64px;
  padding: 24px 24px 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.site-foot strong {
  color: var(--ink);
}

.site-footer-rich {
  margin-top: 80px;
  padding: 52px max(24px, calc((100vw - 1160px) / 2)) 40px;
  background: var(--navy-deep);
  color: #c8dae3;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer-rich h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
}

.site-footer-rich ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer-rich a {
  color: #c8dae3;
  text-decoration: none;
}

.site-footer-rich a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #9cb6c4;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .feature-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15.5px;
  }

  .site-head {
    min-height: 62px;
    padding: 10px 16px;
    gap: 12px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    gap: 12px;
  }

  .head-link {
    font-size: 13px;
  }

  .head-cta {
    padding: 7px 12px;
    font-size: 12.5px;
    min-height: 36px;
  }

  main {
    width: min(100% - 32px, 600px);
  }

  .crumbs {
    margin: 16px 0 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px 20px 24px;
    border-radius: 14px;
  }

  .hero-landing {
    margin-top: 18px;
  }

  h1 {
    font-size: clamp(28px, 8.5vw, 38px);
  }

  .hero-intro {
    margin-top: 14px;
    font-size: 16px;
  }

  .hero-actions,
  .apk-actions,
  .resource-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .preview {
    width: min(88%, 330px);
    transform: none;
  }

  .home-section {
    margin-top: 48px;
  }

  .compare-grid,
  .feature-grid,
  .resource-grid,
  .guide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article {
    margin: 34px auto 52px;
  }

  .article section + section {
    margin-top: 34px;
  }

  .example-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 15px;
  }

  .closing {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
    padding: 20px;
  }

  .site-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 20px 20px 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
