/* ============ Design tokens ============ */
:root {
  --color-primary: #145da0;
  --color-primary-dark: #0d3b66;
  --color-primary-light: #eaf2fb;
  --color-accent: #14b8a6;
  --color-accent-dark: #0f9488;
  --color-text: #1e293b;
  --color-text-dim: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f9fc;
  --color-border: #e2e8f0;
  --color-white: #ffffff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

  --max-width: 1160px;
  --header-height: 72px;
}

/* ============ Reset ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: 34px;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 14px;
  color: var(--color-text-dim);
  font-size: 17px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.28);
}
.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px) scale(1.03);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-dim);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary-dark);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 0 80px;
  background:
    radial-gradient(1100px 480px at 15% -10%, var(--color-primary-light) 0%, rgba(234,242,251,0) 60%),
    var(--color-bg);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.hero h1 {
  font-size: 52px;
  letter-spacing: -0.02em;
  max-width: 780px;
  color: var(--color-primary-dark);
}
.hero h1 .accent { color: var(--color-accent-dark); }
.hero-sub {
  font-size: 19px;
  color: var(--color-text-dim);
  max-width: 620px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.hero-note {
  font-size: 13px;
  color: var(--color-text-dim);
}
/* Product screenshot carousel (js/main.js initHeroCarousel) */
.hero-showcase {
  margin-top: 48px;
  width: 100%;
  max-width: 920px;
}
.hero-art {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--color-bg);
}
.hero-art .mock-bar { padding: 11px 14px; }
.carousel-track {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
  touch-action: pan-y;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel-slide.is-active { opacity: 1; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.carousel-controls {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.carousel-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dim);
  min-height: 1.4em;
}
.carousel-dots { display: flex; gap: 4px; }
.carousel-dot {
  /* 24px hit area around an 8px dot */
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.carousel-dot:hover::before { background: #94a3b8; }
.carousel-dot[aria-current="true"]::before {
  width: 22px;
  background: var(--color-accent);
}
.carousel-dot:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; border-radius: 6px; }

/* ============ Feature grid ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(20, 184, 166, 0.45);
}
.feature-icon { transition: background-color 0.3s ease, color 0.3s ease; }
.feature-card:hover .feature-icon {
  background: var(--color-accent);
  color: #fff;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--color-text-dim);
}

/* Whole card is clickable: the "Learn more" button's ::after stretches
   over the card, so there's one real, focusable control per card. */
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.feature-more {
  margin-top: auto;
  padding: 16px 0 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent-dark);
}
.feature-more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
.feature-more:focus-visible { outline: none; }
.feature-more:focus-visible::after {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.feature-more svg { width: 16px; height: 16px; transition: translate 0.25s ease; }
.feature-card:hover .feature-more svg { translate: 4px 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============ Feature modal ============ */
html.modal-open { overflow: hidden; }
.feature-modal {
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  width: min(900px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 30px 80px rgba(13, 59, 102, 0.3);
}
.feature-modal::backdrop {
  background: rgba(13, 59, 102, 0.45);
  backdrop-filter: blur(3px);
}
.feature-modal[open] { animation: modal-in 0.3s ease-out; }
.feature-modal[open]::backdrop { animation: backdrop-in 0.3s ease-out; }
.feature-modal.is-closing { animation: modal-out 0.22s ease-in forwards; }
.feature-modal.is-closing::backdrop { animation: backdrop-out 0.22s ease-in forwards; }
@keyframes modal-in {
  from { opacity: 0; translate: 0 16px; scale: 0.97; }
}
@keyframes modal-out {
  to { opacity: 0; translate: 0 12px; scale: 0.98; }
}
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }

.feature-modal-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: color 0.25s ease, border-color 0.25s ease, rotate 0.25s ease;
}
.modal-close:hover { color: var(--color-primary-dark); border-color: var(--color-primary); rotate: 90deg; }
.modal-close:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.modal-close svg { width: 18px; height: 18px; }

/* Placeholder product visual: a mock app window built around the
   feature's icon. Swap for a real screenshot (an <img>) later. */
.modal-visual {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-accent-dark) 130%);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-window {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: rise-in 0.4s 0.1s ease-out both;
}
.mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mock-head { display: flex; align-items: center; gap: 12px; }
.mock-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mock-icon svg { width: 24px; height: 24px; }
.mock-title { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mock-line { display: block; height: 8px; border-radius: 4px; background: var(--color-border); }
.mock-line.strong { background: #cbd5e1; height: 10px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.mock-row .mock-line { flex: 1; }
.mock-pill { width: 42px; height: 14px; border-radius: 999px; background: rgba(20, 184, 166, 0.25); flex-shrink: 0; }
.mock-pill.blue { background: rgba(20, 93, 160, 0.2); }

.modal-body { padding: 48px 40px 40px; }
.modal-body .eyebrow { margin-bottom: 10px; }
.modal-body h2 {
  font-size: 26px;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  padding-right: 32px;
}
.modal-body p { color: var(--color-text-dim); font-size: 15.5px; }
.modal-body ul { margin: 22px 0 28px; }
.modal-body li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 12px;
}
.modal-body li svg { width: 18px; height: 18px; color: var(--color-accent-dark); flex-shrink: 0; margin-top: 2px; }

/* Real screenshot: widen the modal and give the image more of it. */
.feature-modal.has-image { width: min(1060px, calc(100% - 32px)); }
.feature-modal.has-image .feature-modal-inner { grid-template-columns: 1.35fr 1fr; }
.feature-modal.has-image .modal-visual { padding: 36px 28px; }
.shot-frame {
  margin: 0;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: rise-in 0.4s 0.1s ease-out both;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
}

@media (max-width: 760px) {
  .feature-modal-inner { grid-template-columns: 1fr; }
  .feature-modal.has-image .feature-modal-inner { grid-template-columns: 1fr; }
  .feature-modal.has-image .modal-visual { padding: 20px 16px; }
  .modal-visual { padding: 32px 24px; }
  .modal-body { padding: 28px 24px 28px; }
  .modal-body h2 { font-size: 22px; padding-right: 0; }
}

/* ============ Social proof ============ */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.logo-placeholder {
  width: 148px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.testimonial {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: center;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}
.testimonial blockquote {
  font-size: 19px;
  color: var(--color-text);
  margin: 0 0 16px;
}
.testimonial cite {
  font-style: normal;
  font-size: 14px;
  color: var(--color-text-dim);
}

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}
.price-card { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card.featured {
  border: 2px solid var(--color-accent);
  box-shadow: 0 20px 48px rgba(13, 59, 102, 0.16);
  position: relative;
  z-index: 1;
  transform: scale(1.05);
  background: linear-gradient(180deg, #f0fdfa 0%, var(--color-bg) 38%);
}
.price-card.featured:hover { box-shadow: 0 24px 56px rgba(13, 59, 102, 0.2); }
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.price-card .price-sub {
  color: var(--color-text-dim);
  font-size: 14px;
  margin-bottom: 20px;
}
.price-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}
.price-amount span {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-dim);
}
.price-note {
  font-size: 12.5px;
  color: var(--color-text-dim);
  margin-bottom: 24px;
}
.price-features {
  margin: 0 0 28px;
  flex-grow: 1;
}
.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  padding: 7px 0;
  color: var(--color-text);
}
.price-features svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent-dark);
  margin-top: 1px;
}
.pricing-footnote {
  text-align: center;
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--color-text-dim);
}

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-accent-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { font-size: 30px; color: #fff; }
.cta-band p { margin-top: 12px; color: rgba(255,255,255,0.85); font-size: 16px; }
.cta-band .hero-ctas { margin-top: 26px; }
.cta-band .btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.cta-band .btn-secondary:hover { border-color: #fff; }

/* ============ Footer ============ */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.8);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============ Features page ============ */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
}
.feature-detail:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}
.feature-detail.reverse .feature-detail-media { order: 2; }
.feature-detail-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 14px;
}
.feature-detail-body .eyebrow { margin-bottom: 10px; }
.feature-detail-body h2 {
  font-size: 28px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.feature-detail-body p {
  color: var(--color-text-dim);
  font-size: 15.5px;
  margin-bottom: 18px;
}
.feature-detail-body ul li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  padding: 6px 0;
}
.feature-detail-body ul svg {
  width: 18px; height: 18px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
  margin-top: 2px;
}
.page-hero {
  padding: 64px 0 24px;
  text-align: center;
}
.page-hero h1 { font-size: 40px; color: var(--color-primary-dark); letter-spacing: -0.01em; }
.page-hero p { margin-top: 14px; color: var(--color-text-dim); font-size: 17px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============ Demo request page ============ */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
  padding: 56px 0 100px;
}
.demo-side h2 { font-size: 26px; color: var(--color-primary-dark); margin-bottom: 14px; }
.demo-side p { color: var(--color-text-dim); font-size: 15px; margin-bottom: 22px; }
.demo-side ul li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  padding: 8px 0;
}
.demo-side ul svg { width: 18px; height: 18px; color: var(--color-accent-dark); flex-shrink: 0; margin-top: 2px; }

.form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-status {
  margin-top: 14px;
  font-size: 13.5px;
}
.form-status.error { color: #b91c1c; }

.confirmation {
  text-align: center;
  padding: 40px 20px;
}
.confirmation .check-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.confirmation .check-badge svg { width: 28px; height: 28px; }
.confirmation h3 { font-size: 20px; margin-bottom: 10px; }
.confirmation p { color: var(--color-text-dim); font-size: 14.5px; }
[hidden] { display: none !important; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .demo-layout { grid-template-columns: 1fr; gap: 40px; }
  .feature-detail,
  .feature-detail.reverse { grid-template-columns: 1fr; }
  .feature-detail.reverse .feature-detail-media { order: 0; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header .container { gap: 12px; padding: 0 16px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 9px 14px; font-size: 14px; }
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .cta-band { padding: 40px 24px; }
  .section-head h2 { font-size: 26px; }
}

@media (max-width: 379px) {
  /* Too narrow for logo + CTA + menu; the CTA stays in the menu panel. */
  .header-actions .btn { display: none; }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-bg);
  z-index: 40;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav a {
  display: block;
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.mobile-nav .btn { margin-top: 24px; }

/* ============ Motion ============ */
/* Hero background: a slowly drifting teal/blue wash, plus faint dashed
   "lane lines" that roll toward the right to suggest freight in motion. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  inset: -20%;
  background:
    radial-gradient(40% 45% at 20% 25%, rgba(20, 93, 160, 0.14) 0%, transparent 70%),
    radial-gradient(35% 40% at 80% 20%, rgba(20, 184, 166, 0.14) 0%, transparent 70%),
    radial-gradient(45% 40% at 60% 80%, rgba(20, 93, 160, 0.08) 0%, transparent 70%);
  animation: hero-drift 22s ease-in-out infinite alternate;
}
.hero::after {
  left: 0;
  right: 0;
  top: 0;
  height: 520px;
  background:
    repeating-linear-gradient(90deg, rgba(20, 93, 160, 0.10) 0 36px, transparent 36px 84px) 0 140px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(20, 184, 166, 0.12) 0 36px, transparent 36px 84px) 0 300px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(20, 93, 160, 0.08) 0 36px, transparent 36px 84px) 0 460px / 100% 2px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  animation: hero-lanes 3.5s linear infinite;
}
@keyframes hero-drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
  to   { transform: translate3d(3%, 2%, 0) rotate(4deg); }
}
@keyframes hero-lanes {
  from { background-position-x: 0, 0, 0; }
  to   { background-position-x: 84px, 84px, 84px; }
}

/* Hero entrance: fade + short rise, staggered per element. */
@keyframes rise-in {
  from { opacity: 0; translate: 0 16px; }
  to   { opacity: 1; translate: 0 0; }
}
.hero .container > * {
  animation: rise-in 0.4s ease-out both;
}
.hero .container > :nth-child(2) { animation-delay: 0.08s; }
.hero .container > :nth-child(3) { animation-delay: 0.16s; }
.hero .container > :nth-child(4) { animation-delay: 0.24s; }
.hero .container > :nth-child(5) { animation-delay: 0.34s; }

/* Scroll reveal: js/main.js adds .reveal to below-the-fold blocks and
   .is-visible the first time each enters the viewport. Uses `translate`
   (not `transform`) so it composes with hover lifts and the featured
   pricing card's scale. Without JS, nothing gets .reveal and all
   content is simply visible. */
.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.4s ease-out, translate 0.4s ease-out,
              box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero::after { animation: none; }
  .btn:hover, .btn:active, .feature-card:hover { transform: none; }
}
