:root {
  --bg: #FFF7F1;
  --bg-soft: #FFEFE5;
  --ink: #2A1A14;
  --ink-soft: #5a3f33;
  --ink-mute: #8a6b5e;
  --accent: #FF706D;
  --accent-hover: #ff5a56;
  --accent-soft: #FFB8A8;
  --spark: #F5A623;
  --card: #ffffff;
  --border: rgba(42, 26, 20, 0.08);
  --shadow-sm: 0 2px 6px rgba(255, 112, 109, 0.15);
  --shadow-md: 0 8px 24px rgba(42, 26, 20, 0.06);
  --shadow-lg: 0 20px 60px rgba(255, 112, 109, 0.15);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Decorative background blobs ── */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 480px; height: 480px;
  background: var(--accent-soft);
  top: -120px; right: -120px;
}
body::after {
  width: 420px; height: 420px;
  background: #FFE0C2;
  bottom: -160px; left: -120px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 241, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 36px; height: 36px;
}
.brand-name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  background: rgba(255, 112, 109, 0.08);
  color: var(--accent);
}
.nav-link.is-active {
  color: var(--accent);
  background: rgba(255, 112, 109, 0.1);
}

/* ── Header dropdown menu (native <details>) ── */
.nav-menu {
  position: relative;
}
.nav-menu-trigger {
  list-style: none;
  cursor: pointer;
  user-select: none;
  gap: 0.25rem;
}
.nav-menu-trigger::-webkit-details-marker { display: none; }
.nav-menu-caret {
  transition: transform 0.15s ease;
  opacity: 0.7;
}
.nav-menu[open] .nav-menu-trigger {
  color: var(--accent);
  background: rgba(255, 112, 109, 0.1);
}
.nav-menu[open] .nav-menu-caret { transform: rotate(180deg); }
/* Light up the parent trigger when a child link is active */
.nav-menu:has(.nav-menu-item.is-active) .nav-menu-trigger {
  color: var(--accent);
}
.nav-menu-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 260px;
  padding: 0.5rem;
  background: #fffaf5;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(28, 24, 23, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  z-index: 60;
}
.nav-menu-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}
.nav-menu-item:hover {
  background: rgba(255, 112, 109, 0.08);
}
.nav-menu-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.nav-menu-item-desc {
  font-size: 0.8125rem;
  color: var(--ink-mute);
  line-height: 1.4;
}
.nav-menu-item.is-active {
  background: rgba(255, 112, 109, 0.1);
}
.nav-menu-item.is-active .nav-menu-item-title { color: var(--accent); }

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.login-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 112, 109, 0.35);
}
.login-btn:active { transform: translateY(0); }

/* ── Mobile nav toggle (hidden on desktop) ── */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  transition: background 0.15s ease;
}
.nav-toggle:hover { background: rgba(255, 112, 109, 0.08); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Hero ── */
main { flex: 1; }
.hero {
  padding: 4rem 0 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 112, 109, 0.1);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
  font-weight: 800;
}
h1 .accent {
  background: linear-gradient(120deg, var(--accent) 0%, #ff8a5b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead,
p.lead {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 2rem;
}
/* Direct-download fallback link under the hero store badges. */
.hero-direct-download {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.hero-direct-download a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.hero-direct-download a:hover {
  border-bottom-color: currentColor;
}
/* Small note under the hero downloads (e.g. the referral-code requirement). */
.hero-referral-note {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.hero-referral-note strong { color: var(--ink-soft); font-weight: 600; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 112, 109, 0.35);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero-visual {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.hero-slides {
  position: relative;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-slide-fade 18s infinite;
  animation-timing-function: ease-in-out;
}
.hero-slide.is-1 { animation-delay: 0s; }
.hero-slide.is-2 { animation-delay: 6s; }
.hero-slide.is-3 { animation-delay: 12s; }
/* Make the first slide drive layout so the visual area has real height. */
.hero-slides .hero-slide.is-1 { position: relative; }
@keyframes hero-slide-fade {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  31%  { opacity: 1; }
  34%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide.is-1 { opacity: 1; }
}
.hero-visual .frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-visual .badge {
  position: absolute;
  background: #fff;
  padding: 0.625rem 0.875rem;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.hero-visual .badge .dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.hero-visual .badge.tl { top: -14px; left: -14px; }
.hero-visual .badge.br { bottom: -32px; right: -14px; }
@media (max-width: 640px) {
  .hero-visual .badge.tl { left: 8px; }
  .hero-visual .badge.br { right: 8px; }
}

/* ── Section headings ── */
.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h3 {
  font-size: 1.1875rem;
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.3;
}

/* ── CTA Strip ── */
.cta-strip {
  padding: 3rem 0 5rem;
}
.cta-strip-inner {
  background: linear-gradient(135deg, var(--ink) 0%, #4a2a1f 100%);
  color: #fff;
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.cta-strip-inner::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  background: var(--accent);
  filter: blur(100px);
  opacity: 0.35;
  bottom: -160px; right: -100px;
  border-radius: 50%;
}
.cta-strip-inner > * { position: relative; }
.cta-strip h2 { color: #fff; max-width: 32rem; }
.cta-strip p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  margin: 0;
  font-size: 1.0625rem;
}
.cta-strip .btn-primary {
  background: #fff;
  color: var(--ink);
}
.cta-strip .btn-primary:hover {
  background: var(--bg);
  color: var(--ink);
}

/* ── Pricing page ── */
.pricing-hero {
  padding: 4rem 0 1.5rem;
  text-align: center;
}
.pricing-hero .eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.pricing-hero h1 {
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}
.pricing-hero p.lead {
  margin-left: auto;
  margin-right: auto;
}
.promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #FFE9DC 0%, #FFC8B6 100%);
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-sm);
}
.promo-banner .promo-emoji {
  font-size: 1.125rem;
  line-height: 1;
}
.promo-banner strong {
  color: var(--accent);
}

.pricing {
  padding: 2rem 0 4rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
}
@media (min-width: 880px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 112, 109, 0.3);
}
.pricing-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 880px) {
  .pricing-card.featured {
    transform: translateY(-12px);
  }
  .pricing-card.featured:hover {
    transform: translateY(-16px);
  }
}
.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4375rem 0.875rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.pricing-card-head h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.pricing-card-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.price {
  margin: 1.5rem 0 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.price .amount {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.price .currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-left: 0.25rem;
}
.price .per {
  color: var(--ink-mute);
  font-size: 0.9375rem;
  font-weight: 500;
}
.first-month {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.first-month::before {
  content: "🔥";
  font-size: 0.875rem;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.feature-list li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.feature-list li.tier-feature {
  color: var(--ink);
  font-weight: 500;
}
.feature-list li strong {
  color: var(--ink);
  font-weight: 700;
}
.feature-list .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 112, 109, 0.15);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 0.1875rem;
}
.pricing-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.pricing-card:not(.featured) .pricing-cta {
  background: var(--ink);
}
.pricing-card:not(.featured) .pricing-cta:hover {
  background: #4a2a1f;
}
.pricing-footnote {
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.875rem;
  max-width: 42rem;
  line-height: 1.7;
}

/* ── Legal pages (privacy, terms) ── */
.legal-hero {
  padding: 4rem 0 1.5rem;
  text-align: center;
}
.legal-hero .eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.legal-hero h1 {
  max-width: 36rem;
  margin: 0 auto 1rem;
}
.legal-hero p.lead {
  margin-left: auto;
  margin-right: auto;
}
.legal-updated {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.875rem;
}
.legal {
  padding: 1.5rem 0 4rem;
}
.legal-content {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.legal-content section + section {
  margin-top: 2rem;
}
.legal-content h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.legal-content h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.5rem;
}
.legal-content p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.legal-content li {
  margin-bottom: 0.5rem;
}
.legal-content a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
}
.legal-content strong {
  color: var(--ink);
}
@media (max-width: 640px) {
  .legal-hero { padding: 2.5rem 0 1rem; }
  .legal-content { padding: 1.75rem; border-radius: 18px; }
}

/* ── Contact page ── */
.contact-hero {
  padding: 4rem 0 1.5rem;
  text-align: center;
}
.contact-hero .eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.contact-hero h1 {
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}
.contact-hero p.lead {
  margin-left: auto;
  margin-right: auto;
}
.contact {
  padding: 1.5rem 0 4rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact-card h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
.contact-block + .contact-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.5rem;
}
.contact-block p {
  margin: 0 0 0.25rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.contact-block strong {
  color: var(--ink);
}
.contact-block a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.contact-block a:hover {
  text-decoration: underline;
}
.contact-map {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--card);
}
.contact-map img {
  display: block;
  width: 100%;
  height: auto;
}
.contact-map figcaption {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.contact-map figcaption strong {
  color: var(--ink);
}
@media (max-width: 640px) {
  .contact-hero { padding: 2.5rem 0 1rem; }
  .contact-card { padding: 1.75rem; border-radius: 18px; }
}

/* ── Footer ── */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 247, 241, 0.6);
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 0;
}
.footer-inner p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}
.footer-registration {
  font-size: 0.6875rem !important;
  opacity: 0.7;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-top: 0.5rem !important;
}
.footer-links a {
  color: var(--ink-mute);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--accent);
}
/* Multi-column footer link sections (uppercase heading + vertical link list). */
.footer-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  width: 100%;
}
.footer-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-section-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.footer-section-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}
.footer-section-links a {
  color: var(--ink-mute);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-section-links a:hover {
  color: var(--accent);
}
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 860px) {
  .footer-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .footer-sections { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 2.5rem 0 3rem; }
  .why, .benefits { padding: 3rem 0; }
  .agents { padding: 0.5rem 0 3rem; }
  .cta-strip { padding: 2rem 0 3.5rem; }
  .pricing-hero { padding: 2.5rem 0 1rem; }
  .pricing { padding: 1rem 0 3rem; }
  .pricing-card { padding: 1.75rem; }
}

/* ── Mobile navigation (drawer below header) ── */
@media (max-width: 760px) {
  .header-inner { padding: 0.75rem 0; gap: 0.5rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
    padding: 0.75rem 1rem 1rem;
    background: rgba(255, 247, 241, 0.98);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(42, 26, 20, 0.06);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s ease;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav .nav-link {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border-radius: 12px;
    font-size: 1rem;
    justify-content: flex-start;
  }
  .nav-menu { width: 100%; }
  .nav-menu-trigger { width: 100%; justify-content: space-between; }
  .nav-menu-panel {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.25rem;
    box-shadow: none;
    background: rgba(255, 112, 109, 0.04);
    border-color: transparent;
    padding: 0.375rem;
  }
  .nav-menu-item { padding: 0.625rem 0.75rem; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1rem; }
}

/* ── Sandbox download page ── */
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-top: 1.75rem;
}
.download-btn {
  padding: 0.875rem 1.5rem;
  text-align: left;
  min-width: 18rem;
  gap: 0.875rem;
}
.download-btn .download-btn-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}
.download-btn .download-btn-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.04em;
}
.download-btn .download-btn-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.download-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.sandbox-shots {
  padding: 1rem 0 5rem;
}

/* Responsive 16:9 video embed (e.g. YouTube iframes on the tutorials page). */
.tutorial-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.25rem 0 1.75rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}
.tutorial-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.install-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .install-steps { grid-template-columns: repeat(2, 1fr); }
}
.install-steps img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}

/* Onboarding: let screenshots break out of the 720px doc column so they
   read clearly. Centered relative to the doc using the margin/transform
   trick; clamped to viewport width on narrow screens. */
[data-page="onboarding"] .install-steps,
[data-page="onboarding-sandbox"] .install-steps,
[data-page="onboarding-no-sandbox"] .install-steps {
  width: min(1040px, calc(100vw - 2rem));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  grid-template-columns: 1fr;
}

/* ── Release notes / docs page ── */
.release-notes {
  padding: 3rem 0 4rem;
}
.release-notes .doc {
  max-width: 720px;
  margin: 0 auto;
}
.release-notes .doc-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.release-notes .doc-meta .version {
  color: var(--accent);
}
.release-notes h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.release-notes .doc-summary {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.release-notes h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.release-notes h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 2rem;
}
.release-notes p,
.release-notes li {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.release-notes p { margin: 0 0 1rem; }
.release-notes ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.release-notes ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.release-notes ul li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  background: var(--ink-mute);
  border-radius: 50%;
}
.release-notes ul li strong { color: var(--ink); font-weight: 600; }

/* Benefit list with check-mark icons (e.g. app download page). */
.release-notes ul.feature-list {
  display: grid;
  gap: 0.625rem;
  margin: 0 0 1.5rem;
}
.release-notes ul.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-left: 0;
  margin-bottom: 0;
}
.release-notes ul.feature-list li::before { content: none; }
.release-notes ul.feature-list li > svg {
  flex: 0 0 auto;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.05rem;
  padding: 0.1875rem;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ── Image lightbox (zoomable screenshots) ── */
img.zoomable {
  cursor: zoom-in;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(42, 26, 20, 0.78);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  cursor: zoom-out;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.lightbox.is-open img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.lightbox-close:hover { background: #fff; }

/* ── Video lightbox (click a facade to play it big) ── */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(42, 26, 20, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.video-lightbox-inner {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.video-lightbox.is-open .video-lightbox-inner {
  transform: scale(1);
}
.video-lightbox-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.release-notes ol.ordered {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  counter-reset: step;
}
.release-notes ol.ordered li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.65;
  counter-increment: step;
}
.release-notes ol.ordered li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.125rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 112, 109, 0.12);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.release-notes ol.ordered li strong { color: var(--ink); font-weight: 600; }

.release-notes code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.0625rem 0.375rem;
  color: var(--ink);
}
.release-notes pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  margin: 0.5rem 0 0;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}
.release-notes pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: var(--ink);
}

.release-notes .callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.release-notes .callout p { margin: 0; color: var(--ink); font-size: 0.9375rem; }
.release-notes .callout .callout-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.release-notes .compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
}
@media (min-width: 640px) {
  .release-notes .compare { grid-template-columns: 1fr 1fr; }
}
.release-notes .compare-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow: hidden;
}
/* Full-bleed thumbnail at the top of a compare-card. */
.release-notes .compare-card .card-figure {
  margin: -1rem -1.25rem 0.875rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.release-notes .compare-card .card-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.release-notes .compare-card .card-figure video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
/* "Coming soon" tinted block used in place of a screenshot. */
.release-notes .compare-card .card-figure.is-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #FFE0C2 100%);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Lead figure inside a docs/release-notes article. */
.release-notes .doc-figure {
  margin: 1.25rem 0 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}
.release-notes .doc-figure img,
.release-notes .doc-figure video {
  display: block;
  width: 100%;
  height: auto;
}
/* Wider, page-centered hero figure that breaks out of the 720px article column. */
.release-notes .doc-figure.is-hero {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw - 3rem, 1072px);
  max-width: none;
  margin: 1.5rem 0 2.25rem;
}
.release-notes .doc-figure.is-placeholder {
  box-shadow: none;
}
.release-notes .doc-figure-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  text-align: center;
  aspect-ratio: 16 / 9;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #FFE0C2 100%);
  color: var(--ink-soft);
}
.release-notes .doc-figure-placeholder-icon {
  color: var(--accent);
  opacity: 0.85;
}
.release-notes .doc-figure-placeholder-title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.release-notes .compare-card .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.25rem;
}
.release-notes .compare-card .label.accent { color: var(--accent); }
.release-notes .compare-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  color: var(--ink);
}
.release-notes .compare-card p {
  margin: 0;
  font-size: 0.9375rem;
}

.release-notes .download-row {
  justify-content: flex-start;
  margin-top: 0.5rem;
}
.release-notes .download-btn {
  min-width: 0;
}

/* ── Onboarding inline term note ── */
.release-notes .term-note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-soft);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: -0.25rem 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  display: block;
}
.release-notes .term-note strong {
  color: var(--ink);
  font-weight: 700;
}
.release-notes .term-note code {
  font-size: 0.8125rem;
  padding: 0.0625rem 0.3125rem;
}

/* ── Onboarding: choose-an-option cards ── */
.onboarding-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
@media (min-width: 720px) {
  .onboarding-options { grid-template-columns: 1fr 1fr; }
}
.onboarding-option {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.onboarding-option.recommended {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.onboarding-option-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}
.onboarding-option h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.25rem;
}
.onboarding-option-time {
  margin: 0 0 0.75rem !important;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-mute);
}
.onboarding-option > p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.onboarding-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
}
.onboarding-benefits li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.onboarding-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.onboarding-option .btn-primary,
.onboarding-option .btn-secondary {
  margin-top: auto;
  align-self: flex-start;
}

/* ── Onboarding: system requirements table ── */
.req-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.req-table th,
.req-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.req-table tr:last-child th,
.req-table tr:last-child td {
  border-bottom: none;
}
.req-table thead th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--ink);
}
.req-table tbody th[scope="row"] {
  font-weight: 700;
  color: var(--ink);
}
.req-table td {
  color: var(--ink-soft);
}
.req-table th:not(:first-child),
.req-table td:not(:first-child) {
  border-left: 1px solid var(--border);
}

/* ── Business & teacher pages: clean, white, informational (public-release) ── */
:is([data-page="business"], [data-page="teacher"]) body {
  background: #ffffff;
}
:is([data-page="business"], [data-page="teacher"]) {
  background: #ffffff;
}
/* Drop the decorative warm blobs for a flat white canvas. */
:is([data-page="business"], [data-page="teacher"]) body::before,
:is([data-page="business"], [data-page="teacher"]) body::after {
  display: none;
}
/* Plain white, hairline-bordered header to match the clean canvas. */
:is([data-page="business"], [data-page="teacher"]) .site-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border);
}
:is([data-page="business"], [data-page="teacher"]) .footer {
  background: #ffffff;
}
/* Tighten the hero now that there is no promo banner. */
:is([data-page="business"], [data-page="teacher"]) .hero {
  padding: 4rem 0 4rem;
}
/* Framed product screenshot, shown as the second hero column. */
:is([data-page="business"], [data-page="teacher"]) .business-shot-frame {
  margin: 0;
  width: 100%;
  max-width: 640px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}
:is([data-page="business"], [data-page="teacher"]) .business-shot-frame img,
:is([data-page="business"], [data-page="teacher"]) .business-shot-frame video {
  display: block;
  width: 100%;
  height: auto;
}
/* On wide screens the image sits to the right of the copy. */
@media (max-width: 959px) {
  :is([data-page="business"], [data-page="teacher"]) .hero-grid { justify-items: center; text-align: center; }
  :is([data-page="business"], [data-page="teacher"]) .hero-copy .lead { margin-left: auto; margin-right: auto; }
  :is([data-page="business"], [data-page="teacher"]) .hero-downloads { justify-content: center; }
}
@media (max-width: 640px) {
  :is([data-page="business"], [data-page="teacher"]) .business-shot-frame { border-radius: 12px; }
}


/* ── Showcase: clean, modern video gallery (bottom of products page) ── */
.showcase {
  padding: 1rem 0 5rem;
}
.showcase-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}
.showcase-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.875rem 0 0.875rem;
}
.showcase-head p {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 40rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .showcase-grid { grid-template-columns: repeat(4, 1fr); }
}

.video-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 112, 109, 0.3);
}

/* Click-to-play facade (thumbnail + play button), swapped for an iframe on click. */
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  margin: 0;
  border: 0;
  background: #0f0f0f;
  cursor: pointer;
  overflow: hidden;
}
.video-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.video-card:hover .video-facade img { transform: scale(1.04); }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  padding-left: 3px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent-hover);
}
.video-facade:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.video-time {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.125rem 0.375rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.video-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-meta {
  padding: 1rem 1.125rem 1.125rem;
}
.video-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.showcase-foot {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN v3 - quiet minimal
   Be Vietnam Pro (self-hosted), flat surfaces, hairlines,
   one coral accent used sparingly. Scoped to [data-page="home"]
   wherever it touches shared classes.
   ════════════════════════════════════════════════════════════ */

/* ── Self-hosted Be Vietnam Pro (vietnamese + latin subsets) ── */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bvp-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bvp-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/bvp-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/bvp-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/bvp-700-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/bvp-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/bvp-800-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/bvp-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Site-wide type identity (fallbacks intact for other pages). */
body {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
}

/* ── Quiet-minimal tokens (home + pricing share the language) ── */
:is([data-page="home"], [data-page="pricing"]) {
  --bg: #FBFAF8;
  --bg-soft: #F3F1EE;
  --ink: #1C1917;
  --ink-soft: #57534E;
  --ink-mute: #A29D97;
  --accent: #F2544B;
  --accent-hover: #DC4239;
  --accent-soft: #FFD9D5;
  --card: #FFFFFF;
  --border: rgba(28, 25, 23, 0.1);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 2px 6px rgba(28, 25, 23, 0.05), 0 12px 32px rgba(28, 25, 23, 0.07);
  --shadow-lg: 0 2px 6px rgba(28, 25, 23, 0.04), 0 24px 56px rgba(28, 25, 23, 0.1);
}
/* Flat canvas: no decorative blobs, no tinted header. */
html:is([data-page="home"], [data-page="pricing"]) body::before,
html:is([data-page="home"], [data-page="pricing"]) body::after { display: none; }
html:is([data-page="home"], [data-page="pricing"]) body { background: var(--bg); }
html:is([data-page="home"], [data-page="pricing"]) .site-header {
  background: rgba(251, 250, 248, 0.85);
}
html:is([data-page="home"], [data-page="pricing"]) .site-header.scrolled { border-bottom-color: var(--border); }

/* Minimal nav: plain links, underline states instead of pills. */
html:is([data-page="home"], [data-page="pricing"]) .nav-link {
  border-radius: 0;
  color: var(--ink-soft);
}
html:is([data-page="home"], [data-page="pricing"]) .nav-link:hover {
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 6px;
}
html:is([data-page="home"], [data-page="pricing"]) .nav-link.is-active {
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

/* ── Hero ── */
[data-page="home"] .hero { padding: 4.5rem 0 5.5rem; }
:is([data-page="home"], [data-page="pricing"]) .eyebrow {
  padding: 0.4rem 0.85rem;
  background: rgba(242, 84, 75, 0.09);
  border: 1px solid rgba(242, 84, 75, 0.22);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
:is([data-page="home"], [data-page="pricing"]) h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.125rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 1.5rem;
}
/* Both heroes share one smaller display scale; on the homepage the full
   headline ("Công cụ AI nhúng" + rotating word) stays on one line. */
:is([data-page="home"], [data-page="pricing"]) h1 {
  font-size: clamp(1.75rem, calc(3vw - 6px), 2.125rem);
  line-height: 1.2;
}
[data-page="home"] h1 .t-nowrap { white-space: nowrap; }
[data-page="home"] .hero p.lead {
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 0 2.25rem;
}
/* Marker-style yellow underline for one emphasized word in the lead. */
[data-page="home"] .lead .hl-yellow {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #FFC83D;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Inline rotating word: "chuyên dụng" flips to "chuyên nghiệp". */
.rotator {
  display: inline-grid;
  vertical-align: baseline;
  perspective: 900px;
}
.rotator-word {
  grid-area: 1 / 1;
  white-space: nowrap;
  backface-visibility: hidden;
  transform-origin: 50% 50%;
  color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .rotator-word {
    animation: rotator-cycle 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  .rotator-word.is-b { animation-delay: -3.25s; }
}
@keyframes rotator-cycle {
  0%   { opacity: 0; transform: rotateX(-90deg); }
  5%   { opacity: 1; transform: rotateX(0deg); }
  45%  { opacity: 1; transform: rotateX(0deg); }
  50%  { opacity: 0; transform: rotateX(90deg); }
  100% { opacity: 0; transform: rotateX(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rotator-word.is-b { display: none; }
}

/* Quiet download meta below the store badges. */
.hero-meta {
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-mute);
}
.hero-meta a {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero-meta a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
[data-page="home"] .hero-downloads {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
[data-page="home"] .hero-downloads a {
  border-radius: 9px;
  transition: transform 0.15s ease;
}
[data-page="home"] .hero-downloads a:hover { transform: translateY(-1px); }
[data-page="home"] .hero-downloads img { border-radius: 9px; }

/* Hero visual: hairline frame, soft neutral shadow. */
[data-page="home"] .hero-visual .frame {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
}

/* Primary CTA on the homepage is ink, not coral. */
[data-page="home"] .btn-primary {
  background: var(--ink);
  color: #FBFAF8;
  box-shadow: none;
}
[data-page="home"] .btn-primary:hover {
  background: #33302D;
  box-shadow: var(--shadow-md);
}
[data-page="home"] .btn-secondary {
  border-color: var(--ink);
  color: var(--ink);
}
[data-page="home"] .btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Hero entrance: gentle stagger (pure CSS). */
@media (prefers-reduced-motion: no-preference) {
  [data-page="home"] .hero-copy > * {
    animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  [data-page="home"] .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  [data-page="home"] .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
  [data-page="home"] .hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
  [data-page="home"] .hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
  [data-page="home"] .hero-copy > *:nth-child(5) { animation-delay: 0.36s; }
  [data-page="home"] .hero-visual {
    animation: hero-fade 0.9s ease 0.25s both;
  }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Section headings: quieter, no uppercase tags ──
   Scoped to <main> so the footer's small .footer-section-title h2 keeps
   its own sizing (an [data-page] h2 rule would out-specify the class). */
:is([data-page="home"], [data-page="pricing"]) main h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* ── Demo video band ── */
.home-demo { padding: 0 0 4.5rem; }
.demo-video {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
}
.demo-video video {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Showcase on the homepage ── */
[data-page="home"] .showcase { padding: 1rem 0 4.5rem; }
[data-page="home"] .showcase-head { margin-bottom: 2.75rem; }
[data-page="home"] .showcase-head p { color: var(--ink-soft); }
[data-page="home"] .video-card { border-radius: 12px; }
[data-page="home"] .video-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(28, 25, 23, 0.18);
}

/* ── Benefits: hairline-topped index cells, no card boxes ── */
.benefits-home { padding: 3.5rem 0 5rem; }
.benefit-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 3rem;
}
.benefit-cell {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.benefit-cell .benefit-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.benefit-figure {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  height: 150px;
  flex-shrink: 0;
}
.benefit-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.benefit-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.benefit-cell h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
.benefit-cell p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
@media (min-width: 860px) {
  .benefit-bento { grid-template-columns: repeat(2, 1fr); }
  .benefit-cell.is-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    align-items: center;
  }
  .benefit-cell.is-wide .benefit-figure {
    height: 100%;
    min-height: 170px;
  }
}

/* Showcase closes the page; give it extra room before the footer. */
[data-page="home"] .showcase { padding-bottom: 6rem; }

/* ── Scroll reveal (state added by JS only, so no-JS sees content) ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  [data-page="home"] .hero { padding: 3rem 0 3.5rem; }
  .benefits-home { padding: 2.25rem 0 3.5rem; }
  .benefit-bento { gap: 2rem; }
  .home-demo { padding: 0 0 3rem; }
  [data-page="home"] .showcase { padding: 0.5rem 0 4.5rem; }
  .benefit-figure { height: 130px; }
}

/* ════════════════════════════════════════════════════════════
   PRICING PAGE - quiet minimal, matches the homepage language
   ════════════════════════════════════════════════════════════ */

/* Hero: left-aligned, badge eyebrow, solid coral accent word. */
[data-page="pricing"] .pricing-hero {
  text-align: left;
  padding: 4.5rem 0 1rem;
}
[data-page="pricing"] .pricing-hero .eyebrow { margin: 0 0 1.5rem; }
[data-page="pricing"] h1 .accent {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}
[data-page="pricing"] .pricing-hero p.lead {
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
}

/* Cards: hairline borders, ink highlight on the featured tier. */
[data-page="pricing"] .pricing { padding: 2.5rem 0 3.5rem; }
[data-page="pricing"] .pricing-card {
  border-radius: 20px;
  border-color: var(--border);
  box-shadow: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
[data-page="pricing"] .pricing-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: rgba(28, 25, 23, 0.18);
}
[data-page="pricing"] .pricing-card.featured {
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-md);
}
[data-page="pricing"] .pricing-card.featured:hover {
  transform: none;
  box-shadow: var(--shadow-lg);
}
[data-page="pricing"] .badge-popular {
  background: var(--ink);
  box-shadow: none;
}
[data-page="pricing"] .price {
  margin: 1.25rem 0 0.375rem;
}
[data-page="pricing"] .price .amount {
  font-weight: 700;
  letter-spacing: -0.03em;
}
[data-page="pricing"] .price .currency { color: var(--ink-soft); }
.vat-note {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

/* Feature list: plain coral checks, no filled circles. */
[data-page="pricing"] .feature-list .check {
  width: auto;
  height: auto;
  background: none;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.0625rem;
}

/* Friend-group credit sharing note + quiet hairline-topped footnote. */
[data-page="pricing"] .pricing-group-note {
  margin: 2.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
[data-page="pricing"] .pricing-group-note strong { color: var(--ink); }
[data-page="pricing"] .pricing-footnote {
  margin-top: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: left;
  color: var(--ink-mute);
}

/* Six subscription tiers share the card grid (Tiny -> Max, ascending). */
@media (max-width: 640px) {
  [data-page="pricing"] .pricing-hero { padding: 3rem 0 0.5rem; }
  [data-page="pricing"] .pricing { padding: 1.5rem 0 3.5rem; }
}
