/* ============================================================
   TANK CARE BUDDY — Marketing Site Styles
   Palette: deep teal primary, warm off-white surfaces, clean water feel
   Fonts: Plus Jakarta Sans (display) + Inter (body) via Google Fonts
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root,
[data-theme="light"] {
  /* Surfaces */
  --color-bg:             #f4f7f7;
  --color-surface:        #ffffff;
  --color-surface-2:      #eef3f3;
  --color-border:         #ccd8d8;
  --color-divider:        #dde6e6;

  /* Text */
  --color-text:           #0f2323;
  --color-text-muted:     #4a6363;
  --color-text-faint:     #8aa5a5;
  --color-text-inverse:   #f4f7f7;

  /* Primary — deep teal */
  --color-primary:        #007878;
  --color-primary-hover:  #005f5f;
  --color-primary-active: #004545;
  --color-primary-light:  #e0f0f0;

  /* Accent — warm aqua for CTAs */
  --color-cta:            #009999;
  --color-cta-hover:      #007a7a;

  /* Success */
  --color-success:        #3a8a40;
  --color-success-bg:     #e6f4e7;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,60,60,0.07);
  --shadow-sm:  0 2px 8px rgba(0,60,60,0.09);
  --shadow-md:  0 6px 20px rgba(0,60,60,0.10);
  --shadow-lg:  0 16px 48px rgba(0,60,60,0.12);

  /* Radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.625rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-full: 9999px;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl:   clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --text-2xl:  clamp(1.875rem, 1.2rem + 2.2vw, 3rem);
  --text-3xl:  clamp(2.5rem,   1.5rem + 3.5vw, 4rem);

  /* Fonts */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --trans: 180ms var(--ease-out);
}

[data-theme="dark"] {
  --color-bg:             #0a1818;
  --color-surface:        #0f2222;
  --color-surface-2:      #152a2a;
  --color-border:         #1e3535;
  --color-divider:        #1a2e2e;
  --color-text:           #d4e8e8;
  --color-text-muted:     #6fa0a0;
  --color-text-faint:     #3d6060;
  --color-text-inverse:   #0a1818;
  --color-primary:        #3bbfbf;
  --color-primary-hover:  #5dd4d4;
  --color-primary-active: #7ee0e0;
  --color-primary-light:  #102828;
  --color-cta:            #3bbfbf;
  --color-cta-hover:      #5dd4d4;
  --color-success:        #5ab560;
  --color-success-bg:     #0e2510;
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:  0 6px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0a1818;
    --color-surface:        #0f2222;
    --color-surface-2:      #152a2a;
    --color-border:         #1e3535;
    --color-divider:        #1a2e2e;
    --color-text:           #d4e8e8;
    --color-text-muted:     #6fa0a0;
    --color-text-faint:     #3d6060;
    --color-text-inverse:   #0a1818;
    --color-primary:        #3bbfbf;
    --color-primary-hover:  #5dd4d4;
    --color-primary-active: #7ee0e0;
    --color-primary-light:  #102828;
    --color-cta:            #3bbfbf;
    --color-cta-hover:      #5dd4d4;
    --color-success:        #5ab560;
    --color-success-bg:     #0e2510;
    --shadow-xs:  0 1px 3px rgba(0,0,0,0.3);
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.35);
    --shadow-md:  0 6px 20px rgba(0,0,0,0.4);
    --shadow-lg:  0 16px 48px rgba(0,0,0,0.5);
  }
}

/* ── BASE RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.2;
  color: var(--color-text);
}
p, li, figcaption { text-wrap: pretty; max-width: 70ch; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--color-primary-hover); }

button { cursor: pointer; background: none; border: none; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
::selection { background: var(--color-primary-light); color: var(--color-text); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}
.container--narrow {
  max-width: 720px;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--trans);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-6);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.site-logo-mark { flex-shrink: 0; }
.site-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--trans), background var(--trans);
}
.site-nav a:hover, .site-nav a.active {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  transition: background var(--trans), color var(--trans);
}
.theme-toggle:hover { background: var(--color-surface-2); color: var(--color-text); }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--trans);
}
.nav-toggle:hover { background: var(--color-surface-2); }
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms var(--ease-out), opacity 180ms;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .site-nav {
    display: none;
    position: fixed;
    inset: 60px 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    gap: var(--space-2);
    z-index: 99;
    border-top: 1px solid var(--color-divider);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: var(--text-base); padding: var(--space-3) var(--space-4); width: 100%; }
  .nav-toggle { display: flex; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.6em 1.4em;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans), transform 120ms, box-shadow var(--trans);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,120,120,0.25);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,120,120,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.btn-lg {
  font-size: var(--text-base);
  padding: 0.7em 1.8em;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 0.65em 1.4em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background var(--trans), transform 120ms, box-shadow var(--trans);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
}
.btn-appstore:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-appstore:active { transform: scale(0.97); }
.btn-appstore-label { display: flex; flex-direction: column; line-height: 1.2; }
.btn-appstore-sub { font-size: 0.7em; font-weight: 400; opacity: 0.75; }
.btn-appstore-main { font-size: 1em; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  text-align: center;
  background: linear-gradient(
    175deg,
    var(--color-primary-light) 0%,
    var(--color-bg) 60%
  );
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--color-primary-light), transparent);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  max-width: 16ch;
  margin-inline: auto;
}
.hero-title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

/* Phone mockup */
.hero-mockup {
  position: relative;
  margin-inline: auto;
  width: min(360px, 90vw);
}

.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--color-text);
  border-radius: 2.5rem;
  padding: 1rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-border);
  overflow: hidden;
}
[data-theme="dark"] .phone-frame,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .phone-frame {
    background: #1a2f2f;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--color-border);
  }
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 1.75rem;
  background: linear-gradient(160deg, #e0f4f4 0%, #c8ecec 30%, #e8f4f0 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6);
}
[data-theme="dark"] .phone-screen {
  background: linear-gradient(160deg, #0d2020 0%, #0a1a1a 100%);
}

.screen-app-icon {
  width: 64px; height: 64px;
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--color-primary), #005f5f);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,120,120,0.4);
}

.screen-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}
[data-theme="dark"] .screen-label { color: #3bbfbf; }

.screen-placeholder-text {
  font-size: 0.75rem;
  color: var(--color-text-faint);
  text-align: center;
}

.screen-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.screen-card {
  background: rgba(255,255,255,0.85);
  border-radius: 0.5rem;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: var(--color-text);
}
[data-theme="dark"] .screen-card {
  background: rgba(255,255,255,0.07);
  color: #9cc8c8;
}
.screen-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}
.screen-card-dot.green { background: #3a8a40; }
.screen-card-dot.gold  { background: #c08000; }

/* ── SECTION GENERIC ─────────────────────────────────────────── */
.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
}
.section--alt { background: var(--color-surface); }
.section--teal {
  background: var(--color-primary);
  color: #fff;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section--teal .section-label { color: rgba(255,255,255,0.6); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.65;
}
.section--teal .section-sub { color: rgba(255,255,255,0.75); }

/* ── FEATURES GRID ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: box-shadow var(--trans), transform var(--trans);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}
[data-theme="dark"] .feature-icon { background: #102828; }

.feature-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
}

/* ── WHO IT'S FOR ─────────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.audience-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.audience-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.audience-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.audience-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

/* ── APP STORE CTA BANNER ────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #005050 100%);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-12));
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.07), transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--space-3);
}
.cta-banner p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.cta-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-5);
}

/* App Store button on dark bg */
.btn-appstore-white {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: #fff;
  color: #0f2323;
  border-radius: var(--radius-lg);
  padding: 0.7em 1.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: transform 120ms, box-shadow var(--trans), background var(--trans);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.btn-appstore-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: #0f2323;
}
.btn-appstore-white .btn-appstore-label { display: flex; flex-direction: column; line-height: 1.2; }
.btn-appstore-white .btn-appstore-sub { font-size: 0.68em; font-weight: 500; opacity: 0.6; }
.btn-appstore-white .btn-appstore-main { font-size: 1em; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10) var(--space-8);
  background: var(--color-surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand {}
.footer-brand .site-logo { margin-bottom: var(--space-3); }
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 30ch;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-end;
}
@media (max-width: 560px) {
  .footer-links { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); }
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--color-primary); }

.footer-copy {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-copy p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: none;
}

/* ── PAGE HERO (interior pages) ──────────────────────────────── */
.page-hero {
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
  border-bottom: 1px solid var(--color-divider);
  background: linear-gradient(175deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
}
.page-hero-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.page-hero p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 50ch;
  line-height: 1.65;
}

/* ── CONTENT PROSE (privacy, support) ───────────────────────── */
.prose {
  max-width: 680px;
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
}
.prose h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.prose h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.prose h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.prose p { font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: var(--space-4); line-height: 1.7; max-width: none; }
.prose ul, .prose ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.prose li { font-size: var(--text-base); color: var(--color-text-muted); }
.prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--color-text); font-weight: 600; }

.prose-aside {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-block: var(--space-6);
}
[data-theme="dark"] .prose-aside { background: #102828; }
.prose-aside p { color: var(--color-text-muted); margin: 0; font-size: var(--text-sm); }

/* ── SUPPORT CARDS ──────────────────────────────────────────── */
.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
  margin-bottom: var(--space-10);
}
.support-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.support-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
[data-theme="dark"] .support-card-icon { background: #102828; }
.support-card h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); }
.support-card p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: none; line-height: 1.6; }
.support-card a { color: var(--color-primary); word-break: break-all; }

/* ── FAQ ACCORDION ──────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--trans);
}
.faq-item.open { box-shadow: var(--shadow-sm); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--trans);
}
.faq-q:hover { background: var(--color-surface-2); }
.faq-q-icon {
  width: 24px; height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 280ms var(--ease-out), background var(--trans);
}
.faq-item.open .faq-q-icon { transform: rotate(45deg); background: var(--color-primary-light); }

.faq-a {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }

/* ── PLACEHOLDER NOTICE ─────────────────────────────────────── */
.placeholder-notice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #fef9e7;
  border: 1px solid #f5cc5a;
  color: #7a5800;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
[data-theme="dark"] .placeholder-notice {
  background: #2a2000;
  border-color: #6a5000;
  color: #e8c040;
}

/* ── UTILITIES ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.gap-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
