/* ── design tokens ───────────────────────────────────────────── */
:root {
  --bg:             #faf9f6;
  --surface:        #f2ede7;
  --surface-hover:  #ece4d9;
  --surface-active: #e4d9cc;
  --border:         #e0d6cb;
  --border-strong:  #c8bdb0;
  --text:           #1a0d07;
  --text-secondary: #6b5748;
  --text-muted:     #9c8a7d;
  --accent:         #c96422;
  --accent-light:   rgba(201,100,34,0.10);
  --btn-bg:         #1a0d07;
  --btn-text:       #faf9f6;
  --success:        #2d7a4a;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── dark mode tokens (exact match from tab-extension/styles.css) */
body.dark {
  --bg:             #0f0b08;
  --surface:        #211810;
  --surface-hover:  #2b1f16;
  --surface-active: #36271c;
  --border:         #3a2a1f;
  --border-strong:  #503a2c;
  --text:           #ede6dc;
  --text-secondary: #ab9080;
  --text-muted:     #6e5848;
  --accent:         #b07848;
  --accent-light:   rgba(176,120,72,0.14);
  --btn-bg:         #ede6dc;
  --btn-text:       #17120e;
  --success:        #3a9a5e;
}

/* ── selection ───────────────────────────────────────────────── */
::selection { background: var(--accent); color: #fff; }

/* ── reset ───────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── nav ─────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 56px; height: 62px;
  background: rgba(250,249,246,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
nav > :last-child { justify-self: end; }
nav.scrolled { border-bottom-color: var(--border); }
body.dark nav { background: rgba(15,11,8,0.88); }
.nav-logo {
  font-family: "Geist", sans-serif;
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  background: var(--btn-bg); color: var(--btn-text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px; font-weight: 600;
  border: none; border-radius: 8px;
  cursor: pointer; text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-nav:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  background: var(--btn-bg); color: var(--btn-text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px; font-weight: 600;
  border: none; border-radius: 9px;
  cursor: pointer; text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { opacity: 0.84; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  background: transparent; color: var(--text-secondary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--border-strong); border-radius: 9px;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

/* ── theme toggle ────────────────────────────────────────────── */
.btn-theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.btn-theme:hover { background: var(--surface); color: var(--text); }
.btn-theme svg { width: 15px; height: 15px; }
.icon-sun  { display: none; }
.icon-moon { display: block; }
body.dark .icon-sun  { display: block; }
body.dark .icon-moon { display: none; }

/* ── hero ────────────────────────────────────────────────────── */
.hero {
  height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center;
  padding: 0 24px;
  position: relative;
}
.hero-main {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 130px 0 0;
  position: relative; z-index: 1;
}
.hero-bg-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  height: 82vh;
  width: 82vh;
  background-image: url('tab-extension/icons/icon-large.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero > *:not(.hero-bg-icon) { position: relative; z-index: 1; }
.hero-main > * { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 30px;
}
.hero h1 {
  font-family: "Geist", sans-serif;
  font-size: clamp(76px, 14vw, 148px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.90;
  color: var(--text); margin-bottom: 34px;
}
.hero-sub {
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 400; color: var(--text-secondary);
  max-width: 420px; line-height: 1.7; margin-bottom: 46px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.scroll-cue {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-bottom: 38px;
  color: var(--text-muted); font-size: 10.5px; letter-spacing: 0.1em;
  animation: cue 2.6s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes cue {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}

/* ── divider ─────────────────────────────────────────────────── */
.div { width: 100%; height: 1px; background: var(--border); }

/* ── feature sections ────────────────────────────────────────── */
.features { max-width: 1080px; margin: 0 auto; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 96px 48px;
}
.feature.flip { direction: rtl; }
.feature.flip > * { direction: ltr; }
.f-label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.f-num {
  font-family: "Geist", sans-serif;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--accent);
}
.f-rule { flex: 1; height: 1px; max-width: 36px; background: var(--border-strong); }
.feature h2 {
  font-family: "Geist", sans-serif;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text); margin-bottom: 16px;
}
.feature p {
  font-size: 15px; line-height: 1.78;
  color: var(--text-secondary); max-width: 390px;
}
.f-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 5px 12px;
  background: var(--accent-light); color: var(--accent);
  font-size: 11.5px; font-weight: 600; border-radius: 20px;
}

/* ── mock popup cards ────────────────────────────────────────── */
.mock, .mock * { cursor: default; user-select: none; }
.mock {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px; padding: 14px;
  box-shadow: 0 6px 28px rgba(26,13,7,0.10), 0 1px 4px rgba(26,13,7,0.06);
  width: 100%; max-width: 330px; margin: 0 auto;
}
.mock-hd {
  display: flex; align-items: center; gap: 7px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border); margin-bottom: 11px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.dot.a { background: var(--accent); }
.mock-lbl {
  font-family: "Geist", sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--text-muted); flex: 1;
}
.mock-input {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 8px 11px;
  font-size: 11.5px; color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif; flex: 1;
}
.mock-btn {
  padding: 8px 13px; background: var(--btn-bg); color: var(--btn-text);
  border: none; border-radius: 8px;
  font-size: 11px; font-weight: 600;
  font-family: "Plus Jakarta Sans", sans-serif; cursor: default; white-space: nowrap;
}
.mock-save-bar { display: flex; gap: 7px; align-items: center; }
.mock-sess {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 9px; padding: 9px 11px; margin-bottom: 7px;
}
.mock-name { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.mock-meta { font-size: 10px; color: var(--text-muted); margin-bottom: 7px; }
.mock-acts { display: flex; gap: 5px; }
.mock-act {
  padding: 4px 9px; background: var(--surface-active);
  border: none; border-radius: 5px;
  font-size: 9.5px; font-weight: 600; color: var(--text-secondary); cursor: default;
}
.mock-act.p { background: var(--btn-bg); color: var(--btn-text); }
.mock-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.mock-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 500;
}
.p-blue   { background: rgba(66,133,244,0.15);  color: #1a56b0; }
.p-purple { background: rgba(168,85,247,0.15);  color: #6b21a8; }
.p-green  { background: rgba(52,168,83,0.15);   color: #1a6e35; }
.p-grey   { background: var(--surface-active);  color: var(--text-secondary); }
.mock-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.mock-toggle-row:last-child { border: none; }
.mock-tlabel { font-size: 11.5px; color: var(--text-secondary); font-weight: 500; }
.mock-tog { width: 30px; height: 17px; border-radius: 9px; position: relative; flex-shrink: 0; }
.mock-tog.on  { background: var(--btn-bg); }
.mock-tog.off { background: var(--border-strong); }
.mock-tog::after {
  content: "";
  position: absolute; top: 2px;
  width: 13px; height: 13px;
  border-radius: 50%; background: #fff;
}
.mock-tog.on::after  { left: 15px; }
.mock-tog.off::after { left: 2px; }
.mock-detail {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 7px; margin-top: 7px; overflow: hidden;
}
.mock-detail-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-bottom: 1px solid var(--border);
}
.mock-detail-title { font-size: 10px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.mock-tab-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 5px; margin: 2px 4px;
}
.mock-tab-row.hl { background: var(--surface-hover); }
.mock-fav { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.mock-tab-title {
  font-size: 10.5px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.mock-tab-row.hl .mock-tab-title { color: var(--text); }
.mock-cipher {
  font-family: "Geist", monospace;
  font-size: 9px; color: var(--text-muted);
  letter-spacing: 0.03em; line-height: 1.85;
  word-break: break-all; padding: 10px 11px;
  background: var(--surface); border-radius: 7px;
  border: 1px solid var(--border); margin-top: 9px;
}
.cipher-lbl {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--success);
  display: flex; align-items: center; gap: 5px; margin-bottom: 5px;
}

/* ── CTA ─────────────────────────────────────────────────────── */
.cta { text-align: center; padding: 110px 24px 130px; }
.cta h2 {
  font-family: "Geist", sans-serif;
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.04;
  color: var(--text); margin-bottom: 18px;
}
.cta p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 42px; line-height: 1.7; }

/* ── footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 56px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.ft-logo { font-family: "Geist", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.ft-links { display: flex; gap: 22px; list-style: none; }
.ft-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.15s ease; }
.ft-links a:hover { color: var(--text); }
.ft-copy { font-size: 11px; color: var(--text-muted); }

/* ── scroll reveal ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.62s var(--ease), transform 0.62s var(--ease); }
.reveal.d1 { transition-delay: 0.10s; }
.reveal.d2 { transition-delay: 0.20s; }
.reveal.on { opacity: 1; transform: translateY(0); }

/* ── grain overlay ───────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ── privacy page ────────────────────────────────────────────── */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 110px 24px 100px;
}
.prose-eyebrow {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.prose-title {
  font-family: "Geist", sans-serif;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.95;
  color: var(--text); margin-bottom: 14px;
}
.prose-date {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 56px;
}
.prose-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}
.prose-section:last-child { border-bottom: none; }
.prose-section-num {
  font-family: "Geist", sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: 10px;
}
.prose-section h2 {
  font-family: "Geist", sans-serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.15;
  color: var(--text); margin-bottom: 16px;
}
.prose-section p {
  font-size: 15px; line-height: 1.8;
  color: var(--text-secondary); margin-bottom: 14px;
}
.prose-section p:last-child { margin-bottom: 0; }
.prose-section strong { color: var(--text); font-weight: 600; }
.prose-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 12px;
}
.prose-card:last-child { margin-bottom: 0; }
.prose-card-title {
  font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.prose-card p {
  font-size: 13.5px; line-height: 1.72;
  color: var(--text-secondary); margin-bottom: 0;
}
.prose-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}
.prose-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.7; color: var(--text-secondary);
}
.prose-list li::before {
  content: "—";
  color: var(--accent); font-weight: 600;
  flex-shrink: 0; margin-top: 1px;
}
.prose-list li strong { color: var(--text); }
.prose-table {
  width: 100%; border-collapse: collapse;
  border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden;
  margin-top: 12px;
}
.prose-table th {
  background: var(--surface); text-align: left;
  padding: 10px 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1.5px solid var(--border);
}
.prose-table td {
  padding: 11px 16px; font-size: 13.5px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.prose-table tr:last-child td { border-bottom: none; }
.prose-table td:first-child {
  font-family: "Geist", monospace;
  font-size: 12px; color: var(--accent); font-weight: 500;
}
.prose-table tr:nth-child(even) td { background: var(--surface); }
.no-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 20px;
  background: rgba(185,60,46,0.10); color: #b93c2e;
  font-size: 11.5px; font-weight: 600;
}
body.dark .no-badge { background: rgba(217,80,64,0.13); color: #e06050; }
.contact-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 9px; text-decoration: none;
  font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}
.contact-link:hover { background: var(--surface-hover); color: var(--text); }

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 780px) {
  .feature { grid-template-columns: 1fr; padding: 64px 24px; gap: 36px; }
  .feature.flip { direction: ltr; }
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  footer { padding: 24px; flex-direction: column; align-items: flex-start; }
  .prose-page { padding: 96px 20px 80px; }
  .hero-bg-icon {
    height: 70vh; width: 95vw;
    background-image: none;
    background-color: #e3dbd7;
    -webkit-mask-image: url('tab-extension/icons/icon-large.png');
    mask-image: url('tab-extension/icons/icon-large.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }
  body.dark .hero-bg-icon { background-color: #332b25; }
  .scroll-cue { display: none; }
}

