/* ============================================================
   ChatSnapAI — chatsnapai.com
   Shared stylesheet (all pages)
   Design system: "Verifiable calm"
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --ink:        #11302f;   /* near-black teal — headings, primary text */
  --body:       #3d5452;   /* softened ink — body copy */
  --muted:      #6b8280;   /* captions, meta */
  --paper:      #fcfdfd;   /* page background */
  --tint:       #f1f7f6;   /* section tint, soft sea-glass */
  --line:       #dde9e7;   /* hairlines, card borders */
  --accent:     #0e7c66;   /* deep emerald — actions, links */
  --accent-ink: #0a5c4c;   /* hover state */
  --accent-soft:#def0ea;   /* accent washes, badges */
  --proof:      #0d1f1e;   /* dark panel used ONLY for technical proof moments */
  --proof-text: #9fd8c9;   /* mono text on proof panels */
  --proof-line: transparent; /* proof panel border (visible in dark mode) */
  --ok:         #19b386;   /* the "verified / zero requests" green dot */
  --card:       #ffffff;   /* card surfaces */
  --on-accent:  #ffffff;   /* text on accent-colored surfaces */
  --nav-bg:     rgba(252,253,253,.86);

  /* Type */
  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans:    "Inter", "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Layout */
  --max: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(17,48,47,.05), 0 12px 32px -12px rgba(17,48,47,.14);
}

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] {
  --ink:        #e9f2f0;
  --body:       #b9cdc9;
  --muted:      #7f9793;
  --paper:      #0c1716;
  --tint:       #101f1e;
  --line:       #213834;
  --accent:     #27b790;
  --accent-ink: #5ad8b2;
  --accent-soft: rgba(39,183,144,.14);
  --proof:      #071110;
  --proof-line: #1f3a36;
  --card:       #122120;
  --on-accent:  #04221b;
  --nav-bg:     rgba(12,23,22,.86);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.5);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); color: var(--on-accent); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn .chrome-mark { width: 19px; height: 19px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 30px;
  height: 66px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.14rem; color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--body); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta { color: var(--on-accent); }
.nav-links a.nav-cta:hover { color: var(--on-accent); }
.nav-cta { padding: 9px 18px; font-size: .92rem; }
.nav-toggle { display: none; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--body);
  transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 1.16rem; max-width: 32em; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .86rem; color: var(--muted); margin-top: 16px; }
.hero-note strong { color: var(--body); font-weight: 600; }

/* Platform strip */
.platform-strip {
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.platform-strip .platforms {
  display: grid; grid-template-columns: repeat(4, max-content); gap: 10px 28px; margin-top: 12px;
  font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--body);
}
@media (max-width: 420px) { .platform-strip .platforms { grid-template-columns: repeat(2, max-content); gap: 8px 36px; } }

/* ---------- Hero proof panel (signature element) ---------- */
.proof-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.popup-frame {
  position: relative; width: 340px; max-width: 100%;
  max-height: 540px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--card);
}
.popup-frame img { width: 100%; height: auto; }
.popup-frame::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 110px;
  background: linear-gradient(to bottom, transparent, var(--card) 92%);
  pointer-events: none;
}

/* The receipt: DevTools-style zero-requests strip */
.network-receipt {
  margin: 18px 0 0; width: 100%; max-width: 420px; position: relative; z-index: 2;
  background: var(--proof); border: 1px solid var(--proof-line); border-radius: var(--radius-sm);
  box-shadow: 0 16px 36px -16px rgba(13,31,30,.5);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .8rem; color: var(--proof-text);
}
.pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none;
  box-shadow: 0 0 0 0 rgba(25,179,134,.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(25,179,134,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(25,179,134,0); }
  100% { box-shadow: 0 0 0 0 rgba(25,179,134,0); }
}
.network-receipt .label { opacity: .65; white-space: nowrap; }
.network-receipt .value { margin-left: auto; }
.network-receipt .value { color: #fff; font-weight: 600; }
.receipt-caption {
  text-align: center; font-size: .8rem; color: var(--muted); margin-top: 14px;
}
.receipt-caption a { font-weight: 600; }

/* ---------- Section scaffold (used by upcoming sections) ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 38em; margin-bottom: 44px; }
.section-head .kicker {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-ink); display: block; margin-bottom: 12px;
}

/* ---------- Why local matters ---------- */
.incident-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 44px;
}
.incident-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: 0 1px 2px rgba(17,48,47,.04);
}
.incident-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--mono); margin-bottom: 14px;
}
.incident-stat { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.incident-date { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.incident-card h3 { margin-bottom: .45em; }
.incident-card p { font-size: .96rem; margin-bottom: 16px; }
.incident-source {
  font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--muted);
}
.incident-source:hover { color: var(--accent-ink); }
.answer-band { max-width: 44em; }
.answer-lead { font-size: 1.14rem; color: var(--ink); }
.answer-band p { margin-bottom: 1.1em; }
@media (max-width: 760px) {
  .incident-grid { grid-template-columns: 1fr; }
}

/* ---------- Features ---------- */
.feature-bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px;
}
.feature-wide { grid-column: 1 / -1; background: linear-gradient(135deg, var(--card) 55%, var(--accent-soft)); }
.feature-card h3 { margin-bottom: .4em; }
.feature-card p { font-size: .95rem; margin-bottom: 0; }
.feature-wide p { max-width: 46em; margin-bottom: 18px; }
.format-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--card); color: var(--body);
  padding: 6px 13px; border-radius: 999px;
}
.chip-pdf { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.mono-inline { font-family: var(--mono); font-size: .85em; color: var(--accent-ink); }
@media (max-width: 940px) { .feature-bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feature-bento { grid-template-columns: 1fr; } }

/* ---------- Verify it yourself ---------- */
.verify-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; }
.verify-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.verify-steps li {
  counter-increment: step; position: relative;
  padding: 0 0 28px 58px;
}
.verify-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); color: var(--accent-ink);
  font-family: var(--mono); font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.verify-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px;
  width: 1px; background: var(--line);
}
.verify-steps h3 { margin-bottom: .35em; }
.verify-steps p { font-size: .96rem; margin: 0; }
.kbd {
  font-family: var(--mono); font-size: .82em; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-bottom-width: 2.5px;
  border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}
.netpanel {
  background: var(--proof); border: 1px solid var(--proof-line); border-radius: var(--radius-sm);
  box-shadow: 0 16px 36px -16px rgba(13,31,30,.5);
  font-family: var(--mono); font-size: .78rem; overflow: hidden;
}
.netpanel-tabs {
  display: flex; gap: 2px; padding: 9px 12px 0; color: #5d7a74;
  border-bottom: 1px solid rgba(159,216,201,.14);
}
.netpanel-tabs span { padding: 5px 11px 8px; }
.netpanel-tabs .active { color: #fff; border-bottom: 2px solid var(--ok); }
.netpanel-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px;
  padding: 9px 14px; color: #5d7a74; border-bottom: 1px solid rgba(159,216,201,.14);
}
.netpanel-empty {
  display: flex; align-items: center; gap: 11px; justify-content: center;
  padding: 44px 18px; color: var(--proof-text);
}
.verify-note {
  font-size: .88rem; color: var(--muted); margin-top: 18px;
}
@media (max-width: 880px) {
  .verify-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Professionals ---------- */
.pro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pro-card {
  border-left: 3px solid var(--accent); background: var(--tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
}
.pro-card h3 { margin-bottom: .35em; }
.pro-card p { font-size: .95rem; margin: 0; }
@media (max-width: 820px) { .pro-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 880px;
}
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; display: flex; flex-direction: column;
}
.price-featured { border-color: var(--accent); box-shadow: 0 12px 32px -14px rgba(14,124,102,.28); }
.price-tier {
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.price-badge {
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .05em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}
.price-amount {
  font-family: var(--display); font-weight: 700; font-size: 2.2rem; color: var(--ink);
  margin: 14px 0 18px;
}
.price-period { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-list { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.price-list li {
  position: relative; padding: 7px 0 7px 28px; font-size: .95rem;
  border-bottom: 1px solid var(--tint);
}
.price-list li::before {
  content: "✓"; position: absolute; left: 2px; top: 7px;
  color: var(--accent); font-weight: 700;
}
.price-btn { justify-content: center; }
.price-note { margin-top: 26px; font-size: .88rem; color: var(--muted); max-width: 44em; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal-container { max-width: 760px; }
.legal-page h1 { font-size: clamp(2.1rem, 4.5vw, 2.9rem); margin: 10px 0 6px; }
.legal-page .kicker {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-ink);
}
.legal-meta { font-size: .88rem; color: var(--muted); margin-bottom: 30px; }
.legal-summary {
  background: var(--accent-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin-bottom: 38px; font-size: 1.02rem; color: var(--ink);
}
.legal-page h2 { font-size: 1.25rem; margin: 34px 0 .45em; }
.legal-page p { max-width: 46em; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line); background: var(--tint);
  padding: 48px 0 38px; font-size: .9rem; color: var(--muted);
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; color: var(--ink); }
.footer-brand .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
.footer-tag { margin-top: 10px; max-width: 26em; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links nav { display: flex; flex-direction: column; gap: 9px; }
.footer-links .col-title {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.footer-links a { color: var(--body); font-weight: 500; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-base {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .proof-stage { max-width: 560px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
  }
  .nav-links.open a { padding: 8px 0; font-size: 1.02rem; }
  .theme-toggle { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--line);
    border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink);
    font-family: var(--mono); font-size: .8rem;
  }
  .section { padding: 60px 0; }
}
