/* HandyPaste landing page.
   Tokens mirror the extension's src/assets/theme.css so the site and the
   product read as one thing. Dark mode follows the OS, like the extension's
   "system" setting. */

:root {
  color-scheme: light dark;

  --brand: rgb(121, 83, 249);
  --brand-strong: rgb(104, 64, 232);
  --brand-soft: rgba(121, 83, 249, 0.1);
  --brand-ring: rgba(121, 83, 249, 0.3);
  --brand-contrast: #fff;

  --bg: #ffffff;
  --bg-tint: #f5f6fa;
  --surface: #ffffff;
  --surface-sunken: #eef0f5;
  --text: #1d2129;
  --text-muted: #5b6270;
  --border: #e4e6ee;
  --border-strong: #d3d6e0;

  --dark-bg: #0f1115;
  --dark-surface: #171920;
  --dark-text: #e7e9ee;
  --dark-muted: #a3aab7;
  --dark-border: #2a2e37;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 18, 28, 0.05), 0 8px 24px rgba(16, 18, 28, 0.07);
  --shadow-lg: 0 24px 64px rgba(30, 20, 80, 0.18);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: rgb(155, 124, 255);
    --brand-strong: rgb(173, 148, 255);
    --brand-soft: rgba(155, 124, 255, 0.14);
    --brand-ring: rgba(155, 124, 255, 0.36);
    --brand-contrast: #14151a;

    --bg: #0f1115;
    --bg-tint: #13151b;
    --surface: #171920;
    --surface-sunken: #1d2027;
    --text: #e7e9ee;
    --text-muted: #a3aab7;
    --border: #2a2e37;
    --border-strong: #3b404b;

    --dark-bg: #090a0d;
    --dark-surface: #13151b;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
kbd {
  font: 600 0.8em/1 var(--font);
  display: inline-block;
  min-width: 1.9em;
  padding: 0.35em 0.5em;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--brand-contrast);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: 780px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9em;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { margin-right: 0.5em; flex: none; }
.btn-sm { padding: 0.5em 1.05em; font-size: 0.9rem; }
.btn-lg { padding: 0.85em 1.5em; font-size: 1.02rem; }
.btn-primary {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 6px 18px var(--brand-ring);
}
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-contrast); }
.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}
.btn-ghost:hover { color: var(--text); border-color: var(--brand); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  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 color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  font-size: 1.08rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand img { border-radius: 8px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 550;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--brand-soft); }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(900px 480px at 85% 0%, var(--brand-soft), transparent 70%),
    radial-gradient(600px 360px at 0% 55%, var(--brand-soft), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.4em;
}
/* Keyword line inside the h1: reads as the eyebrow, counts as the heading. */
.h1-kicker { display: block; margin-bottom: 1.1rem; line-height: 1.5; letter-spacing: 0.1em; }
.accent {
  background: linear-gradient(95deg, var(--brand), #b04df0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.trust-list li { display: inline-flex; align-items: center; gap: 7px; }
.trust-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%237953f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.mobile-hint { display: none; }
@media (hover: none) and (pointer: coarse) {
  .mobile-hint {
    display: block;
    margin: -8px auto 20px;
    max-width: 30em;
    font-size: 0.88rem;
    color: var(--text-muted);
  }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .trust-list { justify-content: center; }
}
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
}

/* hero demo window */

.hero-demo { position: relative; }
.window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  /* Not clipped: like a real context menu, the cascade may spill past the window. */
  overflow: visible;
  aspect-ratio: 16 / 11;
  font-size: 14px;
  user-select: none;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg-tint);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.window-url {
  margin-left: 12px;
  flex: 1;
  max-width: 320px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.compose { padding: 4px 22px 0; }
.compose-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compose-label { width: 58px; flex: none; color: var(--text-muted); }
.compose-field { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.demo-text { white-space: pre-wrap; }
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.15em;
  margin-left: 1px;
  background: var(--brand);
  animation: blink 1s steps(1) infinite;
}
.compose-body { padding: 14px 0; min-height: 120px; color: var(--text-muted); white-space: pre-wrap; }
.demo-text.is-new { background: var(--brand-soft); border-radius: 4px; transition: background 1.2s ease; }
@keyframes blink { 50% { opacity: 0; } }

.ctx-menu {
  position: absolute;
  min-width: 150px;
  padding: 5px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  opacity: 0;
  transform: scale(0.97);
  transform-origin: top left;
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}
.ctx-menu.is-open { opacity: 1; transform: none; }
/* JS places the menus next to the pointer; these are only the no-JS resting spots. */
#demo-menu { left: 20%; top: 18%; }
#demo-sub { left: calc(20% + 150px); top: 40%; }
#demo-sub2 { left: calc(20% + 300px); top: 55%; min-width: 96px; }
.ctx-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 5px;
  color: var(--text);
  white-space: nowrap;
}
.ctx-item img { border-radius: 3px; }
.ctx-item.is-muted { color: var(--text-muted); }
.ctx-item.has-sub::after { content: "›"; margin-left: auto; padding-left: 14px; opacity: 0.6; }
.ctx-item.is-hot { background: #2563eb; color: #fff; }
.ctx-sep { height: 1px; margin: 4px 6px; background: var(--border); }

.pointer {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  z-index: 5;
  transition: transform 700ms cubic-bezier(0.45, 0, 0.2, 1);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.demo-caption {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 1.6em;
}

.mini-picker {
  position: absolute;
  left: 50%;
  top: 22%;
  width: min(88%, 440px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate(-50%, -6px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
  overflow: hidden;
}
.mini-picker.is-open { opacity: 1; transform: translate(-50%, 0); }
.mp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.mp-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.mp-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 10px;
  margin: 5px;
  padding: 6px 10px;
  border-radius: 8px;
}
.mp-item.is-active { background: var(--brand-soft); }
.mp-item strong { font-size: 0.95em; }
.mp-item span {
  grid-column: 1;
  font: 0.82em/1.5 var(--mono);
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mp-item em {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-style: normal;
  font-size: 0.72em;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-muted);
}
.mp-foot {
  padding: 7px 14px;
  border-top: 1px solid var(--border);
  font-size: 0.75em;
  color: var(--text-muted);
}
.mp-foot b { color: var(--text); margin-left: 8px; }
.mp-foot b:first-child { margin-left: 0; }

@media (max-width: 560px) {
  .window { font-size: 12px; aspect-ratio: 4 / 3.6; }
  .ctx-menu { font-size: 11.5px; min-width: 104px; }
  .compose { padding: 2px 14px 0; }
  .compose-label { width: 48px; }
}

/* ---------- use cases ---------- */

.usecases { padding: 8px 0 clamp(48px, 6vw, 72px); }
.section-kicker {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chip-cloud li {
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 550;
}

/* ---------- sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tinted { background: var(--bg-tint); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); font-weight: 800; }
.section-lead { color: var(--text-muted); font-size: 1.08rem; }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(56px, 8vw, 104px); }
.feature-row.is-reversed .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 750; }
.feature-copy p { color: var(--text-muted); }
.step-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%237953f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

.shot { margin: 0; }
.shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.shot-narrow { max-width: 380px; justify-self: center; width: 100%; }
.shot-wide { max-width: 1040px; margin: 0 auto clamp(40px, 5vw, 56px); }
.shot figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--dark-muted); }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.is-reversed .feature-copy { order: 0; }
}

/* ---------- placeholder playground ---------- */

.playground {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto 40px;
}
.pg-pane {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 0;
}
.pg-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pg-editor, .pg-output {
  flex: 1;
  width: 100%;
  min-height: 210px;
  padding: 14px;
  font: 14px/1.6 var(--mono);
  color: var(--text);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pg-editor { resize: vertical; }
.pg-editor:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.pg-output { display: block; background: transparent; border-style: dashed; }
.pg-output .tok { background: var(--brand-soft); color: var(--brand-strong); border-radius: 4px; padding: 0 2px; }
.pg-output .cur {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  vertical-align: text-bottom;
  background: var(--brand);
  animation: blink 1s steps(1) infinite;
}
.pg-field { display: grid; gap: 10px; margin-top: 14px; }
.pg-field:empty { display: none; }
.pg-field label { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 650; color: var(--text-muted); }
.pg-field input {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.pg-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}
.token-grid > div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.token-grid dt { margin-bottom: 4px; }
.token-grid dd { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

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

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover { border-color: var(--brand-ring); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.card-icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

/* ---------- privacy (always dark) ---------- */

.section-dark {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(121, 83, 249, 0.22), transparent 70%),
    var(--dark-bg);
  color: var(--dark-text);
  --brand: rgb(155, 124, 255);
  --brand-strong: rgb(173, 148, 255);
  --brand-soft: rgba(155, 124, 255, 0.16);
  --border: var(--dark-border);
}
.section-dark h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); font-weight: 800; }
.section-dark .section-lead { color: var(--dark-muted); }
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.perm-list { list-style: none; padding: 0; margin: 28px 0 20px; display: grid; gap: 10px; }
.perm-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  background: var(--dark-surface);
}
.perm-list code { justify-self: start; }
.perm-list span { color: var(--dark-muted); font-size: 0.93rem; }
.fine { color: var(--dark-muted); font-size: 0.93rem; }
.section-dark a { color: var(--brand-strong); }
.section-dark .shot img { border-color: var(--dark-border); }
.note {
  margin-top: 24px;
  padding: 14px 18px;
  border-left: 3px solid #f0b429;
  border-radius: var(--radius-sm);
  background: rgba(240, 180, 41, 0.08);
  font-size: 0.92rem;
  color: var(--dark-muted);
}
.note strong { color: var(--dark-text); }

@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .perm-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- install steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-contrast);
  font-weight: 800;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

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

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease;
}
.faq details[open] { border-color: var(--brand-ring); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--text-muted); }

/* ---------- final CTA ---------- */

.final-cta {
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
  background: radial-gradient(600px 300px at 50% 100%, var(--brand-soft), transparent 70%);
}
.final-cta img { margin: 0 auto 24px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.final-cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.final-cta p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 40px 0; font-size: 0.93rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 40px;
  align-items: start;
}
.footer-brand p { margin: 10px 0 0; color: var(--text-muted); max-width: 32em; }
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.site-footer nav a { color: var(--text-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); }
.copyright { grid-column: 1 / -1; margin: 12px 0 0; color: var(--text-muted); font-size: 0.85rem; }

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

/* ---------- legal / simple pages ---------- */

.prose { padding: clamp(48px, 7vw, 88px) 0; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose .meta { font-size: 0.92rem; }

/* Official Buy Me a Coffee button (buymeacoffee.com/brand), black variant. */
.bmc-button { display: inline-block; margin-top: 16px; line-height: 0; border-radius: 8px; transition: transform 140ms ease; }
.bmc-button:hover { transform: translateY(-1px); }
.bmc-button img { width: 150px; height: auto; border-radius: 8px; outline: 1px solid var(--border); }

/* ---------- cookie consent ---------- */

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
}
.consent-text { flex: 1 1 320px; margin: 0; color: var(--text-muted); }
.consent-text strong { color: var(--text); }
/* Accept and Reject look the same on purpose: rejecting must be as easy as accepting. */
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent-actions .btn { font: inherit; font-weight: 650; cursor: pointer; min-width: 92px; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text-muted);
  cursor: pointer;
}
.link-button:hover { color: var(--brand); }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.page-404 { min-height: 100vh; display: grid; place-items: center; }
