/* FloorVision marketing site */
:root {
  --red: #c8102e;
  --red-dark: #a30d25;
  --navy: #0f172a;
  --ink: #1e293b;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .06);
  --radius: 12px;
  --font: "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #f1f5f9;
    --ink: #e2e8f0;
    --slate: #cbd5e1;
    --muted: #94a3b8;
    --line: #1e293b;
    --bg: #0b1120;
    --bg-alt: #0f172a;
    --card: #111a2e;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.hero-grid > *, .why-grid > *, .row > *, .contact-grid > *, .f2 > *, .flow > *, .footer-inner > * { min-width: 0; }
body { overflow-x: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 860px; }
section { padding: 72px 0; }
.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6em; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--slate); font-size: 1.1rem; }
.small { font-size: .9rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; padding: .65em 1.2em; border-radius: 8px; font-weight: 700; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2; transition: background .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--bg); }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--bg-alt); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@supports not (color: color-mix(in srgb, red, blue)) { .nav { background: var(--bg); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a { color: var(--ink); font-weight: 600; }
.nav-links > a:hover { color: var(--red); text-decoration: none; }
.nav-cta { display: flex; gap: 8px; margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 3px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero { padding: 48px 0 32px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--slate); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-note { color: var(--muted); font-size: .9rem; }
.hero-art { overflow: hidden; border-radius: 18px; aspect-ratio: 1.2; }
.hero-art img { width: 250%; max-width: none; height: auto; margin-left: -38.5%; margin-top: 6%; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust span::before { content: "•"; color: var(--red); margin-right: 8px; }

/* Why */
.why { background: var(--navy); color: #cbd5e1; padding: 56px 0; }
.why h2 { color: #fff; }
.why-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.why-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-points li { padding-left: 16px; border-left: 3px solid var(--red); }
.why-points strong { color: #fff; }
@media (prefers-color-scheme: dark) { .why { background: #060b17; } }

/* Product tour */
.tour { background: var(--bg-alt); }
.row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row-alt .frame, .row-alt .frame-pair { order: 2; }
.row-copy p { color: var(--slate); }
.row-copy ul { margin: 0; color: var(--ink); }
.row-copy li { margin-bottom: .35em; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #eef2f7; border-bottom: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.frame-bar span { margin-left: 8px; background: #fff; padding: 2px 10px; border-radius: 4px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-dark .frame-bar { background: #1e293b; border-color: #334155; color: #94a3b8; }
.frame-dark .frame-bar span { background: #0f172a; }
.frame-dark .frame-bar i { background: #475569; }
@media (prefers-color-scheme: dark) { .frame-bar { background: #1e293b; color: #94a3b8; } .frame-bar span { background: #0f172a; } .frame-bar i { background: #475569; } }
.frame a { display: block; cursor: zoom-in; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.frame-pair { display: grid; gap: 16px; }

/* How it works */
.flow { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr auto 1fr; gap: 8px; align-items: stretch; }
.flow-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow-step strong { color: var(--navy); }
.flow-step small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.flow-main { border: 2px solid var(--red); box-shadow: var(--shadow); }
.flow-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; color: var(--navy); }
.flow-main .flow-icon { background: var(--red); color: #fff; }
.flow-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-arrow { align-self: center; width: 22px; height: 2px; background: var(--line); position: relative; }
.flow-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--muted); }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.note { padding: 22px; border-left: 4px solid var(--red); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.note h3 { font-size: 1.05rem; }
.note p { margin: 0; color: var(--slate); }

/* Industries */
.industries { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--slate); font-size: .95rem; }
.unit { display: inline-block; font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: .85rem; font-weight: 700; color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.card-custom { border: 2px dashed var(--red); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.tier { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; }
.tier-pop { border: 2px solid var(--red); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.price { color: var(--muted); margin: 0; }
.price span { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.onb { color: var(--muted); font-size: .9rem; margin: 4px 0 16px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tier li { padding: 6px 0 6px 26px; border-top: 1px solid var(--line); position: relative; font-size: .95rem; }
.tier li::before { content: "✓"; color: var(--red); font-weight: 800; position: absolute; left: 4px; }
.tier .btn { text-align: center; }
.addons { margin-top: 28px; color: var(--slate); text-align: center; }

/* FAQ */
.acc details { border-top: 1px solid var(--line); }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; color: var(--navy); font-size: 1.05rem; list-style: none; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--red); font-weight: 400; line-height: 1; }
.acc details[open] summary::after { content: "–"; }
.acc details p { margin: 0 0 18px; color: var(--slate); max-width: 62em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-copy p:not(.eyebrow):not(.small) { color: var(--slate); font-size: 1.05rem; }
.contact-block { font-style: normal; line-height: 1.7; margin: 24px 0; padding: 18px 22px; background: var(--bg-alt); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; }
.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.lead-form input, .lead-form select, .lead-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.lead-form textarea { resize: vertical; }
.form-msg { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: var(--red); }

/* Footer */
.footer { background: var(--navy); color: #94a3b8; padding: 48px 0 24px; font-size: .92rem; }
@media (prefers-color-scheme: dark) { .footer { background: #060b17; } }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner p { max-width: 32em; margin-top: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: #e2e8f0; }
.footer-legal { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 20px; }
.footer-legal p { margin: 0 0 6px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2, 6, 23, .92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lb-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* Responsive */
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { width: 2px; height: 22px; justify-self: center; }
  .flow-arrow::after { right: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--muted); }
  .tiers, .notes { grid-template-columns: 1fr; }
  .tier-pop { order: -1; }
}
@media (max-width: 860px) {
  section { padding: 56px 0; }
  .hero-grid, .why-grid, .row, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .row-alt .frame, .row-alt .frame-pair { order: 0; }
  .row { gap: 20px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 14px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-cta { flex-direction: column; margin: 6px 0 0; }
  .nav-cta .btn { text-align: center; }
}
@media (max-width: 560px) {
  .f2 { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; text-align: center; }
  .lead-form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ── Custom modules section ─────────────────────────────────────────── */
.custom { background: #0f172a; color: #fff; padding: 72px 0; }
.custom h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 14px; }
.eyebrow-light { color: #ff8a9a; }
.custom-lede { color: #cbd5e1; max-width: 760px; font-size: 1.05rem; margin: 0 0 34px; }
.custom-story { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 30px; margin-bottom: 30px; }
.story-tag { display: inline-block; background: #c8102e; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.story-side h3 { color: #fff; font-size: 1.35rem; margin: 0 0 10px; }
.story-side p { color: #cbd5e1; margin: 0 0 12px; }
.story-side strong { color: #fff; }
.story-math { align-self: center; text-align: center; border-left: 1px solid rgba(255,255,255,0.15); padding-left: 28px; }
.math-row { margin: 6px 0; }
.math-num { display: block; font-size: 2.4rem; font-weight: 800; color: #94a3b8; line-height: 1.1; }
.math-num.math-red { color: #ff5c73; font-size: 3rem; }
.math-label { color: #94a3b8; font-size: .85rem; }
.math-arrow { color: #ff5c73; font-size: 1.6rem; line-height: 1; margin: 4px 0; }
.math-note { margin-top: 14px; color: #e2e8f0; font-size: .9rem; border-top: 1px dashed rgba(255,255,255,0.2); padding-top: 12px; }
.custom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.note-dark { background: rgba(255,255,255,0.05); border-left: 4px solid #c8102e; border-radius: 0 14px 14px 0; padding: 22px; }
.note-dark h3 { color: #fff; }
.note-dark p { color: #cbd5e1; margin: 0; }
.custom-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.custom-cta-hint { color: #94a3b8; font-size: .9rem; }
.custom a { color: #ff8a9a; }
@media (max-width: 860px) {
  .custom-story { grid-template-columns: 1fr; }
  .story-math { border-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding: 20px 0 0; }
  .custom-grid { grid-template-columns: 1fr; }
}

/* ── Alerts section ─────────────────────────────────────────────────── */
.alerts { padding: 72px 0; background: var(--bg-alt, #f8fafc); }
.alerts h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 12px; }
.alerts-lede { color: #475569; max-width: 720px; margin: 0 0 32px; }
.alerts-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.channel { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid #e2e8f0; }
.channel:last-child { border-bottom: 0; }
.channel-icon { font-size: 1.6rem; line-height: 1; margin-top: 3px; }
.channel h3 { margin: 0 0 4px; font-size: 1.05rem; }
.channel p { margin: 0; color: #475569; font-size: 0.95rem; }
.tv-frame { background: #1e293b; border-radius: 16px; padding: 12px 12px 26px; box-shadow: 0 24px 60px rgba(15,23,42,0.35); }
.tv-screen { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #0f172a; }
.tv-dim { position: absolute; inset: 0; background: rgba(20,0,4,0.85); }
.tv-alert-border { position: absolute; inset: 8px; border: 4px solid #ef4444; border-radius: 10px; box-shadow: 0 0 30px rgba(239,68,68,0.6), inset 0 0 40px rgba(239,68,68,0.25); animation: tvPulse 1.1s ease-in-out infinite; }
.tv-alert-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.tv-alert-icon { color: #fbbf24; font-size: clamp(1.6rem, 3.5vw, 2.6rem); animation: tvBlink 1.1s step-start infinite; }
.tv-alert-title { color: #fff; font-weight: 900; line-height: 1.05; font-size: clamp(1.3rem, 3vw, 2.2rem); text-shadow: 0 0 20px rgba(239,68,68,0.8); animation: tvBlink 1.1s step-start infinite; }
.tv-alert-detail { margin-top: 8px; color: #fecaca; font-weight: 700; font-size: clamp(0.8rem, 1.6vw, 1.05rem); }
.tv-alert-by { margin-top: 10px; color: rgba(255,255,255,0.5); font-size: clamp(0.65rem, 1.2vw, 0.8rem); }
.takeover-caption { margin-top: 12px; text-align: center; color: #64748b; font-size: 0.9rem; }
.takeover-caption a { color: #c8102e; }
@keyframes tvPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes tvBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (max-width: 860px) { .alerts-grid { grid-template-columns: 1fr; } }
