/* ============================================================
   BuffSheets marketing site
   Light UI: white, slate grays, blue accent (matches the desktop app)
   ============================================================ */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;
  --ink: #0f172a;
  --slate: #475569;
  --slate-light: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --green: #107c41;        /* Excel green, used sparingly */
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --yellow: #facc15;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 24px -8px rgba(15, 23, 42, .14);
  --shadow-lg: 0 24px 64px -16px rgba(15, 23, 42, .22);
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --nav-clearance: 88px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { vertical-align: middle; }
code { font-family: var(--mono); }

.container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p {
  margin-top: 14px;
  color: var(--slate);
  font-size: 1.07rem;
}

section { padding: 96px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: #cbd5e1; }

.btn-inverse {
  background: #fff;
  color: var(--blue-dark);
}
.btn-inverse:hover { background: var(--blue-soft); }

.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ============================================================
   NAV — floating translucent shell (TWIS-style)
   ============================================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(1140px, calc(100% - 40px));
  transform: translateX(-50%);
  border-radius: 14px;
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 8px 32px -8px rgba(15, 23, 42, .12);
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(226, 232, 240, .75);
  box-shadow: 0 10px 36px -10px rgba(15, 23, 42, .16);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 64px;
  width: 100%;
  padding-inline: 20px;
}

/* the swoosh logo doubles as the "B" in BuffSheets —
   bottom-aligned so the art sits on the text baseline */
.brand {
  display: inline-flex;
  align-items: flex-end;
  justify-self: start;
  gap: 0;
  line-height: 1;
  font-weight: 750;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand .brand-mark { margin-right: -5px; margin-bottom: -2px; }

.compare-label-brand { gap: 0 !important; align-items: flex-end !important; line-height: 1; }
.compare-label-brand img { margin-right: -4px; margin-bottom: -2px; }

.nav-links {
  display: flex;
  gap: 26px;
  justify-self: center;
  margin-left: 0;
  align-self: center;
  padding-bottom: 0;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  justify-self: end;
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-auth-link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  padding: 9px 12px;
  white-space: nowrap;
  transition: color .15s ease;
}
.nav-auth-link:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  justify-self: end;
  margin-left: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-clearance) + 48px) 0 110px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(37, 99, 235, .10), transparent 65%),
    linear-gradient(to bottom, var(--bg-alt), var(--bg) 70%);
  /* faint spreadsheet grid */
  z-index: -1;
}
/* cursor spotlight — follows the mouse via --mx/--my set in JS */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 70%) var(--my, 20%), rgba(37, 99, 235, .09), transparent 70%);
  opacity: 0;
  transition: opacity .45s ease;
}
.hero.cursor-on .hero-bg::before { opacity: 1; }

/* cursor-reactive spreadsheet cells, drawn by JS on the same 56×32 grid */
.hero-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.92) 55%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.92) 55%, transparent 82%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 56px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.9) 50%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.9) 50%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

/* let the mockup breathe past the container edge on wide screens */
@media (min-width: 1220px) {
  .hero-visual { margin-right: -44px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  margin-bottom: 22px;
  font-size: .82rem;
  font-weight: 550;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 999px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(37, 99, 235, .06); }
}

.hero h1 .accent {
  color: var(--blue);
  background: linear-gradient(90deg, var(--blue) 0%, #60a5fa 30%, var(--blue-dark) 55%, var(--blue) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: accentShimmer 7s linear infinite;
}
@keyframes accentShimmer {
  to { background-position: -200% center; }
}

.lede {
  margin-top: 20px;
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--slate);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: .87rem;
  color: var(--slate-light);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust li::before {
  content: "✓";
  font-weight: 700;
  color: var(--green);
}

/* ---------- Hero product mockup (mirrors the real desktop app UI) ---------- */
.hero-visual {
  position: relative;
  perspective: 1100px; /* depth for the cursor tilt on .app-window */
}

.hero-glow {
  will-change: transform;
  position: absolute;
  inset: 8% -6% -10% -6%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .14), transparent);
  filter: blur(8px);
  z-index: -1;
}

.app-window {
  will-change: transform;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 11px;
}

/* Excel name box + formula bar */
.xl-formulabar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--ink);
}
.xl-formulabar .namebox {
  padding: 2px 14px 2px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 550;
}
.xl-formulabar .fx {
  font-style: italic;
  font-weight: 700;
  color: var(--slate-light);
}
.xl-formulabar .formula-text {
  flex: 1;
  padding: 2px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.app-body {
  display: grid;
  grid-template-columns: 1fr 242px;
}

/* --- spreadsheet --- */
.sheet {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.sheet-row {
  display: grid;
  grid-template-columns: 24px 2fr 0.95fr 0.55fr;
}
.cell {
  padding: 4px 8px;
  border-right: 1px solid #e8edf3;
  border-bottom: 1px solid #e8edf3;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  min-height: 22px;
}
.cell.rownum, .cell.corner, .cell.col {
  background: #f3f6f9;
  color: var(--slate-light);
  font-size: 9.5px;
  font-weight: 550;
  text-align: center;
}
.cell.col-sel { color: var(--green); }
.cell.rn-sel { color: var(--green); }
.cell.th { font-weight: 650; }
.cell.band { background: #f1f4f8; }
.cell.num { text-align: right; font-variant-numeric: tabular-nums; }
/* accounting format: $ pinned left, number right */
.cell.acct { display: flex; justify-content: space-between; align-items: center; }
.cell .cur { color: var(--ink); }
/* selected A1 cell, Excel-style green border */
.cell.cell-sel {
  outline: 2px solid var(--green);
  outline-offset: -2px;
  position: relative;
  z-index: 1;
}
/* title cell spans columns A and B so the selection box lands on a gridline */
.cell.span2 { grid-column: 2 / 4; }

/* sheet tab bar */
.tabbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 0 12px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 10px;
}
.tab-active {
  padding: 5px 4px 4px;
  font-weight: 650;
  color: var(--green);
  border-bottom: 2px solid var(--green);
  background: #fff;
  border-inline: 1px solid var(--border);
  padding-inline: 10px;
}
.tab-add { color: var(--slate-light); font-size: 12px; }

/* --- task pane --- */
.taskpane {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.tp-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.tp-winicons { color: var(--slate-light); font-size: 9px; letter-spacing: .05em; }

.tp-brandrow {
  display: flex;
  align-items: flex-end;
  gap: 0;
  line-height: 1;
  padding: 10px 14px 6px;
}
.tp-brandrow img { display: block; margin-right: -3px; margin-bottom: -1px; }
.tp-wordmark {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #1e3a5f;
}
.tp-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--slate-light);
}

/* welcome card — matches desktop app-ai-chat-welcome-neumo */
.welcome-card {
  margin: 8px 11px;
  padding: 14px 16px;
  background-color: #eff3f6;
  border: 2px solid #ffffff;
  border-radius: 1rem;
  outline: 1px solid #d1d5db;
  display: flex;
  flex-direction: column;
}
.welcome-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #384860;
}
.welcome-tagline {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.45;
  color: #475569;
  min-height: 1.25em;
}
.welcome-tagline.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #64748b;
  animation: welcome-cursor-blink .7s step-end infinite;
}
@keyframes welcome-cursor-blink {
  50% { opacity: 0; }
}

/* selection breadcrumb + input */
.tp-bottom {
  margin-top: auto;
  padding: 10px 12px 12px;
}
.tp-selection {
  font-size: 8.5px;
  color: var(--slate-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 7px;
}
.tp-selection strong { color: var(--slate); font-weight: 650; }
.tp-input {
  padding: 10px 11px 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.tp-placeholder {
  font-size: 10.5px;
  color: var(--slate-light);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
}
/* blinking caret while the typewriter cycles prompts */
.tp-placeholder.typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--slate-light);
  animation: caretBlink 1.05s steps(1, end) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.tp-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tp-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 550;
  color: var(--slate);
}
.tp-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--slate);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   COMPARE
   ============================================================ */
.compare { background: var(--bg); padding-top: 40px; }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.compare-card {
  padding: 30px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.compare-them { background: var(--bg-alt); }
.compare-us {
  background: #fff;
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
}
.compare-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 16px;
}
.compare-them .compare-label { color: var(--slate-light); }
.compare-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-card li {
  display: flex;
  gap: 11px;
  align-items: baseline;
  color: var(--slate);
  font-size: .95rem;
}
.compare-us li { color: var(--ink); }
.compare-card .x { color: #cbd5e1; font-weight: 700; }
.compare-card .check { color: var(--green); font-weight: 700; }

/* ============================================================
   DEMO VIDEO
   ============================================================ */
.demo {
  background: var(--bg);
  padding-top: 48px;
  padding-bottom: 48px;
}
.demo .section-head {
  margin-bottom: 36px;
}
.demo-frame {
  max-width: 920px;
  margin: 0 auto;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: #0f172a;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 560px);
  background: #0f172a;
  vertical-align: middle;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--bg-alt); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p {
  font-size: .93rem;
  color: var(--slate);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  font-weight: 750;
  font-size: 1rem;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--blue-soft);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: .94rem; color: var(--slate); }
.step em { color: var(--blue-dark); font-style: normal; font-weight: 550; }

/* ============================================================
   INSTALL
   ============================================================ */
.install-steps {
  grid-template-columns: repeat(2, 1fr);
}
.install-cta { margin-top: 14px; }
.install-note {
  margin-top: 28px;
  max-width: 720px;
  font-size: .9rem;
  color: var(--slate-light);
  line-height: 1.6;
}
.install-note a { color: var(--blue); font-weight: 550; }
.install .step a:not(.btn) { color: var(--blue); font-weight: 550; }

/* ============================================================
   PROMPTS + AUDIENCE
   ============================================================ */
.prompts {
  background: var(--bg-alt);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  padding: 9px 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollLeft 38s linear infinite;
}
.marquee[data-direction="right"] .marquee-track { animation-name: scrollRight; }
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes scrollLeft  { to { transform: translateX(-50%); } }
@keyframes scrollRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.prompt-chip {
  display: inline-block;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
}
.audience-card {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.audience-card h3 { font-size: .98rem; margin-bottom: 6px; }
.audience-card p { font-size: .88rem; color: var(--slate); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.skills-copy h2 { margin-bottom: 18px; }
.skills-copy > p { color: var(--slate); font-size: 1.05rem; }
.skills-points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.skills-points li {
  display: flex;
  gap: 11px;
  font-size: .97rem;
  color: var(--slate);
}
.skills-points li::before {
  content: "✓";
  flex: none;
  font-weight: 700;
  color: var(--blue);
}
.skills-points strong { color: var(--ink); }

.code-window {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.code-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.code-filename {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--slate);
}
.skill-badge {
  padding: 2px 10px;
  font-size: .72rem;
  font-weight: 650;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 999px;
}
.code-window pre {
  margin: 0;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.75;
  color: var(--slate);
  overflow-x: auto;
}
.md-h { color: var(--blue-dark); font-weight: 600; }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy { background: var(--bg-alt); }

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.privacy-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.privacy-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
}
.privacy-icon.local { color: var(--green); background: var(--green-soft); border: 1px solid #bbf7d0; }
.privacy-icon.cloud { color: var(--blue); background: var(--blue-soft); border: 1px solid var(--blue-border); }
.privacy-card > p { color: var(--slate); font-size: .96rem; }
.privacy-facts {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.privacy-facts li {
  display: flex;
  gap: 10px;
  font-size: .9rem;
  color: var(--slate);
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.privacy-facts li::before {
  content: "•";
  color: var(--blue);
  font-weight: 700;
}
.privacy-facts strong { color: var(--ink); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.price-card {
  padding: 32px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.price-featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  white-space: nowrap;
}
.price-tier {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-light);
  margin-bottom: 12px;
}
.price-featured .price-tier { color: var(--blue); }
.price-amount {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.price-unit { font-size: 1rem; font-weight: 500; color: var(--slate-light); }
.price-period {
  font-size: .85rem;
  color: var(--slate-light);
  margin-bottom: 18px;
}
.price-list {
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  text-align: left;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.price-list li {
  display: flex;
  gap: 10px;
  font-size: .9rem;
  color: var(--slate);
}
.price-list li::before {
  content: "✓";
  flex: none;
  font-weight: 700;
  color: var(--blue);
}
.pricing-note {
  margin-top: 28px;
  text-align: center;
  font-size: .87rem;
  color: var(--slate-light);
}
.pricing-note a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.pricing-note a:hover { color: var(--blue-dark); text-decoration: underline; }
.price-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg-alt); }
.faq-inner { max-width: 760px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 22px;
  transition: border-color .2s ease;
}
.faq-list details[open] { border-color: var(--blue-border); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--slate-light);
  border-bottom: 2px solid var(--slate-light);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
details[open] .faq-chevron { transform: rotate(-135deg); }
.faq-list details p {
  padding: 0 0 20px;
  color: var(--slate);
  font-size: .94rem;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background:
    radial-gradient(700px 360px at 50% -20%, rgba(255,255,255,.16), transparent),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
}
.final-cta-inner {
  max-width: 660px;
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p {
  margin: 16px 0 32px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .85);
}
.final-note {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  font-size: .85rem !important;
  color: rgba(255, 255, 255, .65) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand p {
  margin-top: 8px;
  font-size: .85rem;
  color: var(--slate-light);
}
.footer-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.footer-links a {
  font-size: .9rem;
  color: var(--slate);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }

.footer-meta {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.footer-meta p {
  font-size: .8rem;
  color: var(--slate-light);
}

/* ============================================================
   TOAST (Coming soon)
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  z-index: 100;
  padding: 13px 22px;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { min-width: 0; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .skills-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 760px) {
  :root { --nav-clearance: 78px; }
  section { padding: 68px 0; }
  .nav {
    top: 10px;
    width: calc(100% - 24px);
    border-radius: 12px;
  }
  .nav-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    height: auto;
    min-height: 56px;
    padding-inline: 14px;
  }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.menu-open {
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 40px -12px rgba(15, 23, 42, .2);
  }
  .nav.menu-open .nav-inner {
    grid-template-columns: 1fr auto;
    padding-bottom: 8px;
  }
  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    grid-column: 1 / -1;
    width: 100%;
    padding: 8px 4px 12px;
    border-top: 1px solid rgba(226, 232, 240, .7);
  }
  .nav.menu-open .nav-links a { padding: 10px 0; font-size: 1rem; }
  .nav.menu-open .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    grid-column: 1 / -1;
    width: 100%;
    padding: 0 4px 12px;
  }
  .nav.menu-open .nav-auth-link {
    padding: 10px 0;
    font-size: 1rem;
    text-align: left;
  }
  .compare-grid, .privacy-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .sheet-row { grid-template-columns: 22px 2fr 1fr 0.4fr; }
  .app-window { font-size: 10.5px; }
  .taskpane { border-top: 1px solid var(--border); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { margin-left: 0; }
}

/* ============================================================
   DOCUMENT PAGES (Support / Privacy / Terms)
   ============================================================ */
body.doc-site {
  background: var(--bg-alt);
}
body.doc-site .nav {
  /* same floating nav as marketing home */
}
.doc-main {
  padding: calc(var(--nav-clearance) + 40px) 0 88px;
}
/* Match floating nav width: min(1140px, calc(100% - 40px)) */
.doc-wrap {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}
/*
 * Solid white panel (including the bottom). Soft feather on all four edges
 * so the box blends into --bg-alt without a hard border or bottom-only fade.
 */
.doc-card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  /* Keep text inside the fully opaque center; edge bands are the fade zone. */
  padding: clamp(40px, 5vw, 56px) clamp(48px, 6vw, 72px) clamp(48px, 6vw, 72px);
  --doc-fade: 56px;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0,
      #000 var(--doc-fade),
      #000 calc(100% - var(--doc-fade)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0,
      #000 var(--doc-fade),
      #000 calc(100% - var(--doc-fade)),
      transparent 100%
    );
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to right,
      transparent 0,
      #000 var(--doc-fade),
      #000 calc(100% - var(--doc-fade)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0,
      #000 var(--doc-fade),
      #000 calc(100% - var(--doc-fade)),
      transparent 100%
    );
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}
@media (max-width: 640px) {
  .doc-card {
    --doc-fade: 28px;
    padding: 28px 24px 36px;
  }
}
.doc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.doc-card h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.doc-meta {
  margin-top: 10px;
  color: var(--slate-light);
  font-size: .92rem;
}
.doc-lede {
  margin-top: 18px;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.7;
}
.doc-body {
  margin-top: 36px;
  color: var(--ink);
}
.doc-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
  letter-spacing: -0.02em;
  padding-top: .35rem;
  border-top: 1px solid var(--border);
}
.doc-body h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.doc-body h3 {
  font-size: 1.02rem;
  font-weight: 650;
  margin: 1.35rem 0 .5rem;
}
.doc-body p {
  margin: 0 0 .85rem;
  color: var(--slate);
  font-size: .98rem;
  line-height: 1.75;
}
.doc-body ul, .doc-body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--slate);
  font-size: .98rem;
  line-height: 1.7;
}
.doc-body li { margin: .35rem 0; }
.doc-body a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 550;
}
.doc-body a:hover { text-decoration: underline; }
/* .doc-body a was forcing blue text on .btn-primary (blue-on-blue). */
.doc-body a.btn,
.doc-body a.btn:hover,
.doc-body a.btn:focus-visible,
.doc-contact a.btn,
.doc-contact a.btn:hover {
  text-decoration: none;
  font-weight: 600;
}
.doc-body a.btn-primary,
.doc-body a.btn-primary:visited,
.doc-body a.btn-primary:hover,
.doc-body a.btn-primary:focus-visible,
.doc-contact a.btn-primary,
.doc-contact a.btn-primary:visited,
.doc-contact a.btn-primary:hover,
.doc-contact a.btn-primary:focus-visible {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
.doc-body a.btn-ghost,
.doc-contact a.btn-ghost {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}
.doc-body strong { color: var(--ink); font-weight: 650; }
.doc-note {
  margin: 1.25rem 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--blue-soft), rgba(239, 246, 255, 0.35));
  border: none;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.6;
}

/* Support help cards */
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 1.25rem 0 1.75rem;
}
.help-card {
  display: block;
  padding: 18px 18px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.help-card:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}
.help-card h3 {
  margin: 0 0 6px;
  font-size: .98rem;
  color: var(--ink);
}
.help-card p {
  margin: 0;
  font-size: .88rem;
  color: var(--slate);
  line-height: 1.5;
}
.help-card .help-arrow {
  display: inline-block;
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 650;
  color: var(--blue);
}

.doc-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
/* Explicit CTA styles — do not rely on generic .btn padding alone. */
a.btn.doc-mail-btn,
.doc-contact a.btn.doc-mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-decoration: none !important;
}
a.btn.doc-mail-btn:hover,
a.btn.doc-mail-btn:focus-visible,
.doc-contact a.btn.doc-mail-btn:hover,
.doc-contact a.btn.doc-mail-btn:focus-visible {
  background: var(--blue-dark);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-decoration: none !important;
  box-shadow: var(--shadow-md);
}
.doc-contact-email {
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--slate);
  word-break: break-all;
}

.doc-toc {
  margin: 1.25rem 0 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  border-radius: var(--radius-sm);
}
.doc-toc p {
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 650;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.doc-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  columns: 2;
  column-gap: 24px;
}
.doc-toc li {
  margin: .25rem 0;
  font-size: .9rem;
  break-inside: avoid;
}
.doc-toc a { font-weight: 500; }

@media (max-width: 640px) {
  .help-grid { grid-template-columns: 1fr; }
  .doc-toc ol { columns: 1; }
  .doc-main { padding-top: calc(var(--nav-clearance) + 28px); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .welcome-tagline.is-typing::after { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-card:hover { transform: none; }
  .hero h1 .accent {
    animation: none;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--blue);
  }
  .eyebrow-dot { animation: none; }
  .hero-grid-canvas, .hero-bg::before { display: none; }
  .tp-placeholder.typing::after { display: none; }
}
