/* ============================================================
   Waypoint landing page
   Tokens, both themes, responsive, a11y.
   Radius system: cards 16px, inner elements 10px, inputs 8px,
   interactive controls pill (999px). Documented, consistent.
   ============================================================ */

/* ---------- Tokens: dark (default) ---------- */
:root {
  --bg: #0b0b0e;
  --bg-2: #101014;
  --surface: #141419;
  --surface-2: #1b1b22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f5;
  --text-2: #a7a7b4;
  --text-3: #70707e;
  --accent: #b6f04b;
  --accent-strong: #a3e635;
  --on-accent: #101204;
  --accent-soft: rgba(182, 240, 75, 0.12);
  --accent-border: rgba(182, 240, 75, 0.4);
  --glow: rgba(182, 240, 75, 0.07);
  --shadow-window: 0 30px 70px -24px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.45);

  --font-display: "Space Grotesk", "Manrope", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --r-lg: 16px;
  --r-md: 10px;
  --r-sm: 8px;
  --r-pill: 999px;
  --container: 1200px;

  --nav-h: 64px;
}

/* ---------- Tokens: light ---------- */
html[data-theme="light"] {
  --bg: #f6f6f7;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #ededef;
  --border: rgba(9, 9, 11, 0.1);
  --border-strong: rgba(9, 9, 11, 0.2);
  --text: #17171b;
  --text-2: #55555f;
  --text-3: #83838e;
  --accent: #4d7c0f;
  --accent-strong: #a3e635;
  --on-accent: #131905;
  --accent-soft: rgba(77, 124, 15, 0.1);
  --accent-border: rgba(77, 124, 15, 0.35);
  --glow: rgba(77, 124, 15, 0.06);
  --shadow-window: 0 30px 70px -30px rgba(9, 9, 11, 0.28);
  --shadow-card: 0 10px 30px -16px rgba(9, 9, 11, 0.18);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.1;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

::selection {
  background: var(--accent-strong);
  color: var(--on-accent);
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.container-narrow {
  max-width: 760px;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: top 0.2s ease;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent-strong);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text);
}

.nav-toggle svg {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.mobile-menu {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px 20px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a:not(.btn) {
  padding: 12px 8px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: var(--r-sm);
}

.mobile-menu a:not(.btn):hover {
  color: var(--text);
  background: var(--surface-2);
}

.mobile-menu .btn {
  margin-top: 10px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vh, 104px) 0 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 72% 8%, var(--glow), transparent 62%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 25%, transparent 78%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(64px, 8vh, 96px);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
}

.badge-chip {
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-pill);
}

.hero h1 {
  margin-bottom: 20px;
}

.hl {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hl::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  color: var(--text-2);
  max-width: 44ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Product window ---------- */
.window {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  position: relative;
  animation: float 9s ease-in-out infinite;
}

.window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  z-index: 1;
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.window-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.window-url svg {
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.window-body {
  padding: 18px 16px 14px;
}

.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.app-project {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-meta {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-top: 3px;
}

.chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

.chip-ok {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.avatars {
  display: flex;
  flex-direction: row-reverse;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-2);
  border: 2px solid var(--surface);
  margin-left: -7px;
}

.avatar-xs {
  width: 20px;
  height: 20px;
  font-size: 0.5rem;
  margin-left: 0;
  border-width: 1.5px;
}

.avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.avatars .avatar:first-child {
  margin-left: 0;
}

.av-1 {
  background: color-mix(in srgb, var(--accent-strong) 22%, var(--surface-2));
  color: var(--accent);
}

.av-2 {
  background: color-mix(in srgb, #60a5fa 18%, var(--surface-2));
  color: #60a5fa;
}

.av-3 {
  background: color-mix(in srgb, #f472b6 18%, var(--surface-2));
  color: #f472b6;
}

.app-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.app-tabs button {
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease;
}

.app-tabs button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.view {
  min-height: 218px;
}

/* Board */
.view-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.col.drag-over {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col-count {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-3);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  cursor: grab;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.card:active {
  cursor: grabbing;
}

.card.dragging {
  opacity: 0.35;
  transform: rotate(2deg);
}

.card-done {
  opacity: 0.62;
}

.card-title {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}

.tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

.tag-design {
  color: var(--accent);
  background: var(--accent-soft);
}

.tag-eng {
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.tag-ops {
  color: var(--text-2);
  background: color-mix(in srgb, #60a5fa 14%, var(--surface-2));
}

/* List view */
.view-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.list-name {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
}

.list-status {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.st-done {
  color: var(--accent);
  background: var(--accent-soft);
}

.st-prog {
  color: var(--text-2);
  background: var(--surface-2);
}

.st-back {
  color: var(--text-3);
  background: var(--surface-2);
}

.check {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--on-accent);
}

.check-on {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.check-on::after {
  content: "\2713";
}

/* Timeline view */
.view-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.tl-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tl-label {
  width: 52px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
}

.tl-track {
  flex: 1;
  height: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  padding: 0 3px;
}

.tl-bar {
  display: inline-flex;
  align-items: center;
  height: 16px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  padding: 0 8px;
  white-space: nowrap;
}

.tl-bar-1 {
  width: 38%;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.tl-bar-2 {
  width: 64%;
  background: color-mix(in srgb, var(--accent) 30%, var(--surface-2));
  color: var(--text-2);
}

.tl-bar-3 {
  width: 78%;
  background: color-mix(in srgb, var(--accent) 55%, var(--surface-2));
  color: var(--text);
}

.tl-bar-4 {
  width: auto;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 500;
}

/* Window footer */
.window-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.window-foot > span:first-child {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}

.meter {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent-strong));
  border-radius: var(--r-pill);
}

.meter-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  min-width: 34px;
  text-align: right;
}

/* ---------- Logo wall ---------- */
.logos {
  padding: 0 0 clamp(56px, 7vw, 88px);
}

.logos-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 26px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - clamp(18px, 2.5vw, 32px)));
  }
}

.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.logo-item:hover {
  color: var(--text-2);
}

/* ---------- Sections (shared) ---------- */
section:not(.hero) {
  padding: clamp(72px, 9vw, 108px) 0;
}

.features,
.pricing,
.cta-band {
  background: var(--bg-2);
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 52px);
  max-width: 640px;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 14px;
}

.section-head .section-sub {
  color: var(--text-2);
  font-size: 1.02rem;
  max-width: 56ch;
}

.section-head-center .section-sub {
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.bento-cell {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-cell:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.bento-cell-lg {
  grid-column: span 4;
}

.bento-cell-wide {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.bento-cell-accent {
  background: linear-gradient(155deg, var(--accent-soft) 0%, transparent 46%), var(--surface);
  border-color: color-mix(in srgb, var(--accent-border) 55%, var(--border));
}

.bento-cell h3 {
  margin-bottom: 8px;
}

.bento-cell p {
  color: var(--text-2);
  font-size: 0.93rem;
}

.bento-text {
  max-width: 40ch;
}

.bento-visual {
  margin-top: auto;
}

.bento-views {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 96px;
}

.mini-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.mini-bar {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.mini-col .mini-bar:first-child {
  height: 26px;
}

.mini-col-done .mini-bar {
  background: color-mix(in srgb, var(--accent) 35%, var(--surface-2));
  border-color: transparent;
}

.bento-ai {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-card {
  width: 100%;
  max-width: 220px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.ai-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}

.ai-line {
  display: block;
  height: 7px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: var(--surface-2);
}

.ai-line-short {
  width: 62%;
}

.ai-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-pill);
}

.bento-rules {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rule-chip {
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.rule-arrow {
  color: var(--text-3);
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.bento-sync {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-line {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.bento-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
}

.bar {
  flex: 1;
  border-radius: 5px 5px 3px 3px;
  background: color-mix(in srgb, var(--accent) 32%, var(--surface-2));
}

.bar-1 {
  height: 42%;
}

.bar-2 {
  height: 62%;
}

.bar-3 {
  height: 50%;
}

.bar-4 {
  height: 76%;
}

.bar-5 {
  height: 58%;
}

.bar-6 {
  height: 96%;
  background: var(--accent-strong);
}

.bento-ints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.int-chip {
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.int-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* ---------- Workflow ---------- */
.workflow .section-head {
  text-align: center;
  margin-inline: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-2);
  font-size: 0.93rem;
}

/* ---------- Quotes ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.quote-featured {
  background: linear-gradient(155deg, var(--accent-soft) 0%, transparent 42%), var(--surface);
  border-color: color-mix(in srgb, var(--accent-border) 50%, var(--border));
}

.quote blockquote p {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.quote-featured blockquote p {
  font-size: 1.22rem;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-who {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.quote-who strong {
  font-size: 0.9rem;
}

.quote-who span {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  margin: 0 auto 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-3);
  border-radius: var(--r-pill);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.billing-btn.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.save-chip {
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-pill);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.plan:hover {
  transform: translateY(-3px);
}

.plan-popular {
  border-color: var(--accent-border);
  background: linear-gradient(160deg, var(--accent-soft) 0%, transparent 40%), var(--surface);
}

.pop-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent-strong);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.plan-name {
  margin-bottom: 6px;
}

.plan-desc {
  color: var(--text-2);
  font-size: 0.9rem;
  min-height: 2.8em;
  margin-bottom: 22px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 22px;
}

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-per {
  font-size: 0.8rem;
  color: var(--text-3);
}

.plan .btn {
  margin-bottom: 24px;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.plan-list li::before {
  content: "\2713";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}

.pricing-note {
  margin-top: 30px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-3);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-list details[open] {
  border-color: var(--border-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

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

.faq-list summary:hover {
  color: var(--text-2);
}

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 0.93rem;
  max-width: 62ch;
}

/* ---------- CTA band ---------- */
.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, var(--glow), transparent 65%),
    var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
}

.cta-card h2 {
  margin-bottom: 14px;
}

.cta-card p {
  color: var(--text-2);
  max-width: 44ch;
  margin: 0 auto 32px;
  font-size: 1.02rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(56px, 7vw, 80px) 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-3);
  font-size: 0.9rem;
  margin: 14px 0 18px;
  max-width: 30ch;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.15s ease;
  width: fit-content;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ---------- Reveal on scroll (JS-gated for no-JS fallback) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 100ms);
}

html.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-preview {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  .bento-cell-lg,
  .bento-cell-accent {
    grid-column: span 3;
  }

  .bento-cell {
    grid-column: span 3;
  }

  .bento-cell-wide {
    grid-column: span 6;
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-ints {
    justify-content: flex-start;
  }

  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quote-featured {
    grid-column: span 2;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .pop-badge {
    top: -13px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-signin {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .bento-cell,
  .bento-cell-lg,
  .bento-cell-accent,
  .bento-cell-wide {
    grid-column: span 6;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .quote-featured {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .window-body {
    padding: 14px 10px 10px;
  }

  .view-board {
    gap: 8px;
  }

  .card {
    padding: 8px 9px;
  }

  .tl-label {
    width: 44px;
  }
}

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

  .window,
  .sync-line {
    animation: none;
  }

  .marquee-track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
