/* ==========================================================================
   Skriveo — design system
   Brand gradient (#667eea → #764ba2) is lifted straight from the extension UI
   so the site and the side panel read as one product.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --indigo: #667eea;
  --violet: #764ba2;
  --cyan: #22d3ee;
  --amber: #ed8936;
  --amber-light: #f6ad55;
  --green: #48bb78;
  --red: #fc8181;

  --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --brand-gradient-vivid: linear-gradient(120deg, #22d3ee 0%, #667eea 45%, #764ba2 100%);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
    'Liberation Mono', monospace;

  /* Scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.06rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.22rem + 0.85vw, 1.95rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.7vw, 2.75rem);
  --step-4: clamp(2.2rem, 1.55rem + 3.1vw, 4.2rem);

  /* Space */
  --gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 8.5rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shell: 1180px;
  --shell-narrow: 760px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* Dark (default — the futuristic look the product leans on) */
:root,
:root[data-theme='dark'] {
  --bg: #07081a;
  --bg-deep: #04050f;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #11132b;
  --surface-raised: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text: #eef0ff;
  --text-soft: #b6bce0;
  --text-dim: #838ab5;

  --glow-1: rgba(102, 126, 234, 0.4);
  --glow-2: rgba(118, 75, 162, 0.36);
  --glow-3: rgba(34, 211, 238, 0.2);
  --grid-line: rgba(140, 155, 255, 0.07);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --shadow-brand: 0 18px 50px -14px rgba(102, 126, 234, 0.55);

  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #f7f8fe;
  --bg-deep: #eef1fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-raised: #ffffff;
  --border: rgba(26, 32, 74, 0.1);
  --border-strong: rgba(26, 32, 74, 0.2);

  --text: #14163a;
  --text-soft: #4a5079;
  --text-dim: #6b719b;

  --glow-1: rgba(102, 126, 234, 0.24);
  --glow-2: rgba(118, 75, 162, 0.2);
  --glow-3: rgba(34, 211, 238, 0.16);
  --grid-line: rgba(60, 75, 170, 0.07);
  --shadow: 0 20px 50px -22px rgba(35, 40, 90, 0.3);
  --shadow-brand: 0 16px 40px -14px rgba(102, 126, 234, 0.45);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 750;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { text-wrap: pretty; }

::selection {
  background: rgba(102, 126, 234, 0.35);
  color: var(--text);
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 999;
  padding: 0.75rem 1.5rem;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.shell-narrow {
  width: min(100% - 2.5rem, var(--shell-narrow));
  margin-inline: auto;
}

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

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
}

.section-head p {
  margin-top: 1.1rem;
  color: var(--text-soft);
  font-size: var(--step-1);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo));
}

.section-head .eyebrow::after {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--indigo), transparent);
}

.gradient-text {
  background: var(--brand-gradient-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Ambient background — aurora, grid, starfield
   -------------------------------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(102, 126, 234, 0.16), transparent 60%),
    var(--bg);
}

.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.75;
  z-index: -1;
  pointer-events: none;
  animation: drift 24s ease-in-out infinite alternate;
}

.orb-1 {
  width: 42vw;
  height: 42vw;
  min-width: 320px;
  min-height: 320px;
  top: -12vw;
  left: -8vw;
  background: var(--glow-1);
}

.orb-2 {
  width: 38vw;
  height: 38vw;
  min-width: 300px;
  min-height: 300px;
  top: 22vh;
  right: -12vw;
  background: var(--glow-2);
  animation-delay: -8s;
  animation-duration: 30s;
}

.orb-3 {
  width: 30vw;
  height: 30vw;
  min-width: 260px;
  min-height: 260px;
  bottom: -10vh;
  left: 30vw;
  background: var(--glow-3);
  animation-delay: -14s;
  animation-duration: 34s;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 5vh, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, -4vh, 0) scale(0.95); }
}

#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

:root[data-theme='light'] #neural-canvas { opacity: 0.35; }

/* --------------------------------------------------------------------------
   5. Buttons, pills, badges
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-raised);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--btn-bg);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

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

.btn-primary {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  box-shadow: 0 22px 55px -12px rgba(102, 126, 234, 0.7);
}

/* Sheen sweep on the primary CTA */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.28) 50%, transparent 75%);
  background-size: 220% 100%;
  background-position: 160% 0;
  transition: background-position 0.75s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after { background-position: -60% 0; }

.btn-ghost {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.02rem;
}

.btn-block { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.badge-pro {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(237, 137, 54, 0.45);
}

/* --------------------------------------------------------------------------
   6. Announcement + header
   -------------------------------------------------------------------------- */
.announce {
  position: relative;
  z-index: 60;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 550;
  color: #fff;
  background: var(--brand-gradient);
}

.announce a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-brand);
  flex-shrink: 0;
}

.brand-mark svg { width: 21px; height: 21px; }

.brand sup {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .moon { display: none; }
:root[data-theme='light'] .theme-toggle .sun { display: none; }
:root[data-theme='light'] .theme-toggle .moon { display: block; }

.nav-toggle { display: none; }

/* Mobile drawer */
@media (max-width: 900px) {
  .nav-links,
  .nav-actions .btn { display: none; }

  .nav-toggle { display: grid; }

  .mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    z-index: 80;
    padding: 5.5rem 1.5rem 2rem;
    background: var(--surface-solid);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
  }

  .mobile-menu.open { transform: translateX(0); }

  .mobile-menu ul { list-style: none; display: grid; gap: 0.25rem; }

  .mobile-menu a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-soft);
  }

  .mobile-menu a:hover { background: var(--surface); color: var(--text); }

  .mobile-menu .btn { margin-top: 1.25rem; }

  .menu-close {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(4, 5, 15, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .scrim.open { opacity: 1; visibility: visible; }
}

@media (min-width: 901px) {
  .mobile-menu,
  .scrim { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) clamp(4rem, 3rem + 5vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy .hero-cta,
  .hero-copy .trust-row { justify-content: center; }
  .hero-copy .eyebrow { justify-content: center; }
}

.hero h1 {
  margin-block: 1.1rem 1.4rem;
}

.hero h1 .line { display: block; }

.hero-lede {
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 34rem;
  line-height: 1.62;
}

@media (max-width: 980px) {
  .hero-lede { margin-inline: auto; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
}

.trust-row svg {
  width: 15px;
  height: 15px;
  color: var(--green);
  flex-shrink: 0;
}

/* Browser mock ---------------------------------------------------------- */
.mock {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: float-in 1s var(--ease-out) both;
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 55%, transparent);
}

.mock-dots { display: flex; gap: 0.35rem; }

.mock-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock-dots i:nth-child(1) { background: #ff5f57; }
.mock-dots i:nth-child(2) { background: #febc2e; }
.mock-dots i:nth-child(3) { background: #28c840; }

.mock-url {
  flex: 1;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--bg-deep) 60%, transparent);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  min-height: 400px;
}

@media (max-width: 520px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-page { display: none; }
}

.mock-page {
  padding: 1.4rem;
  border-right: 1px solid var(--border);
  font-size: 0.72rem;
  line-height: 1.85;
  color: var(--text-dim);
}

.mock-page h4 {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.mock-page .ln {
  height: 7px;
  border-radius: 4px;
  background: var(--border);
  margin-bottom: 0.6rem;
}

.mock-page .ln.w80 { width: 80%; }
.mock-page .ln.w60 { width: 60%; }
.mock-page .ln.w95 { width: 95%; }

.mock-page mark {
  background: rgba(102, 126, 234, 0.32);
  color: var(--text);
  border-radius: 3px;
  padding: 0.1em 0.15em;
  box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.4);
}

.mock-panel {
  padding: 1rem;
  background:
    linear-gradient(160deg, rgba(102, 126, 234, 0.14), rgba(118, 75, 162, 0.09));
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mock-panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 750;
  font-size: 0.82rem;
}

.mock-panel-head .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.mock-panel-head .brand-mark svg { width: 14px; height: 14px; }

.mock-card {
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.mock-card .label {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.4rem;
  border-radius: 5px;
  background: rgba(102, 126, 234, 0.16);
  color: var(--indigo);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.mock-action {
  display: grid;
  place-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  font-size: 0.58rem;
  font-weight: 650;
  color: var(--text-soft);
  text-align: center;
}

.mock-action span:first-child { font-size: 1rem; }

.mock-action.is-active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}

.mock-caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  vertical-align: text-bottom;
  background: var(--indigo);
  animation: caret 1s steps(2) infinite;
}

@keyframes caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Floating stat chips on the mock */
.mock-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 0.74rem;
  font-weight: 650;
  animation: bob 5s ease-in-out infinite;
}

.mock-chip svg { width: 14px; height: 14px; }

.chip-a { top: 16%; left: -1.5rem; color: var(--green); }
.chip-b { bottom: 14%; right: -1.5rem; color: var(--cyan); animation-delay: -2.5s; }

@media (max-width: 620px) {
  .chip-a, .chip-b { display: none; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* --------------------------------------------------------------------------
   8. Stats strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  padding: 1.6rem 1rem;
  text-align: center;
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat dt {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

.stat dd {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--brand-gradient-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   9. Cards & feature grid
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--brand-gradient-vivid);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card:hover::before { opacity: 1; }

.card h3 { margin-bottom: 0.5rem; font-size: 1.06rem; }

.card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.62;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 13px;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.14));
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease);
}

.card:hover .card-icon { transform: scale(1.08) rotate(-5deg); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: var(--gap);
}

.feature-grid .card.featured {
  grid-column: span 2;
  background: linear-gradient(150deg, rgba(102, 126, 234, 0.13), rgba(118, 75, 162, 0.07));
}

@media (max-width: 640px) {
  .feature-grid .card.featured { grid-column: span 1; }
}

/* --------------------------------------------------------------------------
   10. Steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-top: 2.6rem;
}

.step-card::after {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   11. Privacy / architecture
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.check-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.check-list strong {
  display: block;
  color: var(--text);
  font-weight: 650;
  margin-bottom: 0.15rem;
}

.check-list .tick {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(72, 187, 120, 0.14);
  border: 1px solid rgba(72, 187, 120, 0.32);
  color: var(--green);
  margin-top: 2px;
}

.check-list .tick svg { width: 13px; height: 13px; }

/* Data-flow diagram */
.flow {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.flow-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  text-align: center;
}

.flow-nodes {
  display: grid;
  gap: 0.5rem;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
}

.flow-node .ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.flow-node b { display: block; font-size: 0.92rem; }
.flow-node small { color: var(--text-dim); font-size: 0.78rem; }

.flow-arrow {
  display: grid;
  place-items: center;
  height: 34px;
  color: var(--indigo);
  position: relative;
}

.flow-arrow svg { width: 18px; height: 18px; animation: nudge 2s ease-in-out infinite; }

@keyframes nudge {
  0%, 100% { transform: translateY(-2px); opacity: 0.6; }
  50% { transform: translateY(2px); opacity: 1; }
}

.flow-cut {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(252, 129, 129, 0.45);
  background: rgba(252, 129, 129, 0.07);
  font-size: 0.82rem;
  color: var(--text-soft);
  text-align: center;
}

.flow-cut b { color: var(--red); }

/* --------------------------------------------------------------------------
   12. Pricing
   -------------------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  max-width: 880px;
  margin-inline: auto;
  align-items: start;
}

.price-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card.highlight {
  border-color: transparent;
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    var(--brand-gradient-vivid) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-brand);
}

.price-tag {
  position: absolute;
  top: -0.8rem;
  right: 1.6rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-brand);
}

.price-name {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.9rem 0 0.35rem;
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.price-amount small {
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-dim);
  letter-spacing: 0;
}

.price-note {
  font-size: 0.88rem;
  color: var(--text-soft);
  min-height: 2.6em;
}

.price-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-soft);
  flex: 1;
}

.price-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  align-items: start;
}

.price-list svg { width: 15px; height: 15px; margin-top: 4px; flex-shrink: 0; }
.price-list .yes { color: var(--green); }
.price-list .no { color: var(--text-dim); opacity: 0.55; }

.price-foot {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-align: center;
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 650;
  font-size: 1rem;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--indigo);
  border-bottom: 2px solid var(--indigo);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq .answer {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq .answer a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(3rem, 2rem + 5vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-brand);
  color: #fff;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 15% 10%, rgba(34, 211, 238, 0.4), transparent 60%),
    radial-gradient(50% 80% at 90% 90%, rgba(255, 255, 255, 0.22), transparent 60%);
  pointer-events: none;
}

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

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

.cta-band p {
  margin: 1rem auto 2rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--step-1);
}

.cta-band .btn {
  background: #fff;
  color: var(--violet);
  border-color: transparent;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.4);
}

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--border);
  padding-block: 3.5rem 2rem;
  background: color-mix(in srgb, var(--bg-deep) 60%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

.footer-about p {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 30ch;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--indigo); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   16. Legal / article pages
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2.5rem;
  text-align: center;
}

.page-hero h1 { font-size: var(--step-3); }

.page-hero .updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.prose {
  padding: clamp(1.6rem, 1rem + 3vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
  scroll-margin-top: 6rem;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.08rem;
  margin-top: 1.9rem;
  margin-bottom: 0.6rem;
}

.prose p,
.prose li {
  color: var(--text-soft);
  line-height: 1.75;
}

.prose p { margin-bottom: 1rem; }

.prose ul,
.prose ol {
  margin: 0 0 1.25rem 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.prose a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.15em 0.4em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--indigo) 14%, transparent);
  color: var(--text);
}

.prose hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin-block: 2.5rem;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

.prose th,
.prose td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose th {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: color-mix(in srgb, var(--indigo) 8%, transparent);
}

.prose td { color: var(--text-soft); }
.prose tr:last-child td { border-bottom: 0; }

.callout {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: rgba(102, 126, 234, 0.08);
  font-size: 0.92rem;
  color: var(--text-soft);
}

.callout .ico { font-size: 1.1rem; line-height: 1.4; }
.callout p:last-child { margin-bottom: 0; }

.callout.warn {
  border-color: rgba(237, 137, 54, 0.35);
  background: rgba(237, 137, 54, 0.08);
}

.toc {
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-solid) 55%, transparent);
}

.toc h2 {
  font-size: 0.75rem !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.85rem !important;
}

.toc ol {
  margin: 0 0 0 1.1rem;
  gap: 0.4rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   17. Setup guide
   -------------------------------------------------------------------------- */

/* Provider comparison */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--gap);
}

.provider-card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.provider-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.provider-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.provider-logo.groq { background: linear-gradient(135deg, #f55036, #ff8a3d); }
.provider-logo.gemini { background: linear-gradient(135deg, #4285f4, #9b72cb); }

.provider-head h3 { font-size: 1.15rem; margin: 0; }
.provider-head small { color: var(--text-dim); font-size: 0.8rem; }

.provider-traits {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  flex: 1;
}

.provider-traits li {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 0.6rem;
  align-items: start;
}

.provider-traits svg { width: 14px; height: 14px; margin-top: 5px; color: var(--green); }

/* Tabs */
.tabs {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.35rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tab {
  padding: 0.6rem 1.4rem;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.tab:hover { color: var(--text); }

.tab[aria-selected='true'] {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.tab-panel[hidden],
.tabs[hidden] { display: none; }

/* Only shown when JS is unavailable and both walkthroughs render stacked. */
.panel-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.panel-title[hidden] { display: none; }

.panel-title .provider-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 1.1rem;
}

.tab-panel + .tab-panel { margin-top: 3rem; }

/* Numbered walkthrough */
.guide-steps {
  display: grid;
  gap: 0;
  counter-reset: gstep;
}

.guide-step {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 1.4rem;
  padding-bottom: 2.2rem;
}

.guide-step:last-child { padding-bottom: 0; }

/* Connecting rail between the numbers */
.guide-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 46px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--indigo), transparent);
  opacity: 0.45;
}

.guide-num {
  counter-increment: gstep;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow-brand);
  z-index: 1;
}

.guide-num::before { content: counter(gstep); }

.guide-body { padding-top: 0.5rem; min-width: 0; }

.guide-body h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }

.guide-body p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

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

.guide-body a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.guide-body ul {
  margin: 0 0 0.85rem 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--text-soft);
  font-size: 0.93rem;
}

/* UI-label chip: "click the button that says X" */
.ui {
  display: inline-block;
  padding: 0.12em 0.5em;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
  font-size: 0.86em;
  font-weight: 650;
  white-space: nowrap;
}

kbd {
  display: inline-block;
  padding: 0.15em 0.45em;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  background: color-mix(in srgb, var(--surface-solid) 85%, transparent);
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 600;
}

/* Sample key display */
.key-sample {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.9rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--indigo) 8%, transparent);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-soft);
  overflow-x: auto;
}

.key-sample .tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  flex-shrink: 0;
}

/* Screenshot placeholder frame */
.shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-solid) 60%, transparent);
  padding: 0.9rem;
  margin-bottom: 0.9rem;
}

.shot-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Mini panel replica used in the "add it to Skriveo" steps */
.mini-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-solid) 75%, transparent);
  font-size: 0.8rem;
}

.mini-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.mini-panel-row:last-child { border-bottom: 0; }

.mini-panel-row span:first-child { color: var(--text-dim); font-size: 0.75rem; }

.mini-field {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: color-mix(in srgb, var(--bg-deep) 45%, transparent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-soft);
}

.mini-save {
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   18. 404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}

.error-code {
  font-size: clamp(5rem, 3rem + 14vw, 11rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
  background: var(--brand-gradient-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   19. Scroll reveal + motion prefs
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].revealed {
  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;
  }

  [data-reveal] { opacity: 1; transform: none; }
  #neural-canvas { display: none; }
}

@media print {
  .backdrop, .orb, #neural-canvas, .site-header, .announce,
  .cta-band, .mobile-menu, .scrim { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { border: 0; box-shadow: none; background: none; }
}
