/* nelos.vn - shared styles. Mobile-first, no framework, no build step for CSS.
   Structure: tokens > base > header > buttons > sections/cards > hero (reused
   from the global Nelos site) > home sections > inner pages > footer > consent. */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f2;
  --bg-tint: #eaf3df;
  --surface: #ffffff;
  --line: #dce3d5;
  --line-strong: #c5cfbb;
  --ink: #12261a;
  --text: #26332a;
  --muted: #566259;
  --accent: #3e7d0c;
  --accent-strong: #2f6208;
  --accent-ink: #16330a;
  --lime: #84cc16;
  --lime-hover: #97db29;
  --forest: #0f2a1b;
  --forest-2: #17392a;
  --forest-line: rgba(255, 255, 255, 0.14);
  --bt: #1f7ae0;
  --note-bg: #eef6e6;
  --note-line: #c9e0b3;
  --warn-bg: #fff8e3;
  --warn-line: #f0dc93;
  --warn-ink: #5a4300;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --header-h: 64px;
  --shadow-sm: 0 1px 2px rgba(16, 38, 26, 0.06), 0 10px 26px -16px rgba(16, 38, 26, 0.22);
  --shadow-md: 0 22px 48px -24px rgba(16, 38, 26, 0.34);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;

  /* Aliases used by the hero block carried over from the global site. */
  --home-bg: var(--bg);
  --home-bg-alt: #f5f5f7;
  --home-surface: var(--surface);
  --home-border: #d2d2d7;
  --home-text: var(--ink);
  --home-text-muted: var(--muted);
  --home-accent: var(--accent);
  --home-accent-bright: var(--lime);
  --home-accent-ink: var(--accent-ink);
  --home-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --home-shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.12);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  /* Vietnamese stacks diacritics above and below the line: keep body copy
     and headings a little looser than typical Latin-only sites. */
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  line-height: 1.26;
  letter-spacing: -0.012em;
  font-weight: 750;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Links inside running text are underlined so they never rely on colour alone (WCAG 1.4.1). */
main :where(p, li, dd, figcaption, summary) a:where(:not(.btn, .card--link, .card-more)),
.faq-answer a,
.consent a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

main .chips a,
main .qlinks a,
main .breadcrumb a,
main .solution-head a,
main .device-body .btn {
  text-decoration: none;
}

main .chips a:hover,
main .qlinks a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(47, 98, 8, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--lime);
  color: var(--accent-ink);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}

.skip-link:focus {
  top: 10px;
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 rgba(16, 38, 26, 0.07);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav > a,
.nav-drop > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.nav-drop > summary::-webkit-details-marker {
  display: none;
}

.nav-drop > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.nav-drop[open] > summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nav > a:hover,
.nav-drop > summary:hover,
.nav-drop[open] > summary {
  background: var(--bg-soft);
  color: var(--accent-strong);
  text-decoration: none;
}

.nav > a[aria-current="page"],
.nav-drop.is-current > summary {
  color: var(--accent-strong);
  box-shadow: inset 0 -2px 0 var(--lime);
  border-radius: 10px 10px 4px 4px;
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 5;
  width: 340px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.nav-drop-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
}

.nav-drop-menu a:hover,
.nav-drop-menu a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--accent-strong);
  text-decoration: none;
}

.nav-drop-menu strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
}

.nav-drop-menu span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 400;
}

.nav-drop-menu .nav-drop-all {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  color: var(--accent-strong);
  font-weight: 700;
}

.nav-cta {
  margin-left: 6px;
}

@media (max-width: 1023px) {
  /* backdrop-filter would make the header the containing block of the fixed drawer below
     (collapsing it to zero height), so the header is plain white at drawer widths. */
  .site-header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Without JS the links simply stack below the brand; with JS they live in a
     full-height drawer opened by the toggle. */
  .site-header .container {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-group {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .js .site-header .container {
    flex-wrap: nowrap;
    padding-top: 0;
    padding-bottom: 0;
  }

  .js .nav-group {
    display: none;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 12px 20px 32px;
    overflow-y: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
  }

  .js .nav-group.is-open {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav > a,
  .nav-drop > summary {
    display: flex;
    justify-content: space-between;
    padding: 14px 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav > a[aria-current="page"],
  .nav-drop.is-current > summary {
    box-shadow: none;
    border-radius: 0;
  }

  .nav-drop-menu {
    position: static;
    width: auto;
    padding: 4px 0 8px 12px;
    border: 0;
    border-left: 3px solid var(--bg-tint);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-drop-menu a {
    padding: 12px 10px;
  }

  .nav-cta {
    margin: 18px 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--lime);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -10px rgba(101, 163, 13, 0.7);
}

.btn--primary:hover {
  background: var(--lime-hover);
  color: var(--accent-ink);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.btn--dark {
  background: var(--forest);
  color: #fff;
}

.btn--dark:hover {
  background: var(--forest-2);
  color: #fff;
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn--lg {
  min-height: 54px;
  padding: 13px 26px;
  font-size: 1.05rem;
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.94rem;
  border-radius: 12px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.link-arrow {
  font-weight: 700;
}

.link-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 0.15s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- Store badges (official artwork) ---------- */
.store-badges {
  --store-badge-height: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badges--center {
  justify-content: center;
}

.store-badges--lg {
  --store-badge-height: 56px;
}

.store-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: calc(var(--store-badge-height) * 3.36);
  height: var(--store-badge-height);
  overflow: hidden;
  background: #000;
  border: 1px solid #a6a6a6;
  border-radius: 8px;
  transition: transform 0.08s ease, opacity 0.15s ease;
}

.store-badges a:hover {
  opacity: 0.86;
  text-decoration: none;
}

.store-badges a:active {
  transform: translateY(1px);
}

.store-badges img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(3px);
}

/* ---------- Section scaffolding ---------- */
.section {
  padding: clamp(52px, 7.5vw, 92px) 0;
}

.section--tight {
  padding: clamp(36px, 5vw, 60px) 0;
}

.section--alt {
  background: var(--bg-soft);
}

.section--dark {
  background: radial-gradient(1000px 420px at 85% -10%, rgba(132, 204, 22, 0.16), transparent 60%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-2) 100%);
  color: #dbe8d7;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark a:not(.btn) {
  color: #b7ee5c;
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: #b7ee5c;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}

.section--dark .section-lead {
  color: #c2d3bd;
}

/* ---------- Grids, cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 1.2rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--link {
  display: block;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card--link:hover {
  color: var(--text);
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card--flat {
  box-shadow: none;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 15px;
  background: var(--bg-tint);
  color: var(--accent-strong);
}

.icon-tile svg {
  width: 26px;
  height: 26px;
}

.icon-tile--dark {
  background: rgba(255, 255, 255, 0.1);
  color: #b7ee5c;
}

.icon,
svg.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tile svg,
.btn svg,
.flow-icon svg,
.check svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Two-column split (text + media) ---------- */
.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .split--reverse .split-media {
    order: -1;
  }

  .split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.figure {
  margin: 0;
}

.container-narrow .figure:not(.phone-figure) {
  margin: 1.6em 0;
}

.figure figcaption,
.caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Small tick list used across pages. */
.checklist {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 4px 0 4px 32px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232f6208' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.section--dark .checklist li::before {
  background-color: rgba(132, 204, 22, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b7ee5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E");
}

/* Neutral "limits" list (crosses/dots instead of ticks). */
.limits li::before {
  background: #fdecd0
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237a4b00' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 5.5v5.5M10 14.3v.2'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Callouts */
.callout {
  margin: 1.4em 0;
  padding: 18px 20px;
  border: 1px solid var(--note-line);
  border-radius: var(--radius-sm);
  background: var(--note-bg);
  color: var(--text);
}

.callout:first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout strong:first-child {
  color: var(--ink);
}

.callout--warn {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.callout--warn strong:first-child {
  color: var(--warn-ink);
}

.callout--center {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== Hero scene (reused from the global Nelos site: same artwork, markup contract and JS) ===== */
/* ---------- Hero ----------
   Mobile-first: .home-hero is a flex column, stacking copy -> scene ->
   phone in reading order (copy pulled first via `order`). At 860px the
   scene becomes a full-bleed backdrop and the copy switches to an
   absolutely-positioned overlay anchored to the left edge, matching the
   reference composition. Marker positions are plain left/top percentages
   so they're trivial to nudge once real assets replace the placeholders -
   see the PLACEHOLDER ASSET comments in index.html for exact specs. */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Mobile/tablet use one image on this shared parent, so its crop spans
     the copy and marker scene as one uninterrupted landscape. */
  background-color: var(--home-bg-alt);
  background-image: url("/assets/img/hero/background-mobile.webp");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  /* Without this, the generic `section { padding }` rule silently applies
     here too (it never gets overridden since this rule declared no
     padding of its own), leaving a ~96px gap above the hero image. */
  padding: 0;
}

@supports (background-image: image-set(url("/assets/img/hero/background-mobile.webp") 1x)) {
  .home-hero {
    background-image: image-set(url("/assets/img/hero/background-mobile.webp") 1x);
  }
}

/* This scrim belongs to the shared hero rather than either stacked child.
   It starts warm-white for the badge/headline, then eases out gradually
   through the lede before the marker composition begins. */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--home-bg) 0%,
    var(--home-bg) 25%,
    rgba(255, 255, 255, 0.9) 34%,
    rgba(255, 255, 255, 0.55) 43%,
    rgba(255, 255, 255, 0) 52%
  );
}

.hero-scene {
  position: relative;
  order: 0;
  z-index: 2;
  width: 100%;
  min-height: clamp(340px, 92vw, 480px);
  overflow: hidden;
  background: transparent;
}

.hero-scene-bg {
  position: absolute;
  inset: 0;
  background: transparent;
}

/* The inspector cards cycle through sample distances and battery levels. This label says so, so
   the illustration is never read as a range promise. */
.hero-sample-note {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 3;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1.4;
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-lines--desktop {
  display: none;
}

.hero-line {
  /* Bright lime signal paths deliberately contrast against both forest
     and water, with a soft halo that reads clearly over the artwork. */
  stroke: #caff72;
  fill: none;
  filter: drop-shadow(0 0 1px rgba(255, 255, 238, 0.98)) drop-shadow(0 0 4px rgba(115, 196, 36, 0.96)) drop-shadow(0 0 9px rgba(115, 196, 36, 0.65));
  /* vector-effect below renders stroke-width/dasharray in real screen
     px, not scaled viewBox units - values here are already screen-px
     sized (an earlier 0.3/"3 15" pass assumed viewBox-unit scaling and
     was visually imperceptible at ~1440px line lengths). */
  stroke-width: 2px;
  stroke-linecap: round;
  /* Short bright dash + long gap reads as a small pulse traveling along
     the line, rather than a plain marching-dashes pattern. */
  /* Small, closely spaced round dashes read as a continuous string of
     individual light points, matching the connection-map artwork. */
  stroke-dasharray: 1px 5px;
  opacity: 0.95;
  vector-effect: non-scaling-stroke;
  /* Static by design - an earlier version animated stroke-dashoffset
     continuously here, which read as "the whole dashed line moving."
     The traveling-light effect now lives entirely in .hero-pulse-dot
     instead, so this line itself never animates except the one-time
     reveal below. */
}

/* Device -> phone link: deliberately not a mesh line. Thinner, cooler
   (soft blue vs. the mesh's green), fine dotted rather than the
   mesh's chunky dash, no traveling pulse - so the phone reads as "the
   window into the network" rather than "a fifth participant." */
.hero-ble-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: none;
}

.hero-ble-line {
  stroke: #3d9cff;
  fill: none;
  filter: drop-shadow(0 0 2px rgba(220, 241, 255, 1)) drop-shadow(0 0 5px rgba(46, 142, 255, 0.95));
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-dasharray: 1px 5px;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

.hero-ble-traveler {
  position: absolute;
  z-index: 3;
  display: none;
  width: 18px;
  height: 18px;
  pointer-events: none;
  left: 57%;
  top: 62%;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.hero-ble-traveler svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #1989f5;
  filter: drop-shadow(0 0 2px rgba(232, 247, 255, 0.95)) drop-shadow(0 0 5px rgba(31, 137, 245, 0.82));
  animation: heroBluetoothTwinkle 0.85s ease-in-out infinite;
}

@keyframes heroBluetoothTwinkle {
  0%,
  100% {
    opacity: 0.55;
    filter: drop-shadow(0 0 1px rgba(232, 247, 255, 0.7)) drop-shadow(0 0 3px rgba(31, 137, 245, 0.5));
  }
  48% {
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(241, 250, 255, 1)) drop-shadow(0 0 8px rgba(31, 137, 245, 1));
  }
  60% {
    opacity: 0.72;
  }
}

.hero-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-marker-img {
  display: block;
  width: 60px;
  height: auto;
  /* Real asset ratios (not the earlier rough placeholder guesses) - only
     the ratio is corrected per the pre-approved "minor adjustment for
     physical proportions" allowance; width/position/z-index untouched. */
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

/* Mobile-first sizes - smaller than desktop since the compact mobile
   scene now carries all 6 participants (not just 4) in a much smaller
   area. Desktop restores the original larger sizes further down, inside
   the min-width:1100px block. */
.hero-marker--hiker .hero-marker-img {
  width: 40px;
  aspect-ratio: 1055 / 1491;
}
.hero-marker--family .hero-marker-img {
  width: 58px;
  aspect-ratio: 1536 / 1024;
}
.hero-marker--dog .hero-marker-img {
  width: 28px;
  aspect-ratio: 1207 / 1303;
}
.hero-marker--boy .hero-marker-img {
  width: 34px;
  aspect-ratio: 1024 / 1536;
}
.hero-marker--motorcycle .hero-marker-img {
  width: 60px;
  aspect-ratio: 1536 / 1024;
}
.hero-marker--boat .hero-marker-img {
  width: 62px;
  aspect-ratio: 1536 / 1024;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow);
  color: var(--home-text);
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-accent-bright);
  display: inline-block;
}

/* Interactive member/node details: a compact in-scene readout rather
   than a modal, so the hero still feels like a live game map. */
.hero-marker--interactive {
  cursor: pointer;
  outline: none;
  /* Without this, mobile Safari/Chrome flash their own translucent blue
     tap-highlight rectangle over the marker on touch, a beat before the
     JS-driven .is-selected glow/chip below ever applies - killing the
     intended reveal. This is a rendering-only reset, not a design change. */
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

.hero-marker--interactive picture {
  position: relative;
  z-index: 1;
  display: block;
  width: fit-content;
}

.hero-marker--interactive picture::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(213, 255, 137, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 255, 87, 0.32) 0%, rgba(139, 227, 50, 0.12) 42%, transparent 70%);
  box-shadow: 0 0 0 5px rgba(185, 255, 91, 0.1), 0 0 20px rgba(166, 246, 69, 0.42);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
  transition: opacity 0.18s ease, transform 0.22s ease;
  pointer-events: none;
}

.hero-marker--device picture::after {
  border-color: rgba(116, 210, 255, 0.96);
  background: radial-gradient(circle, rgba(91, 201, 255, 0.38) 0%, rgba(57, 157, 255, 0.12) 44%, transparent 70%);
  box-shadow: 0 0 0 6px rgba(91, 201, 255, 0.1), 0 0 22px rgba(69, 173, 255, 0.52);
}

.hero-marker--interactive.is-selected,
.hero-marker--interactive:focus-visible {
  z-index: 9;
}

.hero-marker--interactive.is-selected picture::after,
.hero-marker--interactive:focus-visible picture::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: heroMarkerTarget 1.5s ease-in-out infinite;
}

.hero-marker--interactive.is-selected .hero-chip,
.hero-marker--interactive:focus-visible .hero-chip {
  border-color: #98db52;
  box-shadow: 0 0 0 3px rgba(190, 255, 113, 0.2), 0 8px 18px rgba(21, 62, 30, 0.25);
}

@keyframes heroMarkerTarget {
  50% {
    box-shadow: 0 0 0 11px rgba(185, 255, 91, 0.04), 0 0 30px rgba(166, 246, 69, 0.66);
  }
}

.hero-inspector {
  position: absolute;
  z-index: 12;
  bottom: calc(100% + 10px);
  left: 50%;
  width: 178px;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  color: #1d3424;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 247, 233, 0.92));
  backdrop-filter: blur(12px) saturate(135%);
  box-shadow: 0 14px 30px rgba(22, 57, 31, 0.2), 0 0 0 3px rgba(242, 255, 239, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(0.96);
  transform-origin: bottom center;
  transition: opacity 0.16s ease, transform 0.18s ease;
}

.hero-inspector::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  background: #edf8ee;
  transform: translateX(-50%) rotate(45deg);
}

.hero-inspector strong {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 0.76rem;
  line-height: 1.2;
}

.hero-inspector strong i,
.hero-status-on {
  color: #4f9f29;
  font-style: normal;
}

.hero-inspector span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding-top: 9px;
  font-size: 0.66rem;
}

.hero-inspector span + span::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 113, 72, 0.1) 16%, rgba(61, 113, 72, 0.1) 84%, transparent);
}

.hero-inspector b {
  color: #68806d;
  font-weight: 600;
}

.hero-inspector em {
  color: #1d3424;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.hero-marker--interactive.is-selected .hero-inspector,
.hero-marker--interactive:focus-visible .hero-inspector {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* Jessica's first successful connection intentionally introduces the status
   card a touch more gently than an interaction: it settles in from the
   marker with a brief bloom, then remains the exact same interactive card. */
.hero-marker--interactive.is-auto-revealed .hero-inspector {
  animation: heroInspectorArrival 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroInspectorArrival {
  0% {
    opacity: 0;
    filter: blur(3px);
    transform: translate(-50%, 15px) scale(0.88);
  }

  68% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -2px) scale(1.018);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, 0) scale(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero-marker--interactive:hover {
    z-index: 9;
  }

  .hero-marker--interactive:hover picture::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: heroMarkerTarget 1.5s ease-in-out infinite;
  }

  .hero-marker--interactive:hover .hero-chip {
    border-color: #98db52;
    box-shadow: 0 0 0 3px rgba(190, 255, 113, 0.2), 0 8px 18px rgba(21, 62, 30, 0.25);
  }

  .hero-marker--interactive:hover .hero-inspector {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@media (min-width: 1100px) {
  .hero-marker--interactive picture::after {
    width: 83px;
    height: 83px;
  }
}

@media (max-width: 1099px) {
  .hero-marker--hiker .hero-inspector,
  .hero-marker--dog .hero-inspector {
    left: 0;
    transform: translate(0, 8px) scale(0.96);
    transform-origin: bottom left;
  }

  .hero-marker--hiker .hero-inspector::after,
  .hero-marker--dog .hero-inspector::after {
    left: 24px;
    transform: translateX(-50%) rotate(45deg);
  }

  .hero-marker--hiker.is-selected .hero-inspector,
  .hero-marker--dog.is-selected .hero-inspector,
  .hero-marker--hiker:focus-visible .hero-inspector,
  .hero-marker--dog:focus-visible .hero-inspector {
    transform: translate(0, 0) scale(1);
  }

  .hero-marker--boy .hero-inspector {
    right: 0;
    left: auto;
    top: calc(100% + 8px);
    bottom: auto;
    transform: translate(0, 8px) scale(0.96);
    transform-origin: top right;
  }

  .hero-marker--boy .hero-inspector::after {
    top: -6px;
    bottom: auto;
    right: 24px;
    left: auto;
    transform: translateX(50%) rotate(225deg);
  }

  .hero-marker--boy.is-selected .hero-inspector,
  .hero-marker--boy:focus-visible .hero-inspector {
    transform: translate(0, 0) scale(1);
  }

  .hero-marker--family .hero-inspector,
  .hero-marker--motorcycle .hero-inspector {
    top: calc(100% + 8px);
    bottom: auto;
    transform-origin: top center;
  }

  .hero-marker--family .hero-inspector::after,
  .hero-marker--motorcycle .hero-inspector::after {
    top: -6px;
    bottom: auto;
    transform: translateX(-50%) rotate(225deg);
  }
}

/* Device marker overrides the base .hero-marker flex-column stack: the
   pulse glow and the device placeholder need to sit concentrically on
   the same connection-line origin point, not stack vertically like the
   character markers (which pair a placeholder with a chip below it). */
.hero-marker--device {
  display: block;
}

.hero-device-pulse {
  position: absolute;
  /* The tracker body is visually re-centred below, so this remains the
     true signal origin shared by the SVG connection lines. */
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--home-accent-bright);
  border: 3px solid var(--home-surface);
  transform: translate(-50%, -50%);
  /* Static resting glow until .is-active kicks in (see "Hero network
     activation" below) - matches heroDevicePulse's own 0%/100% value, so
     nothing depends on the activation script running to look correct. */
  box-shadow: 0 0 0 12px rgba(132, 204, 22, 0.34), 0 0 22px 5px rgba(132, 204, 22, 0.26);
}

@keyframes heroDevicePulse {
  0%,
  100% {
    box-shadow: 0 0 0 12px rgba(132, 204, 22, 0.34), 0 0 22px 5px rgba(132, 204, 22, 0.26);
  }
  50% {
    box-shadow: 0 0 0 23px rgba(132, 204, 22, 0.1), 0 0 30px 8px rgba(132, 204, 22, 0.14);
  }
}

.hero-marker--device .hero-marker-img {
  position: relative;
  z-index: 1;
  width: 34px;
  aspect-ratio: 1024 / 1536;
  /* Asset includes a carabiner above the tracker. Offset the image so
     the centre of the tracker body, not the whole cutout, sits exactly
     on the marker/line origin. */
  transform: translate(-5%, -12%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
}

/* Moving signal points use the same SVG curves as their connection lines,
   so the animation never cuts across a bend. */
.hero-pulse-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.hero-pulse-paths--desktop {
  display: none;
}

.hero-pulse-path {
  fill: #efffc6;
  filter: drop-shadow(0 0 2px rgba(255, 255, 232, 1)) drop-shadow(0 0 6px rgba(140, 224, 60, 1));
  opacity: 0;
}

.hero-pulse-path.is-traveling {
  animation: heroSignalTwinkle 0.85s ease-in-out infinite;
}

@keyframes heroSignalTwinkle {
  0%,
  100% {
    opacity: 0.55;
  }
  48% {
    opacity: 1;
  }
  60% {
    opacity: 0.75;
  }
}

.hero-scene.is-network-live .hero-pulse-paths {
  opacity: 1;
}

/* =====================================================================
   Hero network activation
   =====================================================================
   Everything here is gated behind .hero-scene.is-active, added once by
   hero-animate.js the first time the hero scrolls into view. Base/resting
   CSS above (lines visible, device glowing, markers full-opacity) is
   already the correct "fully on" appearance on its own, so if that class
   never arrives - JS blocked, IntersectionObserver unsupported - nothing
   looks broken, the entrance flourish and the small continuous pulses/
   breathing just don't play.

   Timeline once .is-active lands: the radio appears first. The script then
   launches each exact-path signal, reveals its line, and turns the matching
   participant on only after the signal reaches it. Continuous effects begin
   only once their relevant item is live. */

@keyframes heroDeviceActivate {
  from {
    box-shadow: 0 0 0 0 rgba(132, 204, 22, 0);
  }
  to {
    box-shadow: 0 0 0 7px rgba(132, 204, 22, 0.28);
  }
}

.hero-scene.is-active .hero-device-pulse {
  animation: heroDeviceActivate 0.9s ease-out backwards, heroDevicePulse 2.4s ease-in-out 0.9s infinite;
}

@keyframes heroRadioAppear {
  from {
    opacity: 0;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.hero-scene.is-active .hero-marker--device {
  animation: heroRadioAppear 0.72s ease-out both;
}

@keyframes heroLineActivate {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.95;
  }
}

.hero-scene.is-active .hero-lines .hero-line {
  opacity: 0;
}

.hero-scene.is-active .hero-lines .hero-line.is-connected {
  opacity: 0.95;
}

/* Temporary first-pass dots are built from the actual SVG path in JS.
   This lets the line grow as individual points, never as a solid stroke. */
.hero-line-reveal {
  fill: #efffc6;
  filter: drop-shadow(0 0 2px rgba(255, 255, 238, 1)) drop-shadow(0 0 6px rgba(115, 196, 36, 1)) drop-shadow(0 0 10px rgba(115, 196, 36, 0.65));
  pointer-events: none;
}

.hero-ble-reveal {
  fill: #d9efff;
  filter: drop-shadow(0 0 2px rgba(220, 241, 255, 1)) drop-shadow(0 0 6px rgba(46, 142, 255, 1)) drop-shadow(0 0 10px rgba(46, 142, 255, 0.65));
  pointer-events: none;
}

/* Device -> phone BLE-style link: fades in after the mesh lines (reads
   as "the network is up, now here's your window into it"), then settles
   into one very slow, subtle opacity breath - explicitly not the mesh's
   traveling pulse-dot, so the phone never reads as another mesh node. */
@keyframes heroBleActivate {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}

@keyframes heroBleBreathe {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.95;
  }
}

.hero-scene.is-ble-live .hero-ble-line {
  opacity: 0;
}

.hero-scene.is-ble-live .hero-ble-line.is-connected {
  opacity: 0.9;
  animation: heroBleBreathe 6s ease-in-out infinite;
}

/* Each participant stays quiet until the matching signal reaches it.
   This is opacity-only: .hero-marker itself owns the position transform. */
@keyframes heroMarkerAppear {
  from {
    opacity: 0.44;
    filter: saturate(0.82) blur(0.7px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.hero-scene.is-active .hero-marker--member {
  opacity: 0.44;
  filter: saturate(0.82);
  pointer-events: none;
}

.hero-scene.is-active .hero-marker--member.is-online {
  animation: heroMarkerAppear 0.68s cubic-bezier(0.22, 0.75, 0.28, 1) both;
  pointer-events: auto;
}

.hero-scene.is-active .hero-marker--member .hero-chip {
  opacity: 0;
  transform: translateY(-4px);
}

@keyframes heroChipAppear {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scene.is-active .hero-marker--member.is-online .hero-chip {
  animation: heroChipAppear 0.42s cubic-bezier(0.22, 0.75, 0.28, 1) 0.18s both;
}

/* The phone is the final endpoint: it stays in the same quiet state as the
   people until the first Bluetooth traversal reaches it. */
.hero-scene.is-active .hero-marker--phone {
  opacity: 0.44;
  filter: saturate(0.82);
}

@keyframes heroPhoneAppear {
  from {
    opacity: 0.44;
    filter: saturate(0.82) blur(0.7px);
  }
  to {
    opacity: 1;
    filter: saturate(1) blur(0);
  }
}

.hero-scene.is-active .hero-marker--phone.is-online {
  animation: heroPhoneAppear 1.05s cubic-bezier(0.16, 0.78, 0.24, 1) both;
}

/* Barely-perceptible breathing on the character art only (not the chip,
   not .hero-marker itself - same reasoning as heroMarkerAppear above,
   this is a transform so it has to live on an element that isn't also
   doing positioning). Device and phone are intentionally excluded: the
   device already reads as "alive" via its own glow, and the phone is a
   real product screenshot, not a participant. */
@keyframes heroMarkerBreathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.015);
  }
}

.hero-scene.is-active .hero-marker--hiker .hero-marker-img,
.hero-scene.is-active .hero-marker--family .hero-marker-img,
.hero-scene.is-active .hero-marker--dog .hero-marker-img,
.hero-scene.is-active .hero-marker--boy .hero-marker-img,
.hero-scene.is-active .hero-marker--motorcycle .hero-marker-img,
.hero-scene.is-active .hero-marker--boat .hero-marker-img {
  animation: heroMarkerBreathe 3.6s ease-in-out infinite;
}

.hero-scene.is-active .hero-marker--hiker .hero-marker-img {
  animation-delay: 1.3s;
}
.hero-scene.is-active .hero-marker--family .hero-marker-img {
  animation-delay: 1.9s;
}
.hero-scene.is-active .hero-marker--dog .hero-marker-img {
  animation-delay: 2.5s;
}
.hero-scene.is-active .hero-marker--boy .hero-marker-img {
  animation-delay: 3.1s;
}
.hero-scene.is-active .hero-marker--motorcycle .hero-marker-img {
  animation-delay: 1.6s;
}
.hero-scene.is-active .hero-marker--boat .hero-marker-img {
  animation-delay: 2.2s;
}

/* Small traveling light per connection - see the HTML comment above
   .hero-pulses for why this is a separate element from .hero-line
   rather than an animated dash pattern. Hidden and inert until
   .is-active (see the file-level comment above): unlike lines/markers,
   these never existed before, so there's no "must stay visible by
   default" requirement to preserve. */
.hero-pulses {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-pulses--desktop {
  display: none;
}

.hero-pulse-dot {
  position: absolute;
  left: var(--x1);
  top: var(--y1);
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fffdf2;
  box-shadow: 0 0 4px 1px rgba(47, 98, 21, 0.85);
  opacity: 0;
}

@keyframes heroPulseTravel {
  0% {
    left: var(--x1);
    top: var(--y1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    left: var(--cx);
    top: var(--cy);
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: var(--x2);
    top: var(--y2);
    opacity: 0;
  }
}

.hero-scene.is-active .hero-pulse-dot {
  animation: heroPulseTravel 3.2s ease-in-out infinite;
}

.hero-scene.is-active .hero-pulses--desktop .hero-pulse-dot:nth-child(1) {
  animation-delay: 1.3s;
}
.hero-scene.is-active .hero-pulses--desktop .hero-pulse-dot:nth-child(2) {
  animation-delay: 1.45s;
}
.hero-scene.is-active .hero-pulses--desktop .hero-pulse-dot:nth-child(3) {
  animation-delay: 1.6s;
}
.hero-scene.is-active .hero-pulses--desktop .hero-pulse-dot:nth-child(4) {
  animation-delay: 1.75s;
}
.hero-scene.is-active .hero-pulses--desktop .hero-pulse-dot:nth-child(5) {
  animation-delay: 1.9s;
}
.hero-scene.is-active .hero-pulses--desktop .hero-pulse-dot:nth-child(6) {
  animation-delay: 2.05s;
}
.hero-scene.is-active .hero-pulses--mobile .hero-pulse-dot:nth-child(1) {
  animation-delay: 1.3s;
}
.hero-scene.is-active .hero-pulses--mobile .hero-pulse-dot:nth-child(2) {
  animation-delay: 1.45s;
}
.hero-scene.is-active .hero-pulses--mobile .hero-pulse-dot:nth-child(3) {
  animation-delay: 1.6s;
}
.hero-scene.is-active .hero-pulses--mobile .hero-pulse-dot:nth-child(4) {
  animation-delay: 1.75s;
}
.hero-scene.is-active .hero-pulses--mobile .hero-pulse-dot:nth-child(5) {
  animation-delay: 1.9s;
}
.hero-scene.is-active .hero-pulses--mobile .hero-pulse-dot:nth-child(6) {
  animation-delay: 2.05s;
}

/* Placed after the rules it overrides: an earlier reduced-motion block
   (same selector specificity) would lose the cascade to these later
   unconditional .hero-line/.hero-device-pulse animation declarations. */
@media (prefers-reduced-motion: reduce) {
  .hero-line,
  .hero-device-pulse {
    animation: none;
  }

  /* hero-animate.js already skips adding .is-active under reduced
     motion, but the media query can flip live (OS setting changed
     without a reload) after it already fired - these overrides are
     what actually keep the composition static in that case. */
  .hero-scene.is-active .hero-device-pulse {
    animation: none;
    box-shadow: 0 0 0 12px rgba(132, 204, 22, 0.34), 0 0 22px 5px rgba(132, 204, 22, 0.26);
  }

  .hero-scene.is-active .hero-lines--desktop .hero-line,
  .hero-scene.is-active .hero-lines--mobile .hero-line {
    animation: none;
    opacity: 0.95;
  }

  .hero-scene.is-active .hero-marker--hiker,
  .hero-scene.is-active .hero-marker--family,
  .hero-scene.is-active .hero-marker--dog,
  .hero-scene.is-active .hero-marker--boy,
  .hero-scene.is-active .hero-marker--motorcycle,
  .hero-scene.is-active .hero-marker--boat {
    animation: none;
    opacity: 1;
  }

  .hero-scene.is-active .hero-marker--hiker .hero-marker-img,
  .hero-scene.is-active .hero-marker--family .hero-marker-img,
  .hero-scene.is-active .hero-marker--dog .hero-marker-img,
  .hero-scene.is-active .hero-marker--boy .hero-marker-img,
  .hero-scene.is-active .hero-marker--motorcycle .hero-marker-img,
  .hero-scene.is-active .hero-marker--boat .hero-marker-img {
    animation: none;
  }

  .hero-scene.is-active .hero-pulse-dot {
    animation: none;
    opacity: 0;
  }

  .hero-pulse-paths {
    display: none;
  }

  .hero-ble-traveler {
    display: none;
  }

  .hero-scene.is-active .hero-ble-line {
    animation: none;
    opacity: 0.9;
  }
}

.hero-phone-frame {
  position: relative;
  overflow: hidden;
  width: 132px;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid rgba(35, 60, 38, 0.38);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(19, 42, 24, 0.28), 0 0 0 3px rgba(255, 255, 255, 0.72);
}

.hero-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 19px;
}

/* Covers only the original airplane icon with a precisely aligned crop of
   the source screenshot. Unlike a colour block, this stays invisible over
   the illustrated sky behind it. */
.hero-phone-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 1;
  pointer-events: none;
  border-radius: 19px;
  background: url("/assets/img/hero/phone-map.webp") 62px 0 / 100% auto no-repeat;
  clip-path: inset(1% 0 94.5% 72%);
}

/* The screenshot is a static app preview. This small status-bar layer lets
   the desktop story move from offline to Bluetooth-connected in sync with
   the animated link, while leaving the battery/time artwork intact. */
.hero-phone-status {
  position: absolute;
  z-index: 2;
  top: 2.1%;
  right: 6.2%;
  width: 24%;
  height: 1.9%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 0;
  box-sizing: border-box;
  opacity: 0.74;
}

.hero-phone-status svg {
  display: block;
  width: auto;
  height: 78%;
  fill: none;
  stroke: #102030;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-phone-status .hero-phone-signal-bars {
  fill: #102030;
  stroke: none;
}

.hero-phone-status .hero-phone-bluetooth {
  height: 88%;
  opacity: 0;
  transform: translateX(-2px) scale(0.82);
  transition: opacity 0.32s ease-out 0.16s, transform 0.32s ease-out 0.16s;
}

.hero-scene.is-active .hero-marker--phone.is-online .hero-phone-bluetooth {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-phone-status .hero-phone-battery {
  height: 82%;
}

.hero-phone-status .hero-phone-battery-fill {
  fill: #102030;
  stroke: none;
}

/* Mobile marker layout - recomposed for a compact scene, not a crop of
   the wide desktop arrangement. Original 4-corner spread kept as-is
   (already collision-tested); dog/boy added at the far left/right
   middle, using the scene's horizontal width rather than trying to
   squeeze more rows into its short height. */
.hero-marker--device {
  left: 50%;
  top: 48%;
  z-index: 3;
}
.hero-marker--hiker {
  left: 22%;
  top: 78%;
}
.hero-marker--family {
  left: 68%;
  top: 15%;
}
.hero-marker--dog {
  left: 15%;
  top: 50%;
}
.hero-marker--boy {
  left: 85%;
  top: 33%;
}
.hero-marker--motorcycle {
  left: 25%;
  top: 20%;
}
.hero-marker--boat {
  left: 75%;
  top: 75%;
}
.hero-marker--phone {
  display: none;
}

.home-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--home-text);
}

.home-hero p.home-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--home-text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
  /* The mobile scrim (.home-hero::before) fades to fully transparent by
     52% of the hero's height, but the lede's actual position depends on
     how much text the badge/h1 above it wrap to - on longer locales (or
     just longer content) it can land past that fade, straight on the
     busy photo. A soft white halo keeps it legible either way, instead
     of re-tuning the gradient stop per locale. */
  text-shadow: 0 1px 2px #fff, 0 0 6px rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 255, 255, 0.9);
}

.home-hero .cta-row {
  justify-content: center;
}

/* Make the store badges read as the primary action, especially on mobile. */
.home-hero-cta {
  --store-badge-height: 52px;
  gap: 16px;
}
.home-hero-cta a {
  border-radius: 12px;
  box-shadow: 0 14px 30px -16px rgba(25, 47, 28, 0.55);
}
.home-hero-cta a:hover {
  opacity: 1;
  transform: translateY(-2px);
}
@media (max-width: 760px) {
  .home-hero h1 {
    font-size: clamp(1.875rem, 4.45vw, 2.85rem);
    text-wrap: balance;
  }

  .home-hero-cta {
    --store-badge-height: 58px;
  }

  /* Let both buttons shrink equally to fit one row on narrow phones. */
  .store-badges,
  .store-badges.cta-row {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .store-badges a {
    position: relative;
    flex-shrink: 1;
    min-width: 0;
    height: auto;
    aspect-ratio: 3.36;
  }

  .store-badges .badge-apple,
  .store-badges .badge-google {
    position: absolute;
    top: 50%;
    left: 50%;
    height: calc(100% - 2px);
    max-width: calc(100% - 2px);
    transform: translate(-50%, -50%);
  }
}

/* ===== Hero layout wrappers + desktop composition ===== */
/* Mobile/tablet: the wrapper itself must not participate in .home-hero's
   flex layout, or its own (unset) order would tie with .hero-scene's and
   source order would win - putting the whole wrapper (copy+download)
   after the scene instead of sandwiching it (copy before, download
   after) via their own order values below. display:contents removes the
   wrapper from the box tree so .home-hero-copy/.home-hero-download act
   as direct flex items of .home-hero again, exactly as before this
   wrapper existed. The desktop media query below switches this back to
   a real flex column for the vertical-centering layout. */
.home-hero-left {
  display: contents;
}

.home-hero-copy {
  order: -1;
  position: relative;
  z-index: 3;
  padding: clamp(40px, 9vw, 64px) 20px clamp(24px, 5vw, 32px);
  text-align: center;
  background: transparent;
}

/* On mobile this is deliberately a separate flex item after the scene,
   keeping the download actions below the complete landscape image. */
.home-hero-download {
  order: 1;
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 22px 20px 26px;
  text-align: center;
  background: transparent;
}

/* Continue the shared landscape behind the actions, then gently settle it
   into the page background instead of creating a hard white panel below
   the marker scene. */
.home-hero-download::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.62) 38%,
    var(--home-bg) 78%,
    var(--home-bg) 100%
  );
}

.home-hero-download > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 1100px) {
  .home-hero {
    display: block;
    background: var(--home-bg);
  }

  .home-hero::before {
    display: none;
  }

  /* Final desktop background art. Mobile/tablet keep the placeholder
     gradient (set on .hero-scene-bg above) until that crop is supplied. */
  .hero-scene-bg {
    background-image: url("/assets/img/hero/background.webp");
    background-size: cover;
    background-position: center;
  }
  @supports (background-image: image-set(url("/assets/img/hero/background.webp") 1x)) {
    .hero-scene-bg {
      background-image: image-set(url("/assets/img/hero/background.webp") 1x);
    }
  }

  .hero-scene {
    min-height: clamp(480px, 46vw, 720px);
  }

  .hero-lines--desktop {
    display: block;
  }
  .hero-lines--mobile {
    display: none;
  }

  .hero-pulses--desktop {
    display: block;
  }
  .hero-pulses--mobile {
    display: none;
  }

  .hero-pulse-paths--desktop {
    display: block;
  }
  .hero-pulse-paths--mobile {
    display: none;
  }

  .hero-ble-link {
    display: block;
  }

  .hero-ble-traveler {
    display: block;
  }

  .hero-scene.is-active .hero-ble-traveler {
    animation: none;
  }

  /* Recomposed against the real background terrain (not the earlier
     placeholder guesses): hiker on the upper ridge, family on the
     foreground trail, motorcycle on the lower path, boat out on open
     water, device central among them. */
  .hero-marker--device {
    left: 57%;
    top: 62%;
  }
  .hero-marker--hiker {
    left: 47%;
    top: 46%;
  }
  .hero-marker--family {
    left: 46%;
    top: 80%;
  }
  .hero-marker--dog {
    left: 46%;
    top: 66%;
  }
  .hero-marker--boy {
    left: 59%;
    top: 79%;
  }
  .hero-marker--motorcycle {
    left: 66%;
    top: 87%;
  }
  .hero-marker--boat {
    left: 75%;
    top: 67%;
  }
  .hero-marker--phone {
    display: flex;
    left: 88%;
    top: 50%;
    z-index: 3;
  }
  .hero-phone-frame {
    width: 220px;
  }

  /* Restore the larger desktop sizes - the base rules above are now
     mobile-first (smaller, since mobile fits all 6 participants into a
     much more compact scene). */
  .hero-marker--hiker .hero-marker-img {
    width: 64px;
  }
  .hero-marker--family .hero-marker-img {
    width: 98px;
  }
  .hero-marker--dog .hero-marker-img {
    width: 46px;
  }
  .hero-marker--boy .hero-marker-img {
    width: 58px;
  }
  .hero-marker--motorcycle .hero-marker-img {
    width: 100px;
  }
  .hero-marker--boat .hero-marker-img {
    width: 104px;
  }
  .hero-marker--device .hero-marker-img {
    width: 52px;
  }

  /* The whole left cluster (badge, headline, lede, download actions,
     footnotes) is one flex column so it centers vertically as a unit and
     naturally reflows for every locale - no more guessing a fixed pixel
     offset per language for where the download row should land. */
  .home-hero-left {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(46%, 620px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Keeps the left edge of the scene calm enough for the headline and
       download actions to stay readable, without needing a designed
       "clean" background. A flat opaque plateau (0-68%) followed by a
       short fade read as a hard edge between a solid white panel and the
       photo - this softens it into one continuous curve instead, still
       opaque enough at the far left/through the text column to keep
       contrast, but letting a hint of the landscape show through
       underneath earlier. Lives on the wrapper (not just the headline)
       so it covers the download row and footnotes too, wherever they
       land after the headline/lede reflow. */
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.86) 45%,
      rgba(255, 255, 255, 0.45) 78%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .home-hero-copy {
    position: relative;
    z-index: 3;
    padding: 0 32px 0 clamp(24px, 6vw, 64px);
    text-align: left;
  }

  /* Normal-flow child of .home-hero-left now, right after the lede -
     margin-top gives it breathing room without needing to know how many
     lines the headline/lede wrapped to in any given locale. */
  .home-hero-download {
    position: relative;
    z-index: 4;
    margin-top: 28px;
    padding: 0 32px 0 clamp(24px, 6vw, 64px);
    text-align: left;
    background: transparent;
  }

  .home-hero-download::before {
    display: none;
  }


  .home-hero p.home-lede {
    margin: 0 0 28px;
  }

  .home-hero .cta-row {
    justify-content: flex-start;
  }
}

/* The shorter homepage hero uses wrapper spacing instead of adding
   another bottom margin below its description. */
.home-hero--compact p.home-lede {
  margin-bottom: 0;
}

/* ===== Hero: nelos.vn adjustments =====
   Same scene and behaviour; only what the longer Vietnamese, problem-first
   copy needs (more line-height, room for the CTA row and clarifier). */
.home-hero h1 {
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.home-hero p.home-lede {
  max-width: 34em;
  text-shadow: 0 1px 2px #fff, 0 0 6px rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 255, 255, 0.9);
}

.hero-cta-row {
  margin: 16px 0 0;
}

.home-hero .hero-cta-row {
  justify-content: center;
}

/* Hardware dependency, stated plainly right by the CTA - a lightweight
   line (no border/card) rather than a boxed callout, matching how the
   global nelos.app hero states the same LoRa-hardware requirement. */
.home-hero-hardware {
  max-width: 34em;
  margin: 10px auto 0;
  color: var(--home-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-hero-hardware a {
  color: var(--home-accent);
  font-weight: 700;
  white-space: nowrap;
}

.hero-store-line {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.9rem;
  text-shadow: 0 1px 2px #fff, 0 0 6px rgba(255, 255, 255, 0.95), 0 0 16px rgba(255, 255, 255, 0.95);
}

.hero-store-line a {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .home-hero h1 {
    font-size: clamp(1.85rem, 7.6vw, 2.35rem);
  }

  .hero-cta-row .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 1100px) {
  .home-hero h1 {
    font-size: clamp(2.3rem, 3.4vw, 3.05rem);
  }

  .hero-scene {
    min-height: clamp(600px, 47vw, 720px);
  }

  .home-hero .hero-cta-row {
    justify-content: flex-start;
  }

  .home-hero-hardware {
    margin-left: 0;
  }

  .home-hero-download {
    margin-top: 16px;
  }
}

/* The stacked layout carries more copy above the scene than the global site does, so the
   white scrim under the text has to reach further down. */
@media (max-width: 1099px) {
  .home-hero::before {
    background: linear-gradient(
      to bottom,
      var(--home-bg) 0%,
      var(--home-bg) 46%,
      rgba(255, 255, 255, 0.9) 54%,
      rgba(255, 255, 255, 0.55) 61%,
      rgba(255, 255, 255, 0) 70%
    );
  }
}

/* ===== Home: quick facts strip ===== */
.facts {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
}

.fact + .fact {
  border-top: 1px solid var(--line);
}

.fact strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.fact span:not(.icon-tile) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.fact .icon-tile {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.fact .icon-tile svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 860px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .fact + .fact {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* ===== Home: global-reach credibility line -----------------------------
   A single restrained line, not a stats section - states reach as a fact
   in passing between the hero and the facts strip. */
.trust-line {
  padding: 6px 0 0;
  text-align: center;
}

.trust-line-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Home: use-case cards ===== */
.usecase {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.usecase .icon-tile {
  align-self: center;
}

.usecase h3 {
  margin-top: 18px;
  font-size: 1.28rem;
  text-align: center;
}

.usecase p {
  color: var(--muted);
}

.usecase .card-more {
  align-self: center;
}

.card-more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent-strong);
  font-weight: 700;
}

.card-more::after {
  content: " →";
}

/* ===== Home + How it works: connection diagram ===== */
.flow-panel {
  padding: clamp(22px, 4vw, 40px);
  background: linear-gradient(180deg, #ffffff 0%, #f6faf1 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  text-align: center;
}

.flow-node strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.flow-node span:last-child {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--forest);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(15, 42, 27, 0.7);
}

.flow-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}

.flow-icon--radio {
  background: linear-gradient(145deg, #4c8f12, #2f6208);
}

.flow-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  width: 100%;
  color: var(--muted);
}

.flow-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, var(--bt) 0 3px, transparent 3px 8px);
}

.flow-link--lora .flow-line {
  background: repeating-linear-gradient(to bottom, var(--lime) 0 9px, transparent 9px 15px);
  filter: drop-shadow(0 0 3px rgba(132, 204, 22, 0.75));
}

.flow-tag {
  position: relative;
  z-index: 1;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.flow-link--bt .flow-tag {
  color: #1559ab;
  border-color: #b6d4f6;
  background: #eef6ff;
}

.flow-link--lora .flow-tag {
  color: var(--accent-ink);
  border-color: #b9dc7d;
  background: #f0fadc;
}

.flow-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .flow-link--lora .flow-line {
    animation: flowDashY 1.1s linear infinite;
  }
}

@keyframes flowDashY {
  to {
    background-position: 0 15px;
  }
}

@keyframes flowDashX {
  to {
    background-position: 15px 0;
  }
}

@media (min-width: 900px) {
  .flow {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }

  .flow-node {
    flex: 0 0 auto;
    width: 138px;
  }

  .flow-link {
    flex: 1 1 0;
    width: auto;
    min-width: 70px;
    min-height: 0;
    height: 68px;
  }

  .flow-link--lora {
    flex-grow: 1.7;
  }

  .flow-line {
    top: 50%;
    right: 6px;
    bottom: auto;
    left: 6px;
    width: auto;
    height: 3px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(to right, var(--bt) 0 3px, transparent 3px 8px);
  }

  .flow-link--lora .flow-line {
    background: repeating-linear-gradient(to right, var(--lime) 0 9px, transparent 9px 15px);
  }

  @media (prefers-reduced-motion: no-preference) {
    .flow-link--lora .flow-line {
      animation: flowDashX 1.1s linear infinite;
    }
  }
}

.explain {
  display: grid;
  gap: 14px;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: explain;
}

.explain li {
  position: relative;
  padding: 16px 18px 16px 62px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  counter-increment: explain;
  font-size: 0.98rem;
  line-height: 1.55;
}

.explain li::before {
  content: counter(explain);
  position: absolute;
  top: 15px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.explain strong {
  color: var(--ink);
}

@media (min-width: 900px) {
  .explain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explain li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ===== Home: leader workflow ===== */
.workflow {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 900px) {
  .workflow {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.workflow-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.workflow-item h3 {
  margin: 2px 0 4px;
  font-size: 1.12rem;
}

.workflow-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.workflow-item .tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
}

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phones .phone-shot {
  width: min(47%, 270px);
}

.phones .phone-shot + .phone-shot {
  margin-left: -7%;
  margin-top: 56px;
}

.phone-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.phone-shot img {
  width: 100%;
}

/* ===== Home: organizers / B2B band ===== */
.b2b-media {
  margin: 0;
}

.b2b-media img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.b2b-media figcaption {
  margin-top: 10px;
  color: #9eb69a;
  font-size: 0.82rem;
}

.b2b-note {
  margin: 18px 0 0;
  color: #a9c1a4;
  font-size: 0.88rem;
}

/* ===== Home: proof ===== */
.stats {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stat {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-num {
  display: block;
  color: var(--accent-strong);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.stat--limit .stat-num {
  color: #8a5300;
}

.proof-note {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 22px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--accent-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .steps--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Single-column numbered list: number sits beside the text. */
.steps--list .step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 16px;
  padding: 18px 22px;
}

.steps--list .step::before {
  grid-row: 1 / span 2;
  margin: 0;
}

.steps--list .step h3 {
  margin: 0;
  align-self: center;
}

/* ===== Privacy points ===== */
.points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.point strong {
  display: block;
  color: var(--ink);
  line-height: 1.35;
}

.point span:not(.icon-tile) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.small-print {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.section--dark .small-print {
  color: #a9c1a4;
}

/* ===== Community quotes ===== */
.quotes {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.quote blockquote {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.6;
}

.quote blockquote p {
  margin: 0;
}

.quote .ctx {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
}

.quote details {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.quote summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 600;
}

.quote details p {
  margin: 8px 0 0;
  font-style: italic;
}

.quote figcaption {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ===== Free / Pro ===== */
.plans {
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan h3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.plan h3 small {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
}

.plan .checklist {
  margin-bottom: 0;
}

.plan--pro {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.18), var(--shadow-sm);
}

/* ===== Quick questions ===== */
.qlinks {
  display: grid;
  gap: 10px;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  list-style: none;
}

@media (min-width: 720px) {
  .qlinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.qlinks a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  height: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.qlinks a::after {
  content: "→";
  color: var(--accent);
}

.qlinks a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  text-decoration: none;
}

/* ===== Final CTA ===== */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
}

.final-cta p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: #c2d3bd;
}

.final-cta .store-badges {
  justify-content: center;
  margin-bottom: 20px;
}

.final-cta .cta-row {
  justify-content: center;
}

/* ===== Inner pages: hero ===== */
.page-hero {
  padding: clamp(28px, 4.5vw, 56px) 0 clamp(34px, 5vw, 62px);
  background: radial-gradient(900px 360px at 90% -20%, rgba(132, 204, 22, 0.18), transparent 62%),
    linear-gradient(180deg, #f6f9f1, #ffffff);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 0.45em;
  font-size: clamp(1.85rem, 4.4vw, 2.95rem);
  letter-spacing: -0.02em;
}

.page-hero-grid {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero-grid--media {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.page-hero-media {
  margin: 0;
}

.page-hero-media img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.page-hero-media--phone img {
  width: auto;
  max-width: min(100%, 300px);
  max-height: 560px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
}

.lede {
  max-width: 42em;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}

.page-hero .cta-row {
  margin-top: 26px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent-strong);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ===== Inner pages: content blocks ===== */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 2em 0 0.55em;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
}

.prose h3 {
  margin: 1.6em 0 0.45em;
  font-size: 1.2rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose .eyebrow + h2,
.prose .eyebrow + h3 {
  margin-top: 0;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose--wide {
  max-width: 860px;
}

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: 24px;
}

.mt-3 {
  margin-top: 36px;
}

.muted {
  color: var(--muted);
}

/* Problem / scenario blocks */
.scenario {
  position: relative;
  padding: 22px 24px 22px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius-sm);
}

.scenario h3,
.scenario-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.scenario-title {
  font-size: 1.4rem;
}

.scenario p:last-child {
  margin-bottom: 0;
}

/* Operator workflow phases */
.phases {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: phase;
}

@media (min-width: 800px) {
  .phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.phase {
  position: relative;
  padding: 24px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  counter-increment: phase;
}

.phase::before {
  content: "Giai đoạn " counter(phase);
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phase h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.phase .checklist {
  margin-bottom: 0;
}

.phase > p:last-child {
  margin-bottom: 0;
}

/* Key facts list */
.kv {
  display: grid;
  gap: 12px 24px;
  margin: 0 0 1.2em;
}

@media (min-width: 600px) {
  .kv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kv div {
  padding: 12px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

.kv dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kv dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

/* Chips / jump links */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.chips a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  text-decoration: none;
}

/* Status pills */
.pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--ready {
  background: #e3f4d0;
  color: #2c5f06;
}

.pill--flash {
  background: #fff1cf;
  color: #7a4b00;
}

.pill--role {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Device cards */
.device {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.device-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f5ee;
}

.device-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Square product shots on a white background: show the whole device. */
.device-img--contain {
  background: #ffffff;
}

.device-img--contain img {
  object-fit: contain;
}

.device-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.device-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.device-tags .pill {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}

.device h4 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.device ul {
  margin: 0 0 12px;
  padding-left: 1.15em;
  color: var(--text);
  font-size: 0.96rem;
}

.device li {
  margin-bottom: 4px;
}

.device .setup {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.device .btn {
  margin-top: auto;
  align-self: flex-start;
}

.role-block + .role-block {
  margin-top: clamp(40px, 6vw, 64px);
}

.role-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.role-head h3 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.role-head p {
  margin: 0;
  color: var(--muted);
}

/* Tables */
.table-wrap {
  margin: 0 0 1.4em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.96rem;
}

.table th,
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody th {
  color: var(--ink);
  font-weight: 700;
}

/* Tables that turn into stacked cards on phones (needs data-label on each td). */
@media (max-width: 640px) {
  .table-wrap--stack {
    overflow: visible;
    border: 0;
  }

  .table--stack {
    display: block;
    min-width: 0;
    background: transparent;
  }

  .table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .table--stack tbody,
  .table--stack tr,
  .table--stack th,
  .table--stack td {
    display: block;
  }

  .table--stack tr {
    margin-bottom: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }

  .table--stack th,
  .table--stack td {
    padding: 0;
    border: 0;
  }

  .table--stack tbody th {
    margin-bottom: 6px;
    font-size: 1.02rem;
  }

  .table--stack td + td {
    margin-top: 6px;
  }

  .table--stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

/* Report cards (real-world hub) */
.report {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.report-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.report-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.report-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 26px;
}

.report-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.report h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

/* One column inside a card: three cards side by side leave each about 300 px, too narrow for two
   facts per row. */
.report .kv {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.report .kv div {
  padding: 10px 14px;
}

.report .kv dd {
  font-size: 0.95rem;
  line-height: 1.45;
}

.report .link-arrow {
  margin-top: auto;
}

/* Click-to-load video */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #101a14;
}

.video-embed iframe,
.video-embed-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-play {
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.video-embed-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.video-embed-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(15, 42, 27, 0.82);
  color: #fff;
  font-size: 1.6rem;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, background 0.15s ease;
}

.video-embed-play:hover .video-embed-icon {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.06);
}

/* Screenshot strips (getting started, field reports) */
.shots {
  display: grid;
  gap: 18px;
  align-items: start;
  margin: 1.6em 0;
}

.phone-figure {
  max-width: 320px;
  margin: 1.6em auto;
}

.phone-figure--photo {
  max-width: 440px;
}

.phone-figure figcaption {
  text-align: center;
}

.table--days th[scope="row"] {
  width: 7.5rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .shots--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shots--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shots figure {
  margin: 0;
}

.shots .phone-shot {
  max-width: 260px;
  margin: 0 auto;
}

.shots figcaption {
  max-width: 260px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

/* Detailed step list (getting started) */
.guide-steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gstep;
}

.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 32px;
  padding: clamp(22px, 3.5vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  counter-increment: gstep;
}

@media (min-width: 860px) {
  .guide-step--media {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
  }
}

.guide-step h2 {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
}

.guide-step h2::before {
  content: counter(gstep);
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--accent-ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.guide-step > div > :last-child {
  margin-bottom: 0;
}

.guide-step .phone-shot {
  max-width: 240px;
  margin: 0 auto;
}

/* ===== FAQ ===== */
.faq-group + .faq-group {
  margin-top: clamp(32px, 5vw, 52px);
}

.faq-group > h2 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item > summary {
  position: relative;
  padding: 18px 44px 18px 4px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-item[open] > summary::after {
  margin-top: -2px;
  transform: rotate(225deg);
}

.faq-item > summary:hover {
  color: var(--accent-strong);
}

.faq-answer {
  padding: 0 4px 18px;
  color: var(--text);
}

.faq-answer p {
  margin: 0 0 0.85em;
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.faq-item:target > summary {
  color: var(--accent-strong);
}

/* Plain pill list (non-interactive names) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.shot-narrow {
  max-width: 320px;
  margin: 0 auto;
}

/* Two-block card ("still works" / "needs Internet") */
.compare > div + div {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.compare h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.compare h3 .icon {
  width: 1.3em;
  height: 1.3em;
  color: var(--accent);
}

.compare .checklist {
  margin-bottom: 0;
}

/* Solutions hub */
.solutions {
  display: grid;
  gap: 22px;
}

.solution {
  display: grid;
  gap: 18px 28px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.solution-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.solution-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
}

.solution-head h2 a {
  color: var(--ink);
}

.solution-head h2 a:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

.solution-body {
  display: grid;
  gap: 16px 24px;
  margin: 0;
}

@media (min-width: 900px) {
  .solution-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.solution-body dt {
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-body dd {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}

.solution-link {
  justify-self: start;
}

/* ===== Footer ===== */
.site-footer {
  padding: clamp(40px, 6vw, 64px) 0 28px;
  background: var(--forest);
  color: #b9cab5;
  font-size: 0.95rem;
}

.site-footer a {
  color: #d5e4d0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 32px 28px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-brand:hover {
  color: #fff;
  text-decoration: none;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-about {
  max-width: 34em;
  margin: 0 0 14px;
  line-height: 1.6;
}

.footer-col h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-mail {
  display: block;
  margin-bottom: 8px;
}

.footer-mail small {
  display: block;
  color: #8fa68b;
  font-size: 0.82rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.footer-col .social-links li + li {
  margin-top: 0;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--forest-line);
  border-radius: 12px;
  color: #d5e4d0;
}

.social-links a:hover {
  border-color: #b7ee5c;
  color: #b7ee5c;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--forest-line);
  color: #93a98f;
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-bottom p {
  max-width: 62em;
  margin: 0 0 10px;
}

.footer-bottom strong {
  color: #d5e4d0;
}

.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #d5e4d0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-link-btn:hover {
  color: #fff;
}

/* ===== Consent banner (analytics) ===== */
.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(16, 38, 26, 0.5);
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.55;
}

.consent[hidden] {
  display: none;
}

.consent h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.consent p {
  margin: 0 0 14px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-actions .btn {
  flex: 1 1 140px;
}

/* ===== Misc ===== */
.not-found {
  padding: clamp(56px, 10vw, 120px) 0;
  text-align: center;
}

/* ===== Mobile compaction ===== */
@media (max-width: 640px) {
  .section {
    padding: 44px 0;
  }

  .section--tight {
    padding: 28px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .card {
    padding: 20px;
  }

  .usecase h3 {
    margin-top: 14px;
  }

  .icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .icon-tile svg {
    width: 23px;
    height: 23px;
  }

  .steps .step {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 2px 14px;
    padding: 18px;
  }

  .steps .step::before {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .steps .step h3 {
    margin: 0;
    align-self: center;
  }

  .stat {
    padding: 20px;
  }

  .cta-row .btn {
    flex: 1 1 auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .consent,
  .hero-scene {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

