/* ==========================================================================
   AVRA — base, layout and components
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(47, 214, 195, 0.16), transparent 60%),
    radial-gradient(900px 560px at 6% 4%, rgba(139, 92, 246, 0.14), transparent 62%),
    radial-gradient(800px 700px at 50% 108%, rgba(244, 114, 182, 0.08), transparent 60%);
}

:root[data-theme="light"] body::before {
  background:
    radial-gradient(1000px 560px at 80% -10%, rgba(14, 148, 136, 0.12), transparent 60%),
    radial-gradient(820px 520px at 4% 2%, rgba(139, 92, 246, 0.1), transparent 62%);
}

img, svg, canvas { max-width: 100%; display: block; }
img { height: auto; }

/* The display rule above outranks the user-agent [hidden] rule, so restore it. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--accent); }

strong { color: var(--text); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(47, 214, 195, 0.28); color: var(--text); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--accent-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ------------------------------------------------------- */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent); }

.section-head { max-width: 780px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: var(--step-1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.lede { font-size: var(--step-1); color: var(--text-muted); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: var(--step--1); }

.grid { display: grid; gap: clamp(1rem, 0.7rem + 1vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- Buttons ------------------------------------------------------ */

.btn {
  --btn-bg: var(--bg-elevated);
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.4rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--teal-400), var(--teal-500) 55%, var(--teal-600));
  --btn-fg: var(--accent-ink);
  --btn-bd: transparent;
  box-shadow: 0 14px 34px -18px rgba(47, 214, 195, 0.9);
}
:root[data-theme="light"] .btn--primary {
  --btn-fg: #ffffff;
  --btn-bg: linear-gradient(135deg, var(--teal-700), #0a6f66 60%, #096058);
  box-shadow: 0 14px 30px -20px rgba(10, 111, 102, 0.85);
}
.btn--primary:hover { box-shadow: 0 20px 42px -18px rgba(47, 214, 195, 0.95); }

.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { background: var(--bg-elevated-strong); border-color: var(--accent); }

.btn--violet {
  --btn-bg: linear-gradient(135deg, var(--violet-500), #6d51e0);
  --btn-fg: #ffffff;
  --btn-bd: transparent;
}

.btn--sm { padding: 0.55rem 1rem; font-size: var(--step--1); }
.btn--lg { padding: 1rem 1.85rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--accent);
}
.link-arrow::after { content: "→"; transition: transform 0.18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cards -------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.25rem, 1rem + 0.9vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
:root[data-theme="light"] .card { box-shadow: 0 10px 30px -22px rgba(11, 22, 46, 0.45); }
.card--hover:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.card h3, .card h4 { margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--violet { background: rgba(139, 92, 246, 0.14); color: var(--violet-400); }
.card__icon--pink { background: rgba(244, 114, 182, 0.14); color: var(--pink-400); }
.card__icon--amber { background: rgba(251, 191, 36, 0.14); color: var(--amber-400); }
:root[data-theme="light"] .card__icon--violet { color: #6d28d9; }
:root[data-theme="light"] .card__icon--pink { color: #be185d; }
:root[data-theme="light"] .card__icon--amber { color: #a16207; }

.card-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.card-list li {
  position: relative;
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: var(--step--1);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

/* ---------- Badges ------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated-strong);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--available { color: var(--status-available); background: var(--status-available-bg); border-color: transparent; }
.badge--dev { color: var(--status-dev); background: var(--status-dev-bg); border-color: transparent; }
.badge--planned { color: var(--status-planned); background: var(--status-planned-bg); border-color: transparent; }
.badge--testing { color: var(--status-testing); background: var(--status-testing-bg); border-color: transparent; }
.badge--plain::before { display: none; }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Notices ------------------------------------------------------ */

.notice {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--text-muted);
  font-size: var(--step--1);
}
.notice svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 0.15rem; }
.notice--warn { border-left-color: var(--status-dev); background: var(--status-dev-bg); }
.notice--warn svg { color: var(--status-dev); }
.notice strong { display: block; color: var(--text); margin-bottom: 0.15rem; }

/* ---------- Header / navigation ------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--surface-glass);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--border); }

/* The header gets a slightly wider container than the content so ten nav
   items plus both calls to action can sit on one line on large screens.
   main.js collapses the nav to a menu button whenever they still do not fit. */
.site-header .wrap { width: min(100% - (var(--gutter) * 2), 1400px); }

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text small {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  margin: 0 auto;
  padding: 0;
  min-width: 0;
  flex: 1 1 auto;
  list-style: none;
}
.nav__links li { margin: 0; }
.nav__links a {
  display: block;
  padding: 0.42rem 0.45rem;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav__links a:hover { color: var(--text); background: var(--bg-elevated); }
.nav__links a.is-active { color: var(--accent); background: var(--accent-soft); }

.nav__actions { display: flex; align-items: center; gap: 0.45rem; flex: none; margin-left: auto; }
/* Hidden by main.js when the links need the space (see fitNav); the media
   query is the no-JavaScript fallback. */
:root.nav-tight .nav__cta-desktop { display: none; }
@media (max-width: 1540px) { .nav__cta-desktop { display: none; } }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
}
.lang-switch button {
  padding: 0.28rem 0.62rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-subtle);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
:root[data-theme="light"] .lang-switch button[aria-pressed="true"] { color: #fff; background: var(--teal-700); }

.nav__toggle { display: none; }


/* Collapsed navigation.
   Two triggers, deliberately: the media query is the no-JavaScript fallback
   for narrow screens, and .nav-compact is set by main.js whenever the links
   do not actually fit — which also covers longer Russian labels on a wide
   screen. */
:root.nav-compact .nav__links {
  position: fixed;
  inset: 72px 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  margin: 0;
  padding: 1rem var(--gutter) 1.6rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
}
:root.nav-compact .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
:root.nav-compact .nav__links a { padding: 0.75rem 0.85rem; font-size: 1rem; }
:root.nav-compact .nav__toggle { display: grid; }
:root.nav-compact .nav__cta-desktop { display: none; }
:root.nav-compact .nav__links-cta { display: block; margin-top: 0.75rem; }
:root.nav-compact .nav__links-cta .btn { width: 100%; }

/* Mobile / compact navigation (no-JS fallback) */
@media (max-width: 1280px) {
  .nav__links {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 0;
    padding: 1rem var(--gutter) 1.6rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a { padding: 0.75rem 0.85rem; font-size: 1rem; }
  .nav__toggle { display: grid; }
  .nav__cta-desktop { display: none; }
}

.nav__links-cta { display: none; }
@media (max-width: 1280px) {
  .nav__links-cta { display: block; margin-top: 0.75rem; }
  .nav__links-cta .btn { width: 100%; }
}
@media (max-width: 820px) {
  .nav__actions .btn { display: none; }
}
@media (max-width: 560px) {
  .nav { gap: 0.5rem; }
  .brand__text span { font-size: 1.05rem; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__text small { font-size: 0.55rem; }
}
@media (max-width: 380px) {
  .brand__text small { display: none; }
}

/* ---------- Hero --------------------------------------------------------- */

.hero { position: relative; padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent-text {
  background: linear-gradient(120deg, var(--teal-300), var(--teal-400) 40%, var(--violet-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede { font-size: var(--step-1); color: var(--text-muted); max-width: 58ch; }
.hero .btn-row { margin: 1.9rem 0 1.4rem; }

.hero__status {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 54ch;
  color: var(--text-subtle);
  font-size: var(--step--1);
}
.hero__status svg { width: 16px; height: 16px; flex: none; margin-top: 0.25rem; color: var(--accent); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.hero__trust div { min-width: 120px; }
.hero__trust dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); font-weight: 700; }
.hero__trust dd { margin: 0.25rem 0 0; font-weight: 700; color: var(--text); font-size: var(--step-0); }

/* Floating capability labels around the phone */
.hero__stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero__phone { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__glow {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 214, 195, 0.3), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.float-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
:root[data-theme="light"] .float-label { background: rgba(255, 255, 255, 0.92); }
.float-label svg { width: 15px; height: 15px; color: var(--accent); }
.float-label--1 { top: 3%; left: -38%; animation-delay: 0s; }
.float-label--2 { top: 19%; right: -44%; animation-delay: 0.8s; }
.float-label--3 { top: 45%; left: -44%; animation-delay: 1.6s; }
.float-label--4 { bottom: 27%; right: -46%; animation-delay: 2.4s; }
.float-label--5 { bottom: 9%; left: -40%; animation-delay: 3.2s; }
.float-label--6 { bottom: -3%; right: -44%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { min-height: 520px; margin-top: 1rem; }
}
@media (max-width: 980px) and (min-width: 881px) {
  .float-label--3, .float-label--6 { display: none; }
}
/* On narrow screens the labels become a chip cloud above the phone
   instead of floating over the interface. */
@media (max-width: 880px) {
  .hero__labels {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    max-width: 460px;
  }
  .float-label {
    position: static;
    animation: none;
    font-size: 0.72rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ==========================================================================
   Device frame + in-browser AVRA interface preview
   (Screens are rendered live in HTML/CSS — no external screenshots.)
   ========================================================================== */

.device {
  position: relative;
  width: min(310px, 78vw);
  aspect-ratio: 9 / 19.2;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2b3550, #0d1424 45%, #232c44);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.12),
    var(--shadow-lg),
    var(--glow-teal);
  flex: none;
}
.device::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 36px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 3;
}
.device__screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #070c18;
  color: #eef2f9;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.device__pill {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 20px;
  border-radius: var(--r-pill);
  background: #05080f;
  z-index: 4;
}
.device--sm { width: min(250px, 66vw); padding: 9px; border-radius: 38px; }
.device--sm .device__screen { border-radius: 30px; }
.device--sm::after { inset: 9px; border-radius: 30px; }
.device--sm .app__head { padding: 4px 13px 8px; }
.device--sm .app__title { font-size: 13.5px; }
.device--sm .app__body { padding: 2px 13px 9px; gap: 7px; }
.device--sm .app-card { padding: 8px 10px; border-radius: 12px; }
.device--sm .app-card__title { font-size: 10.5px; }
.device--sm .app-card__meta { font-size: 8.8px; }
.device--sm .app-map { height: 94px; }
.device--sm .app-sos { height: 66px; }
.device--sm .app-tile { min-height: 54px; padding: 8px; }

/* ---- App chrome ---- */
.app {
  --app-accent: #2fd6c3;
  --app-muted: #93a1bd;
  --app-card: rgba(255, 255, 255, 0.055);
  --app-border: rgba(255, 255, 255, 0.09);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background:
    radial-gradient(420px 260px at 85% -8%, rgba(47, 214, 195, 0.18), transparent 62%),
    radial-gradient(360px 240px at 0% 12%, rgba(139, 92, 246, 0.16), transparent 60%),
    #070c18;
  font-size: 11px;
  line-height: 1.4;
}
.app__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eef2f9;
}
.app__status-icons { display: flex; gap: 4px; align-items: center; opacity: 0.85; }
.app__status-icons i {
  display: block;
  width: 12px; height: 8px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
  font-style: normal;
}
.app__status-icons i:last-child { width: 18px; border-radius: 3px; opacity: 0.9; }

.app__head { padding: 6px 16px 10px; }
.app__eyebrow { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--app-muted); font-weight: 700; }
.app__title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 0; }
.app__sub { font-size: 10px; color: var(--app-muted); margin: 3px 0 0; }

.app__body {
  flex: 1;
  overflow: hidden;
  padding: 2px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent);
  mask-image: linear-gradient(180deg, #000 88%, transparent);
}

.app-card {
  padding: 10px 12px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-card);
}
.app-card--accent {
  background: linear-gradient(135deg, rgba(47, 214, 195, 0.22), rgba(139, 92, 246, 0.18));
  border-color: rgba(47, 214, 195, 0.35);
}
.app-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-card__title { font-weight: 700; font-size: 11.5px; }
.app-card__meta { font-size: 9.5px; color: var(--app-muted); }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-tile {
  padding: 10px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-card);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 62px;
}
.app-tile__icon {
  width: 24px; height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(47, 214, 195, 0.16);
  color: var(--app-accent);
}
.app-tile__icon svg { width: 13px; height: 13px; }
.app-tile__icon--violet { background: rgba(167, 139, 250, 0.18); color: #c4b5fd; }
.app-tile__icon--pink { background: rgba(244, 114, 182, 0.18); color: #f9a8d4; }
.app-tile__icon--amber { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }
.app-tile b { font-size: 10.5px; font-weight: 700; }
.app-tile span { font-size: 9px; color: var(--app-muted); line-height: 1.35; }

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 214, 195, 0.16);
  color: #9defdf;
  font-size: 9px;
  font-weight: 700;
}
.app-chip--muted { background: rgba(255, 255, 255, 0.07); color: var(--app-muted); }
.app-chip--violet { background: rgba(167, 139, 250, 0.18); color: #ddd6fe; }
.app-chip-row { display: flex; gap: 5px; flex-wrap: wrap; }

.app-progress { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.app-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2fd6c3, #8b5cf6); }

.app-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #04211f;
  background: linear-gradient(135deg, #5ff0dd, #8b5cf6);
  flex: none;
}
.app-row { display: flex; align-items: center; gap: 8px; }
.app-row + .app-row { margin-top: 8px; }

.app-map {
  position: relative;
  height: 108px;
  border-radius: 14px;
  border: 1px solid var(--app-border);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(47, 214, 195, 0.1), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 22px),
    #0a1323;
}
.app-map__route {
  position: absolute;
  inset: 0;
}
.app-map__route path { stroke-dasharray: 5 5; }
.app-map__dot {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--app-accent);
  box-shadow: 0 0 0 4px rgba(47, 214, 195, 0.25);
}
.app-map__dot--start { left: 17%; top: 68%; }
.app-map__dot--end { right: 15%; top: 22%; background: #f472b6; box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.22); }

.app-sos {
  display: grid;
  place-items: center;
  gap: 2px;
  height: 78px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.28), rgba(139, 92, 246, 0.24));
  border: 1px solid rgba(244, 114, 182, 0.4);
  text-align: center;
}
.app-sos b { font-size: 13px; letter-spacing: 0.04em; }
.app-sos span { font-size: 9px; color: #e9d5ff; }

.app-bubble {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 10px;
  line-height: 1.45;
  border: 1px solid var(--app-border);
  background: var(--app-card);
}
.app-bubble--me {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(47, 214, 195, 0.25), rgba(47, 214, 195, 0.12));
  border-color: rgba(47, 214, 195, 0.3);
}

.app__tabbar {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  padding: 8px 12px 14px;
  border-top: 1px solid var(--app-border);
  background: rgba(7, 12, 24, 0.9);
  backdrop-filter: blur(8px);
}
.app__tabbar div {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--app-muted);
}
.app__tabbar svg { width: 16px; height: 16px; }
.app__tabbar div.is-active { color: var(--app-accent); }
.app__tabbar div.is-active svg { filter: drop-shadow(0 0 6px rgba(47, 214, 195, 0.6)); }

/* ==========================================================================
   Sections
   ========================================================================== */

/* ---- Prototype status banner ---- */
.status-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  align-items: center;
  padding: clamp(1.4rem, 1.1rem + 1vw, 2.1rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    linear-gradient(120deg, rgba(47, 214, 195, 0.1), rgba(139, 92, 246, 0.08)),
    var(--bg-elevated);
  box-shadow: var(--shadow-md);
}
.status-banner h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.status-banner p { color: var(--text-muted); max-width: 72ch; margin-bottom: 1rem; }
.status-banner .badge-row { margin-bottom: 0; }
@media (max-width: 860px) { .status-banner { grid-template-columns: 1fr; } }

/* ---- Pillars (Protect / Secure / Empower / Eco AI / Community) ---- */
.pillars { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); align-items: start; }
.pillar-tabs { display: grid; gap: 0.5rem; }
.pillar-tab {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.pillar-tab:hover { transform: translateX(3px); border-color: var(--border-strong); }
.pillar-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.pillar-tab__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--bg-elevated-strong);
  color: var(--accent);
}
.pillar-tab[aria-selected="true"] .pillar-tab__icon { background: var(--accent); color: var(--accent-ink); }
:root[data-theme="light"] .pillar-tab[aria-selected="true"] .pillar-tab__icon { color: #fff; background: var(--teal-700); }
.pillar-tab__icon svg { width: 20px; height: 20px; }
.pillar-tab b { display: block; font-size: var(--step-0); color: inherit; }
.pillar-tab span { font-size: 0.8rem; color: var(--text-subtle); }

.pillar-panel {
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}
.pillar-panel[hidden] { display: none; }
.pillar-panel__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); align-items: center; }
.pillar-panel h3 { font-size: var(--step-3); }
.pillar-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.pillar-features li { position: relative; margin: 0; padding-left: 1.6rem; font-size: var(--step--1); color: var(--text-muted); }
.pillar-features li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.pillar-features li::after {
  content: "";
  position: absolute; left: 4px; top: 0.72em;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
@media (max-width: 1000px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar-tabs { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .pillar-panel__grid { grid-template-columns: 1fr; }
  .pillar-panel__grid .device { margin-inline: auto; }
}

/* ---- Feature cards ---- */
.feature-card { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.feature-card__benefit {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.feature-card__benefit b { color: var(--accent); font-weight: 700; }
.feature-card figure {
  margin: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(47, 214, 195, 0.08), transparent 70%), var(--bg-alt);
  padding: 0.85rem;
  overflow: hidden;
}

/* Miniature interface preview inside a feature card */
.mini-ui { display: grid; gap: 6px; font-size: 10px; color: var(--text-muted); }
.mini-ui__bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); }
.mini-ui__row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elevated-strong); }
.mini-ui__row b { color: var(--text); font-size: 10.5px; }
.mini-ui__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.mini-ui__dot--violet { background: var(--violet-400); }
.mini-ui__dot--pink { background: var(--pink-400); }
.mini-ui__dot--amber { background: var(--amber-400); }
.mini-ui__bars { display: flex; gap: 4px; align-items: flex-end; height: 34px; }
.mini-ui__bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--teal-400), rgba(47, 214, 195, 0.25)); }

/* ---- Everyday timeline ---- */
.everyday { display: grid; gap: 1rem; }
.everyday__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.everyday__item:hover { border-color: var(--accent); transform: translateX(4px); }
.everyday__num {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: var(--step-1);
  border: 1px solid var(--border);
}
.everyday__item h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.everyday__tags { margin-top: 0.75rem; }
@media (max-width: 560px) {
  .everyday__item { grid-template-columns: 1fr; gap: 0.85rem; }
  .everyday__num { width: 46px; height: 46px; border-radius: 14px; }
}

/* ---- Interactive preview ---- */
.preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.preview__list { display: grid; gap: 0.6rem; }
.preview__btn {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.preview__btn:hover { transform: translateX(3px); border-color: var(--border-strong); }
.preview__btn[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.preview__btn-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--bg-elevated-strong); color: var(--accent); }
.preview__btn-icon svg { width: 18px; height: 18px; }
.preview__btn b { display: block; font-size: var(--step-0); }
.preview__btn span { font-size: 0.8rem; color: var(--text-subtle); }
.preview__stage { display: grid; justify-items: center; gap: 1rem; }
.preview__caption { max-width: 34ch; text-align: center; font-size: var(--step--1); color: var(--text-muted); }
.preview__screen[hidden] { display: none; }
@media (max-width: 900px) {
  .preview { grid-template-columns: 1fr; }
  .preview__stage { order: -1; }
}

/* ---- APK / prototype section ---- */
.apk { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); align-items: stretch; }
@media (max-width: 900px) { .apk { grid-template-columns: 1fr; } }

.spec-list { display: grid; gap: 0; margin: 1.5rem 0; padding: 0; }
.spec-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.spec-list div:first-child { border-top: 1px solid var(--border); }
.spec-list dt { color: var(--text-subtle); font-size: var(--step--1); font-weight: 600; }
.spec-list dd { margin: 0; font-weight: 700; font-size: var(--step--1); text-align: right; }

.qr-card { display: grid; justify-items: center; text-align: center; gap: 0.9rem; }
.qr-frame {
  position: relative;
  padding: 14px;
  border-radius: var(--r-lg);
  background: #ffffff;
  box-shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.8);
  line-height: 0;
}
.qr-frame canvas,
.qr-frame img,
.qr-frame svg {
  display: block;
  width: min(232px, 56vw);
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}
.qr-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(20, 184, 166, 0.5);
  border-radius: calc(var(--r-lg) - 6px);
  pointer-events: none;
}
.qr-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
  word-break: break-all;
  max-width: 34ch;
}
.qr-note { font-size: var(--step--1); color: var(--text-muted); max-width: 38ch; }
.qr-fallback {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  width: min(230px, 56vw);
  aspect-ratio: 1;
  padding: 1rem;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text-subtle);
  font-size: 0.8rem;
  text-align: center;
}

/* ---- Availability columns ---- */
.availability { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.availability .card { border-top: 3px solid var(--border); }
.availability .card--available { border-top-color: var(--status-available); }
.availability .card--dev { border-top-color: var(--status-dev); }
.availability .card--planned { border-top-color: var(--status-planned); }

/* ---- Steps / how it works ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step__num {
  position: absolute;
  top: clamp(1.25rem, 1rem + 0.9vw, 1.9rem);
  left: clamp(1.25rem, 1rem + 0.9vw, 1.9rem);
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-400), var(--violet-500));
  color: #04211f;
  font-weight: 800;
}
:root[data-theme="light"] .step__num { color: #fff; background: linear-gradient(135deg, var(--teal-700), #6d28d9); }

/* ---- Roadmap ---- */
.roadmap {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  --roadmap-gap: clamp(0.75rem, 0.4rem + 0.8vw, 1.25rem);
  gap: var(--roadmap-gap);
  padding-bottom: 0.5rem;
}
.roadmap__stage { position: relative; padding-top: 2.75rem; min-width: 0; }
.roadmap__stage::before {
  content: "";
  position: absolute;
  top: 1.4rem; left: 0; right: calc(var(--roadmap-gap, 1rem) * -1);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--border));
}
.roadmap__stage:last-child::before { right: 0; }
.roadmap__dot {
  position: absolute;
  top: 0.95rem; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  z-index: 1;
}
.roadmap__stage--future .roadmap__dot { border-color: var(--text-subtle); }
.roadmap__stage--future::before { background: var(--border); }
.roadmap__label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); }
.roadmap__stage h3 { font-size: var(--step-1); margin: 0.35rem 0 0.6rem; }
@media (max-width: 980px) {
  .roadmap { grid-auto-flow: row; grid-auto-columns: auto; padding-left: 1.4rem; }
  .roadmap__stage { padding-top: 0; padding-left: 1.6rem; }
  .roadmap__stage::before { top: 0.5rem; bottom: -1rem; left: -0.75rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--border)); }
  .roadmap__stage:last-child::before { display: none; }
  .roadmap__dot { top: 0.35rem; left: -1.15rem; }
}

/* ---- Impact ---- */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 0.85rem; }
.impact-card h4 { font-size: var(--step-0); }
.impact-card p { font-size: var(--step--1); }
.impact-card { text-align: left; }
.impact-card__k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ---- Funding ---- */
.funding { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
@media (max-width: 900px) { .funding { grid-template-columns: 1fr; } }
.funding-target {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--accent);
  background: linear-gradient(140deg, rgba(47, 214, 195, 0.16), rgba(139, 92, 246, 0.12)), var(--bg-elevated);
}
.funding-target__amount { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(120deg, var(--teal-300), var(--violet-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.budget { display: grid; gap: 0.75rem; }
.budget__item { padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-elevated); }
.budget__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.budget__head b { font-size: var(--step-0); }
.budget__amount { font-weight: 800; color: var(--accent); white-space: nowrap; }
.budget__bar { height: 6px; margin: 0.6rem 0 0.75rem; border-radius: 99px; background: var(--bg-elevated-strong); overflow: hidden; }
.budget__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-400), var(--violet-500)); }
.budget__item ul { margin: 0; padding-left: 1.1rem; font-size: var(--step--1); color: var(--text-muted); columns: 2; column-gap: 1.5rem; }
.budget__item li { margin-bottom: 0.2rem; break-inside: avoid; }
@media (max-width: 520px) { .budget__item ul { columns: 1; } }

/* ---- Founder ---- */
.founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-items: start; }
.founder__portrait {
  display: grid;
  place-items: center;
  width: clamp(120px, 20vw, 168px);
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(140deg, var(--teal-400), var(--violet-500));
  color: #04211f;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
}
:root[data-theme="light"] .founder__portrait { color: #fff; background: linear-gradient(140deg, var(--teal-700), #6d28d9); }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } }

/* ---- Partners ---- */
.partner-areas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.partner-areas li {
  margin: 0;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.partner-areas li:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ---- FAQ ---- */
.faq { display: grid; gap: 0.75rem; max-width: 880px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.22s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq__body { padding: 0 1.3rem 1.25rem; color: var(--text-muted); }

/* ---- Forms ---- */
.form { display: grid; gap: 1rem; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 700; color: var(--text); }
.field label .req { color: var(--pink-400); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: var(--step--1);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea { background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-subtle); }
.field__hint { font-size: 0.78rem; color: var(--text-subtle); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--pink-400); }
.field__error { font-size: 0.78rem; color: var(--pink-400); }
.field__error:empty { display: none; }

.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--text-muted); }
.checkbox input { width: 18px; height: 18px; margin-top: 0.15rem; flex: none; accent-color: var(--teal-500); }

.chip-choice { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-choice input { position: absolute; opacity: 0; pointer-events: none; }
.chip-choice label {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip-choice input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:root[data-theme="light"] .chip-choice input:checked + label { color: #fff; background: var(--teal-700); border-color: var(--teal-700); }
.chip-choice input:focus-visible + label { box-shadow: var(--ring); }

.form__status {
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  font-size: var(--step--1);
  color: var(--text);
}
.form__status[hidden] { display: none; }

/* ---- Contact ---- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-channels { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.contact-channels li { margin: 0; }
.contact-channels a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-channels a:hover { border-color: var(--accent); transform: translateX(3px); }
.contact-channels .card__icon { width: 40px; height: 40px; margin: 0; }
.contact-channels b { display: block; font-size: var(--step--1); }
.contact-channels span { font-size: 0.8rem; color: var(--text-subtle); word-break: break-word; }

/* ---- CTA band ---- */
.cta-band {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.8rem, 1.4rem + 2vw, 3.2rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 240px at 80% 0%, rgba(139, 92, 246, 0.18), transparent 70%),
    linear-gradient(120deg, rgba(47, 214, 195, 0.14), transparent 60%),
    var(--bg-elevated);
  text-align: center;
  justify-items: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { font-size: var(--step-3); max-width: 24ch; }
.cta-band p { max-width: 62ch; color: var(--text-muted); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; }
.footer-brand p { color: var(--text-muted); max-width: 42ch; margin-top: 1rem; font-size: var(--step--1); }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col li { margin: 0; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: var(--step--1); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-subtle);
}
.social-row { display: flex; gap: 0.5rem; }
.social-row a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-muted);
}
.social-row a:hover { color: var(--accent); border-color: var(--accent); }
.social-row svg { width: 17px; height: 17px; }

/* ---- Reveal on scroll ----
   Content is visible by default so the page still works with JavaScript
   disabled or blocked; the animation is only armed once JS confirms it runs. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---- Utilities ---- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.center { text-align: center; }
.narrow { max-width: var(--maxw-narrow); margin-inline: auto; }
.divider-top { border-top: 1px solid var(--border); padding-top: 1.5rem; }

/* ---- Legal / document pages ---- */
.doc { max-width: 820px; margin-inline: auto; }
.doc h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.doc h3 { font-size: var(--step-1); margin-top: 1.75rem; }
.doc p, .doc li { color: var(--text-muted); }
.doc__meta { font-size: var(--step--1); color: var(--text-subtle); }
.toc { padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-elevated); }
.toc ul { margin: 0; padding-left: 1.1rem; }
.toc a { text-decoration: none; }

/* ---- Print (event handouts) ---- */
@media print {
  body { background: #fff; color: #000; }
  body::before, .site-header, .site-footer, .nav, .btn, .float-label { display: none !important; }
  .section { padding-block: 1rem; }
  .qr-frame { box-shadow: none; }
}

/* Preview panels are swapped by the tab controller */
.preview__screen { display: grid; justify-items: center; gap: 1rem; }
.preview__screen[hidden] { display: none; }
