/* Interactive product presentation (present.php) — the product's own signals: teal = system, violet = visitors,
   green IN, blue OUT, amber waiting, red refused. Dark chapters for the screens, light for the paperwork. */
:root {
  --ink: #0f1b33; --ink-2: #4a5a78; --paper: #f4f7fc; --paper-2: #e8eeea; --line: #d5dfef;
  --deep: #050f29; --deep-2: #071d4a; --deep-3: #0a2a6b; --teal: #3b82f6; --teal-l: #7dd3fc; --teal-d: #1d5fd1;
  --vio: #a78bfa; --vio-l: #c4b5fd; --go: #16a34a; --out: #2563eb; --wait: #f59e0b; --stop: #dc2626;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px; --g: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--teal-d); }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -.02em; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
.wrap.narrow { max-width: 820px; }
:focus-visible { outline: 3px solid var(--wait); outline-offset: 3px; border-radius: 6px; }

/* top bar */
.pt-top { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 var(--g);
  background: rgba(6,18,46, .82); backdrop-filter: blur(10px); color: #edf3fd; border-bottom: 1px solid rgba(125,211,252,.12); }
.pt-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.05rem var(--display); white-space: nowrap; }
.pt-logo img { border-radius: 8px; }
.pt-progress { flex: 1; height: 3px; background: rgba(255,255,255,.1); border-radius: 9px; overflow: hidden; }
.pt-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--vio)); transition: width .15s linear; }
.pt-actions { display: flex; gap: 8px; }
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 12px; font: 600 15px/1 var(--body);
  text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s, background-color .15s; }
.pt-btn:hover { transform: translateY(-1px); }
.pt-btn.lg { min-height: 52px; padding: 14px 24px; font-size: 17px; }
.pt-btn.go { background: var(--go); color: #fff; } .pt-btn.go:hover { background: #12863d; }
.pt-btn.ghost { color: #d3e1f7; border-color: rgba(255,255,255,.18); background: transparent; }
.pt-btn.line { color: inherit; border-color: currentColor; background: transparent; }

/* chapter rail */
.pt-rail { position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 25; display: flex; flex-direction: column; gap: 8px; }
.pt-rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pt-rail i { width: 10px; height: 10px; border-radius: 50%; background: rgba(120,140,138,.45); box-shadow: 0 0 0 3px rgba(255,255,255,.35); transition: transform .2s, background-color .2s; flex-shrink: 0; }
.pt-rail span { opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; background: rgba(6,18,46,.88); color: #fff; padding: 3px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.pt-rail a:hover span, .pt-rail a:focus span { opacity: 1; transform: none; }
.pt-rail a.on i { background: var(--teal); transform: scale(1.5); }

/* chapters */
.ch { min-height: 100vh; padding: clamp(84px, 12vh, 120px) 0 clamp(56px, 9vh, 96px); display: flex; align-items: center; position: relative; }
.ch > .wrap { width: 100%; }
.ch.light { background: #fff; }
.ch.dark, .ch.cover, .ch.end { background: radial-gradient(1000px 600px at 0% 0%, rgba(59,130,246,.18), transparent 60%), radial-gradient(900px 600px at 100% 100%, rgba(167,139,250,.16), transparent 60%), var(--deep); color: #edf3fd; }
.ch.dark a, .ch.end a:not(.pt-btn) { color: var(--teal-l); }
.kicker { margin: 0 0 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--teal-d); }
.dark .kicker, .cover .kicker, .end .kicker { color: var(--teal-l); }
.ch h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 20ch; margin-bottom: 18px; }
.sub { color: var(--ink-2); font-size: 1.1rem; margin: 0 0 18px; } .dark .sub { color: #a6bcdf; }
.small { font-size: 13px; color: var(--ink-2); }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; } .rv.in { opacity: 1; transform: none; }

/* cover */
.cover-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cover h1 { font-size: clamp(3rem, 8vw, 6.4rem); background: linear-gradient(180deg, #fff, #bfdbfe); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.prepared { display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(125,211,252,.3); font-size: 15px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #c9e2de; max-width: 36em; margin: 0 0 26px; }
.light .lead { color: var(--ink-2); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.07); font-size: 14px; color: #d3e1f7; }
.cover-live { background: rgba(14, 30, 70,.78); border: 1px solid rgba(125,211,252,.18); border-radius: 26px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.lm-top { display: flex; justify-content: space-between; align-items: center; color: #93a8cf; font-size: 14px; font-weight: 600; }
.lm-top b { color: #fff; font-size: 1.2rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--go); margin-right: 6px; box-shadow: 0 0 10px var(--go); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.lm-ring { margin: 16px auto; width: min(240px, 70%); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 30% 25%, #122656, #06133a 70%) padding-box, conic-gradient(var(--teal) 0 96%, var(--vio) 96% 100%) border-box; border: 12px solid transparent; }
.lm-ring b { font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); } .lm-ring small { color: #93a8cf; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.lm-split, .lm-today { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.lm-split div, .lm-today div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px 10px; text-align: center; display: grid; }
.lm-split b, .lm-today b { font: 800 1.5rem/1.1 var(--display); } .lm-split span, .lm-today span { font-size: 12px; color: #93a8cf; text-transform: uppercase; letter-spacing: .06em; }
.lm-split .e b { color: var(--teal-l); } .lm-split .v b { color: var(--vio-l); } .lm-today .i b { color: #86efac; } .lm-today .o b { color: #93c5fd; }
.lm-feed { margin-top: 12px; display: grid; gap: 6px; min-height: 126px; }
.lf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border-left: 4px solid var(--teal); animation: slide .45s ease; }
.lf.v { border-left-color: var(--vio); } .lf b { font-size: 14px; } .lf span { grid-column: 1; font-size: 12px; color: #93a8cf; }
.lf em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(34,197,94,.2); color: #86efac; }
.lf.out em { background: rgba(96,165,250,.2); color: #93c5fd; }
@keyframes slide { from { opacity: 0; transform: translateY(-8px); } }

/* problem */
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.pains article { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.pains b { font: 700 1.15rem var(--display); display: block; margin-bottom: 6px; } .pains p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.answer { margin-top: 26px; font: 700 clamp(1.2rem, 2.2vw, 1.6rem)/1.3 var(--display); color: var(--teal-d); }

/* modules */
.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mod { text-align: left; font: inherit; color: inherit; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mod:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,42,107,.08); }
.mod.on { border-color: var(--teal); background: #effcf9; box-shadow: 0 10px 30px rgba(59,130,246,.18); }
.mod .mi { font-size: 1.5rem; } .mod b { font: 700 1.05rem var(--display); } .mod small { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.mod-detail { margin-top: 18px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 32px); animation: slide .35s ease; }
.mod-detail h3 { font-size: 1.6rem; margin-bottom: 10px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks.light li { color: #dbe7fb; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 24px 60px rgba(5,20,56,.22); background: #fff; }
.dark .shot { border-color: rgba(125,211,252,.2); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.phone { margin: 0; width: 220px; border-radius: 30px; overflow: hidden; border: 8px solid #0a1224; box-shadow: 0 24px 60px rgba(5,20,56,.3); background: #000; }

/* a day at the gate */
.day { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.day-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.day-line button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; color: #d3e1f7; background: rgba(255,255,255,.04); border: 1px solid rgba(125,211,252,.12); border-left: 4px solid var(--teal); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.day-line button.s-deny { border-left-color: var(--stop); } .day-line button.s-wait { border-left-color: var(--wait); } .day-line button.s-out { border-left-color: var(--out); } .day-line button.s-in { border-left-color: var(--go); }
.day-line button.on { background: rgba(125,211,252,.14); color: #fff; }
.day-line time { font: 700 .95rem var(--display); color: #fff; min-width: 3.2em; }
.day-stage { display: grid; gap: 18px; }
.gd { display: grid; grid-template-columns: clamp(90px, 14vw, 150px) minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); align-items: center; padding: clamp(18px, 2.6vw, 34px); border-radius: 26px; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.gd.s-in { background: linear-gradient(135deg, #16a34a, #0f7a37); } .gd.s-out { background: linear-gradient(135deg, #2563eb, #1e40af); }
.gd.s-wait { background: linear-gradient(135deg, #b45309, #92400e); } .gd.s-deny { background: linear-gradient(135deg, #dc2626, #991b1b); }
.gd.pop { animation: pop .4s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { transform: scale(.94); opacity: .4; } }
.gd-av { aspect-ratio: 1; border-radius: 22px; background: rgba(0,0,0,.2); display: grid; place-items: center; font: 800 clamp(2rem, 4vw, 3.4rem) var(--display); box-shadow: 0 0 0 6px rgba(255,255,255,.35); }
.gd-pill { display: inline-block; padding: 4px 14px; border-radius: 99px; background: rgba(255,255,255,.95); color: #111; font-weight: 900; font-size: .95rem; letter-spacing: .04em; }
.gd-b b { display: block; font: 800 clamp(1.8rem, 3.6vw, 3rem)/1.05 var(--display); margin: 10px 0 4px; } .gd-b small { font-size: 1.05rem; opacity: .9; }
.day-text { margin: 0; font-size: 1.12rem; color: #dbe7fb; min-height: 4.8em; }
.day-ctl { display: flex; gap: 8px; } .dark .pt-btn.line { color: #d3e1f7; border-color: rgba(255,255,255,.3); }

/* journeys */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); margin-bottom: 18px; }
.tab { font: 600 15px var(--body); border: 0; background: transparent; padding: 10px 18px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.tab.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; animation: slide .35s ease; }
.jsteps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.jsteps li { counter-increment: s; position: relative; padding: 2px 0 0 52px; }
.jsteps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--deep-3); color: var(--teal-l); display: grid; place-items: center; font: 800 1.1rem var(--display); }
.jsteps b { font: 700 1.1rem var(--display); } .jsteps p { margin: 2px 0 0; color: var(--ink-2); font-size: 15.5px; }
.jshots { display: flex; gap: 18px; align-items: flex-end; } .jshots .shot { flex: 1; } .jshots .phone { width: 170px; flex-shrink: 0; margin-bottom: -20px; }

/* two-column chapters */
.two { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }

/* calculator */
.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.calc label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.calc input { font: 600 16px var(--body); padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; width: 100%; }
.calc-out { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.calc-out div { background: #fff; border-radius: 12px; padding: 8px 12px; border: 1px solid var(--line); display: grid; }
.calc-out span { font-size: 12px; color: var(--ink-2); } .calc-out b { font: 700 1.1rem var(--display); }
.calc-out .t { grid-column: 1 / -1; background: var(--deep-3); color: #fff; border: 0; } .calc-out .t span { color: #a6bcdf; } .calc-out .t b { font-size: 1.6rem; color: var(--teal-l); }

/* hardware & roles */
.hw, .roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hw article, .roles article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.hw b, .roles b { font: 700 1.08rem var(--display); display: block; margin-bottom: 4px; } .hw p, .roles p { margin: 0; color: var(--ink-2); font-size: 15px; }
.roles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.chip { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-weight: 800; margin-bottom: 8px; }
.c1 { background: #1d5fd1; } .c2 { background: #7c3aed; } .c3 { background: #2563eb; } .c4 { background: #b45309; } .c5 { background: #0891b2; } .c6 { background: #16a34a; } .c7 { background: #db2777; }

/* trust */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats div { background: rgba(255,255,255,.05); border: 1px solid rgba(125,211,252,.15); border-radius: 18px; padding: 22px; }
.stats b { display: block; font: 800 clamp(2rem, 4vw, 3rem)/1 var(--display); color: var(--teal-l); } .stats span { color: #a6bcdf; }

/* roll-out */
.roll { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; }
.roll li { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: 14px; padding: 16px; }
.roll b { font: 700 1.05rem var(--display); display: block; margin-bottom: 4px; } .roll p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font: 700 1.12rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--teal-d); font-size: 1.5rem; line-height: 1; } .faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* end */
.end-in { text-align: center; } .end h2 { margin: 0 auto 14px; } .end .lead { margin: 0 auto 26px; } .end .cta-row { justify-content: center; }
.contact { margin-top: 22px; color: #a6bcdf; }

@media (max-width: 1100px) { .pt-rail { display: none; } .mods, .hw { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); } .roll { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .cover-in, .two, .mod-detail, .journey, .day { grid-template-columns: 1fr; }
  .ch { min-height: auto; }
  .day-line { grid-template-columns: repeat(3, minmax(0, 1fr)); } .day-line button span { display: none; }
  .calc, .calc-out { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .mods, .hw, .pains, .roll { grid-template-columns: 1fr; }
  .pt-actions .ghost { display: none; } .pt-progress { display: none; }
  .jshots .phone { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { opacity: 1; transform: none; transition: none; } .gd.pop, .lf, .dot { animation: none; } }
@media print { .pt-top, .pt-rail, .day-ctl { display: none; } .ch { min-height: auto; page-break-inside: avoid; } .rv { opacity: 1; transform: none; } }
