/* =========================================================
   Snap & Annotate — landing page styles
   Palette pulled from the extension's dark editor UI.
   ========================================================= */

:root,
/* Product mockups depict the extension's dark UI, so they stay dark in light mode too. */
.editor, .rec-screen, .rec-badge {
  --bg:        #11151c;
  --bg-2:      #151a23;
  --panel:     #1f2430;
  --panel-2:   #252b39;
  --border:    #2b3242;
  --border-2:  #363e51;

  --text:      #eef1f6;
  --muted:     #97a1b4;

  --accent:    #4f7cff;
  --accent-2:  #3d6bff;
  --accent-ink:#ffffff;

  /* annotation accents */
  --red:   #ff3b30;
  --orange:#ff9500;
  --yellow:#ffcc00;
  --green: #34c759;
  --blue:  #0a84ff;
  --indigo:#5e5ce6;

  --radius:  14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.6);

  /* theme-dependent extras */
  --text-2:    #c7cedb;
  --muted-2:   #7f8aa0;
  --accent-text: #4f7cff;
  --link:      #8fb0ff;
  --icon-tint: #a8c0ff;
  --code-text: #cdd6ea;
  --ok:        #34c759;
  --header-bg: rgba(17,21,28,.72);
  --menu-bg:   rgba(17,21,28,.98);
  --ghost-bg:  rgba(255,255,255,.03);
  --ghost-bg-hover: rgba(255,255,255,.07);
  --border-hover: #4a5470;
  color-scheme: dark;
}


/* -------- Light theme --------
   Default follows the device (prefers-color-scheme); the footer switch can
   force one via <html data-theme="light|dark">. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #f6f7fb;
    --bg-2:      #eef1f7;
    --panel:     #ffffff;
    --panel-2:   #f3f5fa;
    --border:    #e2e6ef;
    --border-2:  #cfd6e4;
    --text:      #121722;
    --muted:     #566074;
    --text-2:    #2b3345;
    --muted-2:   #646d81;
    --accent-text: #2f5bdf;
    --link:      #2f5bdf;
    --icon-tint: #3556d8;
    --code-text: #2b3a66;
    --ok:        #137a43;
    --header-bg: rgba(246,247,251,.82);
    --menu-bg:   rgba(246,247,251,.98);
    --ghost-bg:  rgba(15,23,42,.03);
    --ghost-bg-hover: rgba(15,23,42,.06);
    --border-hover: #b3bccf;
    --shadow: 0 24px 60px -24px rgba(16,24,40,.22);
    --shadow-sm: 0 8px 24px -14px rgba(16,24,40,.22);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg:        #f6f7fb;
  --bg-2:      #eef1f7;
  --panel:     #ffffff;
  --panel-2:   #f3f5fa;
  --border:    #e2e6ef;
  --border-2:  #cfd6e4;
  --text:      #121722;
  --muted:     #566074;
  --text-2:    #2b3345;
  --muted-2:   #646d81;
  --accent-text: #2f5bdf;
  --link:      #2f5bdf;
  --icon-tint: #3556d8;
  --code-text: #2b3a66;
  --ok:        #137a43;
  --header-bg: rgba(246,247,251,.82);
  --menu-bg:   rgba(246,247,251,.98);
  --ghost-bg:  rgba(15,23,42,.03);
  --ghost-bg-hover: rgba(15,23,42,.06);
  --border-hover: #b3bccf;
  --shadow: 0 24px 60px -24px rgba(16,24,40,.22);
  --shadow-sm: 0 8px 24px -14px rgba(16,24,40,.22);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(79,124,255,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 8%, rgba(94,92,230,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .08em .4em;
  color: var(--code-text);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* -------- Buttons -------- */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 12px;
  font-weight: 600; font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --pad-y: 9px; --pad-x: 15px; font-size: .9rem; border-radius: 10px; }
.btn-lg { --pad-y: 15px; --pad-x: 26px; font-size: 1.04rem; border-radius: 14px; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 26px -10px rgba(79,124,255,.7), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(79,124,255,.85); }

.btn-ghost {
  background: var(--ghost-bg);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--ghost-bg-hover); border-color: var(--border-hover); }

.chrome-glyph { opacity: .95; }

/* -------- Header -------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  color: #fff;
  background: linear-gradient(160deg, var(--accent), #6a53ff);
  box-shadow: 0 6px 16px -6px rgba(79,124,255,.8);
}
.brand-name { font-size: 1.05rem; }

.site-nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta a { color: #fff !important; }

.nav-toggle { display: none; }

/* -------- Hero -------- */
.hero { padding: 64px 0 34px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--muted);
  background: var(--panel); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 999px; margin: 0 0 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(52,199,89,.18); }

.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 800; }
.hero-title .accent {
  background: linear-gradient(120deg, #6ea0ff, #4f7cff 55%, #7a6bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.12rem; color: var(--muted); margin: 0 0 28px; max-width: 40ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions.center { justify-content: center; }

.hero-trust {
  display: flex; align-items: center; gap: 9px;
  color: var(--muted); font-size: .9rem; margin: 22px 0 0;
}
.hero-trust svg { color: var(--ok); flex: none; }

/* editor mockup */
.hero-visual { position: relative; }
.visual-glow {
  position: absolute; inset: 8% 4% -6% 4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(79,124,255,.35), transparent 70%);
  filter: blur(30px);
}
.editor {
  border: 1px solid var(--border-2);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform .4s ease;
}
.hero-visual:hover .editor { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }

.editor-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.win-dots { display: flex; gap: 6px; }
.win-dots span { width: 11px; height: 11px; border-radius: 50%; background: #3a4256; }
.win-dots span:nth-child(1){ background:#ff5f57; } .win-dots span:nth-child(2){ background:#febc2e; } .win-dots span:nth-child(3){ background:#28c840; }
.editor-title { font-size: .82rem; color: var(--muted); font-weight: 500; }
.editor-actions { margin-left: auto; display: flex; gap: 7px; }
.pill { font-size: .72rem; color: var(--muted); border: 1px solid var(--border-2); border-radius: 7px; padding: 4px 9px; }
.pill-accent { background: var(--accent); color: #fff; border-color: transparent; }

.editor-body { display: grid; grid-template-columns: 52px 1fr; }
.editor-toolbar {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 0; background: var(--panel); border-right: 1px solid var(--border);
}
.tool {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  color: var(--muted); font-size: 15px; border: 1px solid transparent;
}
.tool.active { color: #fff; background: var(--accent); }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; margin-top: 6px; }
.swatches i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); display: block; }
.swatches i.on { outline: 2px solid #fff; outline-offset: 1px; }

.canvas {
  position: relative; padding: 22px; background:
    linear-gradient(0deg, rgba(0,0,0,.15), rgba(0,0,0,.15)),
    var(--bg);
  min-height: 300px;
}
.mock-page { background: #f4f6fb; border-radius: 10px; padding: 22px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.mp-row { height: 12px; border-radius: 5px; background:#d7deea; margin-bottom: 12px; }
.mp-title { height: 18px; width: 60%; background:#b9c4da; }
.mp-row.short { width: 40%; }
.mp-field { background:#fff; border:1px solid #d7deea; border-radius: 7px; padding: 9px 12px; margin-bottom: 10px; color:#5a6478; font-size: .78rem; }
.mp-field.blurred { color: transparent; position: relative; filter: blur(4px); background:#e7ecf6; }
.mp-btn { background: var(--accent); color:#fff; text-align:center; border-radius: 7px; padding: 9px; font-size:.8rem; font-weight:600; width: 120px; }

.anno { position: absolute; }
.anno.badge {
  top: 44px; left: 30px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .82rem;
  box-shadow: 0 4px 10px -3px rgba(0,0,0,.5);
}
.anno.arrow { top: 70px; right: 40px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.anno.callout {
  bottom: 66px; right: 26px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 7px 11px; font-size: .78rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.anno.callout::after {
  content: ""; position: absolute; left: 18px; bottom: -7px;
  border: 7px solid transparent; border-top-color: var(--panel-2); border-bottom: 0;
}
.anno.spotlight-ring {
  bottom: 40px; left: 30px; width: 128px; height: 44px; border-radius: 10px;
  box-shadow: 0 0 0 2000px rgba(5,8,14,.45); outline: 2px solid rgba(255,255,255,.5);
}

/* trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  margin-top: 56px; color: var(--muted); font-size: .9rem; font-weight: 500;
}
.trust-strip i { color: var(--border-2); font-style: normal; }

/* -------- Sections -------- */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent), var(--bg-2); border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.kicker { color: var(--accent-text); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.step {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.step-num {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 16px;
  background: linear-gradient(160deg, var(--accent), #6a53ff);
  box-shadow: 0 8px 18px -8px rgba(79,124,255,.8);
}
.step h3 { margin: 0 0 8px; font-size: 1.22rem; }
.step p { color: var(--muted); margin: 0 0 8px; }
.step-meta { font-size: .85rem; color: var(--muted-2) !important; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.subhead { text-align: center; font-size: 1.2rem; font-weight: 700; margin: 64px 0 24px; letter-spacing: -.01em; }

/* -------- Record showcase -------- */
.rec-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 52px; align-items: center; }
.rec-grid > * { min-width: 0; }
.rec-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.rec-copy .section-sub { margin-bottom: 22px; }
.rec-bullets { margin-bottom: 28px; }
.rec-note { color: var(--muted-2); font-size: .88rem; margin: 16px 0 0; }
.dot-rec { background: var(--red) !important; box-shadow: 0 0 0 3px rgba(255,59,48,.22) !important; animation: recpulse 1.6s ease-in-out infinite; }
@keyframes recpulse { 50% { opacity: .35; } }

.rec-screen {
  border: 1px solid var(--border-2); border-radius: 16px; background: var(--bg-2);
  box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1400px) rotateY(6deg) rotateX(3deg); transition: transform .4s ease;
}
.rec-visual:hover .rec-screen { transform: perspective(1600px) rotateY(2deg) rotateX(1deg); }
.rec-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: rgba(255,59,48,.18); border: 1px solid rgba(255,59,48,.5); border-radius: 999px; padding: 3px 10px;
  white-space: nowrap; flex: none;
}
.rec-screen .editor-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rec-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: recpulse 1.2s ease-in-out infinite; }
.rec-body { position: relative; padding: 22px; min-height: 320px; background: var(--bg); }
.rec-page { background: #f4f6fb; border-radius: 10px; padding: 22px 22px 18px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.rec-chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 16px; padding: 0 4px; border-bottom: 2px solid #d7deea; }
.rec-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #6ea0ff, var(--accent)); }
.rec-cursor {
  position: absolute; top: 118px; left: 62%; width: 16px; height: 16px;
  border-radius: 50%; background: rgba(255,204,0,.35); box-shadow: 0 0 0 6px rgba(255,204,0,.18);
}
.rec-bubble {
  position: absolute; left: 30px; bottom: 74px; width: 96px; height: 96px; border-radius: 50%;
  border: 3px solid #fff; overflow: hidden; box-shadow: 0 12px 28px -8px rgba(0,0,0,.6);
  background: radial-gradient(circle at 50% 30%, #5b6b8f, #2b3347 70%);
}
.rec-face { position: absolute; inset: 0; }
.rec-face::before { content: ""; position: absolute; left: 50%; top: 22%; width: 36%; height: 36%; transform: translateX(-50%); border-radius: 50%; background: #c9a98a; }
.rec-face::after { content: ""; position: absolute; left: 50%; bottom: -18%; width: 78%; height: 52%; transform: translateX(-50%); border-radius: 50% 50% 0 0; background: #4f7cff; }
.rec-controls {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  background: rgba(31,36,48,.92); border: 1px solid var(--border-2); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.rc-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); font-size: 12px; }
.rc-btn.on { color: #fff; background: rgba(79,124,255,.22); }
.rc-stop { color: #fff; background: var(--red); }
.rc-time { font-family: ui-monospace, monospace; font-size: .8rem; color: var(--text); padding: 0 6px 0 4px; }
.rec-badge {
  position: absolute; top: -44px; right: 22px; display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border-2); border-radius: 12px; padding: 7px 11px; box-shadow: var(--shadow-sm);
}
.rec-badge-icon { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(160deg, var(--accent), #6a53ff); }
.rec-badge-time { font-size: .74rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 6px; padding: 2px 6px; }
kbd {
  font-family: ui-monospace, monospace; font-size: .78em;
  background: var(--panel-2); border: 1px solid var(--border-2); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 6px; color: var(--code-text);
}

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.fc-new {
  position: absolute; top: 14px; right: 14px;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--icon-tint); background: rgba(79,124,255,.16); border: 1px solid rgba(79,124,255,.4);
  border-radius: 999px; padding: 3px 9px;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-2); background: var(--panel-2); }
.fc-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.35rem; margin-bottom: 14px;
  background: rgba(79,124,255,.12); border: 1px solid rgba(79,124,255,.28); color: var(--icon-tint);
}
.fc-icon-img { background: none; border: 0; padding: 0; }
.fc-icon-img img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }

/* hero screenshot (when set via CMS, replaces the mockup) */
.hero-shot {
  width: 100%; height: auto; border-radius: 16px;
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
}

/* screenshots gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  margin: 0; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.gallery-item img { width: 100%; height: auto; display: block; background: var(--bg); }
.gallery-item figcaption { padding: 12px 16px; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.feature-card h3 { margin: 0 0 7px; font-size: 1.08rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .94rem; }

/* privacy */
.privacy-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.privacy-copy .section-sub { margin-bottom: 22px; }
.check-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 13px; }
.check-list li { color: var(--muted); position: relative; padding-left: 32px; }
.check-list strong { color: var(--text); }
.ck {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(52,199,89,.16); color: var(--ok); font-size: .8rem; font-weight: 800;
  position: absolute; left: 0; top: 2px;
}
.privacy-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.pc-head { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 16px; color: var(--ok); }
.pc-head span { color: var(--text); }
.pc-note { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }
.perm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.perm-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--border); padding-top: 11px; }
.perm-list li:first-child { border-top: 0; padding-top: 0; }
.perm-yes { font-family: ui-monospace, monospace; font-size: .82rem; background: rgba(52,199,89,.16); color: var(--ok); border-radius: 6px; padding: 2px 8px; font-weight: 700; }
.perm-no { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,59,48,.14); color: var(--red); font-weight: 800; font-size: .75rem; }

/* cross-browser */
.browser-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 780px; margin-inline: auto; }
.browser-badge { flex: 1 1 240px; max-width: 300px; }
.browser-badge {
  display: flex; align-items: center; gap: 15px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; transition: transform .16s ease, border-color .16s ease;
}
.browser-badge:hover { transform: translateY(-3px); border-color: var(--accent); }
.bb-icon { color: var(--icon-tint); flex: none; }
.bb-text { display: flex; flex-direction: column; }
.bb-text strong { font-size: 1.05rem; }
.bb-text em { font-style: normal; color: var(--muted); font-size: .85rem; }

/* faq */
.faq-wrap { max-width: 760px; margin-inline: auto; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 1.04rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; transition: transform .2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); margin: 0 0 16px; }
.faq-item a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

/* final cta */
.final-cta { padding: 84px 0; }
.final-cta-inner {
  text-align: center; max-width: 720px; margin-inline: auto;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(79,124,255,.22), transparent 70%),
    var(--panel);
  border: 1px solid var(--border-2); border-radius: 22px; padding: 52px 30px;
  box-shadow: var(--shadow);
}
.final-cta-inner h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 12px; letter-spacing: -.02em; }
.final-cta-inner p { color: var(--muted); font-size: 1.08rem; margin: 0 0 26px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 52px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-tag { color: var(--muted); max-width: 34ch; margin: 14px 0 0; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .95rem; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--border); padding: 20px 22px; color: var(--muted-2); font-size: .88rem;
}
.footer-meta { font-family: ui-monospace, monospace; }
.footer-credit { margin: 0; padding: 0 0 26px; text-align: center; color: var(--muted-2); font-size: .88rem; }
.footer-credit a { color: var(--text-2); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.footer-credit a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.legal-wrap .footer-credit { padding: 18px 0 0; }

/* -------- Legal / policy page -------- */
.legal-header {
  border-bottom: 1px solid var(--border); background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(12px); position: sticky; top: 0; z-index: 50;
}
.legal-header .header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.legal-back { color: var(--muted); font-weight: 500; font-size: .95rem; }
.legal-back:hover { color: var(--text); }
.legal-main { padding: 56px 0 40px; }
.legal-wrap { max-width: 760px; margin-inline: auto; }
.legal-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: 0 0 8px; }
.legal-updated { color: var(--muted); font-size: .92rem; margin: 0 0 32px; }
.legal-wrap h2 { font-size: 1.3rem; margin: 34px 0 12px; letter-spacing: -.01em; }
.legal-wrap p { color: var(--text-2); margin: 0 0 14px; }
.legal-wrap ul { color: var(--text-2); padding-left: 20px; margin: 0 0 14px; }
.legal-wrap li { margin: 0 0 10px; }
.legal-wrap a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap strong { color: var(--text); }
.legal-table, .legal-wrap table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: .95rem; }
.legal-table th, .legal-table td,
.legal-wrap th, .legal-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--border); }
.legal-table th, .legal-wrap th { background: var(--panel); color: var(--text); font-weight: 600; }
.legal-table td, .legal-wrap td { color: var(--text-2); }
.legal-table code, .legal-wrap td code { white-space: nowrap; }
.legal-wrap code { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: .08em .4em; font-size: .88em; color: var(--code-text); }
.legal-foot { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; color: var(--muted-2); font-size: .9rem; }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { max-width: none; }
  .editor { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .rec-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rec-screen { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-wrap { grid-template-columns: 1fr; gap: 28px; }
  .browser-badges { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; background: var(--panel); border: 1px solid var(--border);
    border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--text); margin-inline: auto; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--menu-bg); border-bottom: 1px solid var(--border);
    padding: 12px 22px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 4px; }
  .nav-cta a { text-align: center; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps-4 { grid-template-columns: 1fr; }
  .rec-bubble { width: 72px; height: 72px; bottom: 70px; left: 20px; }
  .rec-badge { right: 8px; top: -40px; }
  .hero { padding-top: 40px; }
  .section { padding: 60px 0; }
  .btn-lg { width: 100%; }
  .hero-actions .btn, .final-cta .btn { width: 100%; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .editor, .rec-screen { transform: none !important; }
  .dot-rec, .rec-pill i { animation: none !important; }
}

/* Mockups keep their own (dark) text color regardless of page theme. */
.editor, .rec-screen, .rec-badge { color: var(--text); }

/* -------- Theme switch (footer) -------- */
.theme-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
}
.theme-switch button {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted);
  background: transparent; border: 0; border-radius: 7px; padding: 5px 10px; cursor: pointer;
  transition: background .15s, color .15s;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-checked="true"] { background: var(--panel-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.theme-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.theme-switch svg { width: 15px; height: 15px; flex: none; }
.footer-end { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.legal-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.legal-foot p { margin: 0; color: inherit; }
@media (max-width: 520px) { .footer-end { justify-content: center; } .legal-foot { justify-content: center; text-align: center; } }

/* -------- Theme-matched images --------
   Pair .theme-img-light / .theme-img-dark; the one matching the page theme shows.
   Dark is the default palette; light applies on a light device (unless forced dark)
   or when the footer switch forces light. */
/* :root prefix keeps these above component rules like `.gallery-item img { display: block }`. */
:root .theme-img-light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-img-light { display: block; }
  :root:not([data-theme="dark"]) .theme-img-dark { display: none; }
}
:root[data-theme="light"] .theme-img-light { display: block; }
:root[data-theme="light"] .theme-img-dark { display: none; }

/* -------- Gallery: wide shot featured, tall popup shots side by side -------- */
.gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery-item:first-child { grid-column: 1 / -1; }
.gallery-item:not(:first-child) img { height: 520px; width: 100%; object-fit: contain; padding: 24px; background: var(--bg-2); }
.gallery-item figcaption { border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:not(:first-child) img { height: auto; max-height: 560px; }
}

/* Brand logo = the extension's own icon (assets/icon.svg). */
.brand-logo { width: 34px; height: 34px; flex: none; display: block; filter: drop-shadow(0 4px 10px rgba(79,124,255,.35)); }
.footer-brand .brand-logo { width: 30px; height: 30px; }
/* A trailing item that would sit alone in a row (e.g. a second wide shot) spans the full width. */
.gallery-item:last-child:nth-child(even) { grid-column: 1 / -1; }
.gallery-item:last-child:nth-child(even) img { height: auto; padding: 0; background: none; }

/* =========================================================
   Release notes page (/release-notes/) — docs-style layout.
   Left: versions grouped by major version ("Current" badge).
   Middle: the selected version. Right: "On this page".
   Without JS every release is listed one after another.
   ========================================================= */
.rn-page .site-header .container { max-width: 1440px; }
.rn-main { padding: 0; }
.rn-shell {
  max-width: 1440px; margin-inline: auto;
  display: grid; grid-template-columns: 272px minmax(0, 1fr) 248px; align-items: start;
}
.rn-shell > * { min-width: 0; }

/* Left sidebar */
.rn-side {
  position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto;
  border-right: 1px solid var(--border); padding: 0 16px 32px;
  scrollbar-width: thin;
}
.rn-back {
  display: flex; align-items: center; gap: 8px; margin: 0 -16px 8px; padding: 22px 30px 20px;
  border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: 1.02rem;
}
.rn-back svg, .rn-picker svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rn-back:hover { color: var(--accent-text); }
.rn-picker { display: none; }
.rn-group {
  margin: 26px 14px 10px; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2);
}
.rn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rn-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px;
  color: var(--text-2); font-size: 1rem; transition: background .15s, color .15s;
}
.rn-link:hover { background: var(--ghost-bg-hover); color: var(--text); }
.rn-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rn-link[aria-current="true"] { background: var(--ghost-bg-hover); color: var(--text); font-weight: 600; }
.rn-v { font-variant-numeric: tabular-nums; }
.rn-badge {
  display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ok); background: rgba(52,199,89,.14); border: 1px solid rgba(52,199,89,.32);
  border-radius: 999px; padding: 1px 8px; line-height: 1.5; vertical-align: middle;
}

/* Middle: the selected version */
.rn-panel { padding: 56px 64px 96px; }
.rn-release + .rn-release { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--border); }  /* no-JS: all stacked */
.rn-js .rn-release { display: none; }
.rn-js .rn-release.is-active { display: block; }
.rn-js .rn-release + .rn-release { margin-top: 0; padding-top: 0; border-top: 0; }
.rn-release { scroll-margin-top: 90px; max-width: 860px; }
.rn-kicker { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rn-title {
  margin: 14px 0 22px; font-size: clamp(2.1rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; color: var(--text);
}
.rn-title:focus { outline: none; }
.rn-caret { color: var(--accent); margin-left: 1px; }
.rn-lead { margin: 0 0 18px; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.rn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding-bottom: 36px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .95rem; }
.rn-body { counter-reset: rn-sec; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.rn-body h2 {
  counter-increment: rn-sec; scroll-margin-top: 90px;
  margin: 48px 0 16px; font-size: 1.45rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--text);
}
.rn-body h2::before { content: counter(rn-sec) ". "; }
.rn-body h2 { text-decoration: underline dotted var(--border-2); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.rn-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rn-body li { position: relative; padding-left: 24px; }
.rn-body li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.rn-body p { margin: 0 0 12px; }
.rn-body a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

/* Older / newer cards */
.rn-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.rn-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--panel); transition: border-color .15s, box-shadow .15s;
}
.rn-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.rn-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rn-card-newer { text-align: right; align-items: flex-end; }
.rn-card-label { font-size: .85rem; color: var(--muted); }
.rn-card-v { font-size: 1.15rem; font-weight: 600; color: var(--text); }
.rn-card-t { font-size: .92rem; color: var(--muted); line-height: 1.45; }

/* Right: on this page */
.rn-toc {
  position: sticky; top: 66px; max-height: calc(100vh - 66px); overflow-y: auto;
  border-left: 1px solid var(--border); padding: 72px 16px 32px 24px; display: none;
}
.rn-js .rn-toc:not([hidden]) { display: block; }
.rn-toc-label { margin: 0 0 14px 12px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rn-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rn-toc-list a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: .98rem; transition: background .15s, color .15s; }
.rn-toc-list a:hover { color: var(--text); }
.rn-toc-list a.is-active { background: var(--ghost-bg-hover); color: var(--text); }

@media (max-width: 1200px) {
  .rn-shell { grid-template-columns: 252px minmax(0, 1fr); }
  .rn-toc, .rn-js .rn-toc:not([hidden]) { display: none; }
  .rn-panel { padding: 48px 48px 88px; }
}
@media (max-width: 860px) {
  .rn-shell { grid-template-columns: minmax(0, 1fr); }
  .rn-side {
    position: static; z-index: 5; height: auto; max-height: none; overflow: visible;
    border-right: 0; border-bottom: 1px solid var(--border); background: var(--bg); padding: 0 22px;
  }
  .rn-js .rn-side { position: sticky; top: 66px; }  /* no-JS: the full list sits above the notes */
  .rn-back { display: none; }
  .rn-nav { padding: 4px 0 16px; }
  .rn-js .rn-picker {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 54px; padding: 0;
    font: inherit; color: var(--text); background: none; border: 0; cursor: pointer;
  }
  .rn-picker-k { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
  .rn-picker-label { font-weight: 600; flex: 1; text-align: left; }
  .rn-picker svg { transition: transform .2s; }
  .rn-picker[aria-expanded="true"] svg { transform: rotate(180deg); }
  .rn-js .rn-side .rn-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    max-height: min(60vh, 460px); overflow-y: auto; padding: 0 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
  }
  .rn-js .rn-side.is-open .rn-nav { display: block; }
  .rn-group { margin-top: 18px; }
  .rn-panel { padding: 32px 22px 72px; }
  .rn-title { margin-top: 10px; }
  .rn-picker-label .rn-badge { margin-left: 6px; }
  .rn-meta { padding-bottom: 28px; }
  .rn-body h2 { margin-top: 38px; font-size: 1.28rem; }
  .rn-pager { grid-template-columns: 1fr; gap: 14px; }
}

/* Header nav: "Release notes" marked as the current page. */
.nav-links a[aria-current="page"] { color: var(--text); }
