@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap");

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

:root {
  --bg: #f7fbfc;
  --surface: #eef6f8;
  --border: #d4e4e8;
  --text: #0e1c20;
  --muted: #4a636b;
  --accent: #0097b6;
  --btn-text: #fff;
  --glow: rgba(0, 151, 182, 0.14);
  --glow-strong: rgba(0, 151, 182, 0.28);
  --hero-from: #d9f2f7;
  --hero-via: #f7fbfc;
  --hero-to: #e8f4f1;
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

html { color-scheme: light dark; scroll-behavior: smooth; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1417;
    --surface: #162025;
    --border: #243338;
    --text: #eef6f8;
    --muted: #8aa3ab;
    --accent: #00c8f0;
    --btn-text: #041014;
    --glow: rgba(0, 200, 240, 0.16);
    --glow-strong: rgba(0, 200, 240, 0.36);
    --hero-from: #0a1a1f;
    --hero-via: #0d1417;
    --hero-to: #0f1c1a;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

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

.page-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────── */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.top-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.top-nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.top-nav-links a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 639px) {
  .top-nav {
    padding: 12px 16px;
  }

  .nav-brand {
    font-size: 0;
    gap: 0;
  }

  .top-nav-links {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .top-nav-links a {
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 359px) {
  .top-nav-links {
    gap: 10px;
  }

  .top-nav-links a {
    font-size: 11px;
  }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: stretch;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 20%, var(--hero-from), transparent 60%),
    radial-gradient(ellipse 55% 50% at 88% 70%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    linear-gradient(165deg, var(--hero-from) 0%, var(--hero-via) 45%, var(--hero-to) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}

.hero-copy {
  text-align: left;
  max-width: 520px;
  padding-bottom: 24px;
  animation: heroCopyIn 0.85s ease-out both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(42px, 9vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.8vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 28ch;
  margin-bottom: 14px;
  color: var(--text);
}

.hero-tagline {
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.55;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero-secondary-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.hero-secondary-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.hero-secondary-link:hover { color: var(--accent); text-decoration: underline; }

.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  list-style: none;
}

.hero-trust-chips li {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border-radius: 999px;
  padding: 5px 11px;
}

.hero-visual {
  justify-self: center;
  width: min(100%, 300px);
  animation: heroPhoneIn 1s ease-out 0.12s both;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px 28px 0 0;
  filter: drop-shadow(0 24px 48px var(--glow-strong));
}

@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroPhoneIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    gap: 48px;
    padding: 56px 32px 0;
    min-height: min(88vh, 860px);
  }

  .hero-copy {
    align-self: center;
    padding-bottom: 72px;
  }

  .hero-visual {
    width: min(100%, 380px);
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual { animation: none; }
}

/* ── Store buttons ───────────────────────────────────── */
.store-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  font-family: var(--font-body);
}

.store-badge:hover { opacity: 0.88; transform: translateY(-1px); }

.store-badge--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.store-badge--secondary .store-badge-icon { fill: var(--text); }
.store-badge--secondary .store-badge-text small { color: var(--muted); }
.store-badge--secondary .store-badge-text strong { color: var(--text); }

.store-badge-icon { width: 28px; height: 28px; fill: #fff; flex-shrink: 0; }

.store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.store-badge-text small { font-size: 11px; color: #bbb; }
.store-badge-text strong { font-size: 16px; font-weight: 700; color: #fff; }

/* Legacy class aliases (guides / older pages) */
.beta-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 16px; }
.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  font-family: var(--font-body);
}
.beta-badge:hover { opacity: 0.85; transform: translateY(-1px); }
.beta-badge-icon { width: 28px; height: 28px; fill: #fff; flex-shrink: 0; }
.beta-badge-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.beta-badge-text small { font-size: 11px; color: #bbb; }
.beta-badge-text strong { font-size: 16px; font-weight: 700; color: #fff; }

/* ── Sections ────────────────────────────────────────── */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section--flush { border-top: none; padding-top: 0; }

.section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  .section h2 {
    color: #fff;
  }
}

.download-block {
  text-align: center;
  padding: 8px 0 12px;
}

.download-block--ios {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.download-block--android {
  padding-top: 0;
  padding-bottom: 8px;
}

.download-block .section-intro {
  margin-bottom: 24px;
}

.cta-android-note {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  font-size: 14px !important;
}

.cta-android-note a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.cta-android-note a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 16px;
}

/* ── How it works ────────────────────────────────────── */
.steps-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: left;
  overflow: hidden;
}

.step-card[open] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.step-card > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.step-card > summary::-webkit-details-marker { display: none; }

.step-card > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
}

.step-card[open] > summary::after { content: "−"; color: var(--accent); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.step-body {
  padding: 0 20px 20px 62px;
}

.step-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.step-body p:last-child { margin-bottom: 0; }

.step-body ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.step-body li { margin-bottom: 4px; }

/* ── Trust / positioning ─────────────────────────────── */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0 auto 36px;
  max-width: 720px;
}

.trust-chips li {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.trust-item h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.trust-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.trust-closing {
  text-align: center;
  margin: 28px auto 0;
  max-width: 520px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.simplicity-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.simplicity-block p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.simplicity-block p:last-child { margin-bottom: 0; }

.not-list {
  list-style: none;
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.not-list li {
  font-size: 15px;
  color: var(--muted);
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}

.ownership-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 880px;
  margin: 28px auto 0;
}

@media (min-width: 700px) {
  .ownership-plans { grid-template-columns: repeat(3, 1fr); }
}

.ownership-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
}

.ownership-plan h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ownership-plan p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.ownership-cta {
  text-align: center;
  margin-top: 28px;
}

.ownership-cta a {
  font-weight: 700;
  font-size: 15px;
}

/* ── Official App Store badge ────────────────────────── */
.app-store-badge {
  display: inline-block;
  line-height: 0;
}

.app-store-badge img {
  display: block;
  width: 245px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 245 / 82;
  object-fit: contain;
  vertical-align: middle;
}

/* ── Official Google Play badge ──────────────────────── */
/* Same 245×82 footprint as App Store; CSS chrome for smooth corners. */
.play-store-badge {
  display: inline-grid;
  box-sizing: border-box;
  width: 245px;
  max-width: 100%;
  aspect-ratio: 245 / 82;
  line-height: 0;
  vertical-align: middle;
  border: 2px solid #a6a6a6;
  border-radius: 15px;
  background: #000;
  overflow: hidden;
}

.play-store-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}

/* ── Newsletter signup ───────────────────────────────── */
.newsletter-signup {
  margin-top: 10px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.newsletter-signup--hero {
  margin-top: 28px;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  text-align: left;
}

.newsletter-signup--hero .newsletter-form {
  justify-content: flex-start;
}

.newsletter-signup--cta {
  margin-top: 20px;
}

/* Reset parent page rules (.guide-cta p, .cta-band p, etc.) */
.newsletter-signup p {
  margin: 0;
  padding: 0;
}

.newsletter-signup .newsletter-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--text);
}

.newsletter-signup .newsletter-hint {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.newsletter-form input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}

.newsletter-form button {
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: var(--btn-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.newsletter-form button:hover { opacity: 0.9; }
.newsletter-form button:disabled { opacity: 0.6; cursor: default; }

.newsletter-signup .subscribe-status {
  text-align: center;
  margin: 0;
  min-height: 0;
  font-size: 13px;
}

.newsletter-signup .subscribe-status:not(:empty) {
  margin-top: 10px;
  min-height: 18px;
}

@media (prefers-color-scheme: dark) {
  .newsletter-signup .newsletter-label {
    color: #fff;
  }
}

/* Light-theme marketing nav (pricing / blog / compare) */
.top-nav--light {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  margin-bottom: 8px;
  width: 100%;
  border-bottom: 1px solid var(--border, #ddd);
}

.top-nav--light .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text, #111);
  font-weight: 700;
  font-size: 15px;
}

.top-nav--light .nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.top-nav--light .top-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.top-nav--light .top-nav-links a {
  font-size: 13px;
  color: var(--muted, #555);
  text-decoration: none;
}

.top-nav--light .top-nav-links a:hover {
  color: var(--text, #111);
  text-decoration: underline;
}

@media (max-width: 639px) {
  .top-nav--light .nav-brand { font-size: 0; gap: 0; }
  .top-nav--light .top-nav-links { gap: 10px; }
  .top-nav--light .top-nav-links a { font-size: 12px; white-space: nowrap; }
}

/* ── Guides grid ─────────────────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .guides-grid { grid-template-columns: repeat(3, 1fr); }
}

.guide-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.guide-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.guide-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

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

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { width: 100%; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-item h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.35;
}

.faq-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.faq-item .learn-more {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ── CTA band ────────────────────────────────────────── */
.cta-band {
  text-align: center;
  padding: 56px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  .cta-band h2 {
    color: #fff;
  }
}

.cta-band > p {
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.55;
}

/* ── Feature rows ────────────────────────────────────── */
.features-section {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  overflow: hidden;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
}

.feature-row:last-child { border-bottom: none; }

.feature-row.visible { animation: fadeUp 0.7s ease-out forwards; }

.feature-row:nth-child(even) { flex-direction: row-reverse; }

.feature-image { flex: 0 0 264px; max-width: 264px; }

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  filter: drop-shadow(0 0 16px var(--glow));
}

.feature-text { flex: 1; text-align: left; }

.feature-text h3 {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 800;
  margin-bottom: 12px;
}

.feature-text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
}

/* ── Showcase ────────────────────────────────────────── */
.showcase-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.showcase-item {
  width: 85%;
  max-width: 280px;
  opacity: 0;
  transform: translateY(24px);
}

.showcase-item.visible { animation: fadeUp 0.7s ease-out forwards; }

.showcase-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  filter: drop-shadow(0 0 12px var(--glow));
}

@media (min-width: 600px) {
  .showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .showcase-item { width: 100%; max-width: none; }
}

@media (min-width: 900px) {
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Beta dialogs ────────────────────────────────────── */
.beta-dialog {
  display: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: calc(100vw - 48px);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.beta-dialog.is-open { display: block; }

.beta-dialog-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 999;
}

.beta-dialog-backdrop:not([hidden]) { display: block; }

.beta-dialog h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; text-align: left; }

.beta-dialog > p { font-size: 14px; color: var(--muted); line-height: 1.5; text-align: left; margin-bottom: 16px; }

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.dialog-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.dialog-btn--primary { background: var(--accent); color: var(--btn-text); }
.dialog-btn--ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }

.beta-step { margin-bottom: 20px; text-align: left; }
.beta-step-title { font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.beta-step-desc { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.beta-step .dialog-btn { width: 100%; text-align: center; }

.beta-tip {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 14px;
}

.subscribe-row {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.subscribe-row input {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  outline: none;
  min-width: 0;
}

.subscribe-status { font-size: 13px; margin-top: 10px; min-height: 18px; text-align: left; }
.subscribe-status.success { color: #4ade80; }
.subscribe-status.error { color: #f87171; }

/* ── Guide article pages ─────────────────────────────── */
.guide-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.guide-header .back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 16px;
}

.guide-header h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  .guide-header h1 {
    color: #fff;
  }
}

.guide-header .lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.guide-content {
  padding-bottom: 48px;
}

.guide-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 36px 0 12px;
  letter-spacing: -0.3px;
}

.guide-content h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 24px 0 8px;
}

.guide-content p,
.guide-content li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}

.guide-content ul,
.guide-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.guide-content li { margin-bottom: 8px; }

.guide-content strong { color: var(--text); }

.related-guides {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-guides h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: left;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-links a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 24px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  max-width: 960px;
  margin: auto auto 0;
  width: 100%;
}

footer .footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
footer .footer-links a { color: var(--muted); text-decoration: none; }
footer .footer-links a:hover { color: var(--text); }
footer .footer-social { display: flex; gap: 12px; }
footer .footer-social a { color: var(--muted); display: inline-flex; }

@media (max-width: 599px) {
  .feature-row,
  .feature-row:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .feature-image { flex: none; max-width: 216px; }
  .feature-text { text-align: center; }
  .feature-text p { max-width: none; }
  footer { flex-direction: column; text-align: center; justify-content: center; }
}
