/* QueueManager.lk marketing page
   One bold element: the LED seven-segment number. Everything else is quiet.
   Palette: paper, ink, slate, graphite board, LED red, live green.
   Type: Archivo at normal width for everything. */

:root {
  --paper: #F3F5F7;
  --white: #FFFFFF;
  --ink: #16202E;
  --slate: #566275;
  --line: #D9DEE5;
  --tint: #E8ECF1;
  --graphite: #20242C;
  --graphite-2: #2A2F39;
  --led: #FF4A3D;
  --led-off: rgba(255, 74, 61, 0.09);
  --live: #2FB67C;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }

h1, h2 {
  font-weight: 800;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.02; max-width: 11em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

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

:focus-visible { outline: 3px solid #2B6CDF; outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #24324A; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-led { background: var(--led); color: #1B0A08; }
.btn-led:hover { background: #FF6A5F; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 245, 247, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name {
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 100;
}
.brand-tld { color: var(--led); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a, .link-quiet { text-decoration: none; color: var(--slate); font-weight: 550; font-size: .97rem; }
.nav a:hover, .link-quiet:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 20px; }

/* Hero */
.hero { padding: 80px 0 112px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
}
.lede { margin-top: 24px; font-size: 1.18rem; color: var(--slate); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.assurances {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none;
  color: var(--slate); font-size: .95rem;
}
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live);
}

/* Demo scene */
.scene {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 28px;
  align-items: end;
  justify-items: center;
}
.unit {
  grid-column: 1; grid-row: 1;
  width: 100%;
  background: linear-gradient(180deg, var(--graphite-2), var(--graphite));
  border-radius: var(--r-lg);
  padding: 20px 26px 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 30px 60px -20px rgba(22, 32, 46, .45),
    0 8px 18px -8px rgba(22, 32, 46, .35);
}
.unit-top { display: flex; justify-content: space-between; align-items: center; color: #9AA3B2; font-size: .9rem; font-weight: 600; }
.unit-status { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(47,182,124,.18); }
.unit-caption { display: block; margin-top: 6px; color: #9AA3B2; font-size: .9rem; font-weight: 600; text-align: center; }

.seg-display {
  display: flex; justify-content: center; gap: 4.5%;
  padding: 22px 6px 10px;
}
.seg-display svg { width: 26%; max-width: 112px; height: auto; overflow: visible; transform: skewX(-7deg); }
.seg { fill: var(--led-off); transition: fill .12s ease, filter .12s ease; }
.seg.on { fill: var(--led); filter: drop-shadow(0 0 6px rgba(255, 74, 61, .65)); }
.seg-sm { padding: 0; gap: 6%; }
.seg-sm svg { width: 30%; }

.next-btn {
  grid-column: 1; grid-row: 2;
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 6px 10px; cursor: pointer;
  font: inherit; font-weight: 650; color: var(--ink);
}
.next-cap {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4A5466, var(--graphite) 70%);
  box-shadow: 0 5px 0 #0F1319, 0 10px 18px -6px rgba(22,32,46,.5);
  transition: transform .08s ease, box-shadow .08s ease;
}
.next-btn:hover .next-cap { background: radial-gradient(circle at 35% 30%, #566174, var(--graphite) 70%); }
.next-btn:active .next-cap,
.next-btn.pressed .next-cap { transform: translateY(4px); box-shadow: 0 1px 0 #0F1319, 0 4px 8px -4px rgba(22,32,46,.5); }

.phone {
  grid-column: 2; grid-row: 1 / span 2;
  align-self: center;
  width: 210px;
  background: var(--white);
  border: 8px solid var(--ink);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 50px -24px rgba(22, 32, 46, .45);
  transform: translateY(26px);
}
.phone-bar {
  background: var(--tint); color: var(--slate);
  font-size: .68rem; padding: 14px 12px 8px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phone-body { padding: 14px 14px 18px; }
.phone-org { font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.phone-room {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 12px; border-radius: 12px; background: var(--graphite); color: #C9CFD9;
  font-size: .85rem; margin-bottom: 8px;
}
.phone-room strong {
  font-size: 1.7rem; font-weight: 800; color: var(--led); letter-spacing: .02em;
  font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums;
}
.phone-room-dim { background: var(--tint); color: var(--slate); }
.phone-room-dim strong { color: var(--ink); font-size: 1.15rem; }
.phone-room strong.flash { animation: flash .9s ease; }
@keyframes flash { 0% { color: #fff; text-shadow: 0 0 12px rgba(255,74,61,.9); } 100% { color: var(--led); text-shadow: none; } }
.phone-updated { color: var(--slate); font-size: .74rem; margin-top: 4px; }

/* Sections */
.section { padding: 104px 0; }
.section-tint { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 56px; }
.section-head p, .split-head p { margin-top: 16px; color: var(--slate); font-size: 1.1rem; }

/* Flow: a real sequence, so it is numbered and connected */
.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  counter-reset: step;
}
.flow-step { position: relative; counter-increment: step; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: 76px; right: -20px;
  border-top: 2px dashed var(--line);
}
.flow-icon {
  width: 64px; height: 64px; border-radius: 18px; background: var(--white);
  border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 22px; position: relative;
}
.flow-icon::after {
  content: counter(step);
  position: absolute; top: -9px; right: -9px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  font-size: .78rem; font-weight: 700; display: grid; place-items: center;
}
.flow-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.flow-step p { margin-top: 8px; color: var(--slate); }

/* Split layout: heading left, content right */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.split-head { position: sticky; top: 110px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.facts > div { padding: 22px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: 1.08rem; }
.facts dd { margin: 6px 0 0; color: var(--slate); }

/* Dark hardware band */
.section-dark { background: var(--graphite); color: #E8EBF0; }
.section-dark .section-head p { color: #A4ADBB; }
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.device p { margin-top: 10px; color: #A4ADBB; }
.device h3 { color: var(--white); }
.device-art {
  height: 200px; border-radius: var(--r); margin-bottom: 24px;
  background: radial-gradient(120% 90% at 50% 0%, #313744, #1A1E25);
  display: grid; place-items: center; position: relative;
  border: 1px solid rgba(255,255,255,.06);
}
.device-indoor .seg-display {
  width: 58%; padding: 18px 16px; border-radius: 12px;
  background: #11141A; box-shadow: 0 0 0 6px #3A404C, 0 18px 30px -12px rgba(0,0,0,.6);
}
.device-outdoor .seg-display {
  width: 76%; padding: 16px 14px; border-radius: 10px;
  background: #11141A; box-shadow: 0 0 0 8px #4A5262, 0 0 0 10px #2A2F39, 0 18px 30px -12px rgba(0,0,0,.6);
}
.device-outdoor .seg-display svg { width: 24%; }
.device-gateway::before {
  content: ""; width: 110px; height: 70px; border-radius: 14px;
  background: linear-gradient(180deg, #4A5262, #363C48);
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.6);
}
.antenna {
  position: absolute; width: 6px; height: 70px; border-radius: 3px; background: #5B6475;
  left: calc(50% + 34px); top: calc(50% - 98px);
}
.gw-led {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 10px var(--live);
  left: calc(50% - 40px); top: calc(50% + 14px);
}

/* Places */
.places {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.places li {
  padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.places strong { font-size: 1.15rem; }
.places span { color: var(--slate); }

/* Pricing */
.quote-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px;
}
.quote-intro { font-weight: 700; }
.ticks { list-style: none; margin: 16px 0 24px; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--live); border-bottom: 2.5px solid var(--live); transform: rotate(-45deg);
}
.quote-note { color: var(--slate); margin-bottom: 26px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--slate); max-width: 40em; }

/* Closing */
.closing { background: var(--ink); color: var(--white); padding: 88px 0; }
.closing-grid { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.closing p { margin-top: 14px; color: #B3BCCB; font-size: 1.1rem; }
.closing-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.closing-phone {
  font-size: 2.2rem; font-weight: 800; text-decoration: none; letter-spacing: .01em;
  font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums;
}
.closing-phone:hover { color: var(--led); }

/* Footer */
.site-footer { background: var(--ink); color: #B3BCCB; border-top: 1px solid rgba(255,255,255,.08); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.6fr; gap: 40px; }
.brand-footer { display: inline; color: var(--white); font-weight: 800; font-size: 1.2rem; font-variation-settings: "wdth" 100; }
.site-footer p { margin-top: 8px; }
.site-footer nav, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a, .footer-contact a { text-decoration: none; }
.site-footer nav a:hover, .footer-contact a:hover { color: var(--white); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .9rem; }

/* Responsive */
@media (max-width: 980px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .flow-step:nth-child(2)::after { display: none; }
  .split, .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .split-head { position: static; }
  .devices { grid-template-columns: 1fr 1fr; }
  .places { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .link-quiet { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 400px) {
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 30px; height: 30px; }
  .header-actions .btn-sm { padding: 0 14px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .scene { grid-template-columns: 1fr; }
  .phone { grid-column: 1; grid-row: 3; transform: none; margin-top: 28px; width: 230px; }
  .flow, .facts, .devices, .places { grid-template-columns: 1fr; }
  .flow-step::after { display: none; }
  .quote-box { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .closing-phone { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .seg, .next-cap, .btn { transition: none; }
  .phone-room strong.flash { animation: none; }
}

/* Setups (inside the dark band) */
.setups { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 88px; }
.setup {
  background: #262B34; border: 1px solid rgba(255,255,255,.07); border-radius: var(--r-lg);
  padding: 28px 30px 30px;
}
.setup-art { width: 100%; height: auto; margin-bottom: 22px; }
.setup h3 { color: var(--white); font-size: 1.4rem; }
.setup-list { margin: 14px 0 0; padding: 0; list-style: none; color: #A4ADBB; }
.setup-list li { position: relative; padding: 7px 0 7px 22px; }
.setup-list li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--led);
}
.setup-art .bldg { fill: none; stroke: #4A5262; stroke-width: 2; }
.setup-art .lbl { fill: #8C96A6; font: 600 12px var(--font); }
.setup-art .lbl-c { text-anchor: middle; }
.setup-art .radio path { fill: none; stroke: var(--led); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .55; }
.setup-art .unit-ic rect { fill: #11141A; stroke: #3A404C; stroke-width: 2; }
.setup-art .unit-ic text { fill: var(--led); font: 800 17px var(--font); text-anchor: middle; }
.setup-art .unit-ic-lg text { font-size: 30px; }
.setup-art .gw-ic rect { fill: #4A5262; }
.setup-art .gw-ic path { stroke: #6B7486; stroke-width: 4; stroke-linecap: round; }
.setup-art .gw-ic circle { fill: var(--live); }
.setup-art .net { fill: none; stroke: #6B7486; stroke-width: 2; }
.setup-art .cloud-ic path { fill: none; stroke: #C9CFD9; stroke-width: 2.5; stroke-linejoin: round; }
.devices-title { color: var(--white); font-size: 1.4rem; margin-bottom: 28px; }
@media (max-width: 980px) { .setups { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .setup { padding: 22px 20px 24px; } .setups { margin-bottom: 64px; } }

/* Room device: one device, two parts */
.device-wide { grid-column: span 2; }
.device-pair { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; margin-bottom: 24px; }
.device-pair .device-art { margin: 0; padding-bottom: 26px; }
.device-pair figcaption {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  color: #8C96A6; font-size: .85rem; font-weight: 600;
}
.pair-link { height: 0; border-top: 2px dashed rgba(255, 74, 61, .5); }
.device-pair .device-indoor .seg-display,
.device-pair .device-outdoor .seg-display { width: 62%; }
@media (max-width: 980px) { .device-wide { grid-column: 1 / -1; } }
@media (max-width: 620px) {
  .device-pair { grid-template-columns: 1fr; row-gap: 0; }
  .pair-link { width: 0; height: 24px; border-top: 0; border-left: 2px dashed rgba(255, 74, 61, .5); justify-self: center; }
}
