@import url('tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  padding-top: 72px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { color: var(--ink-soft); margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--amber-dark); outline-offset: 3px; }

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

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.section-head { max-width: 620px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--amber-dark); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { font-size: 16.5px; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--amber-dark); }

.btn-accent { background: var(--gradient-accent); color: #fff; box-shadow: var(--shadow-glow-amber); }
.btn-accent:hover { background: var(--amber-dark); box-shadow: none; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* Cards / surfaces — used deliberately, not on every block */
.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--ink-faint); }
.doc-card {
  background: var(--surface-raised);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-doc);
  padding: 26px;
}

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-badge .icon { width: 20px; height: 20px; }
.tint-amber { background: var(--amber-tint); color: var(--amber-dark); }
.tint-teal { background: var(--teal-tint); color: var(--teal); }
.tint-brick { background: var(--brick-tint); color: var(--brick); }
.tint-ink { background: var(--paper-alt); color: var(--ink); }

.icon { width: 26px; height: 26px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; }
.icon-lg { width: 40px; height: 40px; }

/* Nav */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  width: 100% !important;
  padding: 0 !important;
  background: rgba(10, 14, 23, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--line) !important;
  margin: 0 !important;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 72px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--paper-alt);
  border: 1.5px solid var(--amber);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}
.brand-mark .icon-sm { width: 18px; height: 18px; }
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  padding: 0 20px;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.active)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -3px;
  height: 2px;
  background: var(--amber);
  transition: right .18s ease;
}
.nav-links a:not(.active):hover::after { right: 0; }
.nav-links a.active {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 14px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-signin-mobile, .nav-getstarted-mobile { display: none; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; width: 18px; }
.nav-toggle span::after { position: absolute; top: 6px; width: 18px; }

@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
  .nav-links a.active { border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px var(--gutter); }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost, .nav-cta .btn-accent { display: none; }
  .nav-signin-mobile, .nav-getstarted-mobile { display: block; }
}

/* Hero */
.hero { position: relative; padding: 64px 0 0; background: var(--gradient-hero); overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); max-width: 15ch; letter-spacing: -0.02em; }
.hero p.lead { font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-soft); }
.hero-trust li .icon-xs { color: var(--amber); flex: none; }

/* Decorative background blobs — SVG, blurred, non-interactive */
.hero-blob { position: absolute; z-index: 0; pointer-events: none; filter: blur(64px); opacity: .55; will-change: transform; }
.hero-blob-1 { top: -140px; left: -120px; width: 440px; height: 440px; }
.hero-blob-2 { top: -60px; right: -160px; width: 420px; height: 420px; }

/* Trust badge pill with pulsing status dot */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--amber-tint);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.badge-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-tint);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--amber-tint); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

/* Gradient-filled headline text */
.text-gradient {
  color: var(--amber);
}
.text-gradient-alt {
  color: var(--teal);
}

/* Infinite marquee strip */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee-scroll 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink-soft); white-space: nowrap; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* "Why a connected system" diagram: flowing connectors, pulsing hub, floating nodes */
.diagram-line {
  animation: diagram-flow 1.6s linear infinite;
}
@keyframes diagram-flow {
  to { stroke-dashoffset: -22; }
}
.diagram-hub {
  transform-origin: 50% 50%;
  animation: diagram-pulse 2.6s ease-in-out infinite;
}
@keyframes diagram-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0)); }
  50% { filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.55)); }
}
.diagram-node {
  transform-origin: 50% 50%;
  animation: diagram-float 4.5s ease-in-out infinite;
}
.diagram-node-2 { animation-delay: .35s; }
.diagram-node-3 { animation-delay: .7s; }
.diagram-node-4 { animation-delay: 1.05s; }
@keyframes diagram-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .diagram-line, .diagram-hub, .diagram-node { animation: none; }
}

/* Dashboard mock-up: hero product visual, distinct from the browser-chrome preview further down the page */
.dash-mock {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-doc);
  padding: 22px;
}
.dash-mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.dash-mock-head b { font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.dash-mock-head span { font-size: 12px; color: var(--ink-faint); }
.dash-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.dash-mock-stat { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.dash-mock-stat span { display: block; font-size: 11px; color: var(--ink-faint); margin-bottom: 5px; }
.dash-mock-stat b { font-family: var(--font-mono); font-size: 17px; color: var(--ink); }
.dash-mock-stat .delta { display: block; font-size: 11px; color: var(--teal); font-weight: 600; margin-top: 3px; }
.dash-mock-chart { margin-bottom: 18px; }
.dash-mock-rows { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.dash-mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 12.5px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.dash-mock-row:last-child { border-bottom: none; }
.dash-mock-row b { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Shared "document row" list used inside .doc-card elsewhere on the page */
.doc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; gap: 12px; }
.doc-head b { font-family: var(--font-display); font-size: 15px; }
.doc-head span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.ledger-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.ledger-row:last-child { border-bottom: none; }
.ledger-row .num { font-family: var(--font-mono); color: var(--ink); }

/* Floating stat callouts, overlapping the dashboard mock-up */
.stat-float {
  position: absolute;
  z-index: 2;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-raised);
}
.stat-float-1 { left: -22px; top: -22px; }
.stat-float-2 { right: -18px; bottom: -22px; }
.stat-float b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); line-height: 1.2; }
.stat-float .delta { font-size: 11.5px; color: var(--teal); font-weight: 600; }
.stat-float .label { font-size: 11.5px; color: var(--ink-faint); }

/* Motion layer, separate from .stat-float so the idle float doesn't fight the scroll-reveal transform */
.stat-float-motion {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: dash-float 4.2s ease-in-out infinite;
}
.stat-float-2 .stat-float-motion { animation-delay: .6s; }
@keyframes dash-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Chart line draws itself in, and the whole wave rises up from the baseline, once the card scrolls into view */
.dash-mock-chart-line {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 7s ease .35s;
}
.dash-mock.revealed .dash-mock-chart-line { stroke-dashoffset: 0; }
.dash-mock-chart-rise {
  transform: translateY(22px);
  transition: transform 6.5s cubic-bezier(.16, 1, .3, 1) .2s;
}
.dash-mock.revealed .dash-mock-chart-rise { transform: translateY(0); }

.dash-mock-stat .delta { animation: dash-delta-pulse 2.4s ease-in-out infinite; }
@keyframes dash-delta-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  .stat-float-motion { animation: none; }
  .dash-mock-stat .delta { animation: none; }
  .dash-mock-chart-line { transition: none; stroke-dashoffset: 0; }
  .dash-mock-chart-rise { transition: none; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .dash-mock { margin-top: 40px; }
  .dash-mock-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-float-1 { left: 4%; top: -16px; }
  .stat-float-2 { right: 4%; bottom: -16px; }
  .stat-float { padding: 10px 14px; }
}

.trust-strip { margin-top: 76px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.trust-strip-row span:first-child { font-size: 13px; color: var(--ink-faint); }
.trust-strip-row .marquee { flex: 1 1 320px; min-width: 0; }

/* Feature list — alternating rows, not a repeated card grid */
.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row h3 { font-size: 18px; margin-bottom: 6px; }
.feature-row p { font-size: 14.5px; margin: 0; }

.showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; margin-top: 60px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }
.showcase h3 { font-size: 24px; }

/* Steps — legitimate numbered sequence */
.steps-row { display: flex; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step-card { flex: 1; padding: 26px 22px; border-left: 1px solid var(--line); }
.step-card:first-child { border-left: none; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--amber-dark); margin-bottom: 10px; }
.step-card h4 { font-size: 15px; margin-bottom: 6px; }
.step-card p { font-size: 13.5px; margin: 0; }
@media (max-width: 860px) {
  .steps-row { flex-direction: column; }
  .step-card { border-left: none; border-top: 1px solid var(--line); }
  .step-card:first-child { border-top: none; }
}

/* CTA band */
.cta-band { display: grid; grid-template-columns: 1.2fr auto; gap: 30px; align-items: center; background: var(--gradient-cta); color: var(--ink); border-radius: var(--r-lg); padding: 48px 50px; }
.cta-band h2 { color: var(--ink); margin-bottom: 10px; }
.cta-band p { color: var(--ink-soft); margin: 0; }
.cta-band .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-accent { background: var(--amber); }
.cta-band .btn-ghost { border-color: var(--ink-soft); color: var(--ink); }
.cta-band .btn-ghost:hover { border-color: var(--ink); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: left; } }

/* Homepage pricing summary strip */
.price-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.price-strip-item { padding: 28px 24px; border-left: 1px solid var(--line); background: var(--surface-raised); transition: background .15s ease; }
.price-strip-item:hover { background: var(--paper-alt); }
.price-strip-item.is-featured:hover { background: var(--paper-alt); filter: brightness(0.98); }
.price-strip-item:first-child { border-left: none; }
.price-strip-item.is-featured { background: var(--paper-alt); }
.price-strip-item .plan-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.price-strip-item .plan-badge { font-family: var(--font-mono); font-size: 10.5px; background: var(--gradient-accent); color: #fff; padding: 2px 7px; border-radius: var(--r-pill); }
.price-strip-item .plan-amount { font-family: var(--font-mono); font-size: 30px; color: var(--ink); }
.price-strip-item .plan-amount span { font-size: 13px; color: var(--ink-faint); }
.price-strip-item .plan-for { font-size: 13px; color: var(--ink-faint); margin: 6px 0 18px; }
@media (max-width: 860px) {
  .price-strip { grid-template-columns: repeat(2, 1fr); }
  .price-strip-item:nth-child(2) { border-left: 1px solid var(--line); }
  .price-strip-item:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .price-strip { grid-template-columns: 1fr; }
  .price-strip-item { border-left: none !important; border-top: 1px solid var(--line); }
  .price-strip-item:first-child { border-top: none; }
}

/* Homepage product-preview mockup of the real app dashboard */
.preview-frame { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-doc); overflow: hidden; }
.preview-chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-alt); }
.preview-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.preview-url { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); background: var(--surface-raised); padding: 4px 12px; border-radius: var(--r-pill); }
.preview-body { display: flex; min-height: 300px; }
.preview-sidebar { width: 58px; flex: none; border-right: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.preview-sidebar .icon-badge { width: 34px; height: 34px; margin: 0; }
.preview-sidebar .icon { width: 16px; height: 16px; }
.preview-main { flex: 1; padding: 18px 22px; min-width: 0; }
.preview-greeting { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.preview-greeting b { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.preview-greeting span { font-size: 11.5px; color: var(--ink-faint); }
.preview-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.preview-stat { background: var(--paper-alt); border-radius: var(--r-sm); padding: 10px 12px; }
.preview-stat span { display: block; font-size: 10.5px; color: var(--ink-faint); margin-bottom: 4px; }
.preview-stat b { font-family: var(--font-mono); font-size: 16px; color: var(--ink); }
.preview-chart { background: var(--paper-alt); border-radius: var(--r-sm); padding: 12px 14px 6px; margin-bottom: 16px; }
.preview-chart-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-faint); margin-bottom: 6px; }
.preview-chart-head b { color: var(--teal); font-weight: 600; }
.preview-rows { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.preview-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 12.5px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.preview-row:last-child { border-bottom: none; }
.preview-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.preview-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-row b { flex: none; color: var(--ink); font-weight: 600; white-space: nowrap; }
.preview-avatar { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--amber-tint); color: var(--amber); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 10px; font-weight: 700; }
.preview-status { flex: none; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); }
.preview-status.is-done { background: var(--teal-tint); color: var(--teal); }
.preview-status.is-progress { background: var(--amber-tint); color: var(--amber); }
@media (max-width: 640px) {
  .preview-stats { grid-template-columns: repeat(2, 1fr); }
  .preview-sidebar { width: 44px; }
}

/* Direct contact info strip (replaces a dedicated contact page) */
.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); }
.info-strip-item { padding: 28px 24px; border-left: 1px solid var(--line); }
.info-strip-item:first-child { border-left: none; }
.info-strip-item h4 { font-size: 14px; margin-bottom: 4px; }
.info-strip-item p { font-size: 13.5px; margin: 0; }
.info-strip-item a { color: var(--amber-dark); font-weight: 600; }
@media (max-width: 860px) {
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .info-strip-item:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
  .info-strip-item:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .info-strip { grid-template-columns: 1fr; }
  .info-strip-item { border-left: none !important; border-top: 1px solid var(--line); }
  .info-strip-item:first-child { border-top: none; }
}

/* Plan comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface-raised); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; font-weight: 500; color: var(--ink); min-width: 220px; }
.compare-table thead th { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); background: var(--paper-alt); padding-top: 18px; padding-bottom: 18px; }
.compare-table thead th:first-child { background: var(--surface-raised); }
.compare-table thead th.is-featured { background: var(--amber-tint); color: var(--amber-dark); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--paper-alt); }
.compare-table .yes { color: var(--teal); }
.compare-table .yes .icon { width: 16px; height: 16px; }
.compare-table .no { color: var(--line); font-size: 16px; }
.compare-table td.is-featured, .compare-table th.is-featured { background: var(--amber-tint); }

/* Full pricing page grid */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; margin-top: 14px; }
@media (max-width: 1000px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-raised); }
.price-card.featured { background: linear-gradient(175deg, var(--amber-tint) 0%, var(--paper-alt) 65%); border-color: var(--amber); }
.price-card h3 { font-family: var(--font-display); font-size: 14.5px; text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-weight: 600; }
.price-badge { position: absolute; top: -12px; right: 26px; font-family: var(--font-mono); font-size: 10.5px; background: var(--gradient-accent); color: #fff; padding: 4px 9px; border-radius: var(--r-pill); box-shadow: var(--shadow-glow-amber); }
.price-amount { font-family: var(--font-mono); font-size: 38px; color: var(--ink); margin: 8px 0 2px; }
.price-amount span { font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.price-desc { font-size: 13.5px; margin-bottom: 20px; }
.price-features { margin: 0 0 24px; flex: 1; }
.price-features li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); padding: 6px 0; }
.price-features li .tick { flex: none; color: var(--teal); margin-top: 2px; }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; padding: 20px 4px; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-size: 15.5px; font-weight: 600; color: var(--ink); transition: color .15s ease; }
.faq-q:hover { color: var(--amber-dark); }
.faq-q .plus { flex: none; color: var(--ink-faint); font-family: var(--font-mono); font-size: 18px; transition: transform .2s, color .15s ease; }
.faq-q:hover .plus { color: var(--amber-dark); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); color: var(--amber-dark); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 4px 22px; font-size: 14.5px; color: var(--ink-soft); }

/* Forms */
.form-card { max-width: 620px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-raised);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .15s ease;
}
.form-row input:hover, .form-row textarea:hover { border-color: var(--ink-faint); }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--amber-dark); outline-offset: 1px; border-color: var(--amber-dark); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}
.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  margin: 1px 0 0;
  border: 1.5px solid var(--ink-faint);
  border-radius: 5px;
  background: var(--surface-raised);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color .15s ease, background .15s ease;
}
.form-check input[type="checkbox"]::before {
  content: '';
  width: 11px;
  height: 11px;
  transform: scale(0);
  transition: transform .12s ease;
  box-shadow: inset 1em 1em white;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.form-check input[type="checkbox"]:checked {
  border-color: var(--amber-dark);
  background: var(--amber-dark);
}
.form-check input[type="checkbox"]:checked::before { transform: scale(1); }
.form-check input[type="checkbox"]:hover { border-color: var(--amber-dark); }
.form-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--amber-dark); outline-offset: 2px; }
.form-check label a { color: var(--amber-dark); font-weight: 600; }
.form-msg { margin-top: 14px; font-weight: 600; font-size: 13.5px; padding: 12px 16px; border-radius: var(--r-sm); display: none; }
.form-msg.ok { display: block; background: var(--teal-tint); color: var(--teal); }
.form-msg.err { display: block; background: var(--brick-tint); color: var(--brick); }
.honeypot { position: absolute; left: -9999px; }

/* Contact split */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-info-item:first-child { border-top: none; padding-top: 0; }
.contact-info-item h4 { font-size: 14.5px; margin-bottom: 4px; }
.contact-info-item p { font-size: 13.5px; margin: 0; }

/* Legal / content docs */
.doc { max-width: 740px; }
.doc h1 { font-size: 32px; }
.doc .updated { color: var(--ink-faint); font-size: 13.5px; margin-bottom: 36px; font-family: var(--font-mono); }
.doc h2 { font-size: 19px; margin-top: 36px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 15px; }
.doc ul { margin-left: 20px; list-style: disc; margin-bottom: 1em; }
.doc ul li { margin-bottom: 7px; }
.doc a { color: var(--amber-dark); font-weight: 600; }

/* Footer */
.site-footer { position: relative; padding: 60px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 280px;
  background: radial-gradient(55% 100% at 18% 0%, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0) 70%);
  pointer-events: none;
}
.footer-top { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-brand .footer-contact { margin-top: 18px; }
.footer-brand .footer-contact p { margin-bottom: 4px; }
.footer-brand .footer-contact a { display: block; font-size: 14px; color: var(--amber-dark); font-weight: 600; margin-top: 10px; }
.footer-brand .footer-contact a:hover { color: var(--ink); }
.footer-col h5 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 11px; }
.footer-col a:hover { color: var(--ink); }
.footer-divider { height: 1px; background: var(--line); margin: 18px 0; }
.footer-contact-grid { display: flex; flex-wrap: wrap; gap: 20px 44px; }
.footer-contact-grid > div { display: flex; flex-direction: column; gap: 4px; }
.fc-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.fc-value { font-size: 14px; color: var(--ink); font-weight: 500; }
.fc-value a { color: var(--amber-dark); font-weight: 600; }
@media (max-width: 560px) { .footer-contact-grid { gap: 16px 28px; } }
.footer-bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-faint); }
.footer-bottom .footer-legal-note { display: block; margin-top: 2px; }

/* Status page */
.status-card { max-width: 520px; margin: 50px auto; text-align: center; }
.status-icon { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 999; font-weight: 600;
}
.skip-link:focus { left: 0; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Scroll-reveal entrance animation ("AOS") */
.reveal, .reveal-group [class*="reveal-"] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.reveal-left, .reveal-group .reveal-left { transform: translateX(-34px); }
.reveal.reveal-right, .reveal-group .reveal-right { transform: translateX(34px); }
.reveal.reveal-zoom, .reveal-group .reveal-zoom { transform: scale(.93); }
.reveal.reveal-fade, .reveal-group .reveal-fade { transform: none; }

.reveal.revealed,
.reveal-group.revealed [class*="reveal-"] {
  opacity: 1;
  transform: none;
}

.reveal-group.revealed .reveal-1 { transition-delay: .04s; }
.reveal-group.revealed .reveal-2 { transition-delay: .11s; }
.reveal-group.revealed .reveal-3 { transition-delay: .18s; }
.reveal-group.revealed .reveal-4 { transition-delay: .25s; }
.reveal-group.revealed .reveal-5 { transition-delay: .32s; }
.reveal-group.revealed .reveal-6 { transition-delay: .39s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group [class*="reveal-"] {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .card:hover { transform: none; }
}

/* Small utility grids for secondary pages */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.feature-card h3 { font-size: 17px; }
.feature-card p { font-size: 14px; margin: 0; }

/* Cookie consent modal — bottom-right corner card */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: auto;
  z-index: 300;
  width: 380px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.cookie-banner.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cookie-banner-inner {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-doc);
  padding: 22px 22px 20px;
}
.cookie-banner-main { display: flex; align-items: flex-start; gap: 14px; }
.cookie-banner-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--amber-tint);
  color: var(--amber-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-banner-icon .icon { width: 18px; height: 18px; }
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text strong { display: block; font-family: var(--font-display); font-size: 15.5px; color: var(--ink); margin-bottom: 5px; }
.cookie-banner-text p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.cookie-banner-text a { color: var(--amber-dark); font-weight: 600; }

.cookie-banner-details { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.cookie-banner-details[hidden] { display: none; }
.cookie-row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cookie-row-name { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink); }
.cookie-row-status { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); background: var(--paper-alt); padding: 3px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.cookie-row-status.is-active { color: var(--teal); background: var(--teal-tint); }
.cookie-row p { margin: 3px 0 0; font-size: 12px; color: var(--ink-faint); }

.cookie-banner-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
#cookieToggle { align-self: flex-start; padding: 0; border: none; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#cookieToggle:hover { color: var(--amber-dark); }
.cookie-banner-buttons { display: flex; gap: 10px; }
.cookie-banner-buttons .btn { flex: 1; }

@media (max-width: 460px) {
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; width: auto; max-width: none; }
}
