/* =============================================================
   SecretChip — light theme
   Clean, fast, low-weight. Only the components used by the current
   site (one-pager, contact, login, legal). Dead styles from the
   earlier multi-page version have been removed.
   ============================================================= */

:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef4ff;
  --panel: #ffffff;

  /* Text */
  --text: #0f172a;
  --text-strong: #0b1220;
  --soft: #475569;
  --muted: #64748b;

  /* Borders */
  --border: #e2e8f0;
  --border-soft: #eef2f7;

  /* Brand */
  --accent: #0a6cf0;
  --accent-strong: #0856c4;
  --accent-bright: #0a9efc;
  --accent-tint: #e8f1ff;
  --accent-edge: #bcd8ff;
  --purple: #680afc;
  --purple-tint: #efe7ff;
  --purple-edge: #d6c4ff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 6px 16px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.10);

  /* Layout */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max: 1120px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

/* In-page anchors clear the sticky header */
section[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  min-height: 100vh;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 18px 64px; }

/* -----------------------------------------------------------
   Header / nav
   ----------------------------------------------------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 0 -18px 28px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(6px);
}

.brand a.brand-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand a.brand-link:hover { text-decoration: none; }
.brand .wordmark { color: var(--text-strong); }
.brand .wordmark .chip { color: var(--accent); }
.brand .logo-mark { height: 28px; width: 28px; border-radius: 7px; display: inline-block; }

nav.site {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
nav.site a.nav-link {
  color: var(--soft);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}
nav.site a.nav-link:hover { color: var(--text-strong); background: var(--bg-soft); text-decoration: none; }
nav.site a.nav-link.is-active { color: var(--accent); background: var(--accent-tint); }
nav.site a.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  background: var(--accent-tint);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--accent-edge);
  margin-left: 6px;
  transition: background 150ms ease, border-color 150ms ease;
}
nav.site a.login-pill.is-active { background: #d8e8ff; border-color: var(--accent); }
nav.site a.login-pill:hover { background: #d8e8ff; border-color: var(--accent); text-decoration: none; }
nav.site a.login-pill .login-ico { width: 14px; height: 14px; flex: 0 0 auto; }
.nav-cta { margin-left: 8px; padding: 9px 16px; }

/* -----------------------------------------------------------
   Cards
   ----------------------------------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.card:hover { box-shadow: var(--shadow); border-color: #d4deeb; }
.card + .card { margin-top: 16px; }
.card h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; color: var(--text-strong); font-weight: 700; }
.card h3 { margin: 0 0 10px; font-size: 18px; color: var(--text-strong); font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--soft); font-size: 14.5px; }

/* -----------------------------------------------------------
   Section heading
   ----------------------------------------------------------- */
.section-heading { max-width: 760px; display: grid; gap: 10px; margin-bottom: 4px; }
.section-heading.center { max-width: 720px; margin-left: auto; margin-right: auto; justify-items: center; text-align: center; }
.section-heading .eyebrow,
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.section-heading h2 { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--text-strong); }
.section-heading h1 { margin: 0; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; color: var(--text-strong); }
.section-heading .kicker { margin: 2px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0; }
.section-heading .kicker-prompt { color: var(--accent); margin-right: 6px; font-weight: 600; }
.section-heading .desc { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.6; }

/* Helpers */
.stack { display: grid; gap: 16px; }
.section { margin-top: 48px; }
.lead { color: var(--soft); font-size: 18px; line-height: 1.6; max-width: 60ch; }
.mini { color: var(--muted); font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; word-break: break-word; color: var(--text-strong); }
ul.list { margin: 0; padding-left: 18px; color: var(--soft); font-size: 14.5px; }
ul.list li { margin: 7px 0; }

/* Grids */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.grid2 > .card, .grid3 > .card, .grid4 > .card { height: 100%; }
.grid2 > .card + .card, .grid3 > .card + .card, .grid4 > .card + .card { margin-top: 0; }
@media (max-width: 980px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid4 { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------
   Page hero (one treatment across every page)
   ----------------------------------------------------------- */
.page-hero {
  position: relative;
  text-align: center;
  padding: 28px 18px 8px;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.page-hero .eyebrow { margin: 0; }
.page-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}
.page-hero .lead { margin: 0 auto; max-width: 58ch; font-size: 18px; color: var(--soft); }
.page-hero .btnrow { justify-content: center; margin-top: 4px; }

/* Homepage hero runs a little larger */
.home-hero { padding-top: 44px; gap: 22px; }
.home-hero h1 { max-width: 16ch; font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.04em; }
.home-hero .lead { max-width: 62ch; font-size: 19px; }

.gradient-text {
  background: linear-gradient(100deg, var(--accent-bright), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Final CTA block */
.cta-final { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-final h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; color: var(--text-strong); }
.cta-final p { margin: 0 auto 18px; color: var(--soft); max-width: 56ch; font-size: 17px; }

/* Live stats strip (AEGIS) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-top: 24px; }
.stats[hidden] { display: none; }
.stats .stat { background: var(--panel); padding: 18px; display: grid; gap: 4px; text-align: center; }
.stats .stat-num { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--text-strong); line-height: 1.1; letter-spacing: -0.01em; }
.stats .stat-label { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Section band (full-bleed soft background) */
.band {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 48px 18px;
}
.band > .band-inner { max-width: var(--max); margin: 0 auto; }

/* Badge */
.badge { font-size: 12px; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--muted); background: var(--bg-soft); white-space: nowrap; }
.badge.purple { color: var(--purple); border-color: var(--purple-edge); background: var(--purple-tint); }

/* Buttons */
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.btn:hover { background: var(--bg-soft); border-color: #d4deeb; text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: var(--shadow-sm); }
.btn.purple { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn.purple:hover { background: #5409cf; border-color: #5409cf; }

/* FAQ */
details.faq { border: 1px solid var(--border); background: var(--panel); border-radius: 14px; padding: 14px 16px; transition: border-color 200ms ease; }
details.faq + details.faq { margin-top: 8px; }
details.faq[open] { border-color: var(--accent-edge); }
details.faq summary { cursor: pointer; color: var(--text-strong); font-size: 14.5px; font-weight: 600; list-style: none; position: relative; padding-right: 22px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--muted); font-weight: 600; font-size: 18px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--soft); font-size: 13.5px; }

/* Trust-signal row (under the hero) */
.trust-row { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.home-hero .trust-row { justify-content: flex-start; }
.trust-row li { font-size: 12.5px; font-weight: 600; color: var(--soft); background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 6px 13px; }
.trust-row li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }

/* "How it works" steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.steps .step-n { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--accent-strong); font-family: var(--mono); font-weight: 700; font-size: 15px; display: grid; place-items: center; align-self: start; }
.steps .step-t { font-weight: 700; color: var(--text-strong); font-size: 15px; }
.steps .step-d { color: var(--soft); font-size: 13px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Testimonials */
.quote { margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.quote blockquote { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; }
.quote blockquote::before { content: "“"; color: var(--accent); font-weight: 700; }
.quote figcaption { margin-top: 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
footer.site {
  margin: 64px -18px 0;
  padding: 40px 18px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 32px; }
.footer-brand .brand-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer-brand .wordmark { color: var(--text-strong); }
.footer-brand .wordmark .chip { color: var(--accent); }
.footer-brand .logo-mark { height: 30px; width: 30px; border-radius: 7px; }
.footer-grid .footer-brand p { margin-top: 4px; color: var(--muted); font-size: 13px; max-width: 34ch; }
.footer-grid h4 { margin: 0 0 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--purple); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid ul li a { font-size: 13.5px; color: var(--soft); }
.footer-grid ul li a:hover { color: var(--accent); }
.footer-base { max-width: var(--max); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-base a { color: var(--muted); }
.footer-base a:hover { color: var(--accent); }
.footer-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .footer-grid .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Status page + badge */
.status-embed { width: 100%; max-width: 1000px; margin: 0 auto; }
.status-embed iframe { width: 100%; aspect-ratio: 1000 / 800; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); }
.status-badge { display: block; border: 0; max-width: 100%; }
.status-badge-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 560px) { .status-embed iframe { aspect-ratio: 1000 / 1100; } }

/* -----------------------------------------------------------
   Legal pages
   ----------------------------------------------------------- */
.legal-wrap { max-width: 880px; margin: 0 auto; display: grid; gap: 24px; }
.legal-header { display: grid; gap: 8px; }
.legal-header .eyebrow { color: var(--purple); }
.legal-header h1 { margin: 0; font-size: 36px; color: var(--text-strong); font-weight: 800; letter-spacing: -0.03em; }
.legal-header .intro { margin: 0; color: var(--soft); font-size: 15px; }
.legal-section { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-section h2 { margin: 0 0 10px; font-size: 19px; color: var(--accent); font-weight: 700; }
.legal-section p, .legal-section ul { color: var(--soft); }
.legal-footer { font-size: 13px; color: var(--muted); }

/* -----------------------------------------------------------
   Cookie banner
   ----------------------------------------------------------- */
#cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: none; }
#cookie-banner.is-open { display: block; }
#cookie-banner .card { max-width: 1040px; margin: 0 auto; border-color: var(--accent-edge); box-shadow: var(--shadow-lg); }
#cookie-banner .row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
#cookie-banner p { margin: 0; flex: 1 1 280px; min-width: 260px; }

/* -----------------------------------------------------------
   Animations (reduced-motion aware)
   ----------------------------------------------------------- */
.fade-up { animation: fadeUp 420ms ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* -----------------------------------------------------------
   Mobile
   ----------------------------------------------------------- */
@media (max-width: 720px) {
  header.site { flex-direction: column; align-items: stretch; gap: 12px; }
  .brand a.brand-link { justify-content: center; }
  nav.site { justify-content: center; gap: 2px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading h1 { font-size: 30px; }
  .band { padding: 36px 18px; }
}
