/* VerbaPilot AI website (v2: "software company" look, light).
   Palette taken from the desktop app itself: ink #16171a, electric blue, Q&A teal.
   Tokens and rules: design-system/verbapilot-ai/MASTER.md */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('/assets/fonts/ibm-plex-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('/assets/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  /* Brand */
  --color-ink: #16171a; /* the app's own background */
  --color-ink-2: #23252b;
  --color-primary: #2457e6; /* app accent #4c8dff, darkened for 5:1 on white */
  --color-primary-hover: #1b45bd;
  --color-primary-soft: #edf2fe;
  --color-on-primary: #ffffff;
  --color-teal: #0b7f73; /* app Live Q&A colour, darkened for text */
  --color-teal-soft: #e5f4f2;

  /* Neutrals (warm grey, not blue-tinted) */
  --color-background: #fafaf8;
  --color-card: #ffffff;
  --color-foreground: #2b2e35;
  --color-heading: #121316;
  --color-muted: #f1f1ed;
  --color-muted-foreground: #5c606b;
  --color-border: #e4e4df;
  --color-border-strong: #cfcfc8;
  --color-ring: #2457e6;
  --color-success: #13803a;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.5rem;

  --shadow-sm: 0 1px 2px rgba(18, 19, 22, 0.06);
  --shadow-md: 0 2px 4px rgba(18, 19, 22, 0.05), 0 6px 16px rgba(18, 19, 22, 0.06);
  --shadow-window: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px -18px rgba(18, 19, 22, 0.35),
    0 8px 20px -8px rgba(18, 19, 22, 0.2);

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1180px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-sm);
  color: var(--color-heading);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);
  font-weight: 650;
}

h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.5rem);
  font-weight: 650;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-md);
  text-wrap: pretty;
}

a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}

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

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--color-ink);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.icon {
  flex-shrink: 0;
}

.mono {
  font-family: var(--mono);
  font-feature-settings: 'zero' 0;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9em;
  padding: 0.12em 0.45em;
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 600;
  color: var(--color-heading);
  background: var(--color-card);
  border: 1px solid var(--color-border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
}

/* --- Buttons --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.btn-primary,
.btn-blue {
  color: var(--color-on-primary);
  background: var(--color-primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 1px 2px rgba(18, 19, 22, 0.2);
}

.btn-primary:hover,
.btn-blue:hover {
  color: var(--color-on-primary);
  background: var(--color-primary-hover);
}

.btn-secondary {
  color: var(--color-heading);
  background: var(--color-card);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--color-heading);
  border-color: var(--color-heading);
}

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

.btn-ghost:hover {
  color: var(--color-heading);
  background: var(--color-muted);
}

.btn-lg {
  min-height: 50px;
  padding: 0.75rem 1.4rem;
  font-size: 1.02rem;
}

.btn[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
}

/* --- Header ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  font-size: 1.08rem;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.015em;
}

.brand b {
  font-weight: 650;
  color: var(--color-primary);
}

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

.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: var(--space-md);
}

.site-nav ul {
  display: flex;
  gap: 0.15rem;
  margin: 0 0 0 var(--space-md);
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 150ms;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current='page'] {
  color: var(--color-heading);
}

.site-nav ul a[aria-current='page'] {
  box-shadow: 0 -2px 0 var(--color-primary) inset;
  border-radius: 0;
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-heading);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: 64px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding: var(--space-md) 1.25rem;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    margin: 0;
  }

  .site-nav ul a[aria-current='page'] {
    box-shadow: 3px 0 0 var(--color-primary) inset;
  }

  .nav-actions {
    flex-direction: column;
    margin: 0;
  }
}

/* --- Sections -------------------------------------------------------------------- */
.section {
  padding: var(--space-3xl) 0;
}

.section-tight {
  padding: var(--space-2xl) 0;
}

.section-muted {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  max-width: 720px;
  margin: 0 0 var(--space-xl);
}

.section-head.center,
.text-center .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--color-muted-foreground);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: var(--space-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.lead {
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.24rem);
  line-height: 1.6;
  color: var(--color-muted-foreground);
}

/* --- Hero ------------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-background);
  /* faint engineering grid, fading out */
  background-image:
    linear-gradient(to bottom, rgba(250, 250, 248, 0) 0%, var(--color-background) 85%),
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size:
    100% 100%,
    32px 32px,
    32px 32px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

.hero .container > .text-center,
.hero.text-center {
  text-align: center;
}

.hero-copy {
  max-width: 820px;
}

.hero-home .hero-copy {
  margin: 0 auto;
  text-align: center;
}

.hero-home .lead {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .highlight {
  color: var(--color-primary);
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--space-md);
  padding: 0.3rem 0.8rem 0.3rem 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-heading);
  text-decoration: none;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.release-pill:hover {
  color: var(--color-heading);
  border-color: var(--color-border-strong);
}

.release-pill .tag {
  padding: 0.12rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-ink);
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: var(--space-md) 0;
}

.hero-home .hero-actions {
  justify-content: center;
}

.hero-meta {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-muted-foreground);
}

.hero-meta span + span::before {
  content: '·';
  margin: 0 0.6rem;
  color: var(--color-border-strong);
}

/* Desktop scene: a meeting with the (dark) app window docked beside it */
.desktop {
  max-width: 1060px;
  margin: var(--space-xl) auto 0;
  overflow: hidden;
  background: #e9e9e4;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  box-shadow: 0 30px 70px -30px rgba(18, 19, 22, 0.35), 0 10px 24px -12px rgba(18, 19, 22, 0.18);
}

.desktop-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 40px;
  padding: 0 14px;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  background: #f4f4f1;
  border-bottom: 1px solid var(--color-border);
}

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

.dots i {
  width: 11px;
  height: 11px;
  background: #d6d6d0;
  border-radius: 50%;
}

.desktop-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #b42318;
  font-weight: 600;
}

.rec::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #d92d20;
  border-radius: 50%;
}

.desktop-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  height: 520px;
  padding: 18px;
}

.meeting {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-width: 0;
}

.slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7% 8%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.slide-kicker {
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.slide h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  font-weight: 650;
}

.slide ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(0.92rem, 0.8rem + 0.4vw, 1.08rem);
  color: var(--color-foreground);
}

.slide li {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--color-muted);
}

.slide li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  background: var(--color-primary);
  border-radius: 1px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tiles span {
  display: grid;
  place-items: center;
  height: 64px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #3a3d45;
  border-radius: 8px;
}

.tiles span:nth-child(2) {
  background: #4d5361;
}

.tiles span:nth-child(3) {
  background: #2f3a4f;
  box-shadow: 0 0 0 2px var(--color-teal);
}

.tiles span.you {
  background: #5b606c;
}

.caption {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  max-width: 92%;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  color: #fff;
  white-space: nowrap;
  background: rgba(18, 19, 22, 0.82);
  border-radius: 6px;
}

.caption b {
  color: #7fe0d4;
  font-weight: 600;
}

.app-window {
  margin: 0;
  overflow: hidden;
  background: var(--color-ink);
  border-radius: 10px;
  box-shadow: var(--shadow-window);
}

.app-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 860px) {
  .desktop-body {
    grid-template-columns: 1fr;
    height: auto;
  }

  .meeting {
    display: none;
  }

  .app-window {
    max-width: 380px;
    max-height: 520px;
    margin: 0 auto;
  }

  .desktop-title {
    font-size: 0.7rem;
  }
}

/* "Works alongside" strip */
.works-with {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.works-with .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2rem;
}

.works-with p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.works-with ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #8a8d95;
}

/* Product shots elsewhere (portrait app window) */
.glass-frame,
.feature-media img {
  overflow: hidden;
  background: var(--color-ink);
  border-radius: 12px;
  box-shadow: var(--shadow-window);
}

/* --- Cards & grids --------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.card {
  padding: var(--space-md);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

a.card:hover {
  color: inherit;
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.card p {
  color: var(--color-muted-foreground);
}

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

/* Feature grid: one bordered panel split into cells (no floating cards) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.feature-grid > * {
  padding: var(--space-lg) var(--space-md);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.feature-grid > *:nth-child(3n) {
  border-right: 0;
}

.feature-grid > *:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.feature-grid p {
  margin: 0;
  color: var(--color-muted-foreground);
}

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

  .feature-grid > * {
    border-right: 1px solid var(--color-border) !important;
    border-bottom: 1px solid var(--color-border) !important;
  }

  .feature-grid > *:nth-child(2n) {
    border-right: 0 !important;
  }

  .feature-grid > *:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }
}

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

  .feature-grid > * {
    border-right: 0 !important;
    border-bottom: 1px solid var(--color-border) !important;
  }

  .feature-grid > *:last-child {
    border-bottom: 0 !important;
  }
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 8px;
}

.icon-badge.teal {
  color: var(--color-teal);
  background: var(--color-teal-soft);
}

.icon-badge.ink {
  color: #fff;
  background: var(--color-ink);
}

/* Keyboard strip */
.kbd-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.25rem;
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--color-muted-foreground);
}

.kbd-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.kbd-strip li span {
  margin-left: 0.35rem;
}

/* --- Feature rows (text + screenshot) -------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--color-border);
}

.feature-row.reverse .feature-media {
  order: -1;
}

.feature-media {
  display: flex;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.feature-media img {
  width: 100%;
  max-width: 340px;
}

.check-list {
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.check-list .icon {
  margin-top: 4px;
  color: var(--color-teal);
}

@media (max-width: 860px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }
}

/* Spec sheet */
.spec {
  margin: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.spec-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  background: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.spec dl {
  margin: 0;
}

.spec dl > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.spec dl > div:last-child {
  border-bottom: 0;
}

.spec dt {
  font-weight: 600;
  color: var(--color-heading);
}

.spec dd {
  margin: 0;
  color: var(--color-muted-foreground);
}

@media (max-width: 520px) {
  .spec dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* --- Steps ----------------------------------------------------------------------- */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: calc(var(--space-md) + 40px);
}

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* --- Video facade (click to play) ------------------------------------------------ */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-ink);
  border-radius: 12px;
  box-shadow: var(--shadow-window);
}

.video img,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(18, 19, 22, 0.05), rgba(18, 19, 22, 0.5));
  border: 0;
  cursor: pointer;
}

.video-play span.play-circle {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--color-ink);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 200ms var(--ease);
}

.video-play:hover span.play-circle {
  transform: scale(1.06);
}

.video-play .video-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-weight: 600;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.video-wrap {
  max-width: 940px;
  margin: 0 auto;
}

/* --- Pricing --------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
}

.price-card h3 {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.price-card.featured {
  border-color: var(--color-ink);
  box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-md);
}

.price-card .badge {
  position: absolute;
  top: -12px;
  left: var(--space-lg);
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-ink);
  border-radius: 999px;
}

.badge.soft {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.badge.orange,
.badge.teal {
  color: var(--color-teal);
  background: var(--color-teal-soft);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.75rem 0 0.25rem;
}

.price strong {
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--color-heading);
}

.price span {
  color: var(--color-muted-foreground);
}

.price-alt {
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
}

.price-card .check-list {
  flex: 1;
  font-size: 0.95rem;
}

.price-card .btn {
  width: 100%;
}

.compare-table-wrap {
  overflow-x: auto;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.compare-table thead th {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  background: var(--color-muted);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table .yes {
  margin: 0 auto;
  color: var(--color-teal);
}

.compare-table .no {
  margin: 0 auto;
  color: #a7a9ae;
}

/* --- FAQ ------------------------------------------------------------------------- */
.faq {
  max-width: 820px;
  border-top: 1px solid var(--color-border);
}

.section-head.center + .faq,
.text-center + .faq {
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--color-border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  min-height: 56px;
  padding: 0.95rem 0;
  font-weight: 600;
  color: var(--color-heading);
  list-style: none;
  cursor: pointer;
}

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

.faq summary .icon {
  color: var(--color-muted-foreground);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details p {
  max-width: 700px;
  color: var(--color-muted-foreground);
}

/* --- CTA band (ink, like the app) ------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  color: #c9ccd3;
  background-color: var(--color-ink);
  background-image:
    radial-gradient(circle at 50% 120%, rgba(76, 141, 255, 0.28), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size:
    100% 100%,
    32px 32px,
    32px 32px;
  border-radius: 14px;
}

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

.cta-band p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: #b4b8c1;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.cta-band .btn-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.cta-band .btn-secondary:hover {
  color: #fff;
  border-color: #fff;
}

/* --- Blog ------------------------------------------------------------------------ */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.post-card .cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

.post-card .cover-fallback {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: var(--color-primary);
  background-color: var(--color-muted);
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--color-border);
}

.post-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-md);
}

.post-card h3 {
  font-size: 1.1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin-top: auto;
  font-size: 0.84rem;
  color: var(--color-muted-foreground);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
}

.tags a {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.tags a:hover,
.tags a[aria-current='page'] {
  color: #fff;
  background: var(--color-ink);
  border-color: var(--color-ink);
}

.article {
  max-width: 740px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: var(--space-lg);
}

.article-header .post-meta {
  margin-top: var(--space-sm);
}

.article-cover {
  margin: 0 0 var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.prose {
  font-size: 1.08rem;
  line-height: 1.75;
}

.prose h2 {
  margin-top: var(--space-xl);
  font-size: 1.6rem;
}

.prose h3 {
  margin-top: var(--space-lg);
  font-size: 1.25rem;
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose img {
  margin: var(--space-md) auto;
  border-radius: 10px;
}

.prose blockquote {
  margin: var(--space-md) 0;
  padding: 0.5rem 1.25rem;
  color: var(--color-muted-foreground);
  background: var(--color-muted);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
}

.prose code {
  padding: 0.1em 0.35em;
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--color-muted);
  border-radius: 5px;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  color: #e6e6e6;
  background: var(--color-ink);
  border-radius: 10px;
}

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

.prose table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 0 0 var(--space-md);
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.prose th {
  background: var(--color-muted);
}

.breadcrumbs {
  margin-bottom: var(--space-md);
  font-size: 0.88rem;
  color: var(--color-muted-foreground);
}

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

.hero .breadcrumbs ol,
.text-center .breadcrumbs ol {
  justify-content: center;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.4rem;
  color: var(--color-border-strong);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--space-xl);
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto var(--space-md);
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-foreground);
  background: var(--color-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition:
    border-color 160ms,
    box-shadow 160ms;
}

.input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 87, 230, 0.15);
}

.empty-state {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: var(--color-muted-foreground);
}

.empty-state .icon-badge {
  margin: 0 auto 1rem;
}

/* --- Download -------------------------------------------------------------------- */
.os-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.os-card.recommended {
  border-color: var(--color-ink);
  box-shadow: 0 0 0 1px var(--color-ink);
}

.os-card .btn {
  margin-top: auto;
  width: 100%;
}

/* --- Legal ----------------------------------------------------------------------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
}

.legal .updated {
  color: var(--color-muted-foreground);
}

/* --- Footer ---------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) 0 var(--space-lg);
  font-size: 0.94rem;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

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

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

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: var(--color-muted-foreground);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--color-heading);
}

.footer-brand p {
  max-width: 340px;
  margin-top: 0.8rem;
  color: var(--color-muted-foreground);
}

.footer-title {
  margin-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  font-size: 0.86rem;
  color: var(--color-muted-foreground);
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  margin: 0;
}

.pay-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --- WhatsApp chat button ---------------------------------------------------------- */
.wa-chat {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.1rem 0 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  background: #128c4b; /* WhatsApp green, darkened for white text */
  border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(18, 140, 75, 0.6), 0 2px 6px rgba(18, 19, 22, 0.15);
  transition:
    background-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.wa-chat:hover {
  color: #fff;
  background: #0e7a40;
  transform: translateY(-1px);
}

.wa-chat svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 620px) {
  .wa-chat {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }

  .wa-chat span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

.admin-page .wa-chat {
  display: none;
}

@media print {
  .wa-chat,
  .site-header,
  .site-footer {
    display: none;
  }
}

/* --- Motion ---------------------------------------------------------------------- */
/* Subtle reveal; content is visible without JS (the class is added by site.js). */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 360ms var(--ease),
    transform 360ms var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Utilities ------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.muted {
  color: var(--color-muted-foreground);
}

.small {
  font-size: 0.9rem;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.h3 {
  font-size: 1.2rem;
}

.tags.center,
.hero-actions.center {
  justify-content: center;
}

.page-count {
  align-self: center;
}

.article.article-wide {
  max-width: 960px;
}

/* --- Admin ----------------------------------------------------------------------- */
.admin-head h1 {
  margin-bottom: 0.25rem;
  font-size: 2rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.admin-tabs [role='tab'] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-muted-foreground);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  transition: color 200ms, border-color 200ms;
}

.admin-tabs [role='tab'][aria-selected='true'] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.admin-tabs [role='tab']:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.admin-msg {
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.admin-msg.ok {
  color: #166534;
  background: #dcfce7;
}

.admin-msg.error {
  color: #991b1b;
  background: #fee2e2;
}

.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-sm);
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}

.admin-table thead th {
  font-size: 0.8rem;
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-muted);
}

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

.row-actions {
  white-space: nowrap;
  text-align: right;
}

.admin-form {
  display: grid;
  gap: var(--space-md);
}

.admin-form h2 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.field small {
  font-weight: 400;
  color: var(--color-muted-foreground);
}

textarea.input {
  min-height: auto;
  line-height: 1.5;
  resize: vertical;
}

.input.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.editor-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.editor-tabs [aria-pressed='true'] {
  color: var(--color-primary);
  background: #eff6ff;
}

.editor-preview {
  min-height: 300px;
  padding: var(--space-md);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn.danger {
  margin-left: auto;
  color: #b91c1c;
}

[hidden] {
  display: none !important;
}

.admin-form,
.admin-form .grid > *,
[role='tabpanel'] {
  min-width: 0;
}

.field {
  align-content: start;
}

@media (max-width: 640px) {
  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3),
  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4) {
    display: none;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.6rem 0.75rem;
  }
}

/* Icons inside running text stay inline */
p a .icon,
.release-pill .icon,
.lead .icon {
  display: inline-block;
  vertical-align: -0.15em;
}

/* A feature row used directly as a section container keeps the container gutters */
.container.feature-row {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section > .container.feature-row {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-meta span {
  white-space: nowrap;
}
