:root {
  --navy: #0d1a2c;
  --navy-2: #14263e;
  --navy-3: #1c3252;
  --orange: #fd6904;
  --orange-2: #ff8730;
  --ink: #0f1720;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --radius: 14px;
}

* { 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(--ink);
  background: var(--white);
  line-height: 1.5;
}

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

a { color: inherit; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid (no backdrop-filter): blur on a sticky header forces a re-blur of
     everything behind it on every scroll frame, which is a common cause of
     scroll jank. A solid near-opaque background looks almost identical and
     costs nothing to paint. */
  background: #0d1a2c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.nav-logo img { height: 32px; width: auto; display: block; }
.nav-logo { flex-shrink: 0; }

/* Hamburger toggle - mobile/tablet only */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 24px 18px;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
}

.nav-links.open { display: flex; }

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-links a:hover { color: #fff; }

.nav-links-cta {
  display: inline-flex !important;
  justify-content: center;
  margin-top: 12px;
  border-bottom: 0 !important;
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    background: transparent;
    border-bottom: 0;
    padding: 0;
    box-shadow: none;
    margin-left: auto;
    margin-right: 28px;
  }

  .nav-links a {
    padding: 0;
    border-bottom: 0;
    font-size: 14px;
  }

  .nav-links-cta { display: none !important; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

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

.btn-primary {
  background: var(--orange);
  color: #1a0900;
  box-shadow: 0 6px 20px rgba(253, 105, 4, 0.35);
}

.btn-primary:hover { background: var(--orange-2); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover { background: var(--navy-2); }

.nav-cta { display: none; }
@media (min-width: 880px) {
  .nav-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(253, 105, 4, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 105, 4, 0.14);
  border: 1px solid rgba(253, 105, 4, 0.35);
  color: var(--orange-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--orange-2); }

.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.hero-visual {
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.hero-visual .fake-window {
  background: #0b1522;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fake-titlebar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #0a121d;
}

.fake-titlebar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.fake-titlebar span.fake-live {
  width: auto;
  height: auto;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px 3px 7px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fake-live-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50%;
  background: #4ade80 !important;
  animation: liveBlink 1.6s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.fake-body { padding: 18px; }

.fake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  margin-bottom: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.fake-row .tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.tag-green { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.tag-amber { background: rgba(253, 105, 4, 0.18); color: var(--orange-2); }
.tag-blue { background: rgba(56, 130, 246, 0.18); color: #7fb0ff; }

/* ---------- Logos / trust strip ---------- */
.trust-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--slate-100);
}

.trust-strip p {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0;
}

/* ---------- Section basics ---------- */
section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--slate-500);
  font-size: 16.5px;
  margin: 0;
}

/* ---------- Origin story ---------- */
.origin {
  background: var(--slate-100);
}

.origin-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 880px) {
  .origin-inner { grid-template-columns: 1fr 1fr; }
}

.origin-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--slate-300);
}

.origin blockquote {
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 20px;
  line-height: 1.4;
}

.origin cite {
  font-style: normal;
  display: block;
  font-size: 14px;
  color: var(--slate-500);
}

.origin cite strong { color: var(--navy); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-box {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 20px;
}

.stat-box .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange-2);
  display: block;
}

.stat-box .label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  position: relative;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.feature-card:hover,
.feature-card:focus-visible {
  box-shadow: 0 20px 40px -24px rgba(13, 26, 44, 0.35);
  transform: translateY(-2px);
}

.feature-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.feature-card::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--slate-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E") center / 12px no-repeat;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.feature-card:hover::after,
.feature-card:focus-visible::after { opacity: 1; }

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(253, 105, 4, 0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
  color: var(--navy);
  font-weight: 700;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--slate-500);
  margin: 0;
}

/* ---------- Feature modal ---------- */
body.modal-open { overflow: hidden; }

.feature-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 26, 44, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}

.feature-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.feature-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.18s ease;
}

.feature-modal-overlay.open .feature-modal {
  transform: translateY(0) scale(1);
}

.feature-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--slate-300);
  background: #fff;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.feature-modal-close:hover { background: var(--slate-100); color: var(--navy); }

.feature-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(253, 105, 4, 0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-modal-icon svg { width: 26px; height: 26px; }

.feature-modal-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  padding-right: 20px;
}

.feature-modal-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-700);
}

.feature-modal-text a { color: var(--orange); font-weight: 600; }

@media (max-width: 560px) {
  .feature-modal { padding: 36px 24px; }
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: var(--slate-100);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange-2);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--navy);
}

.step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--slate-500);
}

/* ---------- Security band ---------- */
.security-band {
  background: var(--navy);
  color: #fff;
}

.security-band .section-head h2,
.security-band .section-head p { color: #fff; }
.security-band .section-head p { color: rgba(255, 255, 255, 0.65); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}

.pill svg { color: var(--orange-2); flex-shrink: 0; }

/* ---------- Add-ons ---------- */
.addon-card {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: 18px;
  padding: 32px;
}

@media (max-width: 560px) {
  .addon-card { grid-template-columns: 1fr; }
}

.addon-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(253, 105, 4, 0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.addon-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--navy);
  font-weight: 800;
}

.addon-card > div > p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--slate-500);
}

.addon-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 9px;
}

.addon-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--slate-700);
}

.addon-list svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }

.addon-note {
  font-size: 13px;
  color: var(--slate-500);
  font-style: italic;
  margin: 0 !important;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 14px;
  font-size: 20px;
  font-weight: 400;
  color: var(--orange);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate-700);
}

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--slate-300);
  border-radius: 18px;
  padding: 40px;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--slate-100));
}

.pricing-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--navy);
}

.pricing-card p {
  color: var(--slate-500);
  margin: 0 0 26px;
  font-size: 15px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 10px;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--slate-700);
}

.pricing-list svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }

/* ---------- Demo form ---------- */
.demo {
  background: var(--slate-100);
}

.demo-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .demo-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.demo-copy h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: 800;
}

.demo-copy p { color: var(--slate-500); font-size: 15.5px; }

.demo-copy ul { padding-left: 0; list-style: none; margin: 24px 0 0; }
.demo-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--slate-700);
  margin-bottom: 12px;
}
.demo-copy li svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }

form#demo-form {
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  padding: 28px;
}

.form-row { margin-bottom: 16px; }

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(253, 105, 4, 0.15);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 480px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

#demo-form button[type="submit"] { width: 100%; }

.form-consent {
  margin-top: 12px;
  font-size: 12px;
  color: var(--slate-500);
  text-align: center;
}
.form-consent a { color: inherit; text-decoration: underline; }

.form-status {
  margin-top: 14px;
  font-size: 14px;
  display: none;
}

.form-status.show { display: block; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #dc2626; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 44px 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 22px;
}

.footer-top img { height: 26px; }

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13.5px;
}
.footer-links a:hover { color: #fff; }

footer .fine-print {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* ---------- Animated nav logo ---------- */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.nav-logo-text-accent { color: var(--orange-2); }

.logo-piece {
  opacity: 0;
  transform: translateY(6px);
  animation: logoPieceIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.logo-flap { animation-delay: 0.05s; }
.logo-left { animation-delay: 0.22s; }
.logo-right-top { animation-delay: 0.38s; }
.logo-right-bottom { animation-delay: 0.5s; }

@keyframes logoPieceIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero entrance ---------- */
.hero-inner > div:first-child > * {
  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-inner > div:first-child > .eyebrow { animation-delay: 0.08s; }
.hero-inner > div:first-child > h1 { animation-delay: 0.16s; }
.hero-inner > div:first-child > .lead { animation-delay: 0.26s; }
.hero-inner > div:first-child > .hero-actions { animation-delay: 0.36s; }
.hero-inner > div:first-child > .hero-note { animation-delay: 0.44s; }

.hero-visual {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.feature-grid .feature-card.reveal.in-view,
.steps .step.reveal.in-view,
.faq-list .faq-item.reveal.in-view {
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
.feature-grid .feature-card:nth-child(1) { --reveal-i: 0; }
.feature-grid .feature-card:nth-child(2) { --reveal-i: 1; }
.feature-grid .feature-card:nth-child(3) { --reveal-i: 2; }
.feature-grid .feature-card:nth-child(4) { --reveal-i: 3; }
.feature-grid .feature-card:nth-child(5) { --reveal-i: 4; }
.feature-grid .feature-card:nth-child(6) { --reveal-i: 5; }
.feature-grid .feature-card:nth-child(7) { --reveal-i: 0; }
.feature-grid .feature-card:nth-child(8) { --reveal-i: 1; }
.feature-grid .feature-card:nth-child(9) { --reveal-i: 2; }
.feature-grid .feature-card:nth-child(10) { --reveal-i: 3; }
.feature-grid .feature-card:nth-child(11) { --reveal-i: 4; }
.steps .step:nth-child(1) { --reveal-i: 0; }
.steps .step:nth-child(2) { --reveal-i: 1; }
.steps .step:nth-child(3) { --reveal-i: 2; }
.faq-list .faq-item:nth-child(1) { --reveal-i: 0; }
.faq-list .faq-item:nth-child(2) { --reveal-i: 1; }
.faq-list .faq-item:nth-child(3) { --reveal-i: 2; }
.faq-list .faq-item:nth-child(4) { --reveal-i: 3; }
.faq-list .faq-item:nth-child(5) { --reveal-i: 4; }
.faq-list .faq-item:nth-child(6) { --reveal-i: 5; }
.faq-list .faq-item:nth-child(7) { --reveal-i: 6; }
.faq-list .faq-item:nth-child(8) { --reveal-i: 7; }

@media (prefers-reduced-motion: reduce) {
  .logo-piece, .hero-inner > div:first-child > *, .hero-visual, .reveal, .fake-live-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Interactive tour ---------- */
.tour-shell { max-width: 960px; margin: 0 auto; }

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.tour-tab {
  border: 1px solid var(--slate-300);
  background: #fff;
  color: var(--slate-700);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tour-tab:hover { border-color: var(--orange); }
.tour-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.tour-window {
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(13, 26, 44, 0.25);
  overflow: hidden;
}

.tour-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200, var(--slate-300));
}
.tour-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-300); }
.tour-url {
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--slate-500);
  font-family: ui-monospace, Consolas, monospace;
}

.tour-body { padding: 28px 32px; min-height: 420px; }

.tour-panel { display: none; }
.tour-panel.active { display: block; animation: tourPanelIn 0.28s ease; }

.tour-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tour-panel-head h3 { margin: 0; font-size: 17px; color: var(--navy); font-weight: 800; }
.tour-panel-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 4px 10px;
  border-radius: 999px;
}
.tour-low-stock-count { color: #9a5b00; background: var(--amber-soft, #fff4d6); }

.tour-ot {
  font-style: normal;
  color: var(--orange-2);
  font-weight: 700;
  font-size: 11.5px;
}

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

.tour-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  margin-bottom: 9px;
  cursor: pointer;
  font-size: 14px;
  color: var(--slate-700);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.tour-job-row[data-job]:hover,
.tour-job-row[data-job]:focus-visible {
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -14px rgba(13, 26, 44, 0.3);
  outline: none;
}
.tour-job-name { margin: 0; font-weight: 700; color: var(--navy); font-size: 14.5px; }
.tour-job-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--slate-500); }

.tour-hint {
  text-align: center;
  font-size: 12px;
  color: var(--slate-500);
  margin: 14px 0 0;
  font-style: italic;
}

.tour-back {
  background: none;
  border: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0 0 14px;
}

.tour-detail-name { margin: 0 0 2px; font-size: 18px; color: var(--navy); font-weight: 800; }
.tour-detail-sub { margin: 0 0 16px; font-size: 13px; color: var(--slate-500); }

.tour-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .tour-detail-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .tour-detail-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.tour-mini-card {
  background: var(--slate-100);
  border-radius: 12px;
  padding: 14px;
}
.tour-mini-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
}
.tour-detail-materials { list-style: none; margin: 0 0 10px; padding: 0; }
.tour-detail-materials li {
  font-size: 13px;
  color: var(--slate-700);
  padding: 5px 0;
  border-bottom: 1px solid var(--slate-200, #e2e8f0);
}
.tour-detail-materials li:last-child { border-bottom: 0; }

.tour-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.tour-photo { aspect-ratio: 1; border-radius: 6px; }
.tour-p1 { background: linear-gradient(135deg, #9db8cf, #5d7f9c); }
.tour-p2 { background: linear-gradient(135deg, #d8c3a0, #a8875b); }
.tour-p3 { background: linear-gradient(135deg, #b7c9b0, #6f8f68); }

.tour-btn {
  width: 100%;
  background: #fff;
  border: 1px solid var(--slate-300);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tour-btn:hover { border-color: var(--orange); background: var(--slate-100); }
.tour-btn:disabled { cursor: default; opacity: 0.6; }
.tour-btn-active { background: var(--orange); color: #fff; border-color: var(--orange); }

.tour-toast {
  margin: 12px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #15803d;
  height: 16px;
  opacity: 0;
}
.tour-toast.show { animation: toastIn 1.8s ease; }
@keyframes toastIn {
  0% { opacity: 0; transform: translateY(4px); }
  15% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

.tour-clock-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-200, #e2e8f0);
  font-size: 13.5px;
  color: var(--slate-700);
}
.tour-clock-time { color: var(--slate-500); font-size: 12.5px; }

.tour-invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--slate-200, #e2e8f0);
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}
