/* ──────────────────────────────────────────────────────────────────────
 * Tolomail website — modern, professional, cosmic-but-restrained
 * Single stylesheet, no frameworks. Mobile-first. Respects prefers-reduced-motion.
 * Built around an OKLCH neon palette echoing the per-account neon
 * identity from the extension itself (v0.9.60).
 * ────────────────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --bg: #0a0e27;
  --bg-1: #0d1530;
  --bg-2: #111a3a;
  --surface: #151f44;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --fg: #e8ecff;
  --fg-2: #b6bedb;
  --fg-3: #8893bf;
  --fg-muted: #6470a1;

  /* Brand accents — neon cyan + violet + amber (echoes extension v0.9.59) */
  --neon-cyan: oklch(75% 0.18 200);
  --neon-violet: oklch(70% 0.22 300);
  --neon-amber: oklch(82% 0.15 80);
  --neon-rose: oklch(72% 0.21 15);

  /* Gradients */
  --grad-text: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 100%);
  --grad-cta: linear-gradient(135deg, var(--neon-cyan) 0%, #a855f7 100%);
  --grad-aurora-1: radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.18) 0%, transparent 50%);
  --grad-aurora-2: radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.18) 0%, transparent 50%);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
}

/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--neon-cyan); }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ── Section eyebrows / titles ───────────────────────────────────── */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin: 0 0 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}
.section-sub {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 640px;
  margin: 0 0 56px;
}
/* Centered sections (features, pricing) — center the eyebrow + title + sub block */
.features .container > .section-eyebrow,
.features .container > .section-title,
.features .container > .section-sub,
.pricing .container > .section-eyebrow,
.pricing .container > .section-title,
.pricing .container > .section-sub {
  text-align: center;
}
.features .container > .section-sub,
.pricing .container > .section-sub {
  margin-inline: auto;
  margin-bottom: 48px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--grad-cta);
  color: #061226;
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.25), 0 1px 0 rgba(255,255,255,0.25) inset;
  text-shadow: 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(34, 211, 238, 0.4); color: #0a0e27; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-soft); border-color: var(--neon-cyan); color: var(--fg); }

/* ── Navigation ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 39, 0.7);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover { color: inherit; }
.brand-mark { flex-shrink: 0; }
.brand-name { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--fg-2); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-links .btn { padding: 8px 14px; font-size: 13px; }

.nav-menu-btn { display: none; background: transparent; border: 0; color: var(--fg); padding: 6px; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.is-open { display: flex; position: absolute; top: 64px; right: 24px; left: 24px; flex-direction: column; align-items: stretch; padding: 16px; gap: 8px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); }
  .nav-links.is-open a, .nav-links.is-open .btn { padding: 10px 12px; text-align: left; }
  .nav-menu-btn { display: block; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 38% 78%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 67% 14%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 88% 55%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 24% 64%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 53% 38%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 76% 88%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 8%  50%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 95% 28%, rgba(255,255,255,0.5), transparent);
}
.aurora {
  position: absolute;
  inset: -20% -20% auto auto;
  width: 70%;
  height: 70%;
  filter: blur(70px);
  opacity: 0.7;
  animation: float 12s ease-in-out infinite;
  will-change: transform;
}
.aurora-1 { background: var(--grad-aurora-1); }
.aurora-2 { background: var(--grad-aurora-2); inset: auto -10% -20% auto; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 3%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 28px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
.dot-green { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  line-height: 1.08;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--fg-2);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-3);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Trust strip ─────────────────────────────────────────────────── */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  padding: 36px 0;
}
.trust-inner { text-align: center; }
.trust-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 24px;
}
.trust-personas {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-personas > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-personas strong { font-size: 15px; color: var(--fg); font-weight: 600; }
.trust-personas span { font-size: 13px; color: var(--fg-3); }

/* ── Sections (shared) ───────────────────────────────────────────── */
section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* ── Problem ─────────────────────────────────────────────────────── */
.problem { background: var(--bg-1); }
.problem-card {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}
.problem-text {
  font-size: 18px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 24px;
}
.problem-quote {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  border-left: 3px solid var(--neon-cyan);
  padding-left: 24px;
  margin: 40px 0;
  text-align: left;
  font-style: italic;
}

/* ── Features ────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent, transparent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feat-thread { --accent: var(--neon-cyan); }
.feat-awaiting { --accent: var(--neon-amber); }
.feat-insights { --accent: var(--neon-violet); }
.feat-attachments { --accent: var(--neon-rose); }
.feat-notes { --accent: var(--neon-amber); }
.feat-multi { --accent: var(--neon-cyan); }

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent, var(--neon-cyan));
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--fg);
}
.feature-card p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ── Privacy ─────────────────────────────────────────────────────── */
.privacy-pitch { background: var(--bg-1); }
.privacy-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
}
.privacy-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--fg-2);
  border-top: 1px solid var(--border);
}
.privacy-list li:first-child { border-top: 0; }
.privacy-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.privacy-list a { color: var(--neon-cyan); border-bottom: 1px dotted currentColor; }

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
}
.privacy-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 14px;
}
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
@media (max-width: 580px) {
  .flow { grid-template-columns: 1fr; gap: 16px; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-x { transform: none; }
}
.flow-box {
  padding: 18px 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
}
.flow-box small { display: block; font-weight: 400; color: var(--fg-3); font-size: 11px; margin-top: 4px; }
.flow-gmail { background: rgba(234, 67, 53, 0.1); border-color: rgba(234, 67, 53, 0.3); }
.flow-browser { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.35); }
.flow-server.flow-disabled {
  opacity: 0.4;
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.7);
  text-decoration-thickness: 2px;
}
.flow-arrow {
  font-size: 24px;
  color: var(--fg-3);
  text-align: center;
}
.flow-arrow small { display: block; font-size: 10px; margin-top: 2px; }
.flow-x { color: #ef4444; font-size: 28px; }

/* ── Story ───────────────────────────────────────────────────────── */
.story-card {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.story-text {
  font-size: 18px;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 20px;
}
.story-text strong { color: var(--fg); font-weight: 600; }
.story-text em { color: var(--fg); font-style: italic; }
.story-signature {
  margin-top: 32px;
  font-size: 14px;
  color: var(--fg-3);
  font-style: italic;
}

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing { background: var(--bg-1); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.price-note {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--fg-3);
}
.price-note a { color: var(--neon-cyan); border-bottom: 1px dotted currentColor; }
.price-card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.price-card-pro {
  border-color: var(--neon-cyan);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), transparent 60%), var(--surface);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.15);
}
.ribbon {
  position: absolute;
  top: -10px;
  right: 20px;
  padding: 4px 12px;
  background: var(--grad-cta);
  color: #0a0e27;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.price-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price-num { font-size: 44px; font-weight: 700; color: var(--fg); letter-spacing: -0.04em; }
.price-per { font-size: 14px; color: var(--fg-3); }
.price-desc { font-size: 14px; color: var(--fg-3); margin-bottom: 24px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex-grow: 1;
}
.price-card li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--fg-2);
  border-top: 1px solid var(--border);
}
.price-card li:first-child { border-top: 0; }
.price-card li strong { color: var(--fg); font-weight: 600; }
.price-foot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-3);
  text-align: center;
}

/* ── Install / CTA ───────────────────────────────────────────────── */
.install {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.install::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: var(--grad-aurora-1), var(--grad-aurora-2);
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}
.install-inner {
  position: relative;
  text-align: center;
  max-width: var(--container-narrow);
}
.install-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.install-sub {
  font-size: 18px;
  color: var(--fg-2);
  margin-bottom: 32px;
}
.install-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.install-or { color: var(--fg-3); font-size: 13px; }
.install-note { font-size: 13px; color: var(--fg-3); }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: #060a1c;
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.brand-foot { color: var(--fg); }
.brand-foot .brand-mark { color: var(--neon-cyan); }
.footer-tagline {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-3);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 540px) {
  .footer-links { grid-template-columns: 1fr; }
}
.footer-links h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--fg-2);
}
.footer-links a:hover { color: var(--neon-cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 12px;
  color: var(--fg-3);
  flex-wrap: wrap;
}
.footer-compliance a { color: var(--fg-2); border-bottom: 1px dotted currentColor; }

/* ── Scroll-reveal animation ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Privacy policy page-specific ────────────────────────────────── */
.policy-page {
  padding: 64px 0 96px;
  background: var(--bg);
}
.policy-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
}
@media (max-width: 580px) {
  .policy-wrap { padding: 32px 24px; }
}
.policy-wrap h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.policy-wrap p.updated {
  color: var(--fg-3);
  font-size: 14px;
  margin-bottom: 32px;
}
.policy-wrap h2 {
  font-size: 22px;
  margin: 40px 0 16px;
  color: var(--fg);
}
.policy-wrap h3 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--fg);
}
.policy-wrap p, .policy-wrap li {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.7;
}
.policy-wrap p { margin-bottom: 16px; }
.policy-wrap strong { color: var(--fg); font-weight: 600; }
.policy-wrap a { color: var(--neon-cyan); border-bottom: 1px dotted currentColor; }
.policy-wrap a:hover { color: var(--neon-cyan); }
.policy-wrap ul { padding-left: 22px; margin-bottom: 16px; }
.policy-wrap li { margin-bottom: 8px; }
.policy-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.policy-wrap th, .policy-wrap td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--fg-2);
}
.policy-wrap th {
  font-weight: 600;
  color: var(--fg);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-strong);
}
.policy-wrap code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--neon-cyan);
}

/* ── Accessibility ───────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* Skip-to-content (only visible on keyboard focus) */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--neon-cyan);
  color: #0a0e27;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 100;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #0a0e27;
}

/* Sticky-nav scroll offset for in-page anchors */
section[id], main { scroll-margin-top: 80px; }

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

/* ════════════════════════════════════════════════════════════════════
 * v3 OVERHAUL — content + mockup components (Round 3, 2026-06-04)
 * Adds: hero mockup, how-it-works, feature rows with mockups,
 * use cases, FAQ. Inline HTML+CSS "screenshots" of the extension UI.
 * ════════════════════════════════════════════════════════════════ */

/* ── Hero v2 (two-column with mockup) ────────────────────────────── */
.hero-v2 { padding: 72px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-copy .hero-cta-v2,
  .hero-copy .hero-meta { justify-content: center; }
  .hero-mockup { max-width: 720px; margin: 0 auto; }
}
.hero-copy { text-align: left; }
.hero-title-v2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 22px; }
.hero-sub-v2 { font-size: clamp(16px, 1.3vw, 19px); margin: 0 0 30px; max-width: 560px; }
.hero-copy .hero-cta-v2 { justify-content: flex-start; margin-bottom: 28px; }
.hero-copy .hero-meta { justify-content: flex-start; }
@media (max-width: 1024px) {
  .hero-copy { text-align: center; }
  .hero-sub-v2 { margin-left: auto; margin-right: auto; }
}

/* ── Mockup primitives ────────────────────────────────────────────── */
.mockup-caption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--fg-3);
  text-align: center;
  font-style: italic;
}

/* Fake browser/window chrome */
.mock-window {
  background: #f7f8fb;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.3);
  color: #202124;
  font-family: "Google Sans Text", "Roboto", "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ebeef3;
  border-bottom: 1px solid #d8dce4;
}
.mc-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mc-red { background: #ff5f56; }
.mc-yellow { background: #ffbd2e; }
.mc-green { background: #27c93f; }
.mc-url {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 1px solid #d8dce4;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: #5f6368;
  max-width: 360px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fake Gmail interior */
.mock-gmail {
  display: grid;
  grid-template-columns: 140px 1fr 240px;
  height: 420px;
  background: #fff;
}
@media (max-width: 640px) {
  .mock-gmail { grid-template-columns: 1fr 200px; height: 380px; }
  .mg-rail { display: none; }
}
.mg-rail {
  background: #f6f8fc;
  border-right: 1px solid #e6e8ee;
  padding: 14px 8px;
  font-size: 12px;
}
.mg-compose {
  background: #c2e7ff;
  color: #001d35;
  border-radius: 16px;
  padding: 8px 12px;
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-block;
}
.mg-nav-item {
  padding: 6px 12px;
  border-radius: 0 16px 16px 0;
  color: #444746;
  margin: 2px -8px 2px 0;
  display: flex;
  justify-content: space-between;
}
.mg-nav-item.mg-active { background: #d3e3fd; color: #001d35; font-weight: 700; }
.mg-count { color: #5f6368; font-weight: 600; font-size: 11px; }
.mg-main { border-right: 1px solid #e6e8ee; overflow: hidden; }
.mg-toolbar {
  padding: 8px 14px;
  border-bottom: 1px solid #e6e8ee;
  background: #fff;
}
.mg-search {
  display: block;
  background: #eaf1fb;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  color: #5f6368;
}
.mg-list { background: #fff; }
.mg-row {
  display: grid;
  grid-template-columns: 120px 1fr 50px;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 11.5px;
  color: #5f6368;
  align-items: center;
}
.mg-row-unread { background: #fff; color: #202124; font-weight: 600; }
.mg-row-unread .mg-sender,
.mg-row-unread .mg-date { color: #202124; }
.mg-sender { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.mg-subject strong { color: #202124; font-weight: 600; }
.mg-date { font-size: 10.5px; text-align: right; color: #5f6368; }

/* Tolomail panel injected into Gmail */
.mg-tolomail {
  background: linear-gradient(180deg, #f0f4ff, #fff);
  border-left: 2px solid oklch(75% 0.18 200);
  box-shadow: inset 0 0 0 1px rgba(34,211,238,0.18);
  padding: 12px 12px 16px;
  overflow: hidden;
}
.tm-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #202124;
}
.tm-logo { color: oklch(75% 0.18 200); font-size: 14px; }
.tm-title { font-size: 13px; }
.tm-chip {
  margin-left: auto;
  background: oklch(75% 0.18 200);
  color: #06243a;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.tm-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5f6368;
  margin: 12px 0 6px;
  font-weight: 600;
}
.tm-await { display: flex; flex-direction: column; gap: 4px; }
.tm-await-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 6px;
  font-size: 11px;
  color: #202124;
}
.tm-pill {
  text-align: center;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.tm-pill-red { background: #e53935; }
.tm-pill-amber { background: #f59e0b; }
.tm-pill-green { background: #16a34a; }
.tm-await-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tm-await-text strong { font-weight: 600; }
.tm-tree { display: flex; flex-direction: column; gap: 4px; }
.tm-node {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #202124;
}
.tm-indent-1 { padding-left: 18px; }
.tm-indent-2 { padding-left: 36px; }
.tm-indent-3 { padding-left: 54px; }
.tm-indent-4 { padding-left: 72px; }
.tm-av {
  width: 18px; height: 18px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tm-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-current { color: oklch(70% 0.22 300); font-weight: 700; }

/* ── How it works ─────────────────────────────────────────────────── */
.how { background: var(--bg); }
.how .container > .section-eyebrow,
.how .container > .section-title,
.how .container > .section-sub {
  text-align: center;
}
.how .container > .section-sub { margin-inline: auto; margin-bottom: 48px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how-num {
  position: absolute;
  top: -16px; left: 24px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #061226;
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(34,211,238,0.35);
}
.how-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--neon-cyan);
  display: grid;
  place-items: center;
  margin-top: 8px;
}
.how-icon svg { width: 20px; height: 20px; }
.how-step h3 { font-size: 18px; }
.how-step p { font-size: 14.5px; color: var(--fg-2); line-height: 1.55; }
.how-mockup {
  margin-top: auto;
  padding-top: 12px;
}

.how-cws {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  color: #202124;
}
.how-cws-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--grad-cta);
  color: #061226;
  display: grid; place-items: center;
  font-weight: 800;
}
.how-cws-body { flex: 1; min-width: 0; }
.how-cws-name { font-weight: 700; font-size: 13px; }
.how-cws-meta { font-size: 11px; color: #5f6368; }
.how-cws-btn {
  background: #1a73e8;
  color: #fff;
  border: 0;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
}

.how-oauth {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  color: #202124;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.how-oauth-row {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6e8ee;
  margin-bottom: 8px;
}
.how-g {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  border: 1px solid #dadce0;
  font-weight: 800;
  font-size: 12px;
  display: grid; place-items: center;
  color: #1a73e8;
}
.how-oauth-line {
  font-size: 11.5px;
  color: #16a34a;
  padding: 3px 0;
}
.how-oauth-line-x { color: #b91c1c; }

.how-thread {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  color: #202124;
  font-size: 12px;
}
.how-thread-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.how-indent { padding-left: 18px; }
.how-indent-2 { padding-left: 36px; }
.how-now { font-weight: 700; color: oklch(60% 0.22 300); }
.how-av {
  width: 18px; height: 18px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  display: grid; place-items: center;
}

/* ── Feature rows with mockups ────────────────────────────────────── */
.features-v2 .feat-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.features-v2 .feat-row:last-child { border-bottom: 0; }
.features-v2 .feat-row-rev .feat-copy { order: 2; }
.features-v2 .feat-row-rev .feat-mock { order: 1; }
@media (max-width: 960px) {
  .features-v2 .feat-row,
  .features-v2 .feat-row-rev {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .features-v2 .feat-row-rev .feat-copy,
  .features-v2 .feat-row-rev .feat-mock { order: initial; }
}
.feat-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: color-mix(in oklch, var(--accent, var(--neon-cyan)) 20%, transparent);
  color: var(--accent, var(--neon-cyan));
  border: 1px solid color-mix(in oklch, var(--accent, var(--neon-cyan)) 40%, transparent);
  margin-bottom: 18px;
}
.feat-copy h3 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.feat-copy p {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 12px;
}
.feat-copy code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--neon-cyan);
}
.feat-use {
  font-size: 13px !important;
  color: var(--fg-3) !important;
  font-style: italic;
  border-left: 2px solid var(--accent, var(--neon-cyan));
  padding-left: 14px;
  margin-top: 16px !important;
}

/* Mockup card (the "screenshot" frame) */
.mock-card {
  background: linear-gradient(180deg, #ffffff, #f8f9fc);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  color: #202124;
  font-family: "Google Sans Text", "Roboto", "Inter", sans-serif;
  font-size: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 6px 20px rgba(0,0,0,0.28);
}
.mc-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e6e8ee;
  background: #f8f9fa;
  font-size: 12px;
}
.mc-title { font-weight: 700; color: #202124; font-size: 13px; }
.mc-subtitle { color: #5f6368; font-size: 11px; font-variant-numeric: tabular-nums; }
.mc-seg {
  margin-left: auto;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10.5px;
  color: #5f6368;
}
.mc-seg b { color: #202124; }
.mc-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mc-body-tight { gap: 4px; }

/* Tree mockup in feature card */
.mock-card-tree { background: #fff; }
.tm-current-row .tm-line { color: oklch(60% 0.22 300); font-weight: 700; }
.tm-here {
  margin-left: 6px;
  font-size: 9px;
  background: oklch(70% 0.22 300);
  color: #fff;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Awaiting mockup full width */
.tm-await-full {
  grid-template-columns: 38px 1fr 18px;
  padding: 7px 10px;
}
.tm-x {
  color: #c0c4cc;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.tm-has-note {
  grid-template-columns: 38px 1fr 18px;
  grid-template-rows: auto auto;
}
.tm-has-note .tm-note-row {
  grid-column: 2 / span 2;
  background: #fef9c3;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  color: #713f12;
  margin-top: 5px;
}

/* Insights grid */
.ins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #e6e8ee;
  border-radius: 6px;
  overflow: hidden;
}
.ins-cell {
  background: #fff;
  padding: 10px 12px;
}
.ins-k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5f6368;
  font-weight: 600;
}
.ins-v { font-size: 13px; font-weight: 600; color: #202124; margin-top: 2px; }
.ins-v-warn { color: #d97706; }

/* Attachments grid */
.att-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 480px) { .att-grid { grid-template-columns: repeat(2, 1fr); } }
.att-tile {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.att-fav { border-color: oklch(82% 0.15 80); background: #fffbeb; }
.att-thumb {
  aspect-ratio: 1.2 / 1;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.att-pdf { background: #dc2626; }
.att-img { background: #0ea5e9; }
.att-doc { background: #2563eb; }
.att-xls { background: #16a34a; }
.att-name {
  font-size: 11px;
  font-weight: 600;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.att-name span { color: oklch(70% 0.15 80); }
.att-sender { font-size: 10px; color: #5f6368; }

/* Dual mini cards for multi-account */
.feat-mock-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) { .feat-mock-dual { grid-template-columns: 1fr; } }
.feat-mock-dual .mockup-caption { grid-column: 1 / -1; }
.mock-card-mini {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  color: #202124;
  font-size: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.mock-neon-cyan {
  border: 2px solid oklch(75% 0.18 200);
  box-shadow: 0 0 0 1px oklch(75% 0.18 200 / 0.3), 0 10px 28px rgba(0,0,0,0.35);
}
.mock-neon-violet {
  border: 2px solid oklch(70% 0.22 300);
  box-shadow: 0 0 0 1px oklch(70% 0.22 300 / 0.3), 0 10px 28px rgba(0,0,0,0.35);
}
.mini-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6e8ee;
}
.mini-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mini-line {
  font-size: 11.5px;
  color: #444746;
  padding: 4px 0;
}

/* Note sticky */
.mock-card-note { max-width: 460px; margin: 0 auto; }
.note-sticky {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.5;
  position: relative;
}
.note-meta {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  color: #a16207;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Use cases ────────────────────────────────────────────────────── */
.usecases { background: var(--bg); }
.usecases .container > .section-eyebrow,
.usecases .container > .section-title,
.usecases .container > .section-sub {
  text-align: center;
}
.usecases .container > .section-sub { margin-inline: auto; margin-bottom: 48px; }
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .uc-grid { grid-template-columns: 1fr; } }
.uc-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.uc-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.uc-avatar {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #061226;
  font-weight: 800;
}
.uc-av-cyan { background: linear-gradient(135deg, oklch(80% 0.18 200), oklch(70% 0.18 200)); }
.uc-av-amber { background: linear-gradient(135deg, oklch(85% 0.15 80), oklch(75% 0.15 60)); }
.uc-av-violet { background: linear-gradient(135deg, oklch(78% 0.22 300), oklch(65% 0.22 280)); color: #fff; }
.uc-card h3 { font-size: 19px; }
.uc-card p { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; }
.uc-stat {
  margin-top: auto;
  padding: 10px 14px;
  background: var(--surface);
  border-left: 2px solid var(--neon-cyan);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--fg);
  font-style: italic;
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq { background: var(--bg-1); }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq .section-eyebrow,
.faq .section-title { text-align: center; }
.faq .section-title { margin-bottom: 40px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--neon-cyan);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
}
.faq-item p code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--neon-cyan);
}
.faq-item p strong { color: var(--fg); }
.faq-item p em { color: var(--fg); font-style: italic; }

