/* =========================================================
   METAPHRAS.AI — Global stylesheet
   Apple-clean aesthetic. Light by default, dark via toggle.
   ========================================================= */

:root {
  /* ── LIGHT THEME (default) ── */
  --bg: #fafaf7;              /* warm off-white, easy on the eyes */
  --bg-soft: #ffffff;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --border: #e7e7e2;
  --border-soft: #efefea;
  --text: #1a1a1f;            /* near-black, warm */
  --text-soft: #5a5a64;
  --text-mute: #8a8a92;

  /* Brand accent — single signature color, kept across themes */
  --accent: #1a1a1f;          /* In light, accent is the deep ink */
  --accent-text: #fafaf7;     /* Text on accent buttons */
  --accent-soft: rgba(26, 26, 31, 0.06);
  --accent-glow: rgba(26, 26, 31, 0.10);

  /* Secondary highlight (used sparingly, e.g., active states) */
  --highlight: #6b8a3a;        /* deep moss green — calmer than lime */
  --highlight-soft: rgba(107, 138, 58, 0.10);

  /* Sentence colors (used in editor + hero mockup) — muted in light */
  --s1: #6b8a3a;   /* moss */
  --s2: #2563eb;   /* blue */
  --s3: #db2777;   /* pink */
  --s4: #d97706;   /* amber */
  --s5: #7c3aed;   /* violet */
  --s6: #059669;   /* emerald */
  --s-edited: #9a9aa3;

  /* Typography */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  /* Shadows — subtle, for elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ── DARK THEME ── */
[data-theme="dark"] {
  --bg: #0e0e10;
  --bg-soft: #16161a;
  --bg-elev: #1c1c21;
  --bg-card: #1c1c21;
  --border: #2a2a32;
  --border-soft: #1f1f25;
  --text: #f5f5f3;
  --text-soft: #b4b4bd;
  --text-mute: #7d7d87;

  --accent: #f5f5f3;
  --accent-text: #1a1a1f;
  --accent-soft: rgba(245, 245, 243, 0.06);
  --accent-glow: rgba(245, 245, 243, 0.10);

  --highlight: #c2ff3d;
  --highlight-soft: rgba(194, 255, 61, 0.12);

  --s1: #c2ff3d;
  --s2: #4fd4ff;
  --s3: #ff7eb5;
  --s4: #ffb84f;
  --s5: #b39bff;
  --s6: #5cffb1;
  --s-edited: #6e6e78;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Grain overlay (subtle texture, dark only) */
.noise {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 1000;
  opacity: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
[data-theme="dark"] .noise { opacity: 0.04; }

/* =====  BRAND  ===== */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: block; width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--text);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: ''; position: absolute;
  top: 7px; left: 7px;
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--bg);
}
.brand-text {
  font-family: var(--font-body);
  font-weight: 600; font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--text-soft); font-weight: 400; }

/* =====  BUTTONS  ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--accent); color: var(--accent-text);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  opacity: 0.92;
}
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-soft); background: var(--bg-soft); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 999px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* =====  NAV  ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--maxw); margin: 0 auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
}
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--text-soft); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Theme toggle button */
.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  transition: all .2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-soft); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav { padding: 16px 20px; }
  .nav-cta .btn-ghost { display: none; }
}

/* =====  HERO  ===== */
.hero {
  position: relative;
  padding: 80px 32px 100px;
  max-width: var(--maxw); margin: 0 auto;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}
[data-theme="dark"] .hero-glow {
  background: radial-gradient(circle, rgba(194, 255, 61, 0.20) 0%, transparent 60%);
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px; color: var(--text-soft);
  background: var(--bg-soft);
  margin-bottom: 28px;
  font-family: var(--font-mono);
}
.dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 8px var(--highlight);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(44px, 7.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  color: var(--text);
}
.hero-title em {
  font-style: italic;
  position: relative;
  color: var(--text-soft);
}
.hero-title .line-1 { display: block; }
.hero-title .line-2 { display: block; }
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-soft);
  max-width: 620px; margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-trust {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.trust-item { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.trust-item strong { font-family: var(--font-body); font-size: 28px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.trust-item span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--text-mute); letter-spacing: .12em; }

/* ===== HERO MOCKUP ===== */
.hero-mockup { margin-top: 72px; position: relative; }
.window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
  /* Subtle fade-in on load */
  animation: heroVideoFadeIn .6s ease-out both;
}
@keyframes heroVideoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  position: relative;
}
.window-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d0; }
[data-theme="dark"] .window-bar .dot { background: #3a3a40; }
.window-bar .dot:nth-child(1) { background: #ff5f57; }
.window-bar .dot:nth-child(2) { background: #febc2e; }
.window-bar .dot:nth-child(3) { background: #28c840; }
.window-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
}
.window-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 280px; }
.pane { padding: 32px; }
.pane.source { border-right: 1px solid var(--border); }
.pane-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: var(--text-mute); margin-bottom: 16px; }
.pane p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
}
.s {
  transition: background .15s;
  padding: 1px 2px;
  border-radius: 2px;
  cursor: text;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.s1 { border-bottom: 1.5px solid var(--s1); }
.s2 { border-bottom: 1.5px solid var(--s2); }
.s3 { border-bottom: 1.5px solid var(--s3); }
.s.edited { color: var(--s-edited); border-bottom-style: dashed; }

@media (max-width: 768px) {
  .window-body { grid-template-columns: 1fr; }
  .pane.source { border-right: none; border-bottom: 1px solid var(--border); }
  .hero { padding: 40px 16px 60px; }
  .hero-mockup { margin-top: 40px; max-width: 100%; overflow: hidden; }
  .hero-video { width: 100%; height: auto; max-width: 100%; }
  .window { max-width: 100%; }
  .hero-title { font-size: clamp(34px, 9vw, 56px); }
}

/* =====  STRIP  ===== */
.strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 18px 0;
}
.strip-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: .05em;
}
.strip-item { color: var(--text-soft); }
.strip-sep { color: var(--border); }

/* =====  SECTION HEAD  ===== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow-sm {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--highlight); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-body);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-soft); font-size: 17px; }

/* =====  FEATURES  ===== */
.features { padding: 120px 32px; max-width: var(--maxw); margin: 0 auto; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--bg-soft);
  padding: 40px 32px;
  transition: background .25s;
}
.feature:hover { background: var(--bg-card); }
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--accent);
  margin-bottom: 24px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: 14.5px; }

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

/* =====  HOW  ===== */
.how { padding: 100px 32px; max-width: var(--maxw); margin: 0 auto; }
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-soft);
  position: relative;
  transition: transform .2s, border-color .2s;
}
.step:hover { transform: translateY(-3px); border-color: var(--accent); }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--highlight);
  letter-spacing: .12em;
  margin-bottom: 20px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-soft); }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* =====  PRICING  ===== */
.pricing { padding: 100px 32px; max-width: var(--maxw); margin: 0 auto; }
.plans {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .2s, border-color .2s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--text-mute); }
.plan-featured {
  background: var(--bg-card);
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text), var(--shadow-lg);
}
.plan-dark {
  background: var(--text);
  color: var(--accent-text);
  border-color: var(--text);
}
.plan-dark header h3,
.plan-dark .price .amount { color: var(--accent-text); }
.plan-dark header p,
.plan-dark ul li { color: color-mix(in srgb, var(--accent-text) 75%, transparent); }
.plan-dark ul li strong { color: var(--accent-text); }
.plan-dark ul li::before { background: var(--accent-text); }
.plan-dark .btn-ghost {
  background: transparent;
  color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent-text) 25%, transparent);
}
.plan-dark .btn-ghost:hover {
  background: color-mix(in srgb, var(--accent-text) 8%, transparent);
  border-color: var(--accent-text);
}
.badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-text);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.plan header h3 { font-family: var(--font-body); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }
.plan header p { font-size: 13px; color: var(--text-mute); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-family: var(--font-body); font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price .unit { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: .1em; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan ul li {
  font-size: 13.5px; color: var(--text-soft);
  padding-left: 22px; position: relative;
}
.plan ul li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' fill='none' stroke='black' stroke-width='3'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' fill='none' stroke='black' stroke-width='3'/></svg>") center/contain no-repeat;
}
.plan ul li strong { color: var(--text); }

@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

.pricing-note { text-align: center; margin-top: 32px; color: var(--text-mute); font-size: 14px; }
.pricing-note a { color: var(--highlight); }

/* =====  FAQ  ===== */
.faq { padding: 100px 32px; max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq details {
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 8px;
  transition: background .15s;
}
.faq details:hover { background: var(--bg-soft); }
.faq summary {
  cursor: pointer; font-weight: 500; font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--font-mono); color: var(--highlight); font-size: 22px;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--text-soft); font-size: 14.5px; }

/* =====  DEDICATED PAGES (features, how-it-works, pricing, faq)  ===== */
.page-head {
  padding: 80px 32px 60px;
  max-width: var(--maxw); margin: 0 auto;
  text-align: center;
}
.page-head-inner { max-width: 720px; margin: 0 auto; }
.page-head h1 {
  font-family: var(--font-body);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 14px 0 18px;
}
.page-head p {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-soft);
  line-height: 1.6;
}
.page-head p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Feature blocks (features.html) */
.feature-blocks {
  padding: 40px 32px 80px;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 100px;
}
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-block .eyebrow-sm {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  color: var(--highlight); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 14px;
}
.feature-block h2 {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 16px;
  color: var(--text);
}
.feature-block .block-text p {
  color: var(--text-soft); font-size: 16px; line-height: 1.65;
  margin-bottom: 14px;
}
.block-visual { display: flex; align-items: center; justify-content: center; }
.window.mini { width: 100%; max-width: 520px; }
.word-demo {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.word-demo p { font-family: var(--font-body); font-size: 18px; line-height: 1.8; color: var(--text); margin-bottom: 14px; }
.word-demo p .edit { color: var(--text-mute); border-bottom: 1px dashed var(--text-mute); font-style: italic; }
.word-demo small { color: var(--text-mute); font-size: 12px; font-family: var(--font-mono); }

.style-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
  margin-top: 18px;
}
.style-list li {
  font-size: 14px; color: var(--text-soft);
  padding-left: 18px; position: relative;
}
.style-list li::before {
  content: '·'; position: absolute; left: 6px; color: var(--highlight);
  font-weight: 700;
}

@media (max-width: 800px) {
  .feature-block { grid-template-columns: 1fr; gap: 32px; }
  .feature-block.reverse { direction: ltr; }
  .style-list { grid-template-columns: 1fr; }
}

/* Long steps (how-it-works.html) */
.steps-long {
  padding: 40px 32px 80px;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; gap: 80px;
}
.step-long {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
  align-items: start;
}
.step-long.reverse { direction: rtl; }
.step-long.reverse > * { direction: ltr; }
.step-num-big {
  display: block;
  font-family: var(--font-display); font-style: italic;
  font-size: 96px; line-height: 1; color: var(--highlight);
  font-weight: 400; margin-bottom: 12px;
}
.step-side h2 {
  font-family: var(--font-body);
  font-size: 32px; font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.15;
}
.step-side-text p { color: var(--text-soft); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.step-side-text p strong { color: var(--text); font-weight: 600; }
.step-side-text p em { color: var(--text); font-style: italic; font-family: var(--font-display); }
.step-bullets {
  list-style: none; margin-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.step-bullets li {
  font-size: 14.5px; color: var(--text-soft);
  padding-left: 20px; position: relative;
}
.step-bullets li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--highlight);
}
.step-bullets li strong { color: var(--text); font-weight: 600; }

@media (max-width: 800px) {
  .step-long { grid-template-columns: 1fr; gap: 16px; }
  .step-long.reverse { direction: ltr; }
  .step-num-big { font-size: 64px; }
}

/* Credits explain (pricing.html) */
.explain {
  padding: 60px 32px 80px;
  max-width: var(--maxw); margin: 0 auto;
  border-top: 1px solid var(--border-soft);
}
.explain-inner { text-align: center; }
.explain h2 {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; letter-spacing: -0.03em;
  margin: 12px 0 32px;
}
.explain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  max-width: 880px; margin: 0 auto;
  text-align: left;
}
.explain-grid h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.explain-grid p { color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }
.explain-grid p em { color: var(--text); font-style: italic; font-family: var(--font-display); }

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

/* FAQ groups (faq.html) */
.faq-group {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--text-mute);
  margin: 36px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.faq-group:first-child { margin-top: 0; }

/* =====  FINAL CTA  ===== */
.final-cta { padding: 120px 32px; }
.final-cta-inner {
  max-width: 820px; margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 60%),
    var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 32px;
}
.final-cta-inner h2 {
  font-family: var(--font-body);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.05;
}
.final-cta-inner h2 em { color: var(--highlight); font-style: italic; font-family: var(--font-display); font-weight: 400; }
.final-cta-inner p { color: var(--text-soft); font-size: 17px; margin-bottom: 32px; }

/* =====  LEGAL PAGES  ===== */
.legal-page {
  padding: 20px 32px 80px;
  max-width: 760px; margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-body);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 24px 0 8px;
}
.legal-content p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-content p strong { color: var(--text); font-weight: 600; }
.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { text-decoration-thickness: 2px; }
.legal-content ul {
  margin: 10px 0 16px 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}
.legal-content ul li { margin-bottom: 6px; }
.legal-content ul li strong { color: var(--text); font-weight: 600; }
.legal-content .address {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
}

/* =====  BLOG  ===== */
.blog-list-section {
  padding: 0 32px 80px;
  max-width: 880px;
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  gap: 24px;
}
.blog-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.blog-card:hover {
  border-color: var(--text-mute);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.blog-card.featured {
  border-color: var(--text-mute);
  background: var(--bg);
}
.blog-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.blog-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text);
  background: var(--border);
  padding: 4px 8px;
  border-radius: 4px;
}
.blog-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}
.blog-card h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.blog-card.featured h2 { font-size: 26px; }
.blog-card p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.blog-readmore {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 3px;
}

/* =====  BLOG ARTICLE  ===== */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 32px 60px;
}
.article-head {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 32px;
  margin-bottom: 40px;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
}
.back-link:hover { color: var(--text); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.blog-article h1 {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}
.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.article-body p {
  margin-bottom: 18px;
}
.article-body h2 {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  color: var(--text);
}
.article-body h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  color: var(--text);
}
.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--text-soft);
}
.article-body li {
  margin-bottom: 10px;
  line-height: 1.65;
}
.article-body li strong { color: var(--text); font-weight: 600; }
.article-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body strong { color: var(--text); font-weight: 600; }

.comparison-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-soft);
  font-size: 14px;
}
.comparison-table th {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.comparison-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-soft);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }

.article-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  flex-wrap: wrap;
}
.article-cta .btn-primary {
  color: var(--accent-text) !important;
  background: var(--accent) !important;
}
.article-cta-sub {
  font-size: 13.5px;
  color: var(--text-mute);
}

/* Article figures (SVG illustrations) */
.article-figure {
  margin: 36px 0;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}
.article-figure svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.article-figure figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-mute);
  line-height: 1.5;
}

/* Callouts (key takeaways, info boxes) */
.callout {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 12px;
  border-left: 3px solid var(--text);
  background: var(--bg-soft);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
}
.callout strong { color: var(--text); font-weight: 600; }
.callout p { margin: 0; }
.callout-info {
  border-left-color: var(--text-soft);
}
.callout-key {
  border-left-color: var(--text);
  background: color-mix(in srgb, var(--text) 4%, var(--bg-soft));
}
.callout-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text);
  background: var(--border);
  padding: 3px 7px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Pull-quote */
.pull-quote {
  margin: 36px 0;
  padding: 20px 32px;
  font-family: var(--font-display, var(--font-body));
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
  border-left: 3px solid var(--text);
  letter-spacing: -0.01em;
}

.article-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.article-share {
  font-size: 13px;
  color: var(--text-mute);
}
.article-share a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 12px;
}

/* =====  CONSENT BANNER  ===== */
#consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  max-width: 720px;
  margin: 0 auto;
  animation: consentSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes consentSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.consent-body {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.consent-text { flex: 1 1 320px; min-width: 0; }
.consent-text strong {
  display: block;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.consent-text p {
  font-size: 13.5px; line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.consent-text a {
  color: var(--text); text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-actions {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
}
.btn-consent {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px;
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-consent:hover { border-color: var(--text-mute); background: var(--bg); }
.btn-consent-accept {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.btn-consent-accept:hover { opacity: 0.92; border-color: var(--accent); background: var(--accent); }
.btn-consent-reject { color: var(--text-soft); }

@media (max-width: 600px) {
  #consent-banner { padding: 16px 18px; }
  .consent-actions { width: 100%; }
  .btn-consent { flex: 1; }
}

/* =====  FOOTER  ===== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 64px 32px 32px;
  max-width: var(--maxw); margin: 0 auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-tag { color: var(--text-mute); font-size: 13px; margin-top: 12px; max-width: 280px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--text-mute); margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; }
.footer a { display: block; font-size: 14px; color: var(--text-soft); padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between;
  color: var(--text-mute); font-size: 13px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ==========================================================
   AUTH PAGES (login / signup)
   ========================================================== */
.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 40px 20px;
  position: relative;
}
.auth-wrap::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-lg);
}
.auth-card .brand { justify-content: center; margin-bottom: 8px; display: flex; }
.auth-card h1 {
  font-family: var(--font-body);
  font-size: 32px; font-weight: 600; letter-spacing: -0.025em;
  text-align: center; margin: 18px 0 6px;
}
.auth-sub { text-align: center; color: var(--text-soft); margin-bottom: 28px; font-size: 14px; }

.btn-google, .btn-oauth {
  width: 100%; padding: 12px 18px;
  border-radius: 10px;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  transition: all .15s ease;
  cursor: pointer;
}
.btn-google:hover, .btn-oauth:hover {
  background: var(--bg);
  border-color: var(--text-soft);
}
.btn-google svg, .btn-oauth svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-oauth.gh { background: var(--bg-soft); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .btn-oauth.gh { background: #18181c; color: #fff; }

.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0;
  color: var(--text-mute); font-size: 12px;
  font-family: var(--font-mono);
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-soft);
}

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-mute); font-family: var(--font-mono);
}
.form-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body); font-size: 14px;
  transition: border-color .15s;
}
.form-field input:focus { outline: none; border-color: var(--accent); }

.btn-submit {
  width: 100%; padding: 12px;
  background: var(--accent); color: var(--accent-text);
  border: none; border-radius: 10px;
  font-weight: 700; font-size: 14px;
  margin-top: 10px;
}
.btn-submit:hover { opacity: 0.92; box-shadow: var(--shadow-md); }

.auth-foot { text-align: center; margin-top: 22px; color: var(--text-soft); font-size: 13px; }
.auth-foot a { color: var(--highlight); }
.auth-error {
  background: color-mix(in srgb, #dc2626 8%, transparent);
  border: 1px solid color-mix(in srgb, #dc2626 28%, transparent);
  color: #dc2626;
  padding: 10px 14px; border-radius: 8px;
  font-size: 13px; margin-bottom: 16px;
  display: none;
}
[data-theme="dark"] .auth-error { color: #ff8585; }
.auth-error.show { display: block; }

/* ============ PRICING: subscriptions + section titles ============ */
.pricing-section-title {
  font-family: var(--font-body);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 8px;
  color: var(--text);
}
.pricing-section-sub {
  text-align: center;
  color: var(--text-soft);
  margin: 0 auto 32px;
  max-width: 520px;
}
.plans.plans-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) { .plans.plans-3 { grid-template-columns: 1fr; } }

/* ============ AUTH: password toggle + confirmation message ============ */
.password-wrap { position: relative; display: flex; align-items: center; }
.password-wrap input { width: 100%; padding-right: 44px; }
.password-toggle {
  position: absolute; right: 8px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; color: var(--text-mute); border-radius: 6px;
  transition: color .15s;
}
.password-toggle:hover { color: var(--text); }

.auth-confirm {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px; margin-bottom: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #2f6f4f);
  border-radius: var(--radius);
}
.auth-confirm strong { font-size: 15px; color: var(--text); }
.auth-confirm span { font-size: 13.5px; color: var(--text-soft); line-height: 1.5; }

/* ============ AUTH: confirmation check + forgot link ============ */
.confirm-check {
  display: flex; align-items: center; justify-content: center;
  width: 88px; height: 88px; margin: 8px auto 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, #2f6f4f) 12%, transparent);
  color: var(--accent, #2f6f4f);
}
.forgot-link {
  font-size: 12.5px; color: var(--text-mute);
  text-decoration: none; transition: color .15s;
}
.forgot-link:hover { color: var(--text); text-decoration: underline; }

/* Ensure the hidden attribute always wins over display rules */
[hidden] { display: none !important; }
