/* Website styles — values from design/web (same tokens as the extension popup). */

:root {
  color-scheme: light;

  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --cobalt-50: #eef1ff;
  --cobalt-100: #dde3ff;
  --cobalt-500: #3d5afe;
  --cobalt-600: #2c46e3;
  --cobalt-700: #2337b8;
  --cobalt-800: #1c2b8c;

  --bg: #ffffff;
  --surface: #f8f9fb;
  --surface-sunken: #f1f3f6;
  --border: #e4e7ed;
  --text: #161a22;
  --text-secondary: #4d5566;
  --text-muted: #687183;
  --pass-icon: #22a55b;

  --page-width: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cobalt-600); }
a:hover { color: var(--cobalt-700); }

img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--cobalt-500); outline-offset: 3px; }

.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  z-index: 10;
}
.skip-link:focus { top: 12px; }

/* ─── Header ─────────────────────────────────────────────────────────────── */

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { color: inherit; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a { text-decoration: none; }

/* Blue header (landing) */
.site-header.is-brand { background: var(--cobalt-500); color: #ffffff; }
.site-header.is-brand .brand-mark { background: #ffffff; }
.site-header.is-brand .site-nav a:not(.btn) { color: var(--cobalt-100); }
.site-header.is-brand .site-nav a:not(.btn):hover { color: #ffffff; }

/* White header (subpages) */
.site-header.is-plain { border-bottom: 1px solid var(--border); }
.site-header.is-plain .brand-mark { background: var(--cobalt-500); }
.site-header.is-plain .site-nav a:not(.btn) { color: var(--text-secondary); }
.site-header.is-plain .site-nav a:not(.btn):hover { color: var(--text); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-lg { height: 52px; padding: 0 22px; border-radius: 12px; font-size: 17px; }
.btn-xl { height: 56px; padding: 0 26px; border-radius: 12px; font-size: 18px; }

.btn-light { background: #ffffff; color: var(--cobalt-700); }
.btn-light:hover { background: var(--cobalt-50); color: var(--cobalt-800); }

.btn-outline-light { color: #ffffff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px #ffffff; }

.btn-primary { background: var(--cobalt-500); color: #ffffff; }
.btn-primary:hover { background: var(--cobalt-600); color: #ffffff; }

/* ─── Shared section bits ────────────────────────────────────────────────── */

.eyebrow {
  font: 500 13px/16px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt-500);
}

.section-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-intro {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
}

.section { padding-top: 96px; padding-bottom: 96px; }

.check-icon { flex-shrink: 0; }

/* Popup screenshot frame: 440×600 popup shown at 80 %. */
.popup-frame {
  width: min(352px, 100%);
  aspect-ratio: 440 / 600;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}
.popup-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cobalt-500);
  color: #ffffff;
}

.hero-watermark {
  position: absolute;
  left: -300px;
  bottom: -480px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-badge {
  align-self: flex-start;
  font: 500 13px/16px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt-100);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hero-lead {
  margin: 0;
  max-width: 560px;
  font-size: 20px;
  line-height: 30px;
  color: var(--cobalt-100);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero .popup-frame {
  flex: 0 0 auto;
  box-shadow: 0 40px 80px rgba(10, 16, 60, 0.4), 0 0 0 1px rgba(13, 16, 22, 0.1);
}

/* ─── Trust strip ────────────────────────────────────────────────────────── */

.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.trust ul {
  list-style: none;
  margin: 0 auto;
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}
.trust li { display: flex; align-items: center; gap: 8px; }

/* ─── Modes ──────────────────────────────────────────────────────────────── */

.modes { display: flex; flex-direction: column; gap: 48px; padding-bottom: 0; }

.mode-grid { display: flex; flex-wrap: wrap; gap: 24px; }

.mode-card {
  flex: 1 1 440px;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  display: flex;
  flex-direction: column;
}

/* The popup peeks out of a 380px stage, cropped at the bottom as in the design. */
.mode-visual {
  position: relative;
  height: 380px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.mode-visual.is-simple { background: var(--cobalt-500); }
.mode-visual.is-expert { background: #0d1016; }
.mode-watermark { position: absolute; bottom: -260px; pointer-events: none; }
.mode-visual .popup-frame { position: relative; margin-top: 40px; flex-shrink: 0; }
.mode-visual.is-simple .popup-frame { box-shadow: 0 30px 60px rgba(10, 16, 60, 0.35); }
.mode-visual.is-expert .popup-frame { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px #232833; }

.mode-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.mode-body h3 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.025em; }
.mode-body p { margin: 0; font-size: 16px; line-height: 25px; color: var(--text-secondary); }
.mode-body ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 22px; }
.mode-body li { display: flex; gap: 10px; }
.mode-body li .check-icon { margin-top: 2px; }

.mode-tag {
  align-self: flex-start;
  font: 600 12px/16px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
}
.mode-tag.is-simple { color: var(--cobalt-700); background: var(--cobalt-50); }
.mode-tag.is-expert { color: #f1f3f6; background: #161a22; }

/* ─── Features ───────────────────────────────────────────────────────────── */

.features { display: flex; flex-direction: column; gap: 48px; }

.feature-grid { display: flex; flex-wrap: wrap; gap: 16px; }

.feature {
  /* 260px content + 2×24px padding, as in the design: three cards per row. */
  flex: 1 1 308px;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-tag { font: 600 12px/16px var(--font-mono); color: var(--cobalt-700); }
.feature h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.015em; }
.feature p { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-secondary); }

/* ─── Gallery ────────────────────────────────────────────────────────────── */

.gallery { background: var(--surface-sunken); }
.gallery .container { display: flex; flex-direction: column; gap: 40px; }

.gallery-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.gallery-row figure {
  margin: 0;
  flex: 0 0 auto;
  width: min(352px, 85vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-snap-align: start;
}
.gallery-row .popup-frame {
  width: 100%;
  box-shadow: 0 20px 40px rgba(13, 16, 22, 0.12), 0 0 0 1px var(--border);
}
.gallery-row figcaption { font-size: 15px; font-weight: 600; }

/* ─── Privacy highlights ─────────────────────────────────────────────────── */

.privacy-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.privacy-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.privacy-copy .more-link { align-self: flex-start; margin-top: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }

.privacy-list {
  flex: 1 1 460px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
}
.privacy-list li { display: flex; gap: 14px; padding: 20px 24px; }
.privacy-list li + li { border-top: 1px solid var(--border); }
.privacy-list .check-icon { margin-top: 2px; }
.privacy-list strong { display: block; font-size: 16px; font-weight: 600; }
.privacy-list span { font-size: 15px; line-height: 22px; color: var(--text-secondary); }

/* ─── Final CTA ──────────────────────────────────────────────────────────── */

.cta-wrap { padding: 0 var(--gutter) 96px; }

.cta {
  position: relative;
  overflow: hidden;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 64px 48px;
  border-radius: 24px;
  background: var(--cobalt-500);
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-watermark { position: absolute; right: -100px; top: -120px; pointer-events: none; }
.cta-copy { position: relative; flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.cta p { margin: 0; font-size: 18px; line-height: 28px; color: var(--cobalt-100); }
.cta .btn { position: relative; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text); }

/* ─── Legal page (privacy policy) ────────────────────────────────────────── */

.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-secondary);
}
.legal h1 {
  margin: 8px 0 28px;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
.legal h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin: 2px 0; }
.legal li::marker { color: var(--text-muted); }
.legal strong { color: var(--text); font-weight: 600; }
.legal code {
  font: 500 14px/1 var(--font-mono);
  color: var(--text);
  background: var(--surface-sunken);
  padding: 3px 6px;
  border-radius: 6px;
}

.callout {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--cobalt-50);
  color: var(--cobalt-800);
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
}
.callout svg { flex-shrink: 0; margin-top: 4px; }

.perm-table {
  margin: 4px 0 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
}
.perm-table > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4px 20px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 23px;
}
.perm-table > div + div { border-top: 1px solid var(--border); }
.perm-table dt { font: 600 14px/23px var(--font-mono); color: var(--cobalt-700); }
.perm-table dt small { display: block; font: 400 13px/20px var(--font-mono); color: var(--text-muted); }
.perm-table dd { margin: 0; color: var(--text); }

.legal hr { margin: 40px 0 0; border: 0; border-top: 1px solid var(--border); }

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero .container { padding-top: 40px; padding-bottom: 64px; gap: 40px; }
  .hero .popup-frame { margin: 0 auto; }
  .cta { padding: 40px 24px; }
  .modes { padding-bottom: 0; }
  .mode-body { padding: 24px 20px 24px; }
  .perm-table > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
