/* ==========================================================================
   Opsly - product site
   Palette mirrors the app's MD3 blue theme (artifacts/it-task-manager/src/index.css)
   ========================================================================== */

/* ---------- Tokens: light (default) ---------- */
:root {
  --bg: hsl(214 30% 98%);
  --bg-elevated: hsl(0 0% 100%);
  --fg: hsl(214 30% 11%);
  --fg-muted: hsl(214 18% 46%);
  --card: hsl(0 0% 100%);
  --card-border: hsl(214 20% 91%);
  --border: hsl(214 20% 90%);
  --primary: hsl(211 92% 50%);
  --primary-hover: hsl(211 92% 44%);
  --primary-fg: hsl(0 0% 100%);
  --accent-bg: hsl(211 80% 94%);
  --accent-fg: hsl(211 80% 24%);
  --teal: hsl(188 72% 42%);
  --green: hsl(142 56% 42%);
  --violet: hsl(271 68% 56%);
  --amber: hsl(38 90% 46%);

  --nav-bg: hsl(214 30% 98% / 0.78);
  --glow-a: hsl(211 92% 50% / 0.16);
  --glow-b: hsl(188 72% 42% / 0.12);
  --grid-line: hsl(214 20% 60% / 0.16);
  --shot-frame: hsl(214 20% 94%);

  --shadow-sm: 0 1px 2px hsl(214 30% 11% / 0.06);
  --shadow-md: 0 4px 12px -2px hsl(214 30% 11% / 0.08), 0 2px 4px -2px hsl(214 30% 11% / 0.05);
  --shadow-lg: 0 18px 40px -12px hsl(214 30% 11% / 0.18), 0 6px 14px -8px hsl(214 30% 11% / 0.10);

  --radius: 0.75rem;
  --radius-lg: 1.125rem;
  --maxw: 1120px;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;

  color-scheme: light;
}

/* ---------- Tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: hsl(214 18% 8%);
    --bg-elevated: hsl(214 18% 11%);
    --fg: hsl(214 20% 94%);
    --fg-muted: hsl(214 14% 60%);
    --card: hsl(214 18% 11%);
    --card-border: hsl(214 14% 20%);
    --border: hsl(214 14% 20%);
    --primary: hsl(211 90% 68%);
    --primary-hover: hsl(211 90% 76%);
    --primary-fg: hsl(214 30% 8%);
    --accent-bg: hsl(211 50% 22%);
    --accent-fg: hsl(211 85% 85%);
    --teal: hsl(188 65% 55%);
    --green: hsl(142 52% 55%);
    --violet: hsl(271 70% 72%);
    --amber: hsl(38 90% 62%);

    --nav-bg: hsl(214 18% 8% / 0.72);
    --glow-a: hsl(211 92% 55% / 0.22);
    --glow-b: hsl(188 72% 50% / 0.14);
    --grid-line: hsl(214 20% 70% / 0.10);
    --shot-frame: hsl(214 16% 15%);

    --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.4);
    --shadow-md: 0 4px 12px -2px hsl(0 0% 0% / 0.45);
    --shadow-lg: 0 20px 48px -14px hsl(0 0% 0% / 0.7), 0 0 0 1px hsl(214 14% 24%);

    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: hsl(214 18% 8%);
  --bg-elevated: hsl(214 18% 11%);
  --fg: hsl(214 20% 94%);
  --fg-muted: hsl(214 14% 60%);
  --card: hsl(214 18% 11%);
  --card-border: hsl(214 14% 20%);
  --border: hsl(214 14% 20%);
  --primary: hsl(211 90% 68%);
  --primary-hover: hsl(211 90% 76%);
  --primary-fg: hsl(214 30% 8%);
  --accent-bg: hsl(211 50% 22%);
  --accent-fg: hsl(211 85% 85%);
  --teal: hsl(188 65% 55%);
  --green: hsl(142 52% 55%);
  --violet: hsl(271 70% 72%);
  --amber: hsl(38 90% 62%);

  --nav-bg: hsl(214 18% 8% / 0.72);
  --glow-a: hsl(211 92% 55% / 0.22);
  --glow-b: hsl(188 72% 50% / 0.14);
  --grid-line: hsl(214 20% 70% / 0.10);
  --shot-frame: hsl(214 16% 15%);

  --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.4);
  --shadow-md: 0 4px 12px -2px hsl(0 0% 0% / 0.45);
  --shadow-lg: 0 20px 48px -14px hsl(0 0% 0% / 0.7), 0 0 0 1px hsl(214 14% 24%);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  /* Safari and Chromium compatibility */
  -webkit-text-size-adjust: 100%;
  /* Standards-based implementation */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }

code, pre { font-family: var(--font-mono); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 1rem; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--alt { background: var(--bg-elevated); border-block: 1px solid var(--border); }

.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 0.85rem;
}

.lede {
  color: var(--fg-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease,
              transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--primary-hover); }

.btn--ghost {
  background: var(--card);
  color: var(--fg);
  border-color: var(--card-border);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--sm { padding: 0.5rem 0.85rem; font-size: 0.875rem; }

.btn svg { flex-shrink: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav[data-stuck='true'] {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav__links {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}
.nav__links a {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav__links a:hover {
  color: var(--fg);
  background: var(--accent-bg);
  text-decoration: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }

.theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle .icon-moon { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 780px;
  background:
    radial-gradient(58% 52% at 50% 22%, var(--glow-a), transparent 70%),
    radial-gradient(38% 40% at 82% 8%, var(--glow-b), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 26%, #000 10%, transparent 78%);
  mask-image: radial-gradient(70% 55% at 50% 26%, #000 10%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero__content { max-width: 44rem; margin-inline: auto; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}
.badge {
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.badge strong {
  white-space: nowrap;
  color: var(--accent-fg);
  background: var(--accent-bg);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.6vw, 4rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--primary), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 40rem;
  margin-inline: auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}

/* ---------- Screenshot frame ---------- */
.shot {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--shot-frame);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--card-border);
}
.shot__bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--fg-muted);
  opacity: 0.35;
}
.shot__bar span {
  margin-left: 0.6rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.shot img { width: 100%; }

.shot .shot-dark { display: none; }
:root[data-theme='dark'] .shot .shot-dark { display: block; }
:root[data-theme='dark'] .shot .shot-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .shot .shot-dark { display: block; }
  :root:not([data-theme='light']) .shot .shot-light { display: none; }
}

.shot__caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: 1rem;
}

/* ---------- Scale steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: var(--accent-bg);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.step p { color: var(--fg-muted); font-size: 0.9375rem; }

.step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.step__tags li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.section-note {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--card-border));
}

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: var(--accent-bg);
  color: var(--accent-fg);
  margin-bottom: 1rem;
}
.feature__icon svg { width: 20px; height: 20px; }

.feature h3 { font-size: 1.0625rem; margin-bottom: 0.45rem; }
.feature p { color: var(--fg-muted); font-size: 0.9375rem; }

/* ---------- Tier badges ---------- */
.feature { position: relative; }

.tier {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tier--free {
  color: var(--fg-muted);
  border-color: var(--border);
}
.tier--pro {
  color: var(--accent-fg);
  background: var(--accent-bg);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
}
/* Not built yet - distinct from "built, but paid". */
.tier--soon {
  color: var(--violet);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--violet) 45%, transparent);
}

.feature > .tier {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
}

.caps .tier { margin-left: 0.35rem; vertical-align: 1px; }

/* ---------- Capability list ---------- */
.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.5rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.caps li {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.caps li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.28rem;
  color: var(--green);
}
.caps strong { font-weight: 600; }
/* Direct child only - a bare `.caps span` also captures the nested tier badge
   and beats `.tier--*` on specificity, flattening its colour. */
.caps > li > span { color: var(--fg-muted); }

/* ---------- Self-host / code ---------- */
.host {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
/* Without this the <pre> widens the column instead of scrolling inside it. */
.host > * { min-width: 0; }

.host__points {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1.25rem;
}
.host__points li { display: flex; gap: 0.9rem; }
.host__points .feature__icon { margin-bottom: 0; width: 2.25rem; height: 2.25rem; }
.host__points h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.host__points p { color: var(--fg-muted); font-size: 0.9375rem; }

.code {
  border-radius: var(--radius-lg);
  border: 1px solid hsl(214 14% 22%);
  background: hsl(214 18% 10%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  border-bottom: 1px solid hsl(214 14% 22%);
  background: hsl(214 18% 13%);
}
.code__bar span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(214 14% 62%);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid hsl(214 14% 26%);
  background: transparent;
  color: hsl(214 14% 72%);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { color: hsl(211 90% 72%); border-color: hsl(211 90% 60%); }
.copy-btn[data-copied='true'] { color: hsl(142 52% 60%); border-color: hsl(142 52% 45%); }

.code pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.9;
  color: hsl(214 20% 90%);
}
.code .c { color: hsl(214 14% 52%); }
.code .k { color: hsl(211 90% 72%); }
.code .s { color: hsl(142 52% 62%); }

.code__note {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid hsl(214 14% 22%);
  font-size: 0.8125rem;
  color: hsl(214 14% 62%);
}
.code__note code {
  color: hsl(211 90% 78%);
  font-size: 0.75rem;
  background: hsl(214 18% 15%);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ---------- Stack ---------- */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.stack__card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card);
}
.stack__card h3 {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.85rem;
}
.stack__card p { font-size: 0.9375rem; color: var(--fg-muted); }
.stack__card p strong { color: var(--fg); font-weight: 600; }
.stack__card code {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--accent-fg);
  background: var(--accent-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.plan--current {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--card-border));
  box-shadow: var(--shadow-md);
}
/* Plans that can't be bought yet read as clearly secondary. */
.plan--planned { background: transparent; }

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.plan__head h3 { font-size: 1.125rem; }

/* The min-heights below keep the three cards' rows on a shared baseline so the
   feature lists all start at the same y - tuned for two lines of wrapped text. */
.plan__tagline {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 2.7rem;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1.1rem 0 0.35rem;
  min-height: 2.7rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.plan__price small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0;
}
.plan__price--tbd { color: var(--fg-muted); font-size: 1.75rem; }

.plan__note {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.5;
  min-height: 2.5rem;
}

.plan__cta { margin: 1.4rem 0 1.25rem; }
.plan__cta .btn { width: 100%; }
.plan__cta .btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.plan__list {
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
  font-size: 0.875rem;
}
.plan__list li { display: flex; gap: 0.6rem; }
.plan__list svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.25rem;
  color: var(--green);
}
.plan__list .muted { color: var(--fg-muted); }
.plan__list .muted svg { color: var(--fg-muted); opacity: 0.6; }

/* Early-adopter grandfather pledge - deliberately the loudest thing in the
   pricing section, since it's the promise that makes adopting now safe. */
.pledge {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--card-border));
  background:
    radial-gradient(80% 160% at 0% 0%, var(--glow-a), transparent 65%),
    var(--card);
  box-shadow: var(--shadow-sm);
}
.pledge h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}
.pledge h3 svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.pledge p { font-size: 0.9375rem; color: var(--fg-muted); }
.pledge p + p { margin-top: 0.6rem; }
.pledge strong { color: var(--fg); font-weight: 600; }

.pricing-note {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
  font-size: 0.9375rem;
  color: var(--fg-muted);
}
.pricing-note strong { color: var(--fg); font-weight: 600; }

/* ---------- Roadmap board ---------- */
.page-head {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 520px;
  background: radial-gradient(50% 50% at 50% 25%, var(--glow-a), transparent 70%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-head .lede { max-width: 44rem; }

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.column__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.column__head h2 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.column__head .count {
  margin-left: auto;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}
/* Base sizing lives here, not under .column__head - the legend uses .pip too. */
.pip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pip--shipped { background: var(--green); }
.pip--next { background: var(--primary); }
.pip--exploring { background: var(--violet); }

.column__blurb {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}

.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }

.item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}
.item h3 { font-size: 0.9375rem; margin-bottom: 0.3rem; }
.item p { font-size: 0.8125rem; color: var(--fg-muted); }
.item .tier { flex-shrink: 0; margin-top: 0.1rem; }

.item--done h3 { color: var(--fg-muted); font-weight: 600; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.legend span { display: inline-flex; align-items: center; gap: 0.45rem; }

/* ---------- License ---------- */
.license {
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.license__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.license__item h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
}
.license__item p { font-size: 0.875rem; color: var(--fg-muted); }
.license__item svg { width: 18px; height: 18px; flex-shrink: 0; }
.ok { color: var(--green); }
.no { color: var(--amber); }
.time { color: var(--violet); }

/* ---------- Comparison table ---------- */
/* Scrolls inside its own box on narrow screens so the page never scrolls sideways. */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.compare {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
}
.compare th,
.compare td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  white-space: nowrap;
}
/* The Opsly column is the one people are here to read - tint it. */
.compare thead th.is-opsly { color: var(--accent-fg); }
.compare td.is-opsly,
.compare th.is-opsly { background: color-mix(in srgb, var(--accent-bg) 45%, transparent); }
.compare tbody th[scope='row'] {
  font-weight: 500;
  color: var(--fg);
  font-size: 0.9375rem;
}
.compare tbody td { color: var(--fg-muted); font-size: 0.9rem; }

.mark { display: inline-flex; align-items: flex-start; gap: 0.45rem; }
.mark svg { width: 16px; height: 16px; margin-top: 0.15rem; flex-shrink: 0; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background:
    radial-gradient(70% 130% at 50% 0%, var(--glow-a), transparent 70%),
    var(--card);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  box-shadow: var(--shadow-md);
}
.cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: 0.85rem; }
.cta p { color: var(--fg-muted); max-width: 34rem; margin-inline: auto; }
.cta .hero__cta { margin-top: 1.75rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 2.5rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.footer__brand { max-width: 22rem; }
.footer__brand p { margin-top: 0.75rem; }
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.footer__col h3 {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 0.85rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer__col a { color: var(--fg-muted); }
.footer__col a:hover { color: var(--primary); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}

/* ---------- Reveal on scroll ----------
   Scoped to .js so the page is never blank if the script fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .host { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 800px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__actions { margin-left: auto; }
  .btn--nav-label { display: none; }
  .btn--nav { padding-inline: 0.7rem; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 1.125rem; }
  .hero__cta .btn { width: 100%; }
  .shot__bar span { display: none; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .hero::before, .hero::after, .cta { display: none; }
  body { background: #fff; color: #000; }
}
