/* ---------- Tokens ---------- */
:root {
  --accent: #6d5ef8;
  --accent-hover: #5a4ce0;
  --accent-soft: #f1eefe;
  --accent-contrast: #ffffff;
  --accent-grad: linear-gradient(135deg, #7c6cfb 0%, #6d5ef8 55%, #5d4ce8 100%);

  --bg: #ffffff;
  --bg-alt: #f5f4fb;
  --bg-raised: #ffffff;
  --border: #e7e5f3;
  --text: #17161f;
  --text-muted: #58566b;
  --text-faint: #8a889c;

  --shadow-sm: 0 1px 2px rgba(31, 24, 82, .05);
  --shadow-md: 0 8px 24px rgba(31, 24, 82, .08);
  --shadow-lg: 0 24px 60px rgba(31, 24, 82, .16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --good: #1a8f5e;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #8b7bff;
    --accent-hover: #a294ff;
    --accent-soft: rgba(139, 123, 255, .14);
    --accent-contrast: #14121f;
    --accent-grad: linear-gradient(135deg, #9c8fff 0%, #8b7bff 55%, #7566e8 100%);

    --bg: #0e0d14;
    --bg-alt: #15131f;
    --bg-raised: #1a1826;
    --border: #2b283a;
    --text: #f2f1f7;
    --text-muted: #b3b0c4;
    --text-faint: #7c7991;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  --accent: #8b7bff;
  --accent-hover: #a294ff;
  --accent-soft: rgba(139, 123, 255, .14);
  --accent-contrast: #14121f;
  --accent-grad: linear-gradient(135deg, #9c8fff 0%, #8b7bff 55%, #7566e8 100%);

  --bg: #0e0d14;
  --bg-alt: #15131f;
  --bg-raised: #1a1826;
  --border: #2b283a;
  --text: #f2f1f7;
  --text-muted: #b3b0c4;
  --text-faint: #7c7991;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--text-muted); }
code { font-family: var(--font-mono); font-size: .9em; background: var(--accent-soft); color: var(--accent); padding: .15em .4em; border-radius: 5px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-buy:disabled { background: var(--good); border-color: var(--good); color: #fff; cursor: default; opacity: 1; }
.btn-buy:disabled:hover { background: var(--good); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
.brand strong { color: var(--accent); }
.main-nav { display: flex; gap: 4px; margin: 0 auto; }
.main-nav a {
  color: var(--text-muted); font-size: .93rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .15s ease, background .15s ease;
}
.main-nav a:hover { color: var(--text); background: var(--bg-alt); }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); }
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-raised); color: var(--text-muted); cursor: pointer; flex-shrink: 0;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-icon { width: 18px; height: 18px; display: flex; }
.theme-icon svg { width: 100%; height: 100%; }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-icon-moon { display: flex; }
}

.theme-toggle-mobile {
  width: auto; height: auto; border-radius: 999px; padding: 10px 16px; gap: 10px; margin-top: 12px;
  justify-content: center;
}
.theme-toggle-label { font-size: .9rem; font-weight: 500; }
@media (min-width: 861px) { .theme-toggle-mobile { display: none; } }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-raised);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; }

.mobile-nav {
  display: none; flex-direction: column; gap: 2px; padding: 8px 24px 18px;
  border-top: 1px solid var(--border);
}
.mobile-nav a { padding: 12px 4px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 12px; width: 100%; }
/* `.mobile-nav a` outranks `.btn-primary`, which was washing the button label out — restate it. White label on a deeper purple in dark mode so it stays readable. */
.mobile-nav a.btn-primary { color: #fff; border-bottom: 0; }
:root[data-theme="dark"] .mobile-nav a.btn-primary { background: #6d5cf0; }
:root[data-theme="dark"] .mobile-nav a.btn-primary:hover { background: #7b6bf5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mobile-nav a.btn-primary { background: #6d5cf0; }
  :root:not([data-theme="light"]) .mobile-nav a.btn-primary:hover { background: #7b6bf5; }
}
.mobile-nav .theme-toggle-label { color: var(--text); }

@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 60px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700;
  color: var(--accent); margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.hero .lede { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 16px; }
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: -10% -14% auto auto; width: 70%; aspect-ratio: 1;
  background: var(--accent-grad); filter: blur(64px); opacity: .35; border-radius: 50%; z-index: 0;
}
.hero-shot {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}

/* ---------- Animated dashboard mockup ---------- */
.mock {
  position: relative; z-index: 1; display: flex; height: 380px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  overflow: hidden; background: var(--bg-raised); font-size: 13px;
}
.mock-sidebar {
  width: 148px; flex-shrink: 0; background: var(--bg-raised); border-right: 1px solid var(--border);
  padding: 16px 10px; display: flex; flex-direction: column; gap: 2px;
}
.mock-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12px; padding: 0 6px 14px; color: var(--text); }
.mock-brand-icon { width: 18px; height: 18px; border-radius: 6px; background: var(--accent-grad); flex-shrink: 0; }
.mock-navitem {
  display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px;
  color: var(--text-muted); font-size: 11.5px; font-weight: 500;
}
.mock-navitem.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mock-navicon { width: 8px; height: 8px; border-radius: 3px; background: currentColor; opacity: .55; flex-shrink: 0; }
.mock-main { position: relative; flex: 1; background: var(--bg-alt); padding: 16px; overflow: hidden; }
.mock-header {
  background: var(--accent-grad); border-radius: 12px; padding: 14px 16px; color: #fff; margin-bottom: 12px;
}
.mock-h-title { margin: 0; font-weight: 700; font-size: 14px; }
.mock-h-sub { margin: 3px 0 0; font-size: 11px; opacity: .85; }
.mock-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.mock-card-title { margin: 0 0 9px; font-size: 11px; font-weight: 700; color: var(--text); }
.mock-actions { display: flex; flex-direction: column; gap: 7px; }
.mock-action {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px;
  transition: border-color .3s ease, background .3s ease;
}
.mock-action strong { display: block; font-size: 11.5px; color: var(--text); }
.mock-action small { display: block; font-size: 10px; color: var(--text-faint); margin-top: 1px; }
.mock-radio {
  width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: border-color .3s ease;
}
.mock-radio-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: scale(0); }
.mock-empty { margin: 0; font-size: 11px; color: var(--text-faint); }
.mock-row {
  display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(6px); font-size: 11px; color: var(--text);
}
.mock-row-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.mock-row-spinner {
  position: absolute; inset: 1px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent);
  animation: mockSpin .7s linear infinite;
}
.mock-row-check {
  position: absolute; inset: 0; border-radius: 50%; background: #1a8f5e; color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; opacity: 0;
}
.mock-row-text em { color: var(--text-faint); font-style: normal; }
.mock-row-time { margin-left: auto; color: var(--text-faint); font-size: 10px; }
.mock-cursor {
  position: absolute; width: 13px; height: 13px; border-radius: 50% 50% 50% 4px; background: var(--text);
  border: 2px solid var(--bg-raised); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); z-index: 5; opacity: 0;
}

@keyframes mockSpin { to { transform: rotate(360deg); } }

@keyframes mockCursorMove {
  0%, 8%   { opacity: 0; top: 14%; left: 78%; }
  16%      { opacity: 1; top: 14%; left: 78%; }
  28%, 34% { opacity: 1; top: 43%; left: 22%; }
  42%      { opacity: 1; top: 63%; left: 30%; }
  50%, 88% { opacity: 0; top: 63%; left: 30%; }
  100%     { opacity: 0; top: 14%; left: 78%; }
}
@keyframes mockActionSelect {
  0%, 26%  { border-color: var(--border); background: var(--bg-raised); }
  30%, 88% { border-color: var(--accent); background: var(--accent-soft); }
  96%, 100% { border-color: var(--border); background: var(--bg-raised); }
}
@keyframes mockRadioFill {
  0%, 26%  { transform: scale(0); }
  32%, 88% { transform: scale(1); }
  96%, 100% { transform: scale(0); }
}
@keyframes mockEmptyFade {
  0%, 30%  { opacity: 1; }
  36%, 100% { opacity: 0; }
}
@keyframes mockRowIn {
  0%, 34%  { opacity: 0; transform: translateY(6px); }
  40%, 92% { opacity: 1; transform: translateY(0); }
  98%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes mockSpinnerShow {
  0%, 38%  { opacity: 1; }
  46%, 100% { opacity: 0; }
}
@keyframes mockCheckShow {
  0%, 44%  { opacity: 0; transform: scale(.5); }
  50%, 92% { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(.5); }
}

.mock-cursor       { animation: mockCursorMove 7s ease-in-out infinite; }
.mock-action-push  { animation: mockActionSelect 7s ease-in-out infinite; }
.mock-radio-dot    { animation: mockRadioFill 7s ease-in-out infinite; }
.mock-empty        { animation: mockEmptyFade 7s ease-in-out infinite; }
.mock-row          { animation: mockRowIn 7s ease-in-out infinite; }
.mock-row-spinner  { animation: mockSpin .7s linear infinite, mockSpinnerShow 7s ease-in-out infinite; }
.mock-row-check    { animation: mockCheckShow 7s ease-in-out infinite; }

.mock-caption { margin: 14px 0 0; text-align: center; font-size: .8rem; color: var(--text-faint); }
.mock-caption a { color: var(--accent); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .mock-cursor, .mock-action-push, .mock-radio-dot, .mock-empty, .mock-row, .mock-row-spinner, .mock-row-check {
    animation: none !important;
  }
  .mock-cursor { display: none; }
  .mock-empty { opacity: 0; }
  .mock-row { opacity: 1; transform: none; }
  .mock-row-spinner { opacity: 0; }
  .mock-row-check { opacity: 1; }
  .mock-radio-dot { transform: scale(1); }
  .mock-action-push { border-color: var(--accent); background: var(--accent-soft); }
}

@media (max-width: 640px) {
  .mock { height: auto; }
  .mock-sidebar { display: none; }
}

/* "Get started"-style accent callout, matching the plugin's own info card */
.accent-note {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; max-width: 46ch;
}
.accent-note p { margin: 0; font-size: .88rem; color: var(--text); }
.accent-note strong { color: var(--accent); }

/* WP-CLI terminal mockup */
.terminal {
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); background: #17151f;
}
.terminal-bar { display: flex; gap: 7px; padding: 12px 16px; background: #211e2c; }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3648; }
.terminal-bar span:nth-child(1) { background: #f0685f; }
.terminal-bar span:nth-child(2) { background: #f4bf50; }
.terminal-bar span:nth-child(3) { background: #62c766; }
.terminal-body { padding: 22px 20px 26px; font-family: var(--font-mono); font-size: .85rem; line-height: 1.9; }
.terminal-body p { margin: 0; color: #cfcbe0; }
.t-prompt { color: #8b7bff; font-weight: 700; }
.t-muted { color: #8f8aa8; }
.t-ok { color: #7fd88f; }
.t-success { color: #7fd88f; font-weight: 700; margin-top: 10px !important; }

/* Looping "typing" animation — same approach as the hero mockup above
   (.mock*): one shared cycle length, a separate @keyframes per element so
   each line/status can appear on its own beat, reset and replay. */
.t-line { opacity: 0; transform: translateY(4px); }
.t-ok { opacity: 0; }
.t-cursor {
  display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px;
  background: #8b7bff; opacity: 0;
}

@keyframes termLine1 {
  0%, 3%    { opacity: 0; transform: translateY(4px); }
  7%, 90%   { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(4px); }
}
@keyframes termCursorBlink {
  0%, 3%                          { opacity: 0; }
  5%, 7.5%, 10%, 12.5%, 15%, 17.5% { opacity: 1; }
  6.25%, 8.75%, 11.25%, 13.75%, 16.25% { opacity: 0; }
  18%, 100%                       { opacity: 0; }
}
@keyframes termLine2 {
  0%, 19%   { opacity: 0; transform: translateY(4px); }
  23%, 90%  { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(4px); }
}
@keyframes termOk1 {
  0%, 27%   { opacity: 0; }
  31%, 90%  { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes termLine3 {
  0%, 35%   { opacity: 0; transform: translateY(4px); }
  39%, 90%  { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(4px); }
}
@keyframes termOk2 {
  0%, 43%   { opacity: 0; }
  47%, 90%  { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes termLine4 {
  0%, 51%   { opacity: 0; transform: translateY(4px); }
  55%, 90%  { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(4px); }
}
@keyframes termOk3 {
  0%, 59%   { opacity: 0; }
  63%, 90%  { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes termLine5 {
  0%, 67%   { opacity: 0; transform: translateY(4px); }
  71%, 90%  { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(4px); }
}

.t-line-1 { animation: termLine1 9s ease-in-out infinite; }
.t-cursor { animation: termCursorBlink 9s linear infinite; }
.t-line-2 { animation: termLine2 9s ease-in-out infinite; }
.t-ok-1   { animation: termOk1 9s ease-in-out infinite; }
.t-line-3 { animation: termLine3 9s ease-in-out infinite; }
.t-ok-2   { animation: termOk2 9s ease-in-out infinite; }
.t-line-4 { animation: termLine4 9s ease-in-out infinite; }
.t-ok-3   { animation: termOk3 9s ease-in-out infinite; }
.t-line-5 { animation: termLine5 9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .t-line, .t-cursor, .t-ok-1, .t-ok-2, .t-ok-3 { animation: none !important; }
  .t-line { opacity: 1; transform: none; }
  .t-cursor { display: none; }
  .t-ok { opacity: 1; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 40px; }
}

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.trust-strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex-shrink: 0; }

/* ---------- How it works ---------- */
.how { padding: 84px 0; position: relative; }
.how-grid { display: flex; align-items: stretch; justify-content: center; gap: 6px; position: relative; }
.how-step {
  flex: 1; max-width: 280px; text-align: center; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.how-step:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.how-icon { position: relative; width: 58px; height: 58px; margin: 0 auto 20px; }
.how-icon-glyph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: 18px; background: var(--accent-grad); box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--accent) 55%, transparent);
}
.how-icon-glyph svg { width: 26px; height: 26px; color: #fff; }
.how-num {
  position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-raised); color: var(--accent); font-weight: 800; font-size: .74rem;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--bg-raised); box-shadow: var(--shadow-sm);
}
.how-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.how-step p { font-size: .89rem; margin: 0; }
.how-arrow {
  display: flex; align-items: center; justify-content: center; color: var(--border);
  flex-shrink: 0; width: 32px; margin-top: 29px;
}
.how-arrow svg { width: 20px; height: 20px; }

@media (max-width: 780px) {
  .how-grid { flex-direction: column; align-items: stretch; }
  .how-step { max-width: none; }
  .how-arrow { display: none; }
}

/* ---------- Problem ---------- */
.problem { padding: 64px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem h2 { text-align: center; max-width: 32ch; margin: 0 auto 40px; font-size: clamp(1.5rem, 3vw, 2rem); }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.problem-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.problem-card h3 { font-size: 1rem; margin-bottom: 8px; }
.problem-card p { font-size: .92rem; margin: 0; }
@media (max-width: 980px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.section-sub { font-size: 1.02rem; }

/* ---------- Features ---------- */
.features { padding: 88px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: .93rem; margin: 0; }
.feature-badge {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; vertical-align: middle;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
}
/* Full-width only on desktop: 9 regular cards fill the 3-column grid exactly, so the 10th spans a
   closing row instead of orphaning in a row of its own. Below 981px the grid is 2-up, where 10
   cards already divide evenly, so it stays a normal card. */
@media (min-width: 981px) {
  .feature-card--wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
  .feature-card--wide .feature-icon { margin-bottom: 0; flex-shrink: 0; }
}

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

/* ---------- Roadmap ("Coming soon") ---------- */
/* A deliberately different shape from .feature-grid above it — a connected
   two-step track, not another card grid — so these two items read as "not
   built yet" rather than blending into the shipped feature list. Built for
   exactly two items (item / connector / item); a third would need this
   reworked, not just another column added. */
.roadmap { padding: 64px 0 88px; }

.roadmap-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  max-width: 940px;
  margin: 0 auto;
}

.roadmap-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 26px;
  background: var(--bg-raised);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  transition: border-color .18s ease;
}
.roadmap-item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

.roadmap-marker { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.roadmap-number { font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--text-faint); }

/* Same visual slot as .feature-icon, sized up slightly since this card has
   no third line of body copy competing for space — plus a soft pulsing
   ring to read as "active, in progress" rather than static/shipped. */
.feature-icon--soon {
  width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  position: relative;
}
.feature-icon--soon svg { width: 25px; height: 25px; position: relative; z-index: 1; }
.feature-icon--soon::after {
  content: ""; position: absolute; inset: -7px; border-radius: inherit;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  animation: soonRing 2.4s ease-out infinite;
}
@keyframes soonRing {
  0% { transform: scale(.88); opacity: .9; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

/* Each icon's own motion ties to what the feature actually does, not just
   decoration: Auto-Sync's arrows really spin; Multisite's stacked bars
   pulse in sequence, like several sites syncing one after another. */
.feature-icon--soon[data-icon="sync"] svg { animation: soonSpin 3.6s linear infinite; }
@keyframes soonSpin { to { transform: rotate(360deg); } }

.feature-icon--soon[data-icon="multisite"] svg rect { animation: soonBar 1.8s ease-in-out infinite; }
.feature-icon--soon[data-icon="multisite"] svg rect:nth-of-type(2) { animation-delay: .25s; }
.feature-icon--soon[data-icon="multisite"] svg rect:nth-of-type(3) { animation-delay: .5s; }
@keyframes soonBar { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.roadmap-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.roadmap-body p { font-size: .93rem; margin: 0; color: var(--text-muted); }

.feature-badge--soon { color: var(--text-muted); background: color-mix(in srgb, var(--text-muted) 14%, transparent); }

/* The connecting track between the two items: a dashed line with a small
   dot that travels its length on a loop, suggesting forward motion/work in
   progress rather than a static divider. */
.roadmap-connector {
  position: relative;
  width: 72px; height: 2px;
  background-image: linear-gradient(90deg, var(--border) 50%, transparent 50%);
  background-size: 14px 2px;
}
.roadmap-connector::after {
  content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: soonTravel 2.6s ease-in-out infinite;
}
@keyframes soonTravel {
  0%, 100% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { left: calc(100% - 8px); }
}

@media (max-width: 860px) {
  .roadmap-track { grid-template-columns: 1fr; justify-items: center; }
  .roadmap-connector {
    width: 2px; height: 40px;
    background-image: linear-gradient(180deg, var(--border) 50%, transparent 50%);
    background-size: 2px 14px;
  }
  .roadmap-connector::after { animation-name: soonTravelV; left: -3px; top: 0; }
}
@keyframes soonTravelV {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { top: calc(100% - 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .feature-icon--soon::after { display: none; }
  .feature-icon--soon[data-icon="sync"] svg,
  .feature-icon--soon[data-icon="multisite"] svg rect {
    animation: none !important;
  }
  .roadmap-connector::after { display: none; }
}
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Reliability ---------- */
.reliability { padding: 80px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reliability-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.reliability-shot img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.reliability-shot .terminal { max-width: 480px; margin: 0 auto; }
@media (max-width: 860px) { .reliability-inner { grid-template-columns: 1fr; } .reliability-shot { order: -1; } }

/* ---------- Compare table ---------- */
.compare { padding: 88px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.compare-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  background: var(--bg-raised); overflow: hidden;
}
.table-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare-table th, .compare-table td { padding: 13px 22px; text-align: center; font-size: .89rem; }
.compare-table thead th {
  padding-top: 20px; padding-bottom: 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-faint); font-weight: 700; border-bottom: 1px solid var(--border); position: relative;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody th { text-align: left; font-weight: 500; font-size: .89rem; color: var(--text); }

/* Highlighted Pro column runs the full height of the table */
.compare-pro-col { background: var(--accent-soft); position: relative; }
.compare-table thead th.compare-pro-col { color: var(--accent); border-bottom-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.compare-badge {
  display: block; margin-top: 4px; font-size: .62rem; letter-spacing: .04em; font-weight: 700;
  color: var(--accent-contrast); background: var(--accent); border-radius: 999px; padding: 3px 9px;
}

.compare-group th {
  text-align: left; padding: 10px 22px 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); font-weight: 700; background: var(--bg-alt); border-top: 1px solid var(--border);
}
.compare-group:first-child th { border-top: none; }
.compare-group th.compare-pro-col, .compare-group td { background: var(--bg-alt); }

.compare-table tbody tr:not(.compare-group) { border-bottom: 1px solid var(--border); transition: background .15s ease; }
.compare-table tbody tr:not(.compare-group):hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.compare-table tbody tr:not(.compare-group):hover .compare-pro-col { background: color-mix(in srgb, var(--accent) 12%, var(--accent-soft)); }
.compare-table tbody tr:last-child { border-bottom: none; }

.compare-table td.num { color: var(--text-muted); font-weight: 600; font-size: .85rem; }
.compare-table td.yes::before, .compare-table td.no::before {
  content: ""; display: inline-flex; width: 20px; height: 20px; border-radius: 50%;
}
.compare-table td.yes::before {
  background: var(--good); mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z" fill="none" stroke="black" stroke-width="2"/><path d="m7.5 12 3 3 6-6" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z" fill="none" stroke="black" stroke-width="2"/><path d="m7.5 12 3 3 6-6" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
}
.compare-table td.no::before {
  background: var(--text-faint); opacity: .35;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="none" stroke="black" stroke-width="2"/><path d="M9 9l6 6M15 9l-6 6" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="none" stroke="black" stroke-width="2"/><path d="M9 9l6 6M15 9l-6 6" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>') center / contain no-repeat;
}

.compare-cta { display: flex; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Descriptive (non-icon) comparison cells — .vs-alternatives's table */
.compare-table td.cell-good { color: var(--good); font-weight: 600; }
.compare-table td.cell-weak { color: var(--text-faint); }

/* ---------- Pricing ---------- */
.pricing { padding: 88px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  position: relative; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md); }
.price-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-contrast); font-size: .72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .02em;
}
.price-card h3 { font-size: 1rem; margin-bottom: 6px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 2px; }
.price .amount { font-size: 1.9rem; font-weight: 800; }
.price .period { color: var(--text-faint); font-size: .85rem; }
.price-scope { font-size: .82rem; color: var(--text-faint); margin-bottom: 18px; }
.price-list { margin-bottom: 22px; flex: 1; }
.price-list li {
  font-size: .84rem; color: var(--text-muted); padding: 7px 0 7px 20px; position: relative; border-bottom: 1px dashed var(--border);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .btn { width: 100%; }
.pricing-trust {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  text-align: center; font-size: .85rem; font-weight: 600; color: var(--text-muted); margin: 30px 0 0;
}
.pricing-trust [data-icon] { width: 15px; height: 15px; color: var(--good); flex-shrink: 0; }
.pricing-trust [data-icon] svg { width: 100%; height: 100%; display: block; }
.pricing-footnote { text-align: center; font-size: .82rem; color: var(--text-faint); margin: 10px 0 0; }

/* Free tier — styled in PostDeploy Free's own pink brand identity, distinct from Pro's purple */
.price-card-free {
  --free-accent: #f04d76;
  --free-accent-soft: #fdeef2;
  border-color: #fbd4de;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .price-card-free { --free-accent: #ff89a8; --free-accent-soft: rgba(255, 137, 168, .14); border-color: #4a2632; }
}
:root[data-theme="dark"] .price-card-free { --free-accent: #ff89a8; --free-accent-soft: rgba(255, 137, 168, .14); border-color: #4a2632; }
.price-card-free-icon { border-radius: 8px; margin-bottom: 10px; }
.price-card-free .price .amount { color: var(--free-accent); }
.price-card-free .price-list li::before { content: "✓"; color: var(--free-accent); }
.price-card-free .btn-free {
  border-color: #fbd4de; color: var(--free-accent);
}
.price-card-free .btn-free:hover { border-color: var(--free-accent); background: var(--free-accent-soft); color: var(--free-accent); }
:root[data-theme="dark"] .price-card-free .btn-free { border-color: #4a2632; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .price-card-free .btn-free { border-color: #4a2632; }
}

@media (max-width: 1040px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { padding: 72px 0; }
.contact-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.contact h2 { font-size: 1.5rem; }
.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { padding: 88px 0; }

/* ---------- Blog teaser (landing page) ---------- */
.blog-teaser { padding: 20px 0 88px; }
.blog-teaser .post-grid { max-width: 820px; }
.blog-teaser-more { text-align: center; margin: 32px 0 0; }
.blog-teaser-more a { font-weight: 700; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; font-size: .97rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 400; flex-shrink: 0; transition: transform .15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: -6px 0 0; font-size: .93rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-note { font-size: .82rem; color: var(--text-faint); margin: 0; flex: 1; min-width: 240px; }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: .85rem; color: var(--accent); font-weight: 600; }

/* ---------- Sticky CTA bar ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--bg-raised); border-top: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; }
.sticky-cta-inner p { margin: 0; font-size: .92rem; color: var(--text); }
.sticky-cta-inner p strong { color: var(--accent); }
.sticky-cta-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sticky-cta-close {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: transparent;
  color: var(--text-faint); font-size: 1.1rem; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.sticky-cta-close:hover { color: var(--text); border-color: var(--text-faint); }
@media (max-width: 560px) { .sticky-cta-inner p { display: none; } }

/* ---------- Cookie/analytics consent notice ---------- */
/* Shown once (main.js gates on localStorage "pd-analytics-consent") before
   Google Analytics is ever loaded — no tracking happens until "Accept". */
.cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--bg-raised); border-top: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateY(110%); transition: transform .3s ease;
}
.cookie-notice.visible { transform: translateY(0); }
.cookie-notice-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; max-width: 1080px; margin: 0 auto; flex-wrap: wrap;
}
.cookie-notice-inner p { margin: 0; font-size: .88rem; color: var(--text-muted); flex: 1; min-width: 240px; }
.cookie-notice-inner p a { color: var(--accent); font-weight: 600; }
.cookie-notice-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cookie-notice-decline {
  padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: .85rem; font-weight: 600; cursor: pointer;
}
.cookie-notice-decline:hover { color: var(--text); border-color: var(--text-faint); }
.cookie-notice-accept {
  padding: 8px 18px; border-radius: var(--radius-sm); border: none;
  background: var(--accent); color: var(--accent-contrast); font-size: .85rem; font-weight: 700; cursor: pointer;
}
.cookie-notice-accept:hover { background: var(--accent-hover); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }
.problem-grid .reveal:nth-child(2) { transition-delay: .08s; }
.problem-grid .reveal:nth-child(3) { transition-delay: .16s; }
.problem-grid .reveal:nth-child(4) { transition-delay: .24s; }
.feature-grid .reveal:nth-child(3n+2) { transition-delay: .08s; }
.feature-grid .reveal:nth-child(3n+3) { transition-delay: .16s; }
.pricing-grid .reveal:nth-child(2) { transition-delay: .06s; }
.pricing-grid .reveal:nth-child(3) { transition-delay: .12s; }
.pricing-grid .reveal:nth-child(4) { transition-delay: .18s; }
.pricing-grid .reveal:nth-child(5) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- What's New page ---------- */
.page-hero { padding: 72px 0 20px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.page-hero .lede { font-size: 1.08rem; max-width: 52ch; margin: 0 auto 18px; }
.version-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-raised); font-size: .85rem; color: var(--text-muted);
}
.version-pill code { background: transparent; padding: 0; font-weight: 600; }

.releases { padding: 36px 0 88px; }
.release-list { position: relative; max-width: 760px; margin: 0 auto; padding: 0 0 0 34px; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.release-list::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.release {
  position: relative; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px 26px;
}
.release::before {
  content: ""; position: absolute; left: -30px; top: 28px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.release--latest { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-md); }
.release--latest::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.release-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.release-head .feature-badge { margin-left: 0; }
.release-version { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; margin: 0; letter-spacing: 0; }
.release-items { display: flex; flex-direction: column; gap: 14px; }
.release-item { display: flex; gap: 12px; align-items: flex-start; }
.release-item p { margin: 0; font-size: .95rem; }
.release-item p strong { color: var(--text); }
.tag {
  flex-shrink: 0; min-width: 54px; text-align: center; padding: 2px 9px; margin-top: 2px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.tag--new { color: var(--accent); background: var(--accent-soft); }
.tag--fixed { color: color-mix(in srgb, var(--good) 70%, var(--text)); background: color-mix(in srgb, var(--good) 14%, transparent); }
.releases-foot { max-width: 760px; margin: 40px auto 0; text-align: center; }
.releases-actions { justify-content: center; }
.text-link { color: var(--accent); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .release-list { padding-left: 26px; }
  .release-list::before { left: 5px; }
  .release::before { left: -26px; }
  .release { padding: 20px 18px; }
  .release-item { flex-direction: column; gap: 6px; }
}

/* ---------- Docs page ---------- */
.docs { padding: 28px 0 88px; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-toc { position: sticky; top: 92px; }
.docs-toc-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 10px; }
.docs-toc a { display: block; padding: 6px 12px; border-left: 2px solid var(--border); color: var(--text-muted); font-size: .9rem; }
.docs-toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.docs-toc a.sub { padding-left: 24px; font-size: .84rem; }
.docs-body { min-width: 0; max-width: 780px; }
.docs-body > section { margin-bottom: 60px; scroll-margin-top: 90px; }
.docs-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: .6em; }
.docs-body h3 { font-size: 1.02rem; margin: 30px 0 12px; }
.docs-body p, .docs-body li { font-size: .96rem; }
.docs-body ul, .docs-body ol { margin: 0 0 1em; padding-left: 1.3em; color: var(--text-muted); }
.docs-body ul { list-style: disc; }
.docs-body ol { list-style: decimal; }
.docs-body li { margin-bottom: .4em; }
.docs-body li strong, .docs-body p strong { color: var(--text); }
.docs-note {
  border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.2em;
}
.docs-note p { margin: 0; color: var(--text); font-size: .92rem; }
.docs-search {
  width: 100%; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-raised); color: var(--text); font: inherit; margin: 0 0 8px;
}
.docs-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.docs-group-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin: 30px 0 10px; }
.docs-group .faq-item { margin-bottom: 10px; scroll-margin-top: 90px; }
.doc-issue .issue-body { padding: 0 0 6px; }
.doc-issue .issue-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 2px 0 6px; }
.doc-issue .issue-body p { padding-bottom: 0; margin: 0 0 12px; font-size: .94rem; }
.doc-issue .issue-body ul, .doc-issue .issue-body ol { margin-bottom: 14px; }
.doc-issue .issue-body li { font-size: .94rem; }
.docs-empty { display: none; text-align: center; color: var(--text-muted); padding: 18px 0; }
.docs-empty.show { display: block; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-toc { position: static; margin-bottom: 28px; }
  .docs-toc nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .docs-toc a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
  .docs-toc a.sub { display: none; }
  .docs-toc-title { display: none; }
}

/* Docs: code blocks */
.docs-body pre { background: var(--accent-soft); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin: 8px 0 10px; overflow-x: auto; }
.docs-body pre code { background: none; padding: 0; color: var(--text); font-size: .82rem; white-space: pre; }
.docs-body code, .doc-issue summary code { overflow-wrap: anywhere; }
.docs-body pre code { overflow-wrap: normal; }

/* Legal pages (privacy/terms/refund): single-column, reuses .docs-body prose styles */
.legal { padding: 28px 0 88px; }
.legal .docs-body { max-width: 760px; margin: 0 auto; }
.legal .docs-body > section { margin-bottom: 44px; }
.legal-updated { color: var(--text-faint); font-size: .85rem; margin: -6px 0 30px; }
.legal-placeholder { background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 30px; }
.legal-placeholder p { margin: 0; color: var(--text); font-size: .88rem; }

/* Blog listing + post cards */
.blog-listing { padding: 28px 0 88px; }
.blog-empty { max-width: 760px; margin: 0 auto; padding: 48px 24px; text-align: center; color: var(--text-faint); border: 1px dashed var(--border); border-radius: var(--radius-md); }
.post-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-raised); box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card-image { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--accent-soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-date { font-size: .8rem; color: var(--text-faint); font-family: var(--font-mono); }
.post-card-title { margin: 8px 0 6px; font-size: 1.1rem; color: var(--text); }
.post-card-excerpt { margin: 0 0 14px; font-size: .9rem; color: var(--text-muted); flex: 1; }
.post-card-read {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: auto; padding: 8px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 700;
  transition: background .15s ease, gap .15s ease;
}
.post-card-read svg { width: 15px; height: 15px; transition: transform .15s ease; }
.post-card:hover .post-card-read { background: var(--accent); color: var(--accent-contrast); gap: 9px; }
.post-card:hover .post-card-read svg { transform: translateX(2px); }

/* Single blog post — reuses .legal/.docs-body's single-column prose styles */
.post-hero { padding: 8px 0 0; }
.post-hero-image {
  max-width: 880px; margin: 0 auto 8px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 1200 / 630; background: var(--accent-soft);
}
.post-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-meta { color: var(--text-faint); font-size: .85rem; margin: -6px 0 30px; }
.post-back-link { display: inline-block; margin-bottom: 24px; font-size: .9rem; color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .post-hero-image { border-radius: var(--radius-md); } }

/* "Works with" strip — plain text wordmarks (not the actual trademarked logo
   marks: we don't have a verified, current source for those assets, and a
   stale or incorrect rendering of someone else's logo is worse than none). */
.works-with { padding: 18px 0 26px; }
.works-with-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.works-with-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.works-with-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
.works-with-list li { font-size: .92rem; font-weight: 600; color: var(--text-muted); }
.works-with-sep { color: var(--border); font-weight: 400; }
@media (max-width: 640px) {
  .works-with-inner, .works-with-list { justify-content: center; }
}

.section-note { margin: 14px 0 0; font-size: .92rem; color: var(--text-muted); max-width: 640px; margin-left: auto; margin-right: auto; }

/* Gallery — real Pro admin screenshots */
.gallery { padding: 88px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item {
  display: block; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--bg-raised); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.gallery-caption { display: block; padding: 12px 16px; font-size: .86rem; font-weight: 600; color: var(--text); }
.gallery-note { margin: 22px 0 0; text-align: center; font-size: .82rem; color: var(--text-faint); }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
