/*
Theme Name: Cube
Theme URI: https://cube.tools
Author: Cube
Author URI: https://cube.tools
Description: One-page marketing site for Cube, a spreadsheet with AI and HTTP columns. Linear-inspired dark design.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: cube
*/

:root {
  --bg: #08090A;
  --fg: #F7F8F8;
  --fg-dim: #B4BCD0;
  --muted: #8A8F98;
  --muted-2: #62666D;
  --border: #23252A;
  --border-dim: #1A1C1F;
  --surface: #101113;
  --chip: #1C1E22;
  --pill-bg: #F7F8F8;
  --pill-fg: #08090A;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
  --max-narrow: 1040px;
  --radius: 8px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

code, .mono { font-family: var(--mono); font-size: 0.9em; }
code.chip {
  background: var(--chip);
  color: var(--fg);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 13px;
}
.inline-link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--muted-2);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.12s ease;
}
.inline-link:hover { text-decoration-color: var(--fg); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 10, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-dim);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.nav-logo img { width: 30px; height: 30px; }
.nav-beta {
  font-size: 10px;
  font-weight: 500;
  font-family: var(--mono);
  color: var(--muted);
  background: var(--chip);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 2px;
  line-height: 1.4;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a,
.nav-menu a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.12s ease;
}
.nav-links a:hover,
.nav-menu a:hover { color: var(--fg); }
.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}
.nav-cta {
  background: var(--pill-bg);
  color: var(--pill-fg) !important;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: opacity 0.12s ease !important;
}
.nav-cta:hover { opacity: 0.85; color: var(--pill-fg) !important; }
@media (max-width: 820px) {
  .nav-menu { display: none; }
}

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn-primary {
  background: var(--pill-bg);
  color: var(--pill-fg);
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--fg-dim); }
.btn-large {
  padding: 12px 22px;
  font-size: 15px;
}

/* ---------------- TYPE SCALE ---------------- */
h1, h2, h3, h4 {
  font-weight: 510;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--fg);
}

.display {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 510;
  letter-spacing: -0.032em;
  line-height: 1.05;
}
.display .dim {
  color: var(--muted);
}

.h2 {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 510;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.h3 {
  font-size: 22px;
  font-weight: 510;
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.lede .dim { color: var(--muted); }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--muted);
}

/* ---------------- SECTION FRAMING ---------------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border-dim); }
.hero + section { border-top: none; }

/* ---------------- HERO ---------------- */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-size: 102% auto;
  background-position: center top;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8,9,10,0.10) 0%,
      rgba(8,9,10,0.25) 20%,
      rgba(8,9,10,0.45) 40%,
      rgba(8,9,10,0.72) 60%,
      rgba(8,9,10,0.92) 75%,
      rgba(8,9,10,1) 90%,
      rgba(8,9,10,1) 100%),
    radial-gradient(ellipse 50% 35% at 30% 22%, rgba(8,9,10,0.5) 0%, rgba(8,9,10,0) 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  max-width: 880px;
  margin-bottom: 20px;
}
.hero .lede {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}
.hero-meta {
  font-size: 13px;
  color: var(--muted-2);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .check { color: var(--fg-dim); }

/* ---------------- DEMO ---------------- */
.demo-wrap {
  margin-top: 64px;
  position: relative;
}
.demo-wrap::before {
  content: '';
  position: absolute;
  inset: -120px -80px -60px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(180, 188, 208, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(8,9,10,0.7), transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}
.demo {
  position: relative;
  background: rgba(16, 17, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 20px 60px -10px rgba(0,0,0,0.6),
    0 0 80px -20px rgba(180, 188, 208, 0.08);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.demo-bar .dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.demo-bar .dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3A3D42;
  position: relative;
  transition: background 0.15s ease;
  cursor: pointer;
}
.demo-bar .dots:hover span:nth-child(1) { background: #FF5F57; }
.demo-bar .dots:hover span:nth-child(2) { background: #FEBC2E; }
.demo-bar .dots:hover span:nth-child(3) { background: #28C840; }
.demo-bar .dots:hover span::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.5;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.6);
  font-weight: 700;
  line-height: 1;
}
.demo-bar .dots:hover span:nth-child(1)::after { content: '×'; font-size: 12px; }
.demo-bar .dots:hover span:nth-child(2)::after { content: '−'; font-size: 12px; }
.demo-bar .dots:hover span:nth-child(3)::after { content: '⤢'; font-size: 8px; transform: rotate(45deg); }
.demo-bar .title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 400;
}
.demo-prompt {
  padding: 14px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.demo-prompt .label {
  background: var(--fg);
  color: var(--bg);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
  margin-top: 1px;
}
.demo-prompt code { color: var(--fg); }
.demo-prompt .ref {
  color: var(--fg);
  background: var(--chip);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.demo-table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; table-layout: fixed; }
/* 2-column try-it demo: message input / AI output */
.tryit-table th:nth-child(1), .tryit-table td:nth-child(1) { width: 62%; }
.tryit-table th:nth-child(2), .tryit-table td:nth-child(2) { width: 38%; }
/* 2-column hero cycling demo: input / AI output */
[data-hero-demo] .demo-table th:nth-child(1), [data-hero-demo] .demo-table td:nth-child(1) { width: 46%; }
[data-hero-demo] .demo-table th:nth-child(2), [data-hero-demo] .demo-table td:nth-child(2) { width: 54%; }
.demo-table th, .demo-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 13px;
  line-height: 20px;
  height: 44px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-table th {
  background: var(--bg);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}
.demo-table th.ai {
  background: var(--bg);
  color: var(--fg);
}
.demo-table th.ai::before { content: '✦ '; opacity: 0.5; color: var(--muted); }
.demo-table td { color: var(--fg-dim); }
.demo-table tr:last-child td { border-bottom: none; }
.demo-table td:last-child, .demo-table th:last-child { border-right: none; }
.demo-table .ai-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg);
  height: 20px;
  line-height: 20px;
  vertical-align: middle;
}
.demo-table .ai-cell.state-idle::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--muted-2) 50%, var(--border) 100%);
  background-size: 200% 100%;
  opacity: 0.5;
}
.demo-table .ai-cell.state-thinking::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  border-top-color: var(--fg);
  animation: ai-spin 0.7s linear infinite;
}
.demo-table .ai-cell.state-thinking {
  color: var(--muted);
  font-style: italic;
}
.demo-table .ai-cell.state-typing::after {
  content: '▊';
  color: var(--fg);
  animation: blink 0.9s infinite;
  margin-left: 1px;
  font-weight: 400;
}
.demo-table .ai-cell.state-done {
  color: var(--fg);
}
@keyframes ai-spin {
  to { transform: rotate(360deg); }
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ---------------- LOGO STRIP ---------------- */
.proof {
  padding: 80px 0 40px;
}
.proof-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.proof-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.75;
}
.proof-row span {
  font-weight: 500;
  font-size: 18px;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
  font-family: var(--mono);
}

/* ---------------- MANIFESTO / SECTION HEADERS ---------------- */
.manifesto {
  padding: 8px 0 56px;
}
.manifesto .lede {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 1040px;
  font-weight: 510;
}
.manifesto .lede .bright { color: var(--fg); }
.manifesto .lede .dim { color: var(--muted); }

/* ---------------- PROBLEM ---------------- */
.problem-grid {
  display: grid;
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
}
@media (min-width: 760px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}
.problem-item {
  background: var(--bg);
  padding: 40px 36px;
}
.problem-item .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 32px;
  display: block;
  letter-spacing: 0.04em;
}
.problem-item h3 {
  font-size: 19px;
  font-weight: 510;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--fg);
}
.problem-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------------- USE CASES ---------------- */
.usecases {
  display: grid;
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
}
@media (min-width: 760px) { .usecases { grid-template-columns: repeat(3, 1fr); } }
.usecase {
  background: var(--bg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.usecase-cat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.usecase h3 {
  font-size: 18px;
  font-weight: 510;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--fg);
}
.usecase p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex-grow: 1;
}
.usecase-snippet {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dim);
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.usecase-snippet .uc-prompt {
  color: var(--muted-2);
}
.usecase-snippet .uc-result {
  color: var(--fg);
}
.usecases-foot {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 720px;
}

/* ---------------- BEFORE / AFTER ---------------- */
.ba-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.ba-side { min-width: 0; }
.ba-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.ba-sheet { font-family: var(--mono); }
.ba-table th, .ba-table td {
  padding: 10px 14px;
  font-size: 12.5px;
}
.ba-arrow {
  font-size: 28px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 820px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); margin: 4px 0; }
}

/* ---------------- INTERACTIVE TRY-IT ---------------- */
.tryit { margin-top: 40px; }
.tryit-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.tryit-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tryit-prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.tryit-prompt .ref {
  color: var(--fg);
  background: var(--chip);
  padding: 0 5px;
  border-radius: 4px;
}
.tryit-prompt:hover { border-color: var(--fg-dim); color: var(--fg); }
.tryit-prompt.is-active {
  border-color: var(--fg);
  color: var(--fg);
  background: var(--surface);
}
.tryit-run { flex-shrink: 0; }
.tryit-run:disabled { opacity: 0.6; cursor: default; }
.tryit-sheet { font-family: var(--mono); }
.tryit-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted-2);
}
.tryit-cta { margin-top: 20px; }
@media (max-width: 560px) {
  .tryit-controls { flex-direction: column; align-items: stretch; }
  .tryit-run { width: 100%; justify-content: center; }
}

/* ---------------- HOW IT WORKS ---------------- */
.steps {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/*
  Box alignment is structural, not a tuned number:
  Grid makes every .step the same height (align-items defaults to stretch).
  .step is a flex column, and margin-top:auto on the box absorbs all free
  space ABOVE it, pinning the box to the column's shared bottom edge. Fixed
  box height means equal bottoms imply equal tops. A 2- vs 3-line description
  can never move a box out of alignment, at any viewport >= 880px, because the
  box position derives from the shared column height, never from its own text.
*/
.step { display: flex; flex-direction: column; }

.step .step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 20px;
  display: block;
  letter-spacing: 0.04em;
}
.step h3 {
  font-size: 22px;
  font-weight: 510;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
  line-height: 1.25;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.55;
}
.step .step-visual {
  margin-top: auto;     /* pins box to the bottom of the equal-height column */
  flex: 0 0 auto;       /* never let flex grow or shrink the box */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 879px) { .step .step-visual { margin-top: 0; } }
.step .step-visual .ref {
  color: var(--fg);
  background: var(--chip);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.step .step-visual .comment { color: var(--muted-2); }

/* ---------------- FEATURES ---------------- */
.features {
  display: grid;
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
}
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  background: var(--bg);
  padding: 48px 40px;
}
.feature .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 28px;
  color: var(--fg-dim);
}
.feature .icon svg { width: 100%; height: 100%; }
.feature h3 {
  font-size: 20px;
  font-weight: 510;
  letter-spacing: -0.018em;
  margin-bottom: 10px;
  color: var(--fg);
}
.feature p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------------- PRICING ---------------- */
.pricing-wrap {
  margin-top: 40px;
  display: grid;
  gap: 48px;
}
@media (min-width: 880px) {
  .pricing-wrap { grid-template-columns: 1fr 1fr; align-items: start; gap: 80px; }
}
.pricing-headline {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 510;
  letter-spacing: -0.035em;
  line-height: 1;
}
.pricing-headline .dim { color: var(--muted); }
.pricing-side p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 420px;
}
.pricing-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  position: relative;
}
.pricing-box .label {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.pricing-box .price {
  font-size: 56px;
  font-weight: 510;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-box .price small {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.pricing-box .price-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.pricing-box ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pricing-box ul li {
  padding: 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-dim);
}
.pricing-box ul li .check {
  color: var(--fg);
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-box .example {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.pricing-box .example .accent {
  color: var(--fg);
  background: var(--chip);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.pricing-box .btn { width: 100%; justify-content: center; }

/* ---------------- FAQ ---------------- */
.faq {
  max-width: 760px;
  margin: 56px 0 0;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  font-weight: 510;
  font-size: 17px;
  letter-spacing: -0.015em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 16px;
  color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--fg); }
.faq details p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
}

/* ---------------- CTA BAND ---------------- */
.cta-band {
  text-align: center;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}
.cta-band-inner { position: relative; }
.cta-band h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 510;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}
.cta-band h2 .dim { color: var(--muted); }
.cta-band p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 36px;
}

/* ---------------- LEGAL / PROSE PAGES ---------------- */
.legal {
  padding: 96px 0 80px;
  border-top: 1px solid var(--border-dim);
}
.legal-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 510;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.prose {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 720px;
}
.prose h2 {
  font-size: 22px;
  font-weight: 510;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: 48px 0 12px;
}
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin: 28px 0 8px;
}
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.prose .legal-updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ---------------- FOOTER ---------------- */
footer {
  padding: 64px 0 56px;
  border-top: 1px solid var(--border-dim);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-inner .footer-logo { justify-self: start; }
.footer-inner .footer-meta { justify-self: center; text-align: center; }
.footer-inner .footer-links { justify-self: end; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner .footer-logo,
  .footer-inner .footer-meta,
  .footer-inner .footer-links { justify-self: center; }
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--fg);
}
.footer-logo img { width: 20px; height: 20px; }
.footer-meta {
  color: var(--muted);
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.12s ease;
}
.footer-links a:hover { color: var(--fg); }

/* ---------------- RESPONSIVE TUNING ---------------- */
@media (max-width: 1100px) {
  .hero {
    background-size: cover;
    background-position: center center;
  }
  .hero::before {
    background:
      linear-gradient(180deg,
        rgba(8,9,10,0.20) 0%,
        rgba(8,9,10,0.35) 30%,
        rgba(8,9,10,0.65) 55%,
        rgba(8,9,10,0.92) 78%,
        rgba(8,9,10,1) 92%,
        rgba(8,9,10,1) 100%),
      radial-gradient(ellipse 90% 50% at 50% 35%, rgba(8,9,10,0.55) 0%, rgba(8,9,10,0) 70%);
  }
}
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .hero {
    padding: 64px 0 80px;
    background-position: 20% center;
    background-attachment: scroll;
  }
  .hero::before {
    background:
      linear-gradient(180deg,
        rgba(8,9,10,0.30) 0%,
        rgba(8,9,10,0.45) 30%,
        rgba(8,9,10,0.55) 60%,
        rgba(8,9,10,0.65) 100%),
      radial-gradient(ellipse 90% 50% at 50% 30%, rgba(8,9,10,0.5) 0%, rgba(8,9,10,0) 70%);
  }
  /* let the image bleed through the demo on mobile */
  .hero .demo {
    background: rgba(16, 17, 19, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .container, .container-narrow { padding: 0 20px; }
  .pricing-box { padding: 28px 24px; }
  .feature { padding: 36px 28px; }
  .problem-item { padding: 32px 28px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  /* on tablets the demo also benefits from some image bleed-through */
  .hero .demo {
    background: rgba(16, 17, 19, 0.70);
  }
}
