/* Predstavnik Stanara – landing page. Same design language as the app
   (src/theme/theme.ts, src/index.css): indigo primary, colourful accents,
   Inter for text, Plus Jakarta Sans for headings. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-soft: #eef2ff;
  --violet: #8b5cf6;
  --sky: #0ea5e9;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --pink: #ec4899;
  --teal: #14b8a6;
  --orange: #f97316;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-soft: #eef1f6;
  --canvas: #f5f6fb;
  --navy: #0b1020;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(15, 23, 42, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(30, 27, 75, 0.45);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --wrap: 1200px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

p {
  margin: 0;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.45);
  outline-offset: 3px;
  border-radius: 8px;
}

.ic {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 650 16px/1 var(--font-body);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 28px -12px rgba(79, 70, 229, 0.8);
}

.btn--primary:hover {
  background: var(--primary-600);
  box-shadow: 0 16px 34px -12px rgba(79, 70, 229, 0.9);
}

.btn--ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--light {
  color: var(--primary-600);
  background: #fff;
  box-shadow: 0 12px 30px -14px rgba(15, 23, 42, 0.5);
}

.btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 8px 30px -20px rgba(15, 23, 42, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 800 18px/1 var(--font-display);
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav__links a {
  color: #334155;
  font-weight: 550;
  font-size: 15px;
}

.nav__links a:hover {
  color: var(--primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__login {
  color: #334155;
  font-weight: 600;
  font-size: 15px;
  padding: 0 8px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
  background:
    radial-gradient(720px 420px at 8% 0%, rgba(99, 102, 241, 0.16), transparent 70%),
    radial-gradient(620px 380px at 60% -10%, rgba(236, 72, 153, 0.1), transparent 70%),
    radial-gradient(640px 420px at 100% 10%, rgba(245, 158, 11, 0.14), transparent 70%),
    linear-gradient(180deg, #fbfbff 0%, #ffffff 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: #334155;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.pill__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  font-size: 13px;
}

/* The slogan; the h1 is the keyword line in the pill above it. */
.hero__title {
  max-width: 920px;
  margin-top: 22px;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

/* The display font sets a full stop wide; pull it in at the end of headings. */
.stop {
  margin-left: -0.07em;
}

.grad {
  background: linear-gradient(100deg, #4f46e5 0%, #8b5cf6 45%, #ec4899 75%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 720px;
  margin-top: 22px;
  color: #475569;
  font-size: clamp(18px, 2vw, 21px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero__ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 15px;
  font-weight: 550;
}

.hero__ticks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__ticks .ic {
  color: var(--emerald);
  font-size: 18px;
}

/* App mockup: a browser with the dashboard and a phone on top. */
.showcase {
  position: relative;
  width: min(1120px, 100%);
  margin: 64px auto 0;
  padding-bottom: 40px;
}

/* The street stands behind the screenshot, its base hidden by it, and rises
   past the buttons on both sides. */
.hero {
  isolation: isolate;
}

.hero__city {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: calc(100% - 150px);
  width: max(1440px, 100vw);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}

.hero__city .lit {
  opacity: 0.2;
  animation: window-glow 9s ease-in-out infinite;
}

.hero__city .link {
  animation: link-flow 2.4s linear infinite;
}

@keyframes link-flow {
  to {
    stroke-dashoffset: -18;
  }
}

@keyframes window-glow {
  0%,
  100% {
    opacity: 0.18;
  }

  45%,
  60% {
    opacity: 0.72;
  }
}

.browser {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-lg);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-soft);
}

.browser__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e2e8f0;
}

.browser__bar span:nth-child(1) { background: #fda4af; }
.browser__bar span:nth-child(2) { background: #fde68a; }
.browser__bar span:nth-child(3) { background: #86efac; }

.browser__url {
  flex: 1;
  max-width: 360px;
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
}

.phone {
  position: absolute;
  right: -28px;
  bottom: 0;
  width: 23%;
  min-width: 170px;
  padding: 9px;
  border-radius: 38px;
  background: #0f172a;
  box-shadow: 0 40px 70px -24px rgba(15, 23, 42, 0.6);
}

/* A white status bar above the screenshot, so the camera pill does not
   cover the app's own header. */
.phone img {
  padding-top: 11%;
  border-radius: 30px;
  background: #fff;
}

.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 1;
  width: 28%;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0f172a;
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  text-align: left;
  font-size: 14px;
  animation: bob 6s ease-in-out infinite;
}

.float strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
}

.float span {
  color: var(--muted);
  font-size: 13px;
}

.float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
}

.float--vote {
  left: -36px;
  top: 30%;
}

.float--fault {
  left: 6%;
  bottom: -6px;
  animation-delay: -3s;
}

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

/* ===== Generic section ===== */
.section {
  padding: 110px 0;
}

.section--tint {
  background: var(--canvas);
}

.section__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__head h2,
.split h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
}

.section__head p {
  margin-top: 18px;
  color: #475569;
  font-size: 19px;
}

/* ===== Before / after ===== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare__card {
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.compare__card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 22px;
}

.compare__card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare__card li {
  display: flex;
  gap: 12px;
  color: #334155;
}

.compare__card li .ic {
  margin-top: 4px;
  font-size: 18px;
}

.compare__card--before li .ic {
  color: #cbd5e1;
}

.compare__card--after {
  position: relative;
  overflow: hidden;
  border: 0;
  color: #e0e7ff;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(236, 72, 153, 0.35), transparent 70%),
    radial-gradient(380px 260px at 0% 100%, rgba(14, 165, 233, 0.3), transparent 70%),
    linear-gradient(140deg, #312e81 0%, #4338ca 50%, #6d28d9 100%);
  box-shadow: var(--shadow-lg);
}

.compare__card--after h3,
.compare__card--after li {
  color: #fff;
}

.compare__card--after li .ic {
  color: #a7f3d0;
}

/* ===== Feature grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  --tile: var(--primary);
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 15px;
  color: var(--tile);
  background: color-mix(in srgb, var(--tile) 13%, #ffffff);
  font-size: 22px;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.feature p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ===== Product tour (tabs) ===== */
.tour__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.tour__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
  font: 600 15px/1 var(--font-body);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tour__tab .ic {
  font-size: 17px;
}

.tour__tab[aria-selected="true"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.7);
}

.tour__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: center;
}

.tour__panel[hidden] {
  display: none;
}

.tour__shot {
  cursor: zoom-in;
}

.tour__text h3 {
  font-size: 28px;
  font-weight: 800;
}

.tour__text p {
  margin: 14px 0 20px;
  color: #475569;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
  color: #334155;
  font-size: 16px;
}

.checks .ic {
  margin-top: 4px;
  color: var(--emerald);
  font-size: 18px;
}

/* ===== Split sections ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

.split p.lead {
  margin: 18px 0 26px;
  color: #475569;
  font-size: 18px;
}

.frame {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-lg);
}

.stack {
  position: relative;
}

.stack .frame + .frame {
  position: absolute;
  right: -24px;
  bottom: -44px;
  width: 58%;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.mini-stat {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.mini-stat strong {
  display: block;
  color: var(--ink);
  font: 800 24px/1.1 var(--font-display);
}

.mini-stat span {
  color: var(--muted);
  font-size: 13.5px;
}

/* ===== Roles ===== */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.role {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.role::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tile);
}

.role h3 {
  font-size: 22px;
}

.role > p {
  margin: 10px 0 18px;
  color: var(--muted);
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font: 800 18px/1 var(--font-display);
}

.step h3 {
  color: #fff;
  font-size: 21px;
}

.step p {
  margin-top: 10px;
  color: rgba(226, 232, 240, 0.85);
}

.dark {
  position: relative;
  overflow: hidden;
  color: #e2e8f0;
  background:
    radial-gradient(600px 360px at 0% 0%, rgba(99, 102, 241, 0.35), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, rgba(236, 72, 153, 0.22), transparent 70%),
    linear-gradient(180deg, #0b1020 0%, #111735 100%);
}

.dark .section__head h2 {
  color: #fff;
}

.dark .section__head p {
  color: rgba(226, 232, 240, 0.8);
}

.dark .eyebrow {
  color: #a5b4fc;
}

/* ===== Mobile ===== */
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 26px;
}

.phones .phone {
  position: relative;
  right: auto;
  bottom: auto;
  width: 250px;
  min-width: 0;
}

.phones .phone:nth-child(2) {
  width: 280px;
  transform: translateY(-24px);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 46px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  color: #334155;
  font-weight: 600;
  font-size: 15px;
}

.badge .ic {
  color: var(--primary);
  font-size: 18px;
}

/* ===== Security ===== */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust__item {
  --tile: var(--primary);
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border-soft);
}

.trust__item .tile {
  flex: none;
  margin: 0;
}

.trust__item h3 {
  font-size: 17px;
}

.trust__item p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* ===== FAQ ===== */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq details {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  color: var(--ink);
  font: 700 17px/1.4 var(--font-display);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
  font: 600 20px/1 var(--font-body);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 24px 22px;
  color: #475569;
}

/* ===== Final CTA ===== */
.cta {
  position: relative;
  overflow: hidden;
  padding: 64px;
  border-radius: 32px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(520px 320px at 90% 0%, rgba(245, 158, 11, 0.5), transparent 70%),
    radial-gradient(520px 360px at 10% 110%, rgba(236, 72, 153, 0.5), transparent 70%),
    linear-gradient(120deg, #4338ca 0%, #6d28d9 55%, #7c3aed 100%);
  box-shadow: 0 40px 80px -36px rgba(79, 70, 229, 0.9);
}

.cta::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cta h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
}

.cta p {
  max-width: 640px;
  margin: 16px auto 30px;
  color: rgba(238, 242, 255, 0.9);
  font-size: 19px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta small {
  display: block;
  margin-top: 22px;
  color: rgba(224, 231, 255, 0.8);
  font-size: 14px;
}

/* ===== Footer ===== */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 15px;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer__links a {
  color: #475569;
  font-weight: 550;
}

.footer__about {
  max-width: 640px;
  margin-top: 22px;
}

.footer__fine {
  margin-top: 14px;
  font-size: 13.5px;
}

/* ===== Lightbox ===== */
.lightbox {
  width: min(1400px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(4px);
}

.lightbox img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.zoomable {
  cursor: zoom-in;
}

.caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__city .lit,
  .hero__city .link {
    animation: none;
  }

  .hero__city .lit {
    opacity: 0.5;
  }

  .float {
    animation: none;
  }

  .btn,
  .feature {
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .tour__panel {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 48px;
  }

  .float--vote {
    left: -10px;
  }

  .phone {
    right: -8px;
  }

  /* Smaller street, so both towers (where the lines start) stay in view. */
  .hero__city {
    width: 125vw;
    bottom: calc(100% - 110px);
  }
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav.is-open .nav__links,
  .nav.is-open .nav__actions {
    display: flex;
  }

  .nav.is-open .nav__inner {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0 20px;
  }

  .nav.is-open .nav__links {
    order: 3;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin: 10px 0 0;
  }

  .nav.is-open .nav__links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 17px;
  }

  .nav.is-open .nav__actions {
    order: 4;
    width: 100%;
    margin-top: 12px;
  }

  .nav.is-open .nav__actions .btn {
    flex: 1;
  }

  .section {
    padding: 80px 0;
  }

  .compare,
  .split,
  .roles,
  .steps,
  .trust {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .split--reverse .split__media {
    order: 0;
  }

  .stack .frame + .frame {
    right: -8px;
    bottom: -30px;
  }

  /* The phone overhangs the stack at the top and bottom. */
  .stack {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .float--vote {
    top: auto;
    bottom: 24%;
    left: -8px;
  }

  .float--fault {
    display: none;
  }

  .phones .phone {
    width: 30%;
  }

  .phones .phone:nth-child(2) {
    width: 34%;
  }

  .cta {
    padding: 48px 26px;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 44px;
  }

  .hero__city {
    width: 118vw;
    bottom: calc(100% - 46px);
  }

  .hero__cta .btn {
    width: 100%;
  }

  .showcase {
    margin-top: 44px;
  }

  .browser__url {
    display: none;
  }

  .phone {
    width: 34%;
    min-width: 0;
    padding: 6px;
    border-radius: 24px;
    right: -6px;
  }

  .phone img {
    border-radius: 19px;
  }

  .phone::before {
    top: 10px;
    height: 8px;
  }

  /* Below the browser, left of the phone that hangs past it. */
  .float--vote {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    margin-top: 18px;
    max-width: 62%;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .mini-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .mini-stat {
    padding: 12px;
  }

  .mini-stat strong {
    font-size: 19px;
  }

  .phones {
    gap: 10px;
  }

  .phones .phone {
    padding: 5px;
    border-radius: 20px;
  }

  .phones .phone img {
    border-radius: 16px;
  }

  .phones .phone::before {
    display: none;
  }

  .compare__card,
  .role,
  .step {
    padding: 26px;
  }

  .faq summary {
    padding: 18px 18px;
    font-size: 16px;
  }

  .faq details p {
    padding: 0 18px 18px;
  }
}
