/* ═══════════════════════════════════════════════════════════════════
   Memory Palace — Stylesheet v2
   Aesthetic: warm reading room. Off-white canvas. Warm amber accent.
   Type: Lora (display serif) + Inter (body) + JetBrains Mono (micro, sparingly)
   Shared by: index.html · personas.html · privacy.html · terms.html · refund.html
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Token Source of Truth ─── */
:root {
  /* Canvas — warm off-white */
  --bg:        #faf8f4;
  --bg-raised: #ffffff;
  --bg-soft:   #f0ede7;

  /* Text — near-black, warm */
  --text:      #1a1916;
  --text-dim:  #4a4844;
  --text-mute: #8a8780;

  /* Accent — warm amber */
  --accent:    #e0a458;
  --accent-hi: #cf9038;
  --accent-soft: rgba(224, 164, 88, 0.13);

  /* Status */
  --good:  #3a8f5c;
  --warn:  #b84f3a;

  /* Lines — hairline, dark-on-light */
  --line:     rgba(0, 0, 0, 0.10);
  --line-dim: rgba(0, 0, 0, 0.06);

  /* Type stacks */
  --display: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Geometry */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Shadows — soft, warm */
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.10);

  /* Layout */
  --container: 1140px;
  --read: 68ch;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
}

a {
  color: var(--accent-hi);
  text-decoration: none;
  transition: color 150ms;
}
a:hover { color: var(--text); text-decoration: underline; }

p { color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }
em { font-style: italic; }

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--text-dim);
}

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

/* ─── i18n: hide opposite-language elements ─── */
html[lang="vi"] [lang="en"],
html[lang="en"] [lang="vi"] { display: none !important; }

/* ─── Type System ─── */

.display-xl {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.display-lg {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
.display-lg em { font-style: italic; font-weight: 400; }

.display-md {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  color: var(--text);
}

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hi);
  display: inline-block;
  margin-bottom: 14px;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms, color 120ms, border-color 120ms, transform 100ms, box-shadow 120ms;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

/* Primary: amber fill */
.btn-primary {
  background: var(--accent);
  color: #1a1916;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(224, 164, 88, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: #fff;
  box-shadow: 0 4px 12px rgba(207, 144, 56, 0.30);
}

/* Ghost: hairline border */
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--line);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(0,0,0,0.22);
  background: var(--bg-soft);
}

/* Text link style */
.btn-text {
  background: transparent;
  border: none;
  color: var(--text-mute);
  padding: 8px 0;
  font-weight: 500;
  text-decoration: none;
}
.btn-text:hover { color: var(--text-dim); transform: none; text-decoration: none; }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ─── NAV ─── */

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 244, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Nav links (desktop) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mute);
  transition: color 120ms;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  font-family: var(--sans);
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1916 !important;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: var(--r-md);
  transition: background 120ms, color 120ms !important;
  text-decoration: none !important;
}
.nav-cta:hover {
  background: var(--accent-hi) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  transition: border-color 120ms, color 120ms;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent-hi); }
.lang-toggle .active { color: var(--accent-hi); }
.lang-toggle .sep { color: var(--text-mute); margin: 0 1px; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(250, 248, 244, 0.98);
  padding: 8px 0 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  border: none;
  text-decoration: none;
}
.nav-mobile a:hover { color: var(--text); text-decoration: none; }
.nav-mobile .nav-cta {
  margin: 8px 28px 0;
  text-align: center;
  display: block;
  padding: 12px 24px;
}
.nav-mobile-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px 0;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ─── Section base ─── */

section {
  padding: 96px 28px;
  border-top: 1px solid var(--line-dim);
}
section:first-of-type { border-top: none; }

/* Scroll-reveal: snappy 300ms */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── HERO ─── */

.hero {
  padding: 80px 28px 72px;
  border-top: none;
  background: var(--bg);
}

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

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-text {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
}
@media (max-width: 480px) {
  .hero-eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
}

.hero-h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-reassure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--good);
  background: rgba(58, 143, 92, 0.08);
  border: 1px solid rgba(58, 143, 92, 0.18);
  padding: 7px 14px;
  border-radius: 99px;
  margin-bottom: 28px;
}
.hero-reassure::before {
  content: '✓';
  font-size: 12px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-fineprint {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.9;
}

/* ─── Hero Visual: Before / After card ─── */

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 960px) {
  .hero-visual {
    display: none;
  }
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  opacity: 0;
  animation: panel-appear 500ms ease 150ms forwards;
}
@keyframes panel-appear {
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .before-after { opacity: 1; animation: none; }
}

.ba-before, .ba-after {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ba-before {
  background: #fdf7f5;
  border-right: 1px solid var(--line-dim);
}

.ba-after {
  background: #f7fbf7;
}

.ba-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ba-label-before { color: var(--warn); }
.ba-label-after  { color: var(--good); }

.ba-pile {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ba-file {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 5px 9px;
}

.ba-file-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.ba-more {
  font-size: 11px;
  color: var(--text-mute);
  font-style: italic;
  padding-left: 4px;
}

/* The output note card */
.ba-note {
  background: var(--bg-raised);
  border: 1px solid rgba(58, 143, 92, 0.25);
  border-radius: var(--r-md);
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ba-note-title {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.ba-note-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ba-note-bullets li {
  font-size: 11.5px;
  color: var(--text-dim);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.ba-note-bullets li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.ba-note-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.ba-tag {
  font-size: 10.5px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-hi);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(224, 164, 88, 0.20);
}

/* Arrow divider */
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 22px;
  color: var(--accent);
  font-weight: 300;
  background: var(--bg);
  border-left: 1px solid var(--line-dim);
  border-right: 1px solid var(--line-dim);
}

.panel-caption {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.5;
}

/* ─── WHO IT'S FOR (condensed personas) ─── */

.who {
  background: var(--bg-soft);
}

.who-header { margin-bottom: 48px; }

.who-pull {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin-bottom: 48px;
  line-height: 1.5;
  max-width: 58ch;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .who-grid { grid-template-columns: 1fr; gap: 14px; }
}

.who-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.who-card-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.who-card-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.who-card-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
  flex-grow: 1;
}

.who-card-quote {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-mute);
  border-left: 2px solid var(--line);
  padding-left: 10px;
  line-height: 1.5;
}

.who-anti {
  margin-top: 12px;
  padding: 18px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.65;
}
.who-anti strong { color: var(--text-dim); }

/* ─── HOW IT WORKS ─── */

.how {
  background: var(--bg);
}

.how-header { margin-bottom: 56px; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-dim);
  align-items: start;
}
.step:last-child { border-bottom: none; }

@media (max-width: 640px) {
  .step { grid-template-columns: 40px 1fr; gap: 18px; }
}

@media (max-width: 640px) {
  section {
    padding: 56px 20px;
  }
  .hero {
    padding: 48px 20px;
  }
}

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hi);
  padding-top: 3px;
  letter-spacing: 0.05em;
}

.step-content h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-dim);
  max-width: 58ch;
}

.how-caption {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-mute);
}

/* ─── PRIVACY + COMPARE ─── */

.local {
  background: var(--bg-soft);
}

.local-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .local-grid { grid-template-columns: 1fr; gap: 40px; } }

.local-text h2 { margin-bottom: 24px; }

.local-text p {
  font-size: 16.5px;
  line-height: 1.78;
  margin-bottom: 18px;
  color: var(--text-dim);
}

/* Compare table */
.compare-box {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-box h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.compare {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13px;
}
.compare th, .compare td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line-dim);
}
.compare th {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.compare td { color: var(--text-dim); }
.compare td:first-child { color: var(--text); font-weight: 500; font-size: 12.5px; }
.compare tr:last-child td { border-bottom: none; }
.cell-yes { color: var(--good) !important; font-weight: 700; }
.cell-no  { color: var(--text-mute) !important; }

.compare-note {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 12px;
  line-height: 1.6;
}

/* ─── PRICING ─── */

.pricing {
  background: var(--bg);
}

.pricing-header { margin-bottom: 16px; }

.pricing-lead {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 52px;
  max-width: 56ch;
  line-height: 1.65;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 16px;
    margin-left: auto;
    margin-right: auto;
  }
  .price-featured {
    transform: none;
  }
}

.price-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}

.price-featured {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(224, 164, 88, 0.18);
}

.price-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a1916;
  padding: 5px 14px;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-tier {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.price-featured .price-tier { color: var(--accent-hi); }

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.amount-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 8vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.amount-strike {
  font-size: 16px;
  text-decoration: line-through;
  color: var(--text-mute);
}

.price-period {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 24px;
  line-height: 1.6;
}

.price-feat {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  flex-grow: 1;
}
.price-feat li {
  padding: 9px 0;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-dim);
  line-height: 1.5;
}
.price-feat li:last-child { border-bottom: none; }
.price-feat li.muted { color: var(--text-mute); font-style: italic; }

.pricing-trial-note {
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 560px;
}
.pricing-trial-note strong { color: var(--text); }

/* ─── FOUNDER NOTE ─── */

.founder {
  background: var(--bg-soft);
}

.founder-inner { max-width: 700px; }

.founder-header { margin-bottom: 32px; }

.founder-prose p {
  font-family: var(--display);
  font-weight: 400;
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.founder-prose strong { color: var(--text); font-weight: 600; }

.founder-sign {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.founder-sign-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
}
.founder-sign-role {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ─── FAQ ─── */

.faq { background: var(--bg); }
.faq-header { margin-bottom: 44px; }

.faq-q {
  border-bottom: 1px solid var(--line-dim);
}
.faq-q:first-of-type { border-top: 1px solid var(--line-dim); }

.faq-q summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  line-height: 1.35;
  user-select: none;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--text-mute);
  transition: transform 200ms, color 200ms;
  font-family: var(--sans);
  line-height: 1;
}
.faq-q[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--accent-hi);
}

.faq-a {
  padding: 0 0 26px 0;
  max-width: 68ch;
}
.faq-a p {
  font-size: 15.5px;
  line-height: 1.78;
  margin-bottom: 14px;
  color: var(--text-dim);
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--text); }
.faq-a em { color: var(--text-dim); font-style: italic; }
.faq-a code { font-size: 13px; }

.faq-tech-note {
  margin-top: 10px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.65;
}
.faq-tech-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
  display: block;
}

.faq-more {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.7;
}

/* ─── FINAL CTA ─── */

.cta-final {
  background: var(--bg-soft);
  text-align: center;
}

.cta-final h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 36px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-fine {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.9;
}

/* Vietnam payment note */
.payment-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-card);
}
.payment-note h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.payment-note p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 8px;
}
.payment-note ul {
  margin: 0 0 10px 18px;
  padding: 0;
}
.payment-note li {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 4px;
  line-height: 1.5;
}
.payment-note .fine {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--text-mute);
}

/* ─── FOOTER ─── */

.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  padding: 56px 28px 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; flex-direction: column; gap: 10px; }

.footer-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul a { color: var(--text-mute); font-size: 13.5px; text-decoration: none; }
.site-footer ul a:hover { color: var(--accent-hi); text-decoration: none; }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}

/* ─── Utility classes for secondary pages ─── */

.page-hero {
  padding: 80px 28px 56px;
  border-bottom: 1px solid var(--line-dim);
}

.page-content {
  padding: 56px 28px 80px;
}

.page-content .container {
  max-width: 740px;
}

.page-content h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.page-content ul, .page-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.page-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* ─── SCREENSHOT SHOWCASE ─── */

.screenshots {
  background: var(--bg-soft);
}

.screenshots-header {
  margin-bottom: 48px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* First card spans both columns */
.screenshot-card--wide {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .screenshot-card--wide {
    grid-column: auto;
  }
}

.screenshot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screenshot-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  /* graceful degradation before image loads */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle shimmer placeholder while image loads */
.screenshot-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg-soft) 0%,
    var(--bg-raised) 50%,
    var(--bg-soft) 100%
  );
  background-size: 200% 100%;
  z-index: 1;
  pointer-events: none;
}

.screenshot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  border-radius: var(--r-lg);
}

/* Hide shimmer once image is loaded */
.screenshot-frame img:not([src=""]) + * { display: none; }

.screenshot-card figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.5;
  padding-left: 2px;
}

/* ─── OUTPUT GENERATION SHOWCASE ─── */

.outputs {
  background: var(--bg);
}

.outputs-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 58ch;
  margin-top: 16px;
}

.outputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

/* ─── ANIMATIONS ─── */

/* Hero entrance — staggered fade+slide-up on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow {
    opacity: 0;
    animation: hero-fade-up 480ms ease 80ms forwards;
  }
  .hero-h1 {
    opacity: 0;
    animation: hero-fade-up 480ms ease 160ms forwards;
  }
  .hero-sub {
    opacity: 0;
    animation: hero-fade-up 480ms ease 240ms forwards;
  }
  .hero-reassure {
    opacity: 0;
    animation: hero-fade-up 480ms ease 300ms forwards;
  }
  .hero-cta {
    opacity: 0;
    animation: hero-fade-up 480ms ease 360ms forwards;
  }
  .hero-fineprint {
    opacity: 0;
    animation: hero-fade-up 480ms ease 420ms forwards;
  }

  @keyframes hero-fade-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Card lift + shadow on hover */
  .who-card,
  .price-card,
  .screenshot-card .screenshot-frame,
  .compare-box {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .who-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
  }

  .price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  }

  .price-featured:hover {
    transform: translateY(-9px);
    box-shadow: 0 16px 40px rgba(224, 164, 88, 0.24);
  }

  .screenshot-card .screenshot-frame:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
  }

  /* Button lift micro-interaction — augments existing .btn:hover */
  .btn-primary:hover {
    transform: translateY(-2px);
  }
  .btn-primary:active {
    transform: translateY(0);
  }

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

  /* Subtle hero accent: gentle float on the before/after panel arrow */
  .ba-arrow {
    animation: gentle-float 3.6s ease-in-out infinite;
  }

  @keyframes gentle-float {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(4px); }
  }

  /* Screenshot card reveal — stagger via nth-child */
  .screenshot-card:nth-child(1) { animation-delay: 0ms; }
  .screenshot-card:nth-child(2) { animation-delay: 60ms; }
  .screenshot-card:nth-child(3) { animation-delay: 120ms; }
  .screenshot-card:nth-child(4) { animation-delay: 180ms; }
  .screenshot-card:nth-child(5) { animation-delay: 240ms; }

  /* FAQ summary hover */
  .faq-q summary {
    transition: color 150ms;
  }
  .faq-q summary:hover {
    color: var(--accent-hi);
  }

  /* Kicker accent pulse — one subtle breath on first load */
  .hero .kicker,
  .screenshots-header .kicker {
    animation: kicker-appear 600ms ease 500ms both;
  }
  @keyframes kicker-appear {
    from { opacity: 0; letter-spacing: 0.04em; }
    to   { opacity: 1; letter-spacing: 0.12em; }
  }
}

/* Disable all motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-h1,
  .hero-sub,
  .hero-reassure,
  .hero-cta,
  .hero-fineprint {
    opacity: 1;
    animation: none;
  }
  .ba-arrow {
    animation: none;
  }
}

/* ─── Persona card (secondary page) ─── */

.personas-hero {
  padding: 80px 28px 56px;
  border-bottom: 1px solid var(--line-dim);
}

.persona-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
