/* FireFlow website. Palette matches the FireFlow app (fire-* and ink-* tokens). */
:root {
  --fire-50: #fff5ed;
  --fire-100: #ffe8d5;
  --fire-200: #ffcca9;
  --fire-300: #ffa772;
  --fire-400: #ff7a39;
  --fire-500: #f45000;
  --fire-600: #db4400;
  --fire-700: #b53504;
  --fire-800: #8f2b0b;
  --ink-50: #f7f6f4;
  --ink-100: #eeece8;
  --ink-200: #dedad3;
  --ink-300: #c4beb4;
  --ink-400: #9a938a;
  --ink-500: #736c63;
  --ink-600: #57514a;
  --ink-700: #3d3934;
  --ink-800: #26231f;
  --ink-900: #171512;
  --ink-950: #0e0d0b;
  --green: #12a150;
  --green-bg: #e3f6ea;
  --red: #d62828;
  --red-bg: #fde8e8;
  --amber: #b7791f;

  --radius: 18px;
  --shadow-sm: 0 1px 2px rgb(23 21 18 / 6%), 0 4px 14px -6px rgb(23 21 18 / 12%);
  --shadow: 0 1px 2px rgb(23 21 18 / 6%), 0 16px 40px -16px rgb(23 21 18 / 22%);
  --shadow-lg: 0 2px 6px rgb(23 21 18 / 8%), 0 40px 80px -24px rgb(23 21 18 / 40%);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--fire-600); text-underline-offset: 3px; }
button { font: inherit; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 760; letter-spacing: -0.035em; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-500); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.ic { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 840px; }
.grad { background: linear-gradient(95deg, var(--fire-300), var(--fire-500) 60%, #ff3d00); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s, color .18s;
}
.btn:focus-visible, .nav-item:focus-visible, .tab:focus-visible, .chip-btn:focus-visible { outline: 3px solid var(--fire-300); outline-offset: 2px; }
.btn-primary { background: linear-gradient(180deg, #ff6a1f, var(--fire-500)); color: #fff; box-shadow: 0 8px 22px -8px rgb(244 80 0 / 70%), inset 0 1px 0 rgb(255 255 255 / 25%); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgb(244 80 0 / 75%), inset 0 1px 0 rgb(255 255 255 / 25%); }
.btn-ghost { background: rgb(255 255 255 / 6%); color: #fff; border-color: rgb(255 255 255 / 20%); }
.btn-ghost:hover { background: rgb(255 255 255 / 12%); }
.btn-outline { background: #fff; color: var(--ink-900); border-color: var(--ink-200); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--fire-300); color: var(--fire-700); }
.btn-sm { padding: 10px 15px; font-size: .87rem; border-radius: 10px; }
.btn-lg { padding: 16px 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.arrow { transition: transform .2s var(--ease); }
a:hover > .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgb(14 13 11 / 78%);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / 7%);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.22rem; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-item { background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-200); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 9px 13px; border-radius: 10px; transition: color .15s, background .15s; }
.nav-item:hover, .nav-item[aria-expanded="true"] { color: #fff; background: rgb(255 255 255 / 7%); }
.nav-item[aria-current="page"] { color: #fff; }
.nav-cta { margin-left: 10px; }
.chev { width: 12px; height: 12px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 680px;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--ink-200);
  padding: 12px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.mega.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; text-decoration: none; color: var(--ink-800); transition: background .15s; }
.mega-item:hover, .mega-item[aria-current="page"] { background: var(--fire-50); }
.mega-item b { display: block; font-size: .95rem; color: var(--ink-900); }
.mega-item small { display: block; color: var(--ink-500); font-size: .84rem; line-height: 1.4; margin-top: 2px; }
.mi-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--fire-100); color: var(--fire-600); flex: none; }
.mi-ic .ic { width: 20px; height: 20px; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; padding: 14px 16px 8px; border-top: 1px solid var(--ink-100); font-size: .88rem; }
.mega-foot a { font-weight: 650; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Dark hero ---------- */
.dark { background: var(--ink-950); color: var(--ink-300); position: relative; isolation: isolate; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .muted { color: var(--ink-400); }
.glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); }
.glow::before { width: 720px; height: 720px; right: -160px; top: -320px; background: radial-gradient(circle, rgb(244 80 0 / 55%), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.glow::after { width: 520px; height: 520px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgb(255 122 57 / 22%), transparent 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.08); } }

.hero { padding: 88px 0 0; overflow: hidden; }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--fire-200); background: rgb(244 80 0 / 12%); border: 1px solid rgb(244 80 0 / 32%); padding: 7px 15px; border-radius: 999px; margin-bottom: 26px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--fire-400); box-shadow: 0 0 0 0 rgb(255 122 57 / 60%); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(255 122 57 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(255 122 57 / 0%); } }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--ink-300); max-width: 700px; margin: 0 auto 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: .92rem; color: var(--ink-400); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { width: 17px; height: 17px; color: var(--fire-400); }

/* Hero product stage */
.stage { position: relative; max-width: 1140px; margin: 0 auto; perspective: 2000px; }
.stage-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.stage-tabs .tab { background: rgb(255 255 255 / 5%); color: var(--ink-300); border: 1px solid rgb(255 255 255 / 10%); }
.stage-tabs .tab[aria-selected="true"] { background: #fff; color: var(--ink-900); border-color: #fff; }
.stage-tabs .tab .bar { background: var(--fire-500); }
.stage .frame { transform: rotateX(8deg); transform-origin: 50% 0; transition: transform 1s var(--ease); margin-bottom: -120px; }
.stage.in .frame { transform: rotateX(0); }
.stage .phone { position: absolute; right: -28px; bottom: 40px; width: 230px; z-index: 3; }
.stage-fade { position: relative; height: 140px; margin-top: -10px; background: linear-gradient(to bottom, transparent, #fff 85%); z-index: 2; }

/* ---------- Device frames ---------- */
.frame { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(23 21 18 / 8%); position: relative; }
.dark .frame { box-shadow: 0 40px 100px -30px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 10%), 0 0 80px -20px rgb(244 80 0 / 25%); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: linear-gradient(#f7f6f4, #f1efeb); border-bottom: 1px solid var(--ink-200); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-200); }
.frame-bar i:nth-child(1) { background: #ff5f57; } .frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-url { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--ink-500); background: #fff; border: 1px solid var(--ink-200); border-radius: 8px; padding: 3px 14px; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame-url .ic { width: 11px; height: 11px; color: var(--green); }
.frame-body { position: relative; background: var(--ink-50); }
.frame-body img { width: 100%; }
.screens { display: grid; }
.screens > * { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s ease, transform .8s var(--ease), visibility 0s linear .6s; transform: scale(1.015); }
.screens > .active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; z-index: 1; }

.phone { background: var(--ink-950); border-radius: 42px; padding: 10px; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(255 255 255 / 10%) inset; position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 22px; transform: translateX(-50%); background: var(--ink-950); border-radius: 20px; z-index: 2; }
.phone-screen { border-radius: 33px; overflow: hidden; background: #fff; position: relative; }
.phone-screen img { width: 100%; }
.phone-lg { width: 300px; }

/* Zoomable screenshots */
.zoom { cursor: zoom-in; position: relative; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgb(14 13 11 / 78%); color: #fff; font-size: .74rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; opacity: 0; transform: translateY(4px); transition: .2s; pointer-events: none; backdrop-filter: blur(6px); }
.zoom-hint .ic { width: 13px; height: 13px; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-sm { padding: 72px 0; }
.tint { background: var(--ink-50); }
.warm { background: linear-gradient(180deg, #fff, var(--fire-50)); }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--fire-600); margin-bottom: 16px; }
.dark .kicker { color: var(--fire-400); }
.sub { font-size: 1.15rem; color: var(--ink-600); }
.dark .sub { color: var(--ink-300); }

/* Standards marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--ink-100); background: #fff; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 46px; font-weight: 650; color: var(--ink-500); white-space: nowrap; font-size: 1.02rem; letter-spacing: -.01em; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fire-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tabs (shared) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ink-200); color: var(--ink-600); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.tab:hover { color: var(--ink-900); border-color: var(--ink-300); }
.tab[aria-selected="true"] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.tab .ic { width: 17px; height: 17px; }
.tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--fire-400); }
.tab[aria-selected="true"] .bar.run { animation: tabbar var(--dur, 6s) linear forwards; }
@keyframes tabbar { to { width: 100%; } }

/* ---------- Tour (role tabs + screen + bullets) ---------- */
.tour { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.tour-list { display: grid; gap: 8px; }
.tour-item { text-align: left; width: 100%; background: transparent; border: 1px solid transparent; border-radius: 16px; padding: 18px 18px 18px 20px; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.tour-item:hover { background: rgb(255 255 255 / 70%); }
.tour-item[aria-selected="true"] { background: #fff; border-color: var(--ink-200); box-shadow: var(--shadow); }
.tour-item h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.05rem; }
.tour-item h3 .ic { color: var(--fire-500); }
.tour-item p { margin: 8px 0 0; font-size: .93rem; color: var(--ink-600); display: none; }
.tour-item[aria-selected="true"] p { display: block; animation: fadeUp .4s var(--ease); }
.tour-item .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; height: 0; background: var(--fire-500); }
.tour-item[aria-selected="true"] .bar.run { animation: tourbar var(--dur, 7s) linear forwards; }
@keyframes tourbar { from { height: 0; } to { height: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Journey (job lifecycle) ---------- */
.journey { position: relative; }
.journey-track { position: relative; }
.journey-steps { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.journey-track::before { content: ""; position: absolute; top: 25px; left: 8.33%; right: 8.33%; height: 3px; background: var(--ink-200); border-radius: 3px; }
.journey-progress { position: absolute; z-index: 0; top: 25px; left: 8.33%; height: 3px; background: linear-gradient(90deg, var(--fire-300), var(--fire-500)); border-radius: 3px; transition: width .6s var(--ease); width: 0; }
.journey-steps li { position: relative; text-align: center; }
.journey-steps button { background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 10px; width: 100%; color: var(--ink-500); font-weight: 600; font-size: .92rem; padding: 0 4px; }
.journey-steps .dot { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; border: 2px solid var(--ink-200); color: var(--ink-400); transition: all .35s var(--ease); position: relative; z-index: 1; }
.journey-steps .dot .ic { width: 22px; height: 22px; }
.journey-steps .done .dot { border-color: var(--fire-400); color: var(--fire-500); }
.journey-steps .current .dot { background: var(--fire-500); border-color: var(--fire-500); color: #fff; transform: scale(1.1); box-shadow: 0 10px 24px -8px rgb(244 80 0 / 70%); }
.journey-steps .current button, .journey-steps .done button { color: var(--ink-900); }
.journey-panel { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--ink-200); border-radius: 26px; padding: 40px; box-shadow: var(--shadow); min-height: 460px; }
.journey-copy .step-n { font-family: var(--mono); font-size: .8rem; color: var(--fire-600); font-weight: 600; }
.journey-copy h3 { font-size: 1.7rem; letter-spacing: -.03em; margin: 8px 0 12px; }
.journey-copy p { color: var(--ink-600); }
.journey-media { position: relative; }
.journey-media .screens img { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--ink-200); }
.journey-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-700); cursor: pointer; transition: .15s; }
.icon-btn:hover { border-color: var(--fire-300); color: var(--fire-600); }
.icon-btn .ic { width: 18px; height: 18px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split + .split { margin-top: 128px; }
.split-copy p { color: var(--ink-600); font-size: 1.06rem; }
.split-copy strong { color: var(--ink-900); }
.dark .split-copy p { color: var(--ink-300); }
.dark .split-copy strong { color: #fff; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-700); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--fire-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23db4400' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/78% no-repeat; }
.dark .checks li { color: var(--ink-200); }
.dark .checks li::before { background-color: rgb(244 80 0 / 22%); }
.media-shot { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(23 21 18 / 7%); background: #fff; }
.media-shot img { width: 100%; }
.media-stack { position: relative; }
.media-stack .float { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(23 21 18 / 8%); background: #fff; }
.media-phone { display: flex; justify-content: center; gap: 24px; align-items: flex-end; }
.media-phone .phone:nth-child(2) { transform: translateY(-40px); }

/* ---------- Hotspot screenshots ---------- */
.hotspot { position: relative; }
.pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 0; background: var(--fire-500); color: #fff; font-weight: 700; font-size: .82rem; cursor: pointer; box-shadow: 0 0 0 5px rgb(244 80 0 / 25%), 0 6px 16px -4px rgb(244 80 0 / 70%); transition: transform .2s var(--ease), box-shadow .2s; z-index: 2; }
.pin::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgb(244 80 0 / 50%); animation: ring 2.2s infinite; }
.pin:hover, .pin.on { transform: scale(1.18); box-shadow: 0 0 0 8px rgb(244 80 0 / 30%), 0 8px 20px -4px rgb(244 80 0 / 80%); }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.notes { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; counter-reset: n; }
.notes li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; cursor: default; transition: .2s; }
.notes li .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fire-100); color: var(--fire-700); font-weight: 700; font-size: .8rem; flex: none; margin-top: 1px; transition: .2s; }
.notes li b { color: var(--ink-900); display: block; }
.notes li span { color: var(--ink-600); font-size: .95rem; }
.notes li.on { background: #fff; border-color: var(--fire-200); box-shadow: var(--shadow-sm); }
.notes li.on .n { background: var(--fire-500); color: #fff; }
.dark .notes li b { color: #fff; }
.dark .notes li span { color: var(--ink-300); }
.dark .notes li.on { background: rgb(255 255 255 / 6%); border-color: rgb(244 80 0 / 40%); }

/* ---------- Bento / cards ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--ink-200); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--fire-200); }
.tile h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tile p { color: var(--ink-600); font-size: .97rem; }
.tile .tile-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--fire-100); color: var(--fire-600); margin-bottom: 20px; }
.tile .tile-img { margin: 22px -30px -30px; border-top: 1px solid var(--ink-100); overflow: hidden; flex: 1; display: flex; align-items: flex-start; background: var(--ink-50); }
.tile .tile-img img { width: 100%; transition: transform .6s var(--ease); transform-origin: 0 0; }
a.tile:hover .tile-img img { transform: scale(1.03); }
.tile .more { margin-top: auto; padding-top: 14px; font-weight: 650; color: var(--fire-600); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.tile-dark { background: var(--ink-950); border-color: var(--ink-800); color: var(--ink-300); }
.tile-dark h3 { color: #fff; }
.tile-dark p { color: var(--ink-400); }
.tile-dark .tile-ic { background: rgb(244 80 0 / 18%); color: var(--fire-300); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--ink-200); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.card h3 .ic { color: var(--fire-500); }
.card p { margin: 0; color: var(--ink-600); font-size: .95rem; }
.dark .card { background: rgb(255 255 255 / 4%); border-color: rgb(255 255 255 / 9%); box-shadow: none; }
.dark .card p { color: var(--ink-400); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 96px 0 0; overflow: hidden; }
.page-hero .wrap { position: relative; }
.crumbs { display: flex; gap: 8px; font-size: .86rem; color: var(--ink-400); margin-bottom: 22px; }
.crumbs a { color: var(--ink-300); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 900px; }
.page-hero .lead { margin: 0 0 32px; max-width: 680px; }
.page-hero .hero-ctas { justify-content: flex-start; }
.page-hero-media { margin-top: 56px; margin-bottom: -140px; position: relative; z-index: 2; }
.page-hero + .after-hero { padding-top: 220px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { font-size: .86rem; font-weight: 600; color: var(--ink-200); text-decoration: none; padding: 7px 13px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 14%); transition: .15s; }
.jump a:hover { background: rgb(255 255 255 / 8%); color: #fff; }

/* ---------- Feature explorer ---------- */
.explorer-bar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 30px; position: sticky; top: 70px; z-index: 5; background: rgb(255 255 255 / 88%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 14px 0; }
.search-box { position: relative; min-width: 260px; flex: 0 1 320px; }
.search-box .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-400); }
.search-box input { width: 100%; font: inherit; font-size: .95rem; padding: 11px 14px 11px 42px; border: 1px solid var(--ink-200); border-radius: 12px; background: #fff; }
.search-box input:focus { outline: none; border-color: var(--fire-400); box-shadow: 0 0 0 4px var(--fire-100); }
.chip-btn { background: #fff; border: 1px solid var(--ink-200); color: var(--ink-600); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .86rem; cursor: pointer; transition: .15s; }
.chip-btn:hover { border-color: var(--ink-300); color: var(--ink-900); }
.chip-btn[aria-pressed="true"] { background: var(--fire-500); border-color: var(--fire-500); color: #fff; }
.chip-btn .count { opacity: .7; font-weight: 500; margin-left: 4px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ink-200); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, opacity .3s; text-align: left; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--fire-200); }
.fcard .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-50); border-bottom: 1px solid var(--ink-100); }
.fcard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform .6s var(--ease); }
.fcard:hover .thumb img { transform: scale(1.04); }
.fcard .body { padding: 20px 22px 22px; }
.fcard .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fire-700); background: var(--fire-50); border: 1px solid var(--fire-100); padding: 3px 8px; border-radius: 6px; margin-bottom: 10px; }
.fcard .body { display: block; }
.fcard .ft { display: block; margin-bottom: 6px; font-size: 1.08rem; color: var(--ink-900); font-weight: 650; letter-spacing: -.02em; }
.fcard .fd { display: block; font-size: .93rem; color: var(--ink-600); }
.fcard .thumb { display: block; }
.fcard.hide { display: none; }
.empty { display: none; text-align: center; padding: 60px 0; color: var(--ink-500); }

/* ---------- Interactive: who pays ---------- */
.payer { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.payer-controls, .payer-result { background: #fff; border: 1px solid var(--ink-200); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); }
.payer-controls h3, .payer-result h3 { font-size: 1rem; }
.opt-group { margin-bottom: 22px; }
.opt-group > span { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; background: var(--ink-50); border: 1px solid var(--ink-200); color: var(--ink-700); padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: .15s; }
.seg button[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ink-100); font-size: .95rem; }
.switch { position: relative; width: 46px; height: 27px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--ink-200); border-radius: 999px; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--fire-500); }
.switch input:checked + span::after { transform: translateX(19px); }
.switch input:focus-visible + span { outline: 3px solid var(--fire-300); outline-offset: 2px; }
.ladder { display: grid; gap: 10px; margin: 16px 0 22px; }
.rung { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--ink-200); color: var(--ink-500); transition: all .35s var(--ease); }
.rung .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--ink-100); font-weight: 700; font-size: .8rem; flex: none; transition: .35s; }
.rung b { display: block; color: var(--ink-700); font-size: .95rem; }
.rung small { font-size: .84rem; }
.rung.skip { opacity: .45; }
.rung.skip b { text-decoration: line-through; text-decoration-color: var(--ink-300); }
.rung.win { border-color: var(--fire-400); background: var(--fire-50); color: var(--ink-700); transform: scale(1.02); box-shadow: var(--shadow-sm); }
.rung.win .n { background: var(--fire-500); color: #fff; }
.rung.win b { color: var(--ink-900); }
.invoice-card { border-radius: 16px; background: var(--ink-950); color: var(--ink-300); padding: 20px 22px; display: grid; gap: 10px; }
.invoice-card .row { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.invoice-card b { color: #fff; }
.invoice-card .warn { color: var(--fire-300); font-weight: 600; }
.invoice-card .ok { color: #6ee7a0; font-weight: 600; }

/* ---------- Interactive: AI scheduler ---------- */
.ai-demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; }
.ai-jobs { display: grid; gap: 10px; align-content: start; }
.ai-job { text-align: left; width: 100%; background: rgb(255 255 255 / 4%); border: 1px solid rgb(255 255 255 / 10%); border-radius: 16px; padding: 16px 18px; cursor: pointer; color: var(--ink-300); transition: .2s; }
.ai-job:hover { border-color: rgb(255 255 255 / 25%); }
.ai-job[aria-pressed="true"] { border-color: var(--fire-500); background: rgb(244 80 0 / 10%); }
.ai-job b { display: block; color: #fff; font-size: .98rem; }
.ai-job small { font-size: .82rem; color: var(--ink-400); }
.badge { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin-right: 6px; }
.b-urgent { background: rgb(214 40 40 / 18%); color: #ff8a8a; }
.b-high { background: rgb(244 80 0 / 18%); color: var(--fire-300); }
.b-med { background: rgb(255 255 255 / 10%); color: var(--ink-200); }
.b-bafe { background: rgb(18 161 80 / 18%); color: #6ee7a0; }
.b-nsi { background: rgb(80 140 255 / 18%); color: #9fc0ff; }
.ai-result { background: #fff; color: var(--ink-800); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); }
.ai-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--ink-100); }
.ai-who { display: flex; gap: 12px; align-items: center; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .9rem; flex: none; }
.ai-who b { display: block; font-size: 1.05rem; color: var(--ink-900); }
.ai-who small { color: var(--ink-500); }
.confidence { position: relative; width: 74px; height: 74px; flex: none; }
.confidence svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.confidence circle { fill: none; stroke-width: 7; }
.confidence .track { stroke: var(--ink-100); }
.confidence .val { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.confidence span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--ink-900); font-size: 1.05rem; }
.factors { display: grid; gap: 14px; padding: 20px 0; }
.factor { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.factor.show { opacity: 1; transform: none; }
.factor .ic { width: 20px; height: 20px; color: var(--green); margin-top: 1px; }
.factor b { display: block; font-size: .94rem; color: var(--ink-900); }
.factor span { font-size: .87rem; color: var(--ink-500); }
.ai-also { font-size: .85rem; color: var(--ink-500); padding-top: 14px; border-top: 1px solid var(--ink-100); }
.ai-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.ai-applied { font-size: .88rem; font-weight: 600; color: var(--green); display: none; }
.ai-applied.show { display: inline-flex; animation: fadeUp .3s; }

/* ---------- Roles ---------- */
.roles-ui { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.role-list { display: grid; gap: 8px; align-content: start; }
.role-btn { display: flex; gap: 12px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--ink-200); padding: 14px 16px; border-radius: 14px; cursor: pointer; font-weight: 650; color: var(--ink-800); transition: .2s; }
.role-btn .ic { color: var(--ink-400); }
.role-btn[aria-pressed="true"] { border-color: var(--fire-400); background: var(--fire-50); box-shadow: var(--shadow-sm); }
.role-btn[aria-pressed="true"] .ic { color: var(--fire-600); }
.access { background: #fff; border: 1px solid var(--ink-200); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-sm); }
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.access-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; font-size: .9rem; font-weight: 550; border: 1px solid var(--ink-100); transition: .3s var(--ease); }
.access-item .ic { width: 17px; height: 17px; }
.access-item.yes { background: #f2fbf5; border-color: #c9eed6; color: var(--ink-800); }
.access-item.yes .ic { color: var(--green); }
.access-item.no { background: var(--ink-50); color: var(--ink-400); }
.access-item.no .ic { color: var(--ink-300); }
.access-note { margin: 16px 0 0; font-size: .92rem; color: var(--ink-600); }

/* ---------- Comparison ---------- */
.compare-wrap { background: #fff; border: 1px solid var(--ink-200); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.compare-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--ink-100); background: var(--ink-50); }
.compare-scroll { overflow-x: auto; }
.ctable { width: 100%; border-collapse: collapse; min-width: 760px; }
.ctable th, .ctable td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--ink-100); vertical-align: top; font-size: .94rem; }
.ctable thead th { position: sticky; top: 0; background: #fff; font-size: .85rem; z-index: 1; }
.ctable thead th:not(:first-child) { text-align: center; width: 18%; }
.ctable td:not(:first-child) { text-align: center; }
.ctable .ff { background: linear-gradient(180deg, var(--fire-50), #fff8f3); }
.ctable thead .ff { background: var(--fire-500); color: #fff; }
.ctable thead .ff small { color: var(--fire-100); }
.ctable th small { display: block; font-weight: 500; color: var(--ink-500); font-size: .78rem; margin-top: 2px; }
.ctable .group td { background: var(--ink-50); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); padding: 12px 18px; text-align: left; }
.ctable .feat b { display: block; color: var(--ink-900); font-weight: 600; }
.ctable .feat span { display: block; color: var(--ink-500); font-size: .85rem; margin-top: 2px; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.mark .ic { width: 16px; height: 16px; }
.mark.y { background: var(--green-bg); color: var(--green); }
.mark.n { background: var(--ink-100); color: var(--ink-400); }
.mark.p { background: #fff4dc; color: var(--amber); font-weight: 800; font-size: .9rem; }
.ctable tr.same { display: none; }
.ctable.show-all tr.same { display: table-row; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--ink-600); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .mark { width: 22px; height: 22px; }
.legend .mark .ic { width: 13px; height: 13px; }
.footnote { font-size: .84rem; color: var(--ink-500); margin-top: 18px; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-col { border-radius: 24px; padding: 30px; border: 1px solid var(--ink-200); background: #fff; }
.vs-col.before { background: var(--ink-50); }
.vs-col.after { border-color: var(--fire-300); box-shadow: 0 20px 50px -24px rgb(244 80 0 / 40%); }
.vs-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; font-size: .95rem; color: var(--ink-700); }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 1px; background: var(--ink-200); }
.timeline li:last-child::after { display: none; }
.timeline .t { display: block; font-family: var(--mono); font-size: .76rem; color: var(--ink-500); }
.after .timeline li::before { background: var(--fire-500); }
.timeline .bad { color: var(--red); }
.scenario-tabs { display: flex; justify-content: center; margin-bottom: 30px; }

/* ---------- Stats strip (product facts) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgb(255 255 255 / 10%); border-radius: 22px; overflow: hidden; border: 1px solid rgb(255 255 255 / 10%); }
.fact { background: var(--ink-950); padding: 28px; }
.fact b { display: block; font-size: 2.3rem; color: #fff; letter-spacing: -.04em; line-height: 1.1; }
.fact span { color: var(--ink-400); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--ink-200); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--fire-300); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 21px 60px 21px 24px; font-weight: 620; color: var(--ink-900); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--fire-500); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--ink-600); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 112px; }
.cta-inner { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; background: var(--ink-950); color: var(--ink-300); border-radius: 30px; padding: 60px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cta-inner p:last-child { margin: 0; }
.cta-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgb(244 80 0 / 45%), transparent 60%), radial-gradient(40% 80% at 0% 100%, rgb(255 122 57 / 15%), transparent 70%); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-inner .kicker { color: var(--fire-400); }

/* ---------- Demo form ---------- */
.demo-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.demo-form { background: #fff; color: var(--ink-800); border-radius: 26px; padding: 34px; display: grid; gap: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--ink-200); }
.demo-form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--ink-700); }
.opt { font-weight: 400; color: var(--ink-400); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-form input:not([type="checkbox"]), .demo-form select, .demo-form textarea { font: inherit; font-size: .96rem; font-weight: 400; color: var(--ink-900); width: 100%; padding: 12px 14px; border: 1px solid var(--ink-200); border-radius: 12px; background: var(--ink-50); transition: border-color .15s, box-shadow .15s, background .15s; }
.demo-form textarea { resize: vertical; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: none; border-color: var(--fire-400); background: #fff; box-shadow: 0 0 0 4px var(--fire-100); }
.demo-form .invalid { border-color: var(--red) !important; background: #fff6f6 !important; }
.group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 9px; font-size: .86rem; font-weight: 600; color: var(--ink-700); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex !important; align-items: center; gap: 7px !important; font-weight: 500 !important; border: 1px solid var(--ink-200); border-radius: 999px; padding: 8px 14px; cursor: pointer; background: var(--ink-50); transition: .15s; }
.chip:has(input:checked) { border-color: var(--fire-400); background: var(--fire-50); color: var(--fire-700) !important; }
.chip input { accent-color: var(--fire-500); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .82rem; color: var(--ink-500); margin: 0; text-align: center; }
.form-status { margin: 0; font-size: .93rem; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.demo-form.sent > :not(.form-status) { display: none; }
.demo-form.sent .form-status { padding: 50px 10px; font-size: 1.05rem; color: var(--ink-700); font-weight: 500; }
.demo-form.sent .form-status b { display: block; font-size: 1.6rem; color: var(--ink-900); margin-bottom: 10px; letter-spacing: -.02em; }
.agenda { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; counter-reset: a; }
.agenda li { position: relative; padding: 0 0 22px 52px; counter-increment: a; }
.agenda li::before { content: counter(a); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgb(244 80 0 / 16%); color: var(--fire-300); font-weight: 700; font-size: .9rem; }
.agenda li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 6px; width: 1px; background: rgb(255 255 255 / 12%); }
.agenda li:last-child::after { display: none; }
.agenda b { display: block; color: #fff; }
.agenda span { color: var(--ink-400); font-size: .94rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgb(14 13 11 / 92%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 60px 70px; animation: lbIn .25s ease; }
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: 1500px; width: 100%; display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-height: calc(100vh - 150px); width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / 50%); background: #fff; }
.lightbox figcaption { color: var(--ink-200); font-size: .95rem; text-align: center; }
.lb-close, .lb-nav { position: absolute; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 15%); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.lb-close:hover, .lb-nav:hover { background: rgb(255 255 255 / 20%); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-950); color: var(--ink-400); padding: 72px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; padding-bottom: 46px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.footer-brand p { margin: 16px 0 22px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; letter-spacing: 0; }
.footer-cols a { display: block; color: var(--ink-400); text-decoration: none; font-size: .93rem; padding: 5px 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 26px; font-size: .83rem; color: var(--ink-500); }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-700); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .stage .frame { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tour { grid-template-columns: 1fr; }
  .tour-list { grid-template-columns: repeat(2, 1fr); }
  .tour-item p { display: none !important; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 2; }
  .bento .half { grid-column: span 1; }
  .stage .phone { width: 180px; right: -8px; }
  .roles-ui { grid-template-columns: 1fr; }
  .role-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 70px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink-950); padding: 10px 20px 30px; overflow-y: auto; display: none; }
  .nav-links.open { display: flex; }
  .nav-item { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid rgb(255 255 255 / 8%); font-size: 1.05rem; justify-content: space-between; width: 100%; }
  .nav-item:hover { background: none; }
  .mega { position: static; transform: none; width: auto; opacity: 1; visibility: visible; display: none; margin: 10px 0; box-shadow: none; }
  .mega.open { display: block; transform: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-foot span { display: none; }
  .nav-cta { margin: 20px 0 0; }
  .split, .journey-panel, .payer, .ai-demo, .demo-layout, .cta-inner, .vs { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > :first-child { order: 0; }
  .split + .split { margin-top: 96px; }
  .journey-panel { padding: 26px; min-height: 0; }
  .journey-steps button span.lbl { font-size: .78rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .cta-inner { padding: 40px 30px; }
  .page-hero-media { margin-bottom: -80px; }
  .page-hero + .after-hero { padding-top: 150px; }
  .access-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .page-hero { padding-top: 60px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .stage .phone { display: none; }
  .stage .frame { margin-bottom: -40px; }
  .stage-fade { height: 70px; }
  .frame-bar { height: 30px; }
  .frame-url { display: none; }
  .tour-list { grid-template-columns: 1fr; }
  .feature-grid, .cards, .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6, .bento .half { grid-column: span 1; }
  .tile { padding: 24px; }
  .tile .tile-img { margin: 20px -24px -24px; }
  .journey-steps .dot { width: 40px; height: 40px; border-radius: 12px; }
  .journey-track::before, .journey-progress { top: 19px; }
  .journey-steps .dot .ic { width: 18px; height: 18px; }
  .journey-steps .lbl { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .demo-form { padding: 22px; }
  .media-phone .phone { width: 46%; border-radius: 30px; padding: 7px; }
  .media-phone .phone-screen { border-radius: 24px; }
  .media-phone .phone::before { width: 50px; height: 15px; top: 13px; }
  .phone-lg { width: 100%; max-width: 300px; }
  .explorer-bar { position: static; }
  .search-box { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .role-list { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 10px; }
  .lb-nav { top: auto; bottom: 14px; transform: none; }
  .cta-band { padding-bottom: 72px; }
  .notes { margin-top: 18px; }
}

/* Kickers inside copy blocks keep their label style */
.split-copy .kicker, .journey-copy .kicker { color: var(--fire-600); font-size: .8rem; }
.dark .split-copy .kicker { color: var(--fire-400); }
.media-phone .phone { width: 46%; max-width: 260px; }
.journey-media .media-phone .phone-screen img { border: 0; box-shadow: none; border-radius: 0; }
.journey-media .screens { align-items: center; }

/* ---------- Interactive: engineer flow simulator ---------- */
.flow-sim { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }
.sim-phone { width: 320px; justify-self: center; }
.sim-phone .phone-screen { min-height: 600px; background: var(--ink-50); padding: 54px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.sim-card { background: #fff; border: 1px solid var(--ink-200); border-radius: 16px; padding: 14px; }
.sim-card small { color: var(--ink-500); font-size: .74rem; }
.sim-card b { display: block; color: var(--ink-900); font-size: .98rem; line-height: 1.3; margin: 4px 0; }
.sim-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; }
.sim-step { display: grid; justify-items: center; gap: 5px; font-size: .7rem; font-weight: 600; color: var(--ink-400); }
.sim-step i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-100); color: var(--ink-400); font-style: normal; transition: .3s var(--ease); }
.sim-step i .ic { width: 16px; height: 16px; }
.sim-step.done i { background: var(--green); color: #fff; }
.sim-step.done { color: var(--ink-800); }
.sim-step.now i { background: var(--fire-500); color: #fff; box-shadow: 0 0 0 5px var(--fire-100); }
.sim-step.now { color: var(--ink-900); }
.sim-times { display: grid; grid-template-columns: repeat(3, 1fr); font-size: .68rem; color: var(--ink-500); text-align: center; margin-top: 8px; }
.sim-main { margin-top: auto; display: grid; gap: 8px; }
.sim-toast { background: var(--ink-950); color: #fff; font-size: .82rem; border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; animation: fadeUp .3s var(--ease); }
.sim-toast.err { background: #7f1d1d; }
.sim-toast .ic { width: 16px; height: 16px; color: var(--fire-300); }
.sim-controls { display: grid; gap: 10px; }
.sim-controls button { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 12%); color: var(--ink-200); padding: 14px 16px; border-radius: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.sim-controls button:hover { border-color: rgb(255 255 255 / 30%); color: #fff; }
.sim-controls button.done { border-color: rgb(18 161 80 / 50%); color: #6ee7a0; }
.sim-controls button.next { border-color: var(--fire-500); background: rgb(244 80 0 / 12%); color: #fff; }
.sim-controls small { font-weight: 500; color: var(--ink-400); font-size: .8rem; }

/* ---------- Interactive: jobsheet ---------- */
.js-demo { background: #fff; border: 1px solid var(--ink-200); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.js-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--ink-100); background: var(--ink-50); }
.js-progress { flex: 1 1 220px; max-width: 320px; }
.js-progress small { display: block; font-size: .8rem; color: var(--ink-500); margin-bottom: 6px; }
.js-bar { height: 8px; border-radius: 99px; background: var(--ink-200); overflow: hidden; }
.js-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--fire-300), var(--fire-500)); transition: width .4s var(--ease); }
.js-body { padding: 10px 22px 22px; }
.js-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ink-100); }
.js-q:last-child { border-bottom: 0; }
.js-q p { margin: 0; font-size: .95rem; color: var(--ink-800); }
.js-q p .num { color: var(--ink-400); margin-right: 6px; }
.yn { display: flex; gap: 6px; flex: none; }
.yn button { border: 1px solid var(--ink-200); background: #fff; border-radius: 10px; padding: 8px 13px; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--ink-700); transition: .15s; }
.yn button[aria-pressed="true"][data-v="Yes"] { background: var(--green); border-color: var(--green); color: #fff; }
.yn button[aria-pressed="true"][data-v="No"] { background: var(--red); border-color: var(--red); color: #fff; }
.yn button[aria-pressed="true"][data-v="N/A"] { background: var(--ink-700); border-color: var(--ink-700); color: #fff; }
.js-check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 8px 0; border: 1px solid var(--ink-200); border-radius: 12px; cursor: pointer; font-size: .95rem; transition: .15s; }
.js-check input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.js-check:has(input:checked) { background: #effbf3; border-color: #bfe9cf; }
.js-done { display: none; align-items: center; gap: 10px; margin: 14px 22px 22px; padding: 14px 16px; border-radius: 14px; background: #effbf3; color: var(--green); font-weight: 650; }
.js-done.show { display: flex; animation: fadeUp .3s; }

/* ---------- Interactive: route planner ---------- */
.route-demo { background: #fff; border: 1px solid var(--ink-200); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.route-demo svg { width: 100%; height: auto; background: var(--ink-50); border-radius: 16px; }
.route-demo .path { fill: none; stroke: var(--fire-500); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: d .8s var(--ease); }
.route-demo .stop circle { fill: #fff; stroke: var(--fire-500); stroke-width: 2.5; }
.route-demo .stop text { font: 700 12px var(--font); fill: var(--fire-700); text-anchor: middle; dominant-baseline: central; }
.route-demo .home rect { fill: var(--ink-900); }
.route-demo .home text { fill: #fff; font: 700 10px var(--font); text-anchor: middle; dominant-baseline: central; }
.route-demo .label { font: 500 11px var(--font); fill: var(--ink-500); }
.route-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.route-head b { color: var(--ink-900); }

/* ---------- Pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: p; }
.pipe { position: relative; background: #fff; border: 1px solid var(--ink-200); border-radius: 16px; padding: 18px; }
.pipe::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--fire-400); font-weight: 700; z-index: 1; }
.pipe:last-child::after { display: none; }
.pipe b { display: block; color: var(--ink-900); margin: 8px 0 4px; }
.pipe span { font-size: .88rem; color: var(--ink-600); }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill-draft { background: var(--ink-100); color: var(--ink-600); }
.pill-ordered { background: #e6efff; color: #2457c5; }
.pill-part { background: #f3e8ff; color: #7c3aed; }
.pill-received { background: var(--green-bg); color: var(--green); }

/* ---------- Gallery strip ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery .media-shot { border-radius: 14px; }
.gallery figcaption { margin-top: 12px; }
.gallery figcaption b { display: block; color: var(--ink-900); }
.gallery figcaption span { font-size: .92rem; color: var(--ink-600); }

/* Isolation diagram */
.iso { width: 100%; height: auto; }
.iso text { font-family: var(--font); }

@media (max-width: 960px) {
  .flow-sim { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipe:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .gallery, .pipeline { grid-template-columns: 1fr; }
  .pipe::after { display: none; }
  .js-q { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sim-phone { width: 100%; max-width: 320px; }
}
.cards-6 { grid-template-columns: repeat(6, 1fr); }
.cards-6 .card { padding: 20px; }
@media (max-width: 1100px) { .cards-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cards-6 { grid-template-columns: 1fr 1fr; } }
.split[data-hotspots] { grid-template-columns: .8fr 1.7fr; gap: 56px; }
@media (max-width: 960px) { .split[data-hotspots] { grid-template-columns: 1fr; } }
