/* ==========================================================================
   ProductivityPilot — design system
   Lightweight, system-font, no frameworks. Single source of brand truth.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Brand */
  --brand: #8b5cf6;
  --brand-dark: #7c3aed;
  --brand-bright: #a78bfa;
  --brand-soft: #1f1b2e;
  --accent: #22d3ee;
  --accent-soft: #0f2730;

  /* Surfaces */
  --bg: #09090f;
  --surface: #12121a;
  --surface-2: #181826;
  --border: #26262e;
  --border-strong: #33333d;

  /* Text */
  --text: #f4f4f5;
  --text-soft: #a1a1aa;
  --text-faint: #71717a;

  /* Feedback */
  --good: #34d399;
  --good-soft: rgba(52, 211, 153, 0.08);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.08);

  /* Shape & depth */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --glow: 0 0 32px rgba(139, 92, 246, 0.18);

  /* Layout */
  --container: 1080px;
  --prose: 720px;
  --header-h: 60px;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

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

::selection {
  background: var(--brand-soft);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* --------------------------------------------------------------------------
   Header & nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

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

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

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav a[aria-current="page"] {
  color: var(--brand-bright);
  font-weight: 600;
}

.nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 16px;
    gap: 2px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    border-radius: var(--radius-sm);
  }

  .nav .btn {
    margin: 8px 0 0;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.btn-accent {
  background: var(--accent);
  color: #1c1917;
}

.btn-accent:hover {
  filter: brightness(0.96);
  color: #1c1917;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Home hero (Linear/Vercel-style)
   -------------------------------------------------------------------------- */
.hero {
  padding: 72px 0 24px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-bright);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.12);
}

.hero-badge-caret {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.hero h1 .grad {
  background: linear-gradient(90deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-trust {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* Terminal visual under the hero */
.hero-visual {
  max-width: 780px;
  margin: 44px auto 0;
}

.terminal {
  background: #0c0c14;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--glow), var(--shadow-md);
  overflow: hidden;
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #101018;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-left: 8px;
}

.terminal-body {
  padding: 18px 20px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-soft);
  overflow-x: auto;
}

.terminal-body .prompt {
  color: var(--brand-bright);
}

.terminal-body .ok {
  color: var(--good);
}

.terminal-body .warn {
  color: var(--bad);
}

.terminal-body .dim {
  color: var(--text-faint);
}

.terminal-body .out {
  color: var(--text);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--brand-bright);
  vertical-align: -2px;
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-bright);
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Mono eyebrow labels for section headings */
.section-head h2.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Sections & headings
   -------------------------------------------------------------------------- */
.section {
  padding: 32px 0 48px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.section-head h2 {
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-head a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Post cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  box-shadow: var(--shadow-md), 0 0 24px rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.925rem;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.card-hero {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #17142a, #101018);
  border-bottom: 1px solid var(--border);
  color: var(--brand-bright);
}

.card-hero svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Category pill
   -------------------------------------------------------------------------- */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--brand-soft);
  color: var(--brand-bright);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pill:hover {
  background: var(--brand);
  color: #fff;
}

.pill--reviews {
  background: var(--brand-soft);
  color: var(--brand-bright);
}

.pill--comparisons {
  background: #231030;
  color: #f0abfc;
  border-color: rgba(240, 171, 252, 0.25);
}

.pill--best-of {
  background: #1c1a10;
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.25);
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-faint);
  padding: 20px 0 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--text-faint);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-bright);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Page header (standard pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding: 40px 0 8px;
}

.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.2;
}

.page-head .lede {
  color: var(--text-soft);
  max-width: 640px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Article layout
   -------------------------------------------------------------------------- */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 40px;
  align-items: start;
}

.post-main {
  min-width: 0;
}

.post-header {
  padding: 32px 0 8px;
}

.post-header h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--text-faint);
  font-size: 0.875rem;
}

.post-meta .sep {
  color: var(--border-strong);
}

.post-verdict {
  margin: 24px 0 0;
  background: var(--brand-soft);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.95rem;
}

.post-verdict strong {
  color: var(--brand-bright);
}

/* Table of contents */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: 0.875rem;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
}

.toc-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 10px;
}

.toc nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.toc nav li {
  margin: 0;
}

.toc nav a {
  display: block;
  padding: 5px 12px;
  color: var(--text-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.toc nav a:hover {
  color: var(--brand-bright);
}

.toc nav a.active {
  color: var(--brand-bright);
  border-left-color: var(--brand);
  font-weight: 600;
}

.toc nav li li a {
  padding-left: 24px;
  font-size: 0.82rem;
}

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

  .toc {
    position: static;
    max-height: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
  }

  .toc nav {
    display: none;
  }

  .toc.open nav {
    display: block;
  }

  .toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--text);
    padding: 0;
  }
}

@media (min-width: 981px) {
  .toc-toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Prose (post / page content)
   -------------------------------------------------------------------------- */
.prose {
  max-width: var(--prose);
}

.prose h2 {
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.prose h3 {
  font-size: 1.15rem;
  margin: 30px 0 10px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--brand);
}

.prose blockquote {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
}

.prose code {
  background: #16161f;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.88em;
  font-family: var(--font-mono);
}

.prose pre {
  background: #0c0c14;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 0 0 18px;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0 0 20px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.prose th {
  background: #16161f;
  font-weight: 600;
}

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.prose .aff-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: 1px;
  white-space: nowrap;
}

/* Callout (used for "honest take" asides) */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 0.95rem;
}

.callout strong {
  color: #fbbf24;
}

/* Pros / cons grid */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros-cons > div {
  border-radius: var(--radius);
  padding: 16px 18px;
}

.pros-cons h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.pros-cons ul {
  margin: 0;
  padding-left: 20px;
}

.pros-cons li {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.pros {
  background: var(--good-soft);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.pros h4 {
  color: var(--good);
}

.pros li::marker {
  color: var(--good);
}

.cons {
  background: var(--bad-soft);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.cons h4 {
  color: var(--bad);
}

.cons li::marker {
  color: var(--bad);
}

/* Recommendation / verdict box */
.verdict-box {
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, #17142a, #12121a);
  border-radius: var(--radius);
  padding: 22px;
  margin: 28px 0;
}

.verdict-box h4 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-bright);
}

.verdict-box .verdict-tool {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.verdict-box p {
  margin: 0 0 14px;
  font-size: 0.95rem;
}

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 10px;
  padding: 0 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  font-size: 0.98rem;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq details p {
  font-size: 0.93rem;
  padding: 10px 0 14px;
  margin: 0;
}

/* Disclosure note */
.disclosure-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 24px 0;
}

.disclosure-note svg {
  flex: none;
  margin-top: 2px;
}

/* Author box */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 32px 0 0;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
}

.author-box h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.author-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* Related posts */
.related h3 {
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Subscribe boxes
   -------------------------------------------------------------------------- */
.subscribe-box {
  background: linear-gradient(135deg, #6d28d9, #0e7490);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin: 36px 0 0;
  text-align: center;
  box-shadow: var(--glow);
}

.subscribe-box h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #fff;
}

.subscribe-box p {
  margin: 0 auto 18px;
  max-width: 460px;
  font-size: 0.92rem;
  opacity: 0.92;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #1a1a24;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.subscribe-form input[type="email"]:focus-visible {
  outline: 3px solid var(--accent);
}

.subscribe-form .btn {
  background: #fff;
  color: var(--brand-dark);
  white-space: nowrap;
}

.subscribe-form .btn:hover {
  background: #e4e4e7;
}

.subscribe-note {
  font-size: 0.78rem;
  opacity: 0.8;
  margin: 12px 0 0;
}

.subscribe-success {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  max-width: 420px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Forms (contact)
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin-top: 24px;
}

.form-grid label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
}

.form-grid input:focus-visible,
.form-grid textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

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

.footer-brand p {
  color: var(--text-soft);
  font-size: 0.88rem;
  max-width: 340px;
  margin: 10px 0 0;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 12px;
}

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

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

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

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Consent banner
   -------------------------------------------------------------------------- */
.consent-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: none;
  font-size: 0.88rem;
  line-height: 1.5;
}

.consent-banner.show {
  display: block;
}

.consent-banner a {
  color: var(--brand-bright);
}

.consent-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.consent-actions .btn {
  background: var(--brand);
  color: #fff;
}

.consent-actions .btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

/* --------------------------------------------------------------------------
   Redirect (go/) pages
   -------------------------------------------------------------------------- */
.go-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}

.go-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px 32px;
  max-width: 460px;
  width: 100%;
}

.go-card h1 {
  font-size: 1.3rem;
  margin: 16px 0 8px;
}

.go-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.go-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

/* --------------------------------------------------------------------------
   Misc utilities
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.category-desc {
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
