/* ==========================================================================
   Claude Toolbox — website styles
   Design tokens mirror the extension's own palette (src/ui/toolbox.css) so the
   site and the product feel like one thing. No external fonts or CDNs.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-sunken: #f7f7f8;
  --bg-raised: #ffffff;
  --bg-hover: #f1f1f3;
  --border: #e5e5ea;
  --border-strong: #d3d3da;
  --text: #14141a;
  --text-muted: #5f5f6b;
  --text-faint: #8f8f9c;

  --accent: #5b53d8;
  --accent-hover: #4c44c9;
  --accent-soft: #eeecfd;
  --accent-text: #ffffff;
  --accent-2: #b06ae0;
  --gradient: linear-gradient(135deg, #5b53d8 0%, #8b5cf6 45%, #b06ae0 100%);

  --success: #1f8a52;
  --warning: #b7791f;
  --danger: #d13b3b;

  --shadow-sm: 0 1px 2px rgba(16, 16, 30, 0.05), 0 1px 3px rgba(16, 16, 30, 0.06);
  --shadow: 0 4px 14px rgba(16, 16, 30, 0.07), 0 1px 3px rgba(16, 16, 30, 0.05);
  --shadow-lg: 0 24px 60px rgba(16, 16, 30, 0.14), 0 6px 18px rgba(16, 16, 30, 0.07);
  --shadow-glow: 0 30px 80px rgba(91, 83, 216, 0.22);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 9vw, 116px);
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --bg: #131317;
  --bg-sunken: #0e0e11;
  --bg-raised: #1c1c22;
  --bg-hover: #26262e;
  --border: #2c2c35;
  --border-strong: #3d3d49;
  --text: #f0f0f4;
  --text-muted: #a3a3b0;
  --text-faint: #74747f;

  --accent: #8b83ff;
  --accent-hover: #9d96ff;
  --accent-soft: #241f42;
  --accent-text: #12101f;
  --accent-2: #c78af0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 30px 80px rgba(139, 131, 255, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;

    --bg: #131317;
    --bg-sunken: #0e0e11;
    --bg-raised: #1c1c22;
    --bg-hover: #26262e;
    --border: #2c2c35;
    --border-strong: #3d3d49;
    --text: #f0f0f4;
    --text-muted: #a3a3b0;
    --text-faint: #74747f;

    --accent: #8b83ff;
    --accent-hover: #9d96ff;
    --accent-soft: #241f42;
    --accent-text: #12101f;
    --accent-2: #c78af0;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 30px 80px rgba(139, 131, 255, 0.18);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.9vw, 4rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.6rem);
  letter-spacing: -0.032em;
}
h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  letter-spacing: -0.018em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.35em;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}

code {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.12em 0.4em;
}

kbd {
  background: var(--bg-sunken);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.15em 0.45em;
  font-size: 0.8em;
  white-space: nowrap;
  color: var(--text-muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ----------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: 780px;
}

.section {
  padding-block: var(--section-y);
}

.section--sunken {
  background: var(--bg-sunken);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 60px);
  text-align: center;
}

.section-head p {
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.14rem);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.section-head .eyebrow::before {
  display: none;
}

.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.25rem);
  color: var(--text-muted);
  max-width: 62ch;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--bg-raised);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.16s,
    background 0.16s, border-color 0.16s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--text-faint);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(91, 83, 216, 0.32);
}

.btn--primary:hover {
  box-shadow: 0 12px 34px rgba(91, 83, 216, 0.42);
}

.btn--lg {
  padding: 16px 30px;
  font-size: 1.03rem;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 14px 0 0;
}

.btn-note strong {
  color: var(--text);
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 3px 10px rgba(91, 83, 216, 0.35);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.14s, background 0.14s;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.14s, border-color 0.14s, background 0.14s;
}

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

.nav-cta {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
}

/* theme icons swap with the active theme */
.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: block;
}
:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-moon {
    display: block;
  }
  :root:not([data-theme='light']) .theme-toggle .icon-sun {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    inset: 68px 0 auto;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.18s,
      visibility 0.18s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 13px 12px;
    font-size: 1rem;
  }

  .nav-actions .nav-cta {
    display: none;
  }
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

/* Soft aurora wash behind the hero — pure CSS, no images. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.hero::before {
  width: min(760px, 90vw);
  height: min(560px, 60vh);
  top: -22%;
  left: 50%;
  transform: translateX(-58%);
  background: radial-gradient(circle at 30% 30%, #6c63f0, transparent 62%),
    radial-gradient(circle at 70% 60%, #b06ae0, transparent 60%);
  animation: drift 22s ease-in-out infinite alternate;
}

.hero::after {
  width: min(520px, 80vw);
  height: min(420px, 46vh);
  top: 8%;
  right: -12%;
  background: radial-gradient(circle, #58c8f0, transparent 65%);
  opacity: 0.28;
  animation: drift 27s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(-58%, 0) scale(1);
  }
  to {
    transform: translate(-46%, 5%) scale(1.14);
  }
}

.hero-inner {
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin-inline: auto;
  margin-bottom: 30px;
}

.hero .btn-row {
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.badge b {
  color: var(--text);
  font-weight: 650;
}

.badge .pill {
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.89rem;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.trust-row svg {
  color: var(--success);
  flex: none;
}

/* --------------------------------------------------------------- mockup */
.mockup {
  margin-top: clamp(40px, 6vw, 70px);
  position: relative;
}

.browser {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.browser-url {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-ext {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  flex: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.browser-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 400px;
  background: var(--bg);
}

/* fake claude.ai transcript */
.chat {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.chat-title {
  font-weight: 650;
  font-size: 0.98rem;
  margin: 0 0 2px;
}

.bubble {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--bg-raised);
}

.bubble--user {
  background: var(--bg-sunken);
}

.bubble p {
  margin: 0 0 0.55em;
}

.bubble p:last-child {
  margin-bottom: 0;
}

.bubble pre {
  margin: 8px 0 0;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.55;
  overflow-x: auto;
  color: var(--text);
}

/* the extension panel, styled like the real thing */
.panel {
  border-left: 1px solid var(--border);
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
  font-size: 0.83rem;
}

.panel-head .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 9px;
  box-shadow: none;
}

.panel-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border);
}

.panel-tab {
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.panel-tab.is-active {
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.panel-body {
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.panel-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  box-shadow: 0 0 0 3px var(--accent-soft);
  font-size: 0.78rem;
}

.panel-meta {
  display: flex;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.7rem;
}

.result {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg);
}

.result-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  font-size: 0.79rem;
}

.tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

.tag--artifact {
  background: #e6f0fe;
  color: #1d4ed8;
}
.tag--bookmark {
  background: #fef3c7;
  color: #92400e;
}
:root[data-theme='dark'] .tag--artifact {
  background: #16294d;
  color: #93b4fb;
}
:root[data-theme='dark'] .tag--bookmark {
  background: #3d2f0e;
  color: #f5c85c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .tag--artifact {
    background: #16294d;
    color: #93b4fb;
  }
  :root:not([data-theme='light']) .tag--bookmark {
    background: #3d2f0e;
    color: #f5c85c;
  }
}

.result-snippet {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.result-snippet mark {
  background: #ffe9a8;
  color: #4a3a05;
  border-radius: 2px;
  padding: 0 1px;
}

:root[data-theme='dark'] .result-snippet mark {
  background: #6b5510;
  color: #ffeab8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .result-snippet mark {
    background: #6b5510;
    color: #ffeab8;
  }
}

.result-foot {
  display: flex;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--text-faint);
}

@media (max-width: 820px) {
  .browser-body {
    grid-template-columns: 1fr;
  }
  .chat {
    display: none;
  }
  .panel {
    border-left: 0;
  }
}

/* ----------------------------------------------------------------- cards */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: clamp(20px, 2.6vw, 28px);
  transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.2s,
    border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.card--feature ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card--feature li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.card--feature li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

/* ------------------------------------------------------------------ steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.step {
  position: relative;
  padding-top: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 15px;
  box-shadow: 0 5px 16px rgba(91, 83, 216, 0.3);
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* -------------------------------------------------------------- privacy */
.privacy-band {
  background: linear-gradient(150deg, #17162a 0%, #221a3d 55%, #2c1f42 100%);
  color: #f2f1fb;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 58px);
  position: relative;
  overflow: hidden;
}

.privacy-band::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  right: -110px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 106, 224, 0.4), transparent 66%);
  pointer-events: none;
}

.privacy-band h2 {
  color: #fff;
}

.privacy-band > * {
  position: relative;
}

.privacy-band p {
  color: #c9c6e4;
  max-width: 60ch;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  font-size: 0.94rem;
  color: #ddd9f4;
}

.privacy-list svg {
  color: #8ce0ad;
  flex: none;
  margin-top: 3px;
}

.privacy-list b {
  color: #fff;
  display: block;
  font-weight: 650;
}

/* ------------------------------------------------------------------- FAQ */
.faq {
  max-width: 780px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.16s;
}

.faq details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  padding: 17px 52px 17px 20px;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  list-style: none;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq summary:hover {
  background: var(--bg-hover);
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-body > *:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- CTA band */
.cta {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% -30%, var(--accent-soft), transparent 62%),
    var(--bg-raised);
  padding: clamp(36px, 6vw, 68px) clamp(22px, 5vw, 48px);
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 26px;
}

.cta .btn-row {
  justify-content: center;
}

/* ------------------------------------------------------------------ table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 460px;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--bg-sunken);
  font-weight: 650;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ------------------------------------------------------------------- prose */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.2em;
}

.prose h2:first-of-type {
  margin-top: 1em;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.page-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% -40%, var(--accent-soft), transparent 55%),
    var(--bg);
}

.page-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 0;
}

.updated {
  font-size: 0.86rem;
  color: var(--text-faint);
  margin-top: 10px;
}

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  padding: 16px 20px;
  margin: 1.6em 0;
  font-size: 0.94rem;
}

.callout > *:last-child {
  margin-bottom: 0;
}

.callout--warn {
  border-left-color: var(--warning);
}

/* -------------------------------------------------------- feature listing */
.feature-group {
  margin-bottom: clamp(34px, 5vw, 56px);
}

.feature-group h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
}

.feature-group h2 svg {
  color: var(--accent);
  flex: none;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px 26px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.feature-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list svg {
  color: var(--accent);
  flex: none;
  margin-top: 4px;
}

.feature-list b {
  color: var(--text);
  font-weight: 600;
}

/* -------------------------------------------------------------- shortcuts */
.kbd-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.kbd-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  padding: 11px 14px;
  margin: 0;
  font-size: 0.92rem;
}

.kbd-grid span {
  color: var(--text-muted);
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
  padding-block: clamp(38px, 5vw, 60px) 26px;
  margin-top: var(--section-y);
}

/* auto-fit still places one track at its floor even when it does not fit, so
   the footer gets explicit breakpoints rather than an intrinsic track list. */
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 20px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 34ch;
  margin: 14px 0 0;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.disclaimer {
  max-width: 64ch;
}

/* -------------------------------------------------------------- reveal fx */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ utils */
.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.stack > * + * {
  margin-top: 1em;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media print {
  .site-header,
  .site-footer,
  .btn-row,
  .cta {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
