/* Driver Tracer — no clichés, instrument-panel aesthetic */
:root {
  /* Phone mockup interior — matches the real app shell (Dashboard/Map/Settings container) */
  --app-surface: #1e1e2e;
  --app-card: #232336;
  --bg: #141820;
  --bg-deep: #0e1118;
  --fg: #f2f2f2;
  --muted: #8b8b93;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #fa4a3d;
  --accent-soft: rgba(250, 74, 61, 0.18);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  /* Condensed poster / YouTube-style thumbnail titles */
  --font-thumb: "Bebas Neue", Impact, "Arial Narrow", "Helvetica Neue Condensed", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.82, 0.25, 1);
  /* Tab bar row 64px + home indicator / safe area (FuelTabBar) */
  --demo-tab-clearance: calc(64px + max(14px, env(safe-area-inset-bottom, 0px)));
  --hdr-pad-x: clamp(14px, 3.5vw, 22px);
  --stage-vpad: 6px;
  --shell-vspace: clamp(86px, 15vh, 138px);
  /* iPhone 17 Pro Max (6.9") — Apple logical 440×956 pt; web demo 1:1, not forced into viewport */
  --demo-logical-width-px: 440px;
  --demo-logical-height-px: 956px;
  /* First screen + header row share this max width */
  --drive-stage-max-w: 1520px;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: calc(8px + env(safe-area-inset-top, 0px) + 54px);
  scroll-padding-bottom: 0;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(100% 70% at 50% -15%, rgba(250, 74, 61, 0.07), transparent 42%),
    linear-gradient(180deg, #181c26 0%, var(--bg) 38%, var(--bg-deep) 100%);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.demo-phone-overlay-open {
  overflow: hidden;
}

/*
 * Header (.hdr z-index 80) is a sibling of main (z-index 1). Fixed UI inside main was stacking
 * below the bar — lift main only while the phone overlay is open so the close control stays tappable.
 */
body.demo-phone-overlay-open main {
  z-index: 100;
}

#main {
  display: flex;
  flex-direction: column;
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(200, 212, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 212, 235, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 72% 55% at 50% -5%, black 42%, transparent 78%);
}

.snap-pane {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

#app-demo.snap-pane.drive-stage {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Languages strip duplicated for mobile layout below screenshots */
.store-lang-mobile-only {
  display: none;
}

/* Mobile: normal continuous scroll — desktop keeps full-viewport snap */
@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
    scroll-padding-top: calc(6px + env(safe-area-inset-top, 0px) + 48px);
  }

  .snap-pane,
  #app-demo.snap-pane.drive-stage {
    min-height: unset;
    scroll-snap-align: none;
  }

  /* Headings centered — lists stay left; “Fully translated” caption centered */
  .drive-stage-rail-intro-head,
  .drive-stage-rail-what-is-title,
  .drive-stage-rail-title {
    text-align: center;
  }

  .drive-stage-rail-caption {
    text-align: center;
  }

  .store-copy-page-heading {
    text-align: center;
  }

  /* Arabic: RTL + centered heading reads as clumped right; keep same edge as body copy */
  html.i18n-ar .store-copy-page-heading[dir="rtl"],
  html[lang="ar"] .store-copy-page-heading[dir="rtl"] {
    text-align: left !important;
  }

  html.i18n-ar .drive-stage-rail-what-is-title,
  html[lang="ar"] .drive-stage-rail-what-is-title {
    text-align: left !important;
  }

  .store-sidewalk-kicker,
  .store-sidewalk-title {
    text-align: center;
    width: 100%;
  }

  .store-sidewalk-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .store-shots-head {
    text-align: left;
  }

  .store-shots-pane,
  .store-shots-shell {
    justify-content: flex-start;
  }

  .store-shots-kicker,
  .store-shots-title {
    text-align: center;
  }

  .hdr-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hdr-nav--desktop {
    display: none !important;
  }

  .hdr--menu-open {
    z-index: 200;
  }

  /* Screenshots → languages → rest (desktop keeps languages inside rail) */
  #store-shots.store-shots-pane {
    order: -2;
    border-top: none;
  }

  .store-lang-mobile-only {
    display: block;
    order: -1;
    padding: clamp(1rem, 4vw, 1.35rem) var(--hdr-pad-x) clamp(1.35rem, 5vw, 1.85rem);
    border-top: 1px solid var(--line);
    background:
      radial-gradient(ellipse 90% 70% at 50% 0%, rgba(76, 175, 80, 0.06), transparent 52%),
      linear-gradient(180deg, rgb(18, 22, 31) 0%, rgb(14, 17, 24) 100%);
  }

  .store-lang-mobile-inner {
    max-width: min(var(--drive-stage-max-w), 100%);
    margin-inline: auto;
  }

  .drive-stage-rail-block--lang {
    display: none !important;
  }
}

.store-shots-pane {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--hdr-pad-x) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 105% 80% at 50% -20%, rgba(250, 74, 61, 0.16), transparent 50%),
    radial-gradient(80% 50% at 80% 100%, rgba(76, 175, 80, 0.1), transparent 45%),
    linear-gradient(180deg, rgb(21, 25, 36) 0%, rgb(8, 9, 14) 100%);
}

.store-shots-shell {
  flex: 1;
  width: min(1380px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2.2vw, 1rem);
  min-height: 0;
}

.store-shots-head {
  text-align: center;
  max-width: 40rem;
  position: relative;
  z-index: 1;
  /* Tighter default; roomy margin on desktop-only — see matching min-width rule */
  margin-top: clamp(1rem, 4vw, 1.75rem);
}

@media (min-width: 769px) {
  .store-shots-head {
    /* margin keeps layout scroll height honest; translateY can inflate overflow in WebKit */
    margin-top: clamp(2.85rem, 10vh, 7.25rem);
  }
}

.store-shots-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-thumb);
  font-size: clamp(3.15rem, 14vw, 5.75rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #f8f9ff;
  -webkit-text-stroke: 1.5px rgba(12, 14, 20, 0.92);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.55),
    0 4px 0 rgba(0, 0, 0, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(250, 74, 61, 0.28);
}

.store-shots-title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.88rem, 2.35vw, 1.08rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(200, 204, 220, 0.82);
}

.store-shots-row-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  padding-inline: clamp(8px, 1.25vw, 18px);
  gap: 6px;
}

.store-shots-filmstrip {
  display: none;
}

@media (min-width: 700px) {
  .store-shots-filmstrip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0.45;
  }

  .store-shots-film-dash {
    flex: 1;
    height: 1px;
    max-width: 120px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  }

  .store-shots-film-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(250, 74, 61, 0.55);
  }
}

.store-shots-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 1.4vw, 18px);
  width: min(1320px, 100%);
  margin-inline: auto;
}

.store-shot-slot {
  position: relative;
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
  max-width: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.store-shot-slot::before {
  content: "";
  position: absolute;
  inset: auto -6px -14px -6px;
  height: 62%;
  border-radius: 22px;
  background: linear-gradient(178deg,
      rgba(250, 74, 61, 0.18) 0%,
      transparent 42%,
      rgba(129, 199, 132, 0.1) 100%);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
  filter: blur(10px);
}

.store-shot-slot::after {
  content: "";
  position: absolute;
  inset: -2px -2px 6px -2px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
}

.store-shot-slot img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: calc(78dvh - 148px - env(safe-area-inset-bottom, 0px));
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.store-copy-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--hdr-pad-x) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 16, 24, 0.4), rgba(14, 18, 26, 0.85));
}

.store-copy-sheet {
  width: min(680px, 100%);
  /* Document is the only vertical scroller — nested overflow fights snap + EOF scrollbar slack */
  overflow-x: hidden;
  overflow-y: visible;
  padding-inline: clamp(14px, 4vw, 28px);
  padding-block: clamp(18px, 4.5vw, 32px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(155deg,
      rgba(35, 36, 54, 0.65) 0%,
      rgba(18, 20, 32, 0.85) 50%,
      rgba(13, 16, 26, 0.92) 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.store-copy-sheet--wide {
  width: min(1040px, 100%);
}

.store-copy-sheet--narrow {
  width: min(520px, 100%);
}

.store-copy-pane--features {
  background:
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(76, 175, 80, 0.12), transparent 50%),
    linear-gradient(180deg, rgb(15, 18, 28), rgb(8, 9, 14));
}

.store-copy-pane--who {
  background:
    radial-gradient(ellipse 100% 50% at 10% 100%, rgba(250, 74, 61, 0.08), transparent 50%),
    linear-gradient(180deg, rgb(15, 18, 28), rgb(8, 9, 15));
}

/*
 * Arapça: i18n dir=rtl satırlar varsayılan olarak sağa yığılıyor; sheet ile aynı sol hizada dursun.
 * Dil chip’leri (.store-lang-chip, [data-set-lang]) hariç — pill ortası bozulmasın.
 * html.i18n-ar: lang attr edge cases / cache; !important beats mobile .store-copy-page-heading { center }.
 */
html.i18n-ar main [dir="rtl"]:not(.store-lang-chip):not([data-set-lang]),
html[lang="ar"] main [dir="rtl"]:not(.store-lang-chip):not([data-set-lang]) {
  text-align: left !important;
}

/* Last snap pane: content-height only — avoids mandatory snap leaving dead scroll past real content */
#copy-who.snap-pane {
  min-height: unset;
  scroll-margin-bottom: 0;
}

#copy-who.store-copy-pane {
  align-items: flex-start;
  justify-content: center;
}

.store-copy-page-heading {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3.8vw, 1.62rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: #fdfcff;
}

.store-copy-page-caption {
  margin: 0 0 1.2rem;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.52;
  color: rgba(180, 185, 200, 0.88);
}

.store-sidewalk-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 1.35rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  padding: clamp(1rem, 2.8vw, 1.35rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(76, 175, 80, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.store-sidewalk-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.store-sidewalk-text {
  min-width: 0;
  flex: 1;
}

.store-sidewalk-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(129, 199, 132, 0.95);
}

.store-sidewalk-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fdfcff;
}

.store-sidewalk-tagline {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(180, 185, 200, 0.92);
}

.store-sidewalk-body {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(228, 231, 242, 0.94);
}

.store-sidewalk-body strong {
  color: var(--fg);
  font-weight: 700;
}

.store-sidewalk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: #0a0a0a;
  background: linear-gradient(180deg, #fdfdfd 0%, #e8eaef 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.store-sidewalk-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

@media (max-width: 520px) {
  .store-sidewalk-card {
    flex-direction: column;
    align-items: center;
  }

  .store-sidewalk-kicker,
  .store-sidewalk-title {
    text-align: center;
    width: 100%;
  }

  .store-sidewalk-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: start;
  }

  .store-sidewalk-tagline,
  .store-sidewalk-body {
    text-align: start;
  }

  .store-sidewalk-btn {
    align-self: center;
  }
}

.store-copy-grid {
  display: grid;
  gap: clamp(10px, 2vmin, 16px);
  width: 100%;
}

.store-copy-grid--features {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

@media (max-width: 760px) {
  .store-copy-grid--features {
    grid-template-columns: 1fr;
  }
}

.store-copy-grid--tri {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .store-copy-grid--tri {
    grid-template-columns: 1fr;
  }
}

.store-copy-grid--audience {
  grid-template-columns: repeat(3, minmax(168px, 1fr));
}

@media (max-width: 940px) {
  .store-copy-grid--audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .store-copy-grid--audience {
    grid-template-columns: 1fr;
  }
}

.store-copy-brick {
  margin: 0;
  padding: clamp(13px, 2.8vw, 18px) clamp(14px, 3vw, 20px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(152deg,
      rgba(40, 42, 60, 0.55) 0%,
      rgba(22, 24, 40, 0.65) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 20px rgba(0, 0, 0, 0.32);
  font-size: clamp(0.93rem, 2.05vw, 1.02rem);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(242, 244, 250, 0.96);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.store-copy-brick>p {
  margin: 0;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .store-copy-brick:hover {
    transform: translateY(-3px);
    border-color: rgba(250, 74, 61, 0.35);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 12px 34px rgba(0, 0, 0, 0.4);
  }
}

.store-copy-brick--ice {
  border-color: rgba(100, 181, 246, 0.25);
  background:
    radial-gradient(100% 100% at 100% -20%, rgba(100, 181, 246, 0.12), transparent),
    rgba(22, 30, 52, 0.55);
}

.store-copy-brick--ice.accent {
  border-color: rgba(76, 175, 80, 0.42);
}

.store-copy-brick--lock {
  border-color: rgba(165, 214, 167, 0.22);
  background:
    linear-gradient(160deg,
      rgba(38, 55, 48, 0.45) 0%,
      rgba(18, 22, 32, 0.88) 100%);
}

.store-copy-brick--lock.accent {
  border-color: rgba(250, 74, 61, 0.35);
}

.store-copy-brick--tiny {
  font-size: 0.91rem;
  font-weight: 600;
}

.store-lang-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 0.5rem;
}

.store-lang-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(250, 250, 255, 0.92);
}

button.store-lang-chip {
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  margin: 0;
}

.store-lang-chip.is-active {
  border-color: rgba(129, 199, 132, 0.5);
  background: rgba(56, 142, 60, 0.16);
  color: rgba(250, 250, 255, 0.98);
}

main,
.hdr,
.ftr {
  position: relative;
  z-index: 1;
}

/* Header — full-width bar; inner row matches #app-demo.drive-stage width (--drive-stage-max-w + --hdr-pad-x) */
.hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(20, 24, 34, 0.84);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  /* Mobile menu overlay: start below header bar (matches .hdr-inner vertical rhythm + border) */
  --hdr-mobile-sheet-top: calc(env(safe-area-inset-top, 0px) + 62px);
}

.hdr-inner {
  max-width: min(var(--drive-stage-max-w), 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  padding-bottom: 9px;
  padding-left: max(env(safe-area-inset-left, 0px), var(--hdr-pad-x));
  padding-right: max(env(safe-area-inset-right, 0px), var(--hdr-pad-x));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.025em;
}

.logo img {
  border-radius: 8px;
  width: 30px;
  height: 30px;
}

.hdr-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Hesap girişi — kabaca 11″ tablet yatayı / masaüstü (1100px+). account.html bağlantısı gizlenmez. */
@media (max-width: 1099px) {
  .hdr a.btn-ios[href^="login.html"] {
    display: none !important;
  }
}

.hdr .btn-ios {
  padding: 0.38rem 0.92rem;
  font-size: 0.76rem;
  font-weight: 700;
  background: transparent;
  color: #fdf4f3;
  border: 1px solid rgba(250, 74, 61, 0.43);
  box-shadow: none;
}

.hdr .btn-ios:hover {
  background: rgba(250, 74, 61, 0.12);
  box-shadow: 0 0 0 1px rgba(250, 74, 61, 0.15);
  transform: none;
}

.hdr .btn-ios.btn-ios--ghost {
  border-color: var(--line);
  color: var(--fg);
}

.hdr .btn-ios.btn-ios--ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.hdr .btn-ios.btn-nav-heatmap {
  position: relative;
  border-color: rgba(207, 190, 155, 0.42);
  color: rgba(248, 245, 239, 0.97);
  background: linear-gradient(168deg, #3f4450 0%, #323842 44%, #232830 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.32);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hdr .btn-ios.btn-nav-heatmap:hover {
  border-color: rgba(229, 210, 172, 0.55);
  color: #fffcf7;
  background: linear-gradient(168deg, #4e5564 0%, #3b424f 44%, #2b323c 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.11) inset,
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 12px 34px rgba(0, 0, 0, 0.38);
  transform: translateY(-1px);
}

.hdr .btn-ios.btn-nav-heatmap svg {
  opacity: 0.92;
}

.hdr .btn-ios.btn-nav-heatmap:focus-visible {
  outline: 2px solid rgba(219, 198, 160, 0.65);
  outline-offset: 2px;
}

.hdr .btn-ios svg {
  opacity: 0.95;
}

.hdr-menu-toggle {
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .hdr-menu-toggle {
    display: none !important;
  }
}

.hdr-menu-toggle:focus-visible {
  outline: 2px solid rgba(250, 74, 61, 0.55);
  outline-offset: 2px;
}

.hdr-menu-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}

.hdr-menu-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: rgba(250, 250, 255, 0.88);
}

.hdr-mobile-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--hdr-mobile-sheet-top);
  z-index: 1;
  flex-direction: column;
}

.hdr-mobile-sheet:not([hidden]) {
  display: flex;
}

/* Landing: kahraman blokları daha yüksek z-index kullanıyor; açık menü hep üstte kalsın */
body.landing-page-body .hdr-mobile-sheet:not([hidden]) {
  z-index: 250;
}

.hdr-inner>.logo,
.hdr-inner>.hdr-menu-toggle {
  position: relative;
  z-index: 2;
}

.hdr-mobile-sheet-backdrop {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(8, 10, 14, 0.52);
}

/* Sheet nav: explicit column stack (beats .hdr-nav row + wrap from landing styles) */
.hdr .hdr-nav.hdr-nav--sheet {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  align-content: stretch;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  padding:
    12px max(env(safe-area-inset-right, 0px), var(--hdr-pad-x)) calc(14px + env(safe-area-inset-bottom, 0px)) max(env(safe-area-inset-left, 0px), var(--hdr-pad-x));
  gap: 10px;
  background: rgba(18, 22, 31, 0.97);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.hdr .hdr-nav.hdr-nav--sheet .btn-ios {
  display: flex;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  justify-content: center;
}

body.hdr-mobile-lock {
  overflow: hidden;
}

/* Buttons */
.btn-ios {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--fg);
  color: #0a0a0a;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-ios:hover {
  box-shadow: 0 0 0 1px var(--fg), 0 12px 40px var(--accent-soft);
  transform: translateY(-1px);
}

.btn-ios-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}

.btn-ios-wide {
  text-align: center;
  margin-top: 0.5rem;
}

/* Title / CTA blocks (also used in .landing-hero-copy) */

.hero-row-centered {
  justify-content: center;
}

/* —— Drive + phone stage —— */
.demo-section.block.drive-stage {
  border-top: none;
  max-width: min(var(--drive-stage-max-w), 100%);
}

.drive-stage.block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
  padding: var(--stage-vpad) var(--hdr-pad-x) clamp(12px, 2vw, 20px);
  /* Phone is truly 440px wide; narrow windows scroll horizontally */
  overflow-x: auto;
  overflow-y: visible;
}

@media (min-width: 769px) {
  .drive-stage.block {
    min-height: calc(100dvh - env(safe-area-inset-top, 0px) - 52px);
  }
}

.drive-stage-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.35rem);
  width: 100%;
}

.drive-stage-layout .drive-phone-row {
  order: -1;
}

@media (min-width: 1100px) {
  .drive-stage-layout {
    display: grid;
    grid-template-columns: minmax(248px, 360px) auto minmax(220px, 300px);
    align-items: center;
    gap: clamp(0.65rem, 1.8vw, 1.65rem);
  }

  .drive-stage-layout .drive-phone-row {
    order: 0;
    justify-self: center;
  }

  .drive-stage-rail--left {
    text-align: right;
  }

  .drive-stage-rail--right {
    text-align: left;
  }

  .drive-stage-rail--left .drive-stage-rail-list li {
    text-align: right;
  }
}

/* Arabic: html dir stays ltr (no mirrored layout). i18n.js sets dir=rtl on each translated node. */

.drive-stage-rail {
  font-size: 0.86rem;
  line-height: 1.48;
  color: rgba(228, 231, 242, 0.94);
}

.drive-stage-rail-intro-head {
  margin: 0 0 0.65rem;
  padding: 0.62rem 0.65rem 0.72rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(250, 74, 61, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.drive-stage-rail-intro-head--what-is {
  padding: clamp(0.55rem, 2vw, 0.72rem) clamp(0.6rem, 2vw, 0.85rem);
  background:
    radial-gradient(ellipse 120% 80% at 12% 0%, rgba(129, 199, 132, 0.16), transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 100%, rgba(128, 203, 196, 0.1), transparent 50%),
    linear-gradient(160deg, rgba(40, 48, 64, 0.55), rgba(18, 22, 34, 0.42));
  border-color: rgba(129, 199, 132, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 32px rgba(0, 0, 0, 0.18);
}

.drive-stage-rail-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 173, 160, 0.82);
}

.drive-stage-rail-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
}

.drive-stage-rail-what-is-title {
  margin: 0;
  font-family: "Unbounded", var(--font-display), system-ui, sans-serif;
  font-size: clamp(1.12rem, 2.85vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.2;
  text-wrap: balance;
  background: linear-gradient(108deg,
      #fff 0%,
      #e8f5e9 28%,
      rgba(178, 235, 205, 0.98) 55%,
      rgba(224, 242, 241, 0.92) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(129, 199, 132, 0.12);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}

@supports not (background-clip: text) {
  .drive-stage-rail-what-is-title {
    color: var(--fg);
    background: none;
    filter: none;
  }
}

html.i18n-ar .drive-stage-rail-what-is-title,
html[lang="ar"] .drive-stage-rail-what-is-title {
  letter-spacing: 0;
  line-height: 1.35;
}

.drive-stage-intro-stack {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-bottom: 0.15rem;
}

.drive-stage-intro-card {
  position: relative;
  margin: 0;
  padding: 0.48rem 0.4rem 0.52rem 1.72rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(152deg, rgba(40, 42, 60, 0.5) 0%, rgba(22, 24, 40, 0.58) 100%);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(238, 240, 248, 0.94);
}

.drive-stage-intro-card p {
  margin: 0;
}

.drive-stage-intro-num {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
}

.drive-stage-intro-card--accent {
  border-color: rgba(129, 199, 132, 0.22);
}

.drive-stage-rail-follow {
  margin-top: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drive-stage-rail--right>.drive-stage-rail-block+.drive-stage-rail-block {
  margin-top: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drive-stage-rail-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.35;
}

.drive-stage-rail-title--privacy {
  color: rgba(165, 214, 167, 0.95);
}

.drive-stage-rail-title--offline {
  color: rgba(100, 181, 246, 0.95);
}

.drive-stage-rail-title--lang {
  color: rgba(255, 204, 77, 0.92);
}

.drive-stage-rail-title--smart {
  color: rgba(206, 167, 248, 0.95);
}

.drive-stage-rail-sensors-label {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(180, 186, 210, 0.78);
}

.drive-stage-rail-list--dense {
  gap: 0.35rem;
}

.drive-stage-rail-list--dense li {
  font-size: 0.72rem;
  padding: 0.4rem 0.48rem;
  line-height: 1.4;
}

.drive-stage-rail-caption {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(160, 168, 186, 0.88);
}

.drive-stage-rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drive-stage-rail-list li {
  margin: 0;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(10, 12, 20, 0.45);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(220, 224, 235, 0.92);
}

.drive-stage-rail-em {
  font-weight: 800;
  color: rgba(129, 199, 132, 0.98);
  border-color: rgba(76, 175, 80, 0.35);
  background: rgba(56, 142, 60, 0.12);
}

.drive-stage-lang-chips.store-lang-chips {
  margin-top: 0.25rem;
  justify-content: flex-start;
}

@media (max-width: 1099px) {
  .drive-stage-lang-chips.store-lang-chips {
    justify-content: center;
  }
}

.drive-stage-lang-chips .store-lang-chip {
  padding: 6px 11px;
  font-size: 0.78rem;
}

.drive-phone-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.8vw, 20px);
  width: 100%;
  flex: 1;
  min-height: 0;
}

/* Narrow screens: hide map + phone mockup — marketing rails only */
@media (max-width: 899px) {
  .drive-phone-row {
    display: none;
  }
}

.demo-phone-close-full {
  display: none;
}

@media (min-width: 900px) {
  .drive-phone-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 3vw, 2rem);
    padding-top: 0;
  }

  .drive-phone-row .drive-sim {
    width: var(--demo-logical-width-px);
    max-width: 100%;
    flex-shrink: 0;
  }

  /*
   * Phone size: percentage-based block height (stretch + height 100%) could zero out intrinsic size in some
   * browsers with container-type — frame uses vw/vh so the row stays side-by-side.
   */
  .drive-phone-row .landing-device-stack.landing-device-only {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    min-width: auto;
    min-height: 0;
    justify-content: center;
    align-items: center;
  }

  .drive-phone-row .landing-device-stack .iphone-shell {
    flex-shrink: 0;
    width: fit-content;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
  }
}

.drive-sim {
  width: 100%;
  max-width: min(460px, 94vw);
  flex-shrink: 0;
}

.drive-map-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: #c8daf0;
}

/* Leaflet — CARTO Voyager (color streets) */
.drive-leaflet-map {
  width: 100%;
  aspect-ratio: 440 / 956;
  min-height: 260px;
  border-radius: inherit;
  background: #d4e4f3;
  z-index: 1;
}

.drive-map-wrap .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: inherit;
  font-family: inherit;
  background: #d4e4f3;
  border-radius: inherit;
}

.drive-map-wrap .leaflet-tile-pane {
  filter: saturate(1.12) contrast(1.03);
}

.drive-map-wrap .leaflet-control-zoom {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 44px;
}

.drive-map-wrap .leaflet-control-zoom a {
  color: #1a1a2e;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.drive-map-wrap .leaflet-control-zoom a:last-child {
  border-bottom: none;
}

/* Left panel map — trip km at top, Recenter bottom-right */
.drive-map-hud-col {
  position: absolute;
  left: 50%;
  top: clamp(85px, 15vmin, 100px);
  transform: translateX(-50%);
  z-index: 1002;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 12px rgba(13, 61, 38, 0.22));
}

.drive-map-wrap .leaflet-control-scale {
  display: none;
}

.map-trip-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  padding: 5px 12px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(18, 34, 52, 0.88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.map-trip-pill-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(0.85rem, 3.2vmin, 1.05rem);
  color: #e3f0ff;
}

.map-trip-pill-unit {
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(200, 220, 245, 0.65);
}

.drive-map-recenter-btn {
  position: absolute;
  right: clamp(10px, 2.5vw, 18px);
  bottom: clamp(10px, 2.5vw, 22px);
  z-index: 1003;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg,
      rgba(56, 168, 110, 0.98) 0%,
      rgba(38, 132, 86, 0.99) 50%,
      rgba(28, 98, 64, 1) 100%);
  color: #f4fff8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.38);
  min-width: 118px;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
}

.drive-map-recenter-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.drive-map-recenter-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.drive-car {
  transition: none;
}

.drive-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1002;
  margin: 0;
  padding: 0.72rem 0.92rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(20, 24, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.drive-hud-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  min-width: 0;
}

.drive-hud-countdown {
  display: block;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: right;
  min-width: 5rem;
}

/* Single line: "5s" / "—" / "✓" */
.drive-hud-countdown .drive-countdown-display {
  display: inline-block;
  font-family: var(--font-display), system-ui, sans-serif;
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
}

.drive-hud-countdown.is-idle .drive-countdown-display {
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.28rem);
  color: rgba(255, 255, 255, 0.42);
}

.drive-hud-countdown.is-counting .drive-countdown-display {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(1.2rem, 3.6vw, 1.65rem);
}

.drive-hud-bar-hint {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: clamp(0.7rem, 2.1vw, 0.82rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: left;
}

.drive-hud-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.drive-hud-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ff8a7a);
  transition: width 0.12s linear;
}

.landing-device-only {
  flex-shrink: 0;
  width: fit-content;
  max-width: 100%;
}

.landing-device-only .iphone-shell {
  margin-bottom: 0;
  margin-inline: auto;
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: clamp(38px, 10vw, 52px);
  padding: 2px;
  background: linear-gradient(148deg, #35363f 10%, #0b0c10 54%, #222027 94%);
  overflow: hidden;
}

.landing-device-only .iphone-inner {
  border-radius: clamp(34px, 9.2vw, 48px);
}

.landing-device-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-device-stack .device-badge {
  margin-bottom: 0.35rem;
}

.landing-device-stack .demo-store-link {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.landing-hero-copy {
  text-align: center;
  padding: 0 clamp(0.75rem, 2vw, 1rem) clamp(2rem, 5vw, 3rem);
  max-width: 52rem;
  margin: 0 auto;
}

.landing-hero-copy .kicker {
  margin-bottom: 0.85rem;
}

.landing-hero-copy .display {
  margin-bottom: 1.1rem;
}

.landing-hero-copy .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 44ch;
}

.demo-cycle {
  display: flex;
  flex-direction: column;
}

.demo-section .demo-block-intro {
  margin-top: 0;
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
  border-top: 1px solid var(--line);
}

.demo-explainer-wide {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-size: clamp(2.4rem, 8vw, 4.75rem);
}

.display span {
  display: block;
}

.d2 {
  color: var(--muted);
  font-weight: 500;
}

.d3 {
  color: var(--accent);
}

.lead {
  max-width: 36ch;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.ghost-link {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.ghost-link:hover {
  color: var(--accent);
}

/* Ticker */
.ticker-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.ticker {
  display: flex;
  gap: 3rem;
  padding: 0.85rem 0;
  width: max-content;
  animation: scroll 32s linear infinite;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticker span {
  white-space: nowrap;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 1rem 2rem;
  }
}

/* Blocks */
.block {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2rem);
}

.demo-section.block.drive-stage {
  padding: var(--stage-vpad) var(--hdr-pad-x) clamp(12px, 2vw, 20px);
}

.block-h {
  margin-bottom: 2.5rem;
  max-width: 36ch;
}

.block-h h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.block-h p {
  margin: 0;
  color: var(--muted);
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rows li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

@media (min-width: 640px) {
  .rows li {
    grid-template-columns: 64px 1fr;
  }
}

.rows .n {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.2rem;
}

.rows h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.rows p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.block-dark {
  background: #0c0c0c;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
}

.block-dark .block-h,
.block-dark .spec,
.block-dark .note {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

.block-dark .block-h {
  margin-bottom: 2rem;
}

.spec {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .spec {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.spec strong {
  color: var(--fg);
  font-weight: 700;
  margin-right: 0.35rem;
}

.note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52ch;
}

.privacy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.privacy blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 48ch;
  position: relative;
}

.privacy blockquote::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 1.25rem;
}

/* Standalone legal pages (privacy policy, etc.) — disable scroll-snap from landing */
html.legal-html {
  scroll-snap-type: none;
}

body.legal-body {
  scroll-snap-type: none;
}

.legal-main {
  position: relative;
  z-index: 1;
  padding: calc(72px + env(safe-area-inset-top, 0px)) clamp(1.25rem, 4vw, 2rem) calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

.legal-sheet {
  max-width: 720px;
  margin: 0 auto;
}

.legal-sheet-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.legal-sheet-head h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal-lang-panel {
  padding: 1rem 0 1.25rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-lang-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(250, 250, 255, 0.96);
}

.legal-lang-caption {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(200, 206, 220, 0.88);
}

.legal-lang-chips.store-lang-chips {
  margin-top: 0;
  justify-content: flex-start;
}

.legal-updated {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.legal-lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: rgba(242, 242, 242, 0.92);
}

.legal-sheet h2 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
}

.legal-sheet h2:first-of-type {
  margin-top: 0;
}

.legal-sheet h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.legal-sheet p {
  margin: 0 0 1rem;
  color: rgba(242, 242, 242, 0.88);
}

.legal-list {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
  color: rgba(242, 242, 242, 0.88);
}

.legal-list li {
  margin-bottom: 0.45rem;
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-mail {
  color: #90caf9;
  font-weight: 600;
  text-decoration: none;
}

.legal-mail:hover {
  text-decoration: underline;
}

/* Support page */
.support-section {
  margin-top: 2rem;
}

.support-section:first-of-type {
  margin-top: 0;
}

.support-h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.support-p {
  margin: 0 0 0.65rem;
  color: rgba(242, 242, 242, 0.88);
}

.support-p:last-child {
  margin-bottom: 0;
}

.support-faq-card {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.support-qa {
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(242, 242, 242, 0.9);
}

.support-qa:last-child {
  margin-bottom: 0;
}

.support-label {
  display: inline-block;
  min-width: 1.35rem;
  margin-right: 0.35rem;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  vertical-align: top;
}

.support-copy {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.cta-band {
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta-q {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

.ftr {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.ftr a {
  color: var(--fg);
  font-weight: 600;
}

/* —— App demo • iPhone‑proportion frame —— */

.demo-section {
  border-top: 1px solid var(--line);
}

.device-badge {
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.iphone-shell {
  position: relative;
  margin: 0 auto;
  max-width: min(calc(var(--demo-logical-width-px) + 20px), 100%);
  border-radius: 52px;
  padding: 3px;
  background: linear-gradient(145deg, #3f3f47 10%, #0c0c0e 52%, #2a282b 94%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 52px 100px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.06);
  /* Content-width scale may overshoot a few px; clipping happens on the rounded frame */
  overflow: hidden;
}

.iphone-glass-start,
.iphone-glass-end {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .demo-view {
    transition: none;
  }

  .heatmap-path {
    transition-duration: 0.001ms;
  }

  .heatmap-path.heatmap-path--draw {
    stroke-dashoffset: 0 !important;
  }
}

.iphone-inner {
  position: relative;
  overflow: hidden;
  border-radius: 48px;
  background: var(--app-surface);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  /* 17 Pro Max logical size — no viewport/max-height shrink here; scale = 1 */
  width: var(--demo-logical-width-px);
  height: var(--demo-logical-height-px);
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  --demo-device-scale: 1;
}

.demo-device-scale-outer {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  position: relative;
  background: var(--app-surface);
  /* When scale shrinks with height, side “letterbox” stays on the same surface */
  overflow: visible;
}

.demo-device-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  box-sizing: border-box;
  width: var(--demo-logical-width-px);
  height: var(--demo-logical-height-px);
  transform: translateX(-50%) scale(var(--demo-device-scale, 1));
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--app-surface);
  border-radius: inherit;
}

/* Notch sits slightly inset from the top inside the mockup (Dynamic Island); time/battery at the edges */
.iphone-inner .demo-statusbar {
  padding: 13px 22px 10px;
}

.demo-statusbar {
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 7px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--app-surface);
}

/* Island is not in the flex flow; two side-by-side flex:1 children would push time & battery to the middle — on device they stay at the edges */
.demo-time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.demo-island-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.iphone-island {
  display: block;
  width: 118px;
  height: 34px;
  border-radius: 22px;
  background: #14141f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.demo-sb-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: #c4c4c7;
}

.demo-battery {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-variant-numeric: tabular-nums;
}

.demo-toast {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 48px;
  z-index: 90;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 7px 10px 7px 7px;
  border-radius: 18px;
  background: rgba(250, 250, 252, 0.78);
  backdrop-filter: blur(40px) saturate(1.55);
  -webkit-backdrop-filter: blur(40px) saturate(1.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.14),
    0 3px 8px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: translateY(-130%) scale(0.96);
  opacity: 0;
  transition:
    transform 0.55s var(--ease),
    opacity 0.45s var(--ease);
  pointer-events: none;
  /* .landing-device-stack { text-align: center } inheritance — toast content stays left-aligned */
  text-align: left;
}

.demo-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.demo-toast-main {
  flex: 1;
  min-width: 0;
  padding-top: 0;
  text-align: left;
}

.demo-toast-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.demo-toast-title {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0a0a0b;
}

.demo-toast-time {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 500;
  color: #8e8e93;
  line-height: 1.2;
  padding-top: 0.06rem;
}

.demo-toast-sub {
  margin: 0.12rem 0 0;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.32;
  color: #1c1c1e;
}

.demo-pages {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--app-surface);
}

.demo-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.45s var(--ease);
  pointer-events: none;
  z-index: 0;
  background: var(--app-surface);
}

.demo-view.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}

.demo-page-inner {
  padding: 10px 16px calc(var(--demo-tab-clearance));
  max-width: 100%;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Break .landing-device-stack { text-align: center } — in-app copy is left-aligned */
  text-align: left;
}

.demo-page-inner::-webkit-scrollbar {
  display: none;
}

.demo-view[data-demo-view="history"] .demo-page-inner {
  background: linear-gradient(161deg, #12121c 0%, #1a1a2e 48%, #1e1e2e 100%);
}

.demo-view-map.demo-view {
  padding: 0;
  overflow: hidden;
}

.demo-view-map.demo-view>.demo-live-map {
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  padding-bottom: var(--demo-tab-clearance);
}

.demo-live-map--map-tab {
  flex-direction: column;
}

.demo-embedded-map-root {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.demo-map-tab-desktop-note {
  margin: 0;
  max-width: 18rem;
  padding: 1.5rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 899px) {
  .demo-embedded-map-root {
    display: flex;
  }

  .demo-map-tab-desktop-note {
    display: none;
  }

  .demo-live-map--map-tab {
    padding: 0;
    padding-bottom: var(--demo-tab-clearance);
  }

  .demo-embedded-map-root .drive-map-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .demo-embedded-map-root .drive-leaflet-map {
    flex: 1 1 auto;
    min-height: 200px;
    aspect-ratio: unset;
    border-radius: 0;
  }

  .demo-embedded-map-root .drive-hud-bar-hint {
    font-size: clamp(0.62rem, 2.6vw, 0.72rem);
  }

  .demo-tab-track {
    min-height: 60px;
    max-height: none;
  }

  .demo-tab {
    min-height: 54px;
    padding: 10px 4px 6px;
  }

  .demo-tab-label {
    font-size: 10px;
  }
}

@media (min-width: 900px) {
  .demo-live-map--map-tab {
    align-items: center;
    justify-content: center;
  }
}

.demo-page-inner--dash {
  padding-top: 10px;
}

.mono {
  font-variant-numeric: tabular-nums;
}

.demo-dp-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.demo-dp-title {
  margin: 0;
  padding-top: 0;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
  color: #ffffff;
}

.demo-trip-status-chip.demo-pill-rec {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 2px;
  padding: 5px 10px;
  margin-top: 3px;
  margin-bottom: 2px;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.demo-trip-status-chip.demo-pill-rec:not(.is-live) {
  background-color: rgba(239, 83, 80, 0.12);
  border-color: rgba(239, 83, 80, 0.38);
  color: #ef9a9a;
}

.demo-trip-status-chip.demo-pill-rec:not(.is-live) .demo-status-dot {
  width: 8px;
  height: 8px;
  background: #ef5350 !important;
  box-shadow: none !important;
  animation: none !important;
}

.demo-trip-status-chip.demo-pill-rec.is-live {
  background-color: rgba(76, 175, 80, 0.16);
  border-color: rgba(76, 175, 80, 0.45);
  color: #a5d6a7;
}

.demo-trip-status-chip.demo-pill-rec.is-live .demo-status-dot {
  background: #4caf50 !important;
  animation: trip-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes trip-dot-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.45);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }
}

.demo-ts-car {
  display: none;
}

.demo-dp-profile-card {
  position: relative;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  background-color: var(--app-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2px;
}

.demo-dp-profile-accent {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: auto;
  height: 3px;
  margin: 0;
  opacity: 1;
  border-radius: 0;
  background: linear-gradient(90deg,
      rgba(76, 175, 80, 0.85) 0%,
      rgba(129, 199, 132, 0.35) 55%,
      transparent 100%);
}

.demo-dp-trip-status-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -4px;
  margin-bottom: 14px;
}

.demo-dp-trip-status-row .demo-trip-status-chip.demo-pill-rec {
  margin-top: 0;
  margin-bottom: 0;
}

.demo-dp-profile-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 14px 14px 15px;
}

.demo-dp-rank-ring {
  padding: 3px;
  border-radius: 44px;
  border: 1px solid rgba(76, 175, 80, 0.35);
  background-color: rgba(76, 175, 80, 0.06);
  flex-shrink: 0;
}

.demo-dp-rank-circle {
  width: 70px;
  height: 70px;
  border-radius: 35px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  text-align: center;
  padding: 0 4px;
}

.demo-dp-profile-meta {
  flex: 1;
  min-width: 0;
}

.demo-dp-profile-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.demo-dp-profile-sub {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.demo-dp-progress-track {
  margin-top: 0;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.demo-dp-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a5d6a7, #43a047);
}

.demo-dp-progress-foot {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.demo-dp-pct-pill {
  font-size: 12px;
  font-weight: 700;
  color: #a5d6a7;
  background: rgba(76, 175, 80, 0.18);
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.demo-ad-slot {
  position: relative;
  border-radius: 12px;
  padding: 8px 10px;
}

.demo-ad-slot--light {
  background: rgba(245, 245, 247, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #0a0a0b;
}

.demo-test-mode-chip {
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translate(-50%, 0);
  z-index: 2;
  font-size: 0.56rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #050508;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.demo-ad-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.demo-ad-slot-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.demo-ad-brand {
  font-size: 0.74rem;
  font-weight: 800;
}

.demo-ad-line {
  font-size: 0.62rem;
  color: rgba(0, 0, 0, 0.5);
}

.demo-ad-open-btn {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.7);
}

.demo-dp-feature-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background-color: var(--app-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-dp-mini-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.demo-dp-mini-ico.purple {
  background: rgba(186, 104, 200, 0.2);
}

.demo-dp-mini-ico.green {
  background: rgba(76, 175, 80, 0.2);
}

.demo-dp-mini-ico.blue {
  background: rgba(66, 165, 245, 0.22);
}

button.demo-mobile-open-map {
  display: none;
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 899px) {
  button.demo-mobile-open-map {
    display: flex;
  }
}

.demo-dp-feature-copy {
  flex: 1;
  min-width: 0;
}

.demo-dp-ft-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.demo-dp-ft-hint {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.demo-dp-chev {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 6px;
}

.demo-dp-stats-stack {
  border-radius: 16px;
  background-color: var(--app-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.demo-dp-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 14px;
}

.demo-dp-stats-row-border {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-dp-slabel {
  display: flex;
  align-items: center;
  gap: 0;
  color: rgba(255, 255, 255, 0.72);
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.demo-dp-ic {
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.demo-dp-ic.green {
  background: rgba(76, 175, 80, 0.2);
}

.demo-dp-ic.amber {
  background: rgba(255, 193, 7, 0.18);
}

.demo-dp-ic-wallet {
  background: rgba(129, 199, 132, 0.22);
}

.demo-dp-sval {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-align: right;
  flex-shrink: 0;
}

.demo-money {
  color: #a5d6a7 !important;
}

.demo-dp-quick-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.demo-dp-chip-btn {
  flex: 1;
  min-height: 56px;
  border-radius: 16px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--app-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.12);
}

.demo-chips-garage {
  border-color: rgba(76, 175, 80, 0.28);
}

.demo-chips-fuel {
  border-color: rgba(255, 255, 255, 0.1);
}

.demo-dp-chip-k {
  font-size: 13px;
  font-weight: 700;
}

.demo-dp-chip-h {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.demo-dash-info-section {
  margin: 0 0 10px;
  background-color: #232336;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.demo-dash-track-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 14px;
}

.demo-dash-track-row--ruled {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-dash-track-copy {
  flex: 1;
  min-width: 0;
  margin-right: 10px;
}

.demo-dash-info-heading {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.demo-dash-track-row .demo-dash-info-heading {
  margin-bottom: 4px;
}

.demo-dash-info-sub {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.52);
}

.demo-dash-tracking-note {
  padding: 0 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-dash-tracking-note p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 17px;
  color: rgba(255, 255, 255, 0.48);
}

.demo-dash-notif-ico-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-right: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background-color: rgba(255, 204, 188, 0.16);
}

.demo-dash-ion-bell {
  width: 16px;
  height: 16px;
  border-radius: 10px 10px 2px 2px;
  border: 2px solid rgba(255, 204, 188, 0.95);
  box-sizing: border-box;
  border-bottom-width: 0;
  margin-top: 1px;
  position: relative;
}

.demo-dash-ion-bell::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 204, 188, 0.9);
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.demo-dash-section-caption {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.4px;
  padding: 16px 14px 10px;
  text-align: left;
}

.demo-dash-info-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-dash-info-row--last {
  border-bottom: none;
}

.demo-dash-ico-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.demo-dash-ico-wrap--lime {
  background-color: rgba(76, 175, 80, 0.14);
}

.demo-dash-ico-wrap--blue {
  background-color: rgba(33, 150, 243, 0.14);
}

.demo-dash-ico-wrap--green {
  background-color: rgba(129, 199, 132, 0.14);
}

.demo-dash-ico-wrap--amber {
  background-color: rgba(255, 152, 0, 0.14);
}

.demo-dash-ico-wrap--gold {
  background-color: rgba(255, 193, 7, 0.12);
}

.demo-dash-ico-wrap--violet {
  background-color: rgba(156, 39, 176, 0.14);
}

.demo-dash-info-text-col {
  margin-left: 12px;
  flex: 1;
  min-width: 0;
}

.demo-dash-info-text-col .demo-dash-info-heading {
  margin-bottom: 4px;
}

.demo-dash-info-follow {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.52);
}

.demo-dash-ion-speed {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #66bb6a;
  box-sizing: border-box;
}

.demo-dash-ion-cloud {
  width: 18px;
  height: 12px;
  border-radius: 10px;
  background: radial-gradient(circle at 33% 40%, transparent 43%, #64b5f6 44%, #64b5f6 100%);
  opacity: 0.95;
}

.demo-dash-ion-shield {
  width: 14px;
  height: 16px;
  border-radius: 3px;
  border: 2px solid #81c784;
}

.demo-dash-ion-sun {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ffb74d;
  box-sizing: border-box;
}

.demo-dash-ion-cal {
  width: 16px;
  height: 15px;
  border-radius: 3px;
  border: 2px solid #ffd54f;
  box-sizing: border-box;
}

.demo-dash-ion-trophy {
  width: 13px;
  height: 9px;
  border: 2px solid #ba68c8;
  border-radius: 2px 2px 0 0;
  border-bottom: 0;
  margin-top: 2px;
  position: relative;
}

.demo-dash-ion-trophy::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: -1px;
  right: -1px;
  height: 5px;
  border: 2px solid #ba68c8;
  border-radius: 0 0 3px 3px;
  border-top: 0;
}

.demo-switch-visual {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 16px;
  background: #4caf50;
}

.demo-switch-visual::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #f4f3f4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.demo-switch-visual--off {
  background: #767577;
}

.demo-switch-visual--off::after {
  right: auto;
  left: 2px;
}

.demo-switch-ios {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.demo-sr-muted {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.demo-hscreen-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: #fafafa;
}

.demo-hscreen-title--history {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  text-align: center;
}

.demo-hscreen-sub {
  margin: 2px 0 0;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.5);
}

.demo-hscreen-sub--history {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: capitalize;
  text-align: center;
}

.demo-hist-toolbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 42px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.demo-hist-toolbar>div:first-child {
  flex: 1;
  text-align: center;
  padding: 0 4px;
  max-width: 100%;
}

.demo-info-glyph {
  position: absolute;
  right: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: rgba(129, 199, 132, 0.85);
  background: rgba(129, 199, 132, 0.12);
  border: 1px solid rgba(129, 199, 132, 0.25);
}

.demo-history-day-card {
  margin-top: 6px;
  position: relative;
  border-radius: 16px;
  padding: 16px 16px 16px 20px;
  margin-bottom: 12px;
  background: rgba(36, 36, 52, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.demo-day-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #4caf50;
}

.demo-day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.demo-day-label {
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.76);
}

.demo-dist-pill {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 8px 12px;
  border-radius: 12px;
  color: #a5d6a7;
  background: rgba(76, 175, 80, 0.18);
  border: 1px solid rgba(129, 199, 132, 0.35);
}

.demo-movement-panel {
  padding: 8px;
  border-radius: 11px;
  background: rgba(12, 12, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.demo-mp-head {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.demo-mp-pin {
  font-size: 0.74rem;
  color: rgba(165, 214, 167, 0.85);
}

.demo-mp-title {
  flex: 1;
  font-size: 0.66rem;
  font-weight: 700;
}

.demo-mp-duration {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.45);
}

.demo-mp-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.53rem;
  font-weight: 700;
}

.demo-hist-move-lab {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-mp-block+.demo-mp-block {
  margin-top: 6px;
}

.demo-mp-val {
  margin-top: 3px;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
}

.muted {
  color: rgba(255, 255, 255, 0.45);
}

.caps {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sm {
  font-size: 0.58rem;
}

.demo-hist-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 7px;
}

.demo-hmini {
  border-radius: 10px;
  padding: 6px 5px;
  background: rgba(16, 16, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.hmini-i {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.hmini-k {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
}

.hmini-v {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  margin-top: 2px;
}

.hmini-v.blue {
  color: #90caf9;
}

.hmini-v.green {
  color: #a5d6a7;
}

.demo-hist-vehicle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(10, 10, 14, 0.45);
}

.demo-hist-foot {
  margin: 12px 0 8px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.45);
}

.demo-live-map {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #1e1e2e;
}

.demo-osm-lite {
  display: block;
  width: 100%;
  flex: 1;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.demo-map-hud-col {
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 12px rgba(13, 61, 38, 0.22));
}

.demo-map-center-btn {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg,
      rgba(56, 168, 110, 0.98) 0%,
      rgba(38, 132, 86, 0.99) 50%,
      rgba(28, 98, 64, 1) 100%);
  color: #f4fff8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.38);
  min-width: 118px;
  justify-content: center;
}

.demo-map-pin-mark {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(180deg, #e53935, #b71c1c);
  transform: rotate(-45deg);
  margin-right: -1px;
  flex-shrink: 0;
}

.demo-lb-you-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  margin-top: 5px;
  border-radius: 14px;
  background: rgba(28, 30, 42, 0.85);
}

.demo-lb-you-rank {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.08);
}

.demo-lb-you-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.demo-lb-you-km {
  font-size: 0.74rem;
  font-weight: 800;
  color: rgba(143, 224, 160, 0.95);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.2);
}

.demo-lb-tags {
  margin: 7px 0 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.demo-lb-tags .pill {
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.demo-lb-periods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 4px;
  margin-bottom: 8px;
  border-radius: 11px;
  background: rgba(16, 16, 24, 0.75);
}

.demo-lb-periods span {
  text-align: center;
  font-size: 0.58rem;
  padding: 5px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.4);
}

.demo-lb-periods .is-on {
  font-weight: 800;
  color: #eaf9ec;
  background: rgba(56, 142, 60, 0.35);
}

.demo-lb-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-lbc {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  padding: 8px;
  align-items: start;
  border-radius: 12px;
  background: rgba(24, 24, 40, 0.55);
}

.demo-lbc .rkmed {
  grid-row: 1 / span 2;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.demo-lbc-middle {
  min-width: 0;
}

.demo-lbc-nm {
  font-size: 0.74rem;
  font-weight: 700;
}

.demo-lbc-is-you {
  border: 1px solid rgba(76, 175, 80, 0.45);
  background: rgba(56, 142, 60, 0.12);
}

.demo-lbc .hilite {
  color: rgba(143, 224, 160, 0.95);
}

.demo-lbc .hilitekm {
  font-weight: 800;
  color: rgba(143, 224, 160, 0.95);
}

.demo-lbc-k {
  font-size: 0.62rem;
  font-weight: 700;
}

.demo-lbc-lvl {
  grid-column: 2 / -1;
}

/* —— Settings (SettingsScreen.js) —— */
.demo-page-inner--settings {
  padding-top: 4px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(12px + var(--demo-tab-clearance));
  text-align: left;
}

.demo-page-inner--settings .demo-ad-slot {
  text-align: left;
}

.demo-page-inner--settings .demo-ad-slot-text {
  text-align: left;
}

.demo-settings-hero {
  padding: 10px 0 11px;
  text-align: center;
}

.demo-settings-hero-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #f4f6fb;
  letter-spacing: -0.6px;
  text-align: center;
}

.demo-settings-hero-sub {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(138, 154, 176, 0.85);
  letter-spacing: 0.3px;
  text-align: center;
}

.demo-settings-section-cap {
  margin: 6px 0 10px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(138, 154, 176, 0.85);
  letter-spacing: 1.25px;
  text-align: left;
  text-transform: uppercase;
}

.demo-settings-card {
  margin: 0 0 22px;
  background-color: #222231;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.demo-settings-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 14px;
  background: transparent;
  gap: 0;
}

.demo-settings-row--danger {
  background-color: rgba(244, 67, 54, 0.06);
}

.demo-settings-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex-shrink: 0;
  margin-right: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: #e1bee7;
}

.demo-settings-icon--purple {
  background-color: rgba(156, 39, 176, 0.22);
}

.demo-settings-icon--green::before {
  content: "";
  width: 12px;
  height: 15px;
  border: 2px solid #a5d6a7;
  border-radius: 2px;
  box-sizing: border-box;
}

.demo-settings-icon--blue::before {
  content: "";
  width: 11px;
  height: 14px;
  border: 2px solid #90caf9;
  border-radius: 1px;
  box-sizing: border-box;
}

.demo-settings-icon--blue-light::before {
  content: "";
  width: 14px;
  height: 10px;
  border: 2px solid #90caf9;
  border-radius: 2px;
  box-sizing: border-box;
}

.demo-settings-icon--slate::before {
  content: "";
  width: 14px;
  height: 11px;
  border: 2px solid #cfd8dc;
  border-radius: 3px;
  box-sizing: border-box;
}

.demo-settings-icon--amber::before {
  content: "";
  width: 12px;
  height: 8px;
  border: solid #ffe0b2;
  border-width: 2px 0 2px 2px;
  margin-left: -2px;
}

.demo-settings-icon--red::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid #ffcdd2;
  border-radius: 2px;
  box-sizing: border-box;
}

.demo-settings-row-label {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: #eef1f7;
  text-align: left;
}

.demo-settings-row-label--danger {
  color: #ffab91;
}

.demo-settings-flag {
  font-size: 20px;
  margin-right: 8px;
  line-height: 1;
}

.demo-settings-chevron {
  flex-shrink: 0;
  margin-left: 4px;
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(138, 154, 176, 0.55);
}

.demo-settings-chevron--danger {
  color: rgba(239, 154, 154, 0.45);
}

.demo-settings-hair {
  height: 1px;
  margin-left: 70px;
  background-color: rgba(255, 255, 255, 0.07);
}

.demo-settings-footer-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(138, 154, 176, 0.85);
}

.demo-settings-footer-ico {
  font-size: 14px;
  opacity: 0.85;
}

.demo-page-inner--settings .demo-ad-slot {
  margin-bottom: 14px;
}

.demo-set-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-set-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(22, 24, 38, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-set-list li:last-child {
  border-bottom: none;
}

.demo-set-danger span:first-child {
  color: rgba(239, 68, 68, 0.88);
}

.demo-hist-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.55s var(--ease);
}

.demo-hist-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

.demo-page-title {
  margin: 0 0 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #71717a;
}

.demo-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-km-big {
  margin: 0.25rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 6.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.demo-km-lab {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: #71717a;
  letter-spacing: 0;
}

/* Phone mockup is large; vw is viewport-wide — cap this block with vmin */
.drive-phone-row .demo-km-big {
  font-size: clamp(1.4rem, 4.25vmin, 2.15rem);
}

.demo-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-tile {
  padding: 0.65rem 0.72rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-tile-wide {
  grid-column: 1 / -1;
}

.demo-t-lab {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #71717a;
  margin-bottom: 0.35rem;
}

.demo-t-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.demo-t-un {
  font-size: 0.64rem;
  color: #71717a;
  margin-left: 0.2rem;
}

.demo-micro-hint {
  margin-top: 0.85rem;
  font-size: 0.62rem;
  line-height: 1.35;
  color: #52525b;
}

.demo-seg-bar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #71717a;
}

.demo-seg-bar span {
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.demo-seg-bar .is-on {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fafafa;
  background: rgba(255, 255, 255, 0.05);
}

.demo-hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.demo-hist-card {
  padding: 0.82rem;
  border-radius: 14px;
  border: 1px solid rgba(250, 74, 61, 0.22);
  background: rgba(250, 74, 61, 0.05);
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 0.55s var(--ease),
    opacity 0.5s var(--ease);
}

.demo-hist-card.is-revealed {
  transform: none;
  opacity: 1;
}

.demo-h-badge {
  font-size: 0.62rem;
  color: #a1a1aa;
  margin-bottom: 0.42rem;
  letter-spacing: 0.04em;
}

.demo-h-route {
  font-weight: 700;
  margin-bottom: 0.42rem;
  font-size: 0.9rem;
}

.demo-h-route strong {
  padding: 0 0.3rem;
  color: var(--accent);
  font-weight: 800;
}

.demo-h-row {
  display: flex;
  gap: 0.85rem;
  font-size: 0.74rem;
  color: #a1a1aa;
}

.demo-h-mini {
  margin-top: 0.72rem;
  width: 100%;
  padding: 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #fafafa;
  font-size: 0.72rem;
  font-weight: 600;
}

.demo-hist-placeholder {
  font-size: 0.72rem;
  color: #3f3f46;
  padding: 0.5rem;
  text-align: center;
}

.demo-map-shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-map-svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.heatmap-path {
  transition: stroke-dashoffset 4.25s cubic-bezier(0.25, 0.82, 0.25, 1);
}

.heatmap-path--draw {
  stroke-dashoffset: 0 !important;
}

.demo-map-chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 8px;
  font-size: 0.58rem;
  line-height: 1.25;
  color: #a1a1aa;
  background: rgba(5, 5, 8, 0.65);
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
}

.demo-leader-board {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-leader-board li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
}

.demo-leader-board li:last-child {
  border-bottom: none;
}

.demo-leader-board .rk {
  font-weight: 800;
  color: #71717a;
  font-variant-numeric: tabular-nums;
}

.demo-leader-board .nm {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-leader-board .km {
  font-size: 0.68rem;
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
}

.demo-leader-board .is-you {
  background: rgba(250, 74, 61, 0.12);
  box-shadow: inset 3px 0 0 var(--accent);
}

.demo-leader-meta {
  margin: 0.75rem 0 0;
  font-size: 0.62rem;
  line-height: 1.4;
  color: #52525b;
}

/* FuelTabBar parity: #1E1E2E, top border #333, row 64px, safe-area below */
.demo-tabbar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #1e1e2e;
  border-top: 1px solid #333333;
  min-height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
}

.demo-tab-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1 0 64px;
  min-height: 64px;
  max-height: 64px;
}

.demo-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 4px 2px 2px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: #ffffff;
  transition: transform 0.2s var(--ease);
}

.demo-tab:focus {
  outline: none;
}

.demo-tab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: -2px;
}

.demo-tab.is-autotap {
  transform: scale(0.94);
}

.demo-tab:not(.is-active) {
  color: #ffffff;
}

.demo-tab.is-active {
  color: #4caf50;
}

.demo-tab-label {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.1;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.6),
    0 0 1px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 1px;
}

.demo-tab.is-active .demo-tab-label {
  color: #4caf50;
}

.demo-tab:not(.is-active) .demo-tab-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Ionicons ~26px — outline when inactive, filled when active (see app-demo.js TAB_ICONS) */
.tb-ico {
  width: 26px;
  height: 26px;
  position: relative;
  flex-shrink: 0;
  color: inherit;
}

/* ----- Speedometer ----- */
.tb-speedo-outline::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.tb-speedo-outline::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 8px;
  margin: -8px -1px 0 0;
  background: currentColor;
  border-radius: 1px;
  transform-origin: 50% calc(100% - 2px);
  transform: rotate(-118deg);
  opacity: 0.92;
}

.tb-speedo-solid::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: conic-gradient(transparent 0 56%,
      currentColor 56% 88%,
      transparent 88% 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
}

.tb-speedo-solid::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5px;
  height: 8px;
  margin: -8px -1.25px 0 0;
  background: currentColor;
  border-radius: 1px;
  transform-origin: 50% calc(100% - 2px);
  transform: rotate(-72deg);
  opacity: 0.98;
}

/* ----- Time ----- */
.tb-time-outline::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.tb-time-outline::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: 50% calc(100% - 1px);
  transform: rotate(12deg);
}

.tb-time-solid::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: radial-gradient(circle at 50% 55%, currentColor 0 2px, transparent 3px);
}

.tb-time-solid::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 2.5px;
  height: 7px;
  margin-left: -1.25px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: 50% calc(100% - 1px);
  transform: rotate(12deg);
}

/* ----- Map ----- */
.tb-map-outline::before {
  content: "";
  position: absolute;
  inset: 4px 3px 4px 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.tb-map-outline::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 9px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 0 0;
  border-bottom: none;
  opacity: 0.85;
}

.tb-map-solid::before {
  content: "";
  position: absolute;
  inset: 4px 3px 4px 3px;
  border-radius: 4px;
  background: linear-gradient(168deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 45%,
      transparent 70%);
  border: 2px solid currentColor;
}

.tb-map-solid::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 9px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 0 0;
  border-bottom: none;
  background: rgba(255, 255, 255, 0.12);
}

/* ----- Trophy ----- */
.tb-trophy-outline::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 3px 3px 0 0;
  border-bottom: none;
}

.tb-trophy-outline::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 9px;
  height: 6px;
  margin-left: -4.5px;
  border: 2px solid currentColor;
  border-radius: 0 0 3px 3px;
  border-top: none;
}

.tb-trophy-solid::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 9px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid currentColor;
  border-radius: 3px 3px 0 0;
}

.tb-trophy-solid::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 9px;
  height: 6px;
  margin-left: -4.5px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid currentColor;
  border-radius: 0 0 3px 3px;
}

/* ----- Settings (gear) ----- */
.tb-settings-outline::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.tb-settings-outline::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: radial-gradient(currentColor 1.2px, transparent 1.5px),
    radial-gradient(circle at 50% -1px, currentColor 0 1.75px, transparent 2.25px),
    radial-gradient(circle at 88% 30%, currentColor 0 1.75px, transparent 2.25px),
    radial-gradient(circle at 71% 84%, currentColor 0 1.75px, transparent 2.25px),
    radial-gradient(circle at 29% 84%, currentColor 0 1.75px, transparent 2.25px),
    radial-gradient(circle at 12% 30%, currentColor 0 1.75px, transparent 2.25px);
}

.tb-settings-solid::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: conic-gradient(currentColor 0 10%,
      transparent 10% 18%,
      currentColor 18% 28%,
      transparent 28% 36%,
      currentColor 36% 46%,
      transparent 46% 54%,
      currentColor 54% 64%,
      transparent 64% 72%,
      currentColor 72% 82%,
      transparent 82% 90%,
      currentColor 90% 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
}

.tb-settings-solid::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--app-surface);
  border: 1.5px solid currentColor;
}

.iphone-home-indicator {
  display: block;
  width: 34%;
  height: 5px;
  margin: 6px auto 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.demo-finger {
  position: absolute;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 72%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 110;
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.demo-finger.isShown {
  opacity: 1;
  transform: scale(1);
}

.demo-store-link {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  text-decoration: none;
}

.demo-explainer .demo-caption-step {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.demo-explainer .demo-caption-head {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.demo-explainer .demo-caption-body {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.demo-note {
  margin: 0;
  font-size: 0.82rem;
  color: #52525b;
  line-height: 1.45;
}

/* html:not(.js) — JS disabled */
html:not(.js) .ticker {
  animation: none;
}

/* —— Landing (marketing home) —— */
body.landing-page-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.landing-page-body #main {
  flex: 1;
}

.landing-page-grid {
  opacity: 0.42;
}

.landing-hero {
  padding:
    clamp(32px, 5vw, 48px) max(22px, env(safe-area-inset-right)) clamp(72px, 10vh, 100px) max(22px, env(safe-area-inset-left));
  margin: 0 auto;
}

.landing-hero-grid {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3rem);
  max-width: min(1300px, 100%);
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .landing-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 44%);
    gap: clamp(2.5rem, 4vw, 3.5rem);
  }
}

/* Mobil / dar: animasyonlu harita blok önce — metin alta */
@media (max-width: 899px) {
  body.landing-page-body .landing-hero-visual {
    order: -1;
  }

  body.landing-page-body .landing-hero-grid {
    gap: clamp(1.25rem, 4.2vw, 1.85rem);
  }

  body.landing-page-body .landing-hero {
    padding-top: clamp(14px, 3.5vw, 28px);
  }
}

.landing-hero-inner {
  max-width: min(920px, 100%);
  min-width: 0;
  position: relative;
  z-index: 10;
}

/* Landing hero: local splash only (no App Store CDN thumbnails on index) */
.landing-hero-visual {
  width: 100%;
  max-width: min(440px, 100%);
  margin-inline: auto;
  position: relative;
  z-index: 0;
}

@media (min-width: 900px) {
  .landing-hero-visual {
    margin-inline-start: auto;
    margin-inline-end: 0;
    width: 100%;
    max-width: 640px;
    margin-left: 0;
  }
}

/* Landing hero görseli: repo assets/driver-splash-real.png ile aynı (1024×1024 splash art, web’de kopya) */
.landing-hero-splash {
  margin: 0;
  border-radius: clamp(16px, 2.5vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 15, 22, 0.98);
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.04) inset,
    0 28px 56px rgba(0, 0, 0, 0.52);
  aspect-ratio: 1;
}

.landing-hero-splash img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* --- Premium Map Styling --- */
.premium-map-container {
  position: relative;
  /* Override default splash styles to make it blend seamlessly */
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.premium-map-bg,
.premium-map-overlay {
  /* Apply a radial gradient mask to fade the edges to transparent */
  mask-image: radial-gradient(circle at 50% 50%, black 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 55%, transparent 100%);
}

.premium-map-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.premium-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.route-line-glow {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawRoute 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.route-line-anim {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawRoute 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawRoute {
  to {
    stroke-dashoffset: 0;
  }
}

.pulse-ring {
  transform-origin: center;
  animation: pulseAnim 2s infinite ease-out;
}

.pulse-origin {
  transform-origin: 640px 700px;
}

.pulse-dest {
  transform-origin: 340px 220px;
  animation-delay: 1s;
}

@keyframes pulseAnim {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.map-label {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: fadeInLabel 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.map-label-origin {
  top: 71%;
  left: 62.5%;
  animation-delay: 0.2s;
}

.map-label-dest {
  bottom: 80%;
  left: 33.2%;
  animation-delay: 3s;
}

@keyframes fadeInLabel {
  from {
    opacity: 0;
    transform: translate(-50%, 15px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.map-label-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 16, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.label-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
  flex-shrink: 0;
}

.origin-dot {
  color: #4caf84;
  background: #4caf84;
}

.dest-dot {
  color: #38bdf8;
  background: #38bdf8;
}

.label-text {
  display: flex;
  flex-direction: column;
}

.label-text strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font-display, inherit);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.label-text span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
}

.landing-kicker {
  margin: 0 0 0.7rem;
  font-family: var(--font-body);
  font-size: clamp(0.76rem, 0.92vw + 0.62rem, 0.865rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(229, 210, 172, 0.92);
}

.landing-title {
  margin: 0 0 clamp(14px, 2.2vw, 22px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw + 1rem, 3.42rem);
  line-height: 1.045;
  letter-spacing: -0.046em;
  color: rgba(253, 252, 255, 0.99);
  text-wrap: balance;
}

.landing-lead {
  margin: 0 0 clamp(28px, 4vw, 38px);
  max-width: 54ch;
  font-size: clamp(1.04rem, 0.62vw + 0.93rem, 1.26rem);
  line-height: 1.62;
  color: rgba(182, 198, 216, 0.97);
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 13px;
  margin-bottom: clamp(28px, 4vw, 38px);
}

.landing-cta-demo.btn-ios {
  font-weight: 800 !important;
  border-radius: 999px !important;
}

.landing-cta-download.btn-ios {
  font-weight: 700 !important;
  border-radius: 999px !important;
}

.landing-cta-micro {
  margin: 0 0 clamp(30px, 4.2vw, 44px);
  font-size: 0.86rem;
  line-height: 1.42;
  color: rgba(150, 168, 190, 0.96);
  max-width: 48ch;
}

.landing-pillars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.landing-pillar {
  padding: clamp(14px, 2.1vw, 19px) clamp(17px, 2.9vw, 22px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
  font-size: 0.932rem;
  line-height: 1.53;
  color: rgba(200, 212, 228, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.landing-lang {
  margin-top: auto;
  padding: 32px max(22px, env(safe-area-inset-right)) 40px max(22px, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-lang-inner {
  margin: 0 auto;
  max-width: min(1300px, 100%);
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.landing-lang-chips-wrap {
  min-width: 0;
  justify-self: start;
}

.landing-lang-inner .landing-lang-chips.store-lang-chips {
  justify-content: flex-start;
  margin-top: 0;
}

.landing-lang-support {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 768px) {
  /* Mobil: Destek üst bardaki sheet’te — dil şeridindeki tekrar kaldırıldı */
  .landing-page-body .landing-lang-support {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .landing-lang-inner {
    grid-template-columns: 1fr;
  }

  .landing-lang-chips-wrap {
    justify-self: stretch;
  }

  .landing-lang-support {
    justify-self: end;
  }
}

.landing-lang-heading {
  margin: 0 0 0.42rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.06rem, 1.1vw + 0.93rem, 1.38rem);
  letter-spacing: -0.02em;
}

.landing-lang-caption {
  margin: 0 0 1.05rem;
  color: rgba(166, 184, 204, 0.94);
  font-size: 0.935rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .hdr .btn-ios.btn-nav-demo.nav-desktop-demo-current {
    border-color: rgba(229, 210, 172, 0.55);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.1) inset,
      0 0 0 1px rgba(0, 0, 0, 0.22),
      0 0 0 3px rgba(218, 198, 160, 0.35),
      0 12px 32px rgba(0, 0, 0, 0.36);
  }
}

/* —— Web heat map: tam ekran + yüzen panel —— */

/* Heat map viewer: desktop nav link only ≥900px (phones/tablets omit) */
.hdr .nav-desktop-heatmap {
  display: none !important;
}

@media (min-width: 900px) {
  .hdr .nav-desktop-heatmap {
    display: inline-flex !important;
  }

  .hdr .btn-ios.btn-nav-heatmap.nav-desktop-heatmap-current {
    border-color: rgba(229, 210, 172, 0.55);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.1) inset,
      0 0 0 1px rgba(0, 0, 0, 0.22),
      0 0 0 3px rgba(218, 198, 160, 0.35),
      0 12px 32px rgba(0, 0, 0, 0.36);
  }
}

body.heatmap-page-body {
  scroll-snap-type: none;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  background: #cdd5e2;
}

.heatmap-main {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: calc(72px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left));
}

.heatmap-embed-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

/* Gömülü: panel width:100% + yatay margin taşma yapıyordu; shell ortalar, çocuklar aynı genişlikte */
html.heatmap-embed-mode .heatmap-embed-shell {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.heatmap-embed-stage {
  position: relative;
  width: 100%;
  height: min(58vh, 640px);
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 18px 48px rgba(15, 22, 34, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

body.heatmap-basemap-dark .heatmap-embed-stage {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.heatmap-embed-stage:fullscreen {
  border-radius: 0;
  height: 100% !important;
  min-height: 100% !important;
  box-shadow: none;
}

.heatmap-embed-stage:fullscreen #heatmap-upload-map {
  border-radius: 0 !important;
}

.heatmap-fs-exit-btn {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 2000;
  box-sizing: border-box;
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(18, 22, 30, 0.88);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  color: rgba(248, 249, 252, 0.96);
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.16s ease;
}

/* Yalnızca tam ekranda (tarayıcı fullscreen veya sayfa üstü fallback) */
.heatmap-embed-stage:fullscreen .heatmap-fs-exit-btn:not([hidden]),
body.heatmap-fs-fallback .heatmap-embed-stage .heatmap-fs-exit-btn:not([hidden]) {
  display: inline-flex !important;
}

.heatmap-embed-stage:fullscreen .heatmap-fs-exit-btn:hover,
body.heatmap-fs-fallback .heatmap-embed-stage .heatmap-fs-exit-btn:hover {
  background: rgba(32, 38, 50, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
}

.heatmap-fs-exit-btn:focus-visible {
  outline: 2px solid rgba(218, 198, 160, 0.85);
  outline-offset: 3px;
}

body.heatmap-page-body:not(.heatmap-basemap-dark) .heatmap-embed-stage:fullscreen .heatmap-fs-exit-btn:not([hidden]),
body.heatmap-page-body:not(.heatmap-basemap-dark).heatmap-fs-fallback .heatmap-embed-stage .heatmap-fs-exit-btn:not([hidden]) {
  background: rgba(252, 253, 255, 0.92);
  color: rgba(22, 28, 40, 0.94);
  border-color: rgba(52, 64, 88, 0.22);
  box-shadow:
    0 10px 26px rgba(40, 55, 82, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.heatmap-page-body:not(.heatmap-basemap-dark) .heatmap-embed-stage:fullscreen .heatmap-fs-exit-btn:hover,
body.heatmap-page-body:not(.heatmap-basemap-dark).heatmap-fs-fallback .heatmap-embed-stage .heatmap-fs-exit-btn:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(52, 64, 88, 0.3);
}

/* Tam ekranda zoom ile çarpı çakışmasın */
.heatmap-embed-stage:fullscreen .leaflet-control-zoom,
body.heatmap-fs-fallback .heatmap-embed-stage .leaflet-control-zoom {
  margin-right: 56px !important;
}

body.heatmap-fs-fallback .heatmap-embed-stage {
  position: fixed;
  inset: 0;
  z-index: 250;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  border-radius: 0;
  box-shadow: none;
}

.heatmap-fs-map,
.heatmap-upload-map.heatmap-fs-map {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  z-index: 1;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: linear-gradient(165deg, #c5d0e2 0%, #9eb4ce 45%, #8aa3c4 100%) !important;
}

.heatmap-inline-panel.heatmap-fs-panel {
  width: 100%;
  max-width: 100%;
  margin-top: 1.15rem;
  box-sizing: border-box;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html.heatmap-embed-mode .heatmap-fs-hdr {
  display: none !important;
}

html.heatmap-embed-mode {
  min-height: 0;
  height: auto;
}

html.heatmap-embed-mode body.heatmap-page-body {
  min-height: 0 !important;
}

html.heatmap-embed-mode .heatmap-main {
  box-sizing: border-box;
  max-width: none;
  /* Harita satırı iframe genişliğine yapışsın; yalnızca güvenli alan */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

html.heatmap-embed-mode .heatmap-embed-stage {
  height: min(52vh, 560px);
  min-height: 260px;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Leaflet kökü: konteynır kenarında boşluk bırakma */
html.heatmap-embed-mode .heatmap-embed-stage .leaflet-container {
  margin: 0 !important;
  padding: 0 !important;
}

/* Harita ile aynı hat: yatay margin kullanma (100% + margin sağda kayma/taşma) */
html.heatmap-embed-mode .heatmap-inline-panel.heatmap-fs-panel {
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.15rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.heatmap-fs-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
}

/* İç atmosfer: tile üstünde, ısı canvas'ının altında (Leaflet overlay-pane z-index ~400'tür) */
body.heatmap-page-body .heatmap-fs-map.leaflet-container .heatmap-fs-atmosphere-pane {
  position: absolute;
  inset: 0;
}

body.heatmap-page-body .heatmap-fs-map.leaflet-container .heatmap-fs-atmosphere-inner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  transition: opacity 0.35s ease;
}

body.heatmap-page-body:not(.heatmap-basemap-dark) .heatmap-fs-map.leaflet-container .heatmap-fs-atmosphere-inner {
  opacity: 1;
  background-image:
    radial-gradient(ellipse 118% 85% at 50% -8%, rgba(255, 255, 255, 0.38), transparent 58%),
    radial-gradient(ellipse 72% 55% at 88% 8%, rgba(76, 175, 132, 0.09), transparent 52%),
    linear-gradient(to bottom,
      rgba(250, 252, 255, 0.42) 0%,
      rgba(250, 252, 255, 0) min(210px, 30vh),
      transparent 52%,
      rgba(148, 168, 198, 0.22) 100%);
}

body.heatmap-basemap-dark .heatmap-fs-map.leaflet-container .heatmap-fs-atmosphere-inner {
  opacity: 1;
  background-image:
    radial-gradient(ellipse 120% 92% at 50% -12%, rgba(4, 8, 16, 0.62), transparent 56%),
    radial-gradient(ellipse 58% 48% at 18% 22%, rgba(56, 189, 248, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 42% at 82% 12%, rgba(76, 175, 131, 0.11), transparent 50%),
    linear-gradient(to bottom, rgba(10, 14, 22, 0.5) 0%, rgba(10, 14, 22, 0) min(230px, 32vh), transparent 50%, rgba(10,
        12,
        18,
        0.52) 100%);
}

body.heatmap-basemap-dark.heatmap-page-body {
  background: #262b36;
}

body.heatmap-basemap-dark .heatmap-fs-map,
body.heatmap-basemap-dark .heatmap-upload-map.heatmap-fs-map {
  background: #1e222b !important;
}

/* Isı haritası panel başlığı: harita zemini seçici başlığın satırında, satır içi sona */
.heatmap-fs-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.heatmap-fs-title-row .heatmap-fs-title {
  flex: 1 1 auto;
  min-width: min(12rem, 100%);
}

.heatmap-fs-title-row .heatmap-fs-basemap-wrap {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  align-self: center;
  margin-inline-start: auto;
}

/* Harita zemini: iki küçük blok (açık / koyu), seçilen kenar ile vurgu — klasik anahtar yok */
.heatmap-fs-basemap-wrap .heatmap-basemap-segmented {
  display: inline-flex;
  overflow: visible;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

.heatmap-fs-basemap-wrap .heatmap-basemap-segmented:focus-within {
  box-shadow:
    0 0 0 2px rgba(218, 198, 160, 0.52),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

.heatmap-fs-basemap-wrap .heatmap-basemap-seg {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  min-width: 42px;
  width: 42px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition:
    opacity 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
}

.heatmap-basemap-seg--light {
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #fbfcfe 0%, #e9edf6 54%, #dde4f0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.heatmap-basemap-seg--dark {
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, #343b4c 0%, #171b24 52%, #0e1118 100%);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.heatmap-fs-basemap-wrap .heatmap-basemap-seg.is-active {
  opacity: 1;
  filter: saturate(1.08);
  z-index: 1;
  position: relative;
  box-shadow:
    inset 0 0 0 2px rgba(229, 210, 172, 0.78),
    0 8px 20px rgba(218, 198, 160, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.heatmap-fs-basemap-wrap .heatmap-basemap-seg:not(.is-active) {
  opacity: 0.46;
  filter: brightness(0.88);
}

.heatmap-fs-basemap-wrap .heatmap-basemap-seg:focus-visible {
  outline: 2px solid rgba(218, 198, 160, 0.75);
  outline-offset: 3px;
  z-index: 2;
}

body.heatmap-page-body .hdr.heatmap-fs-hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(229, 210, 172, 0.14);
  background: linear-gradient(180deg,
      rgba(12, 16, 26, 0.72) 0%,
      rgba(14, 18, 26, 0.48) 88%,
      rgba(22, 28, 40, 0.22) 100%),
    rgba(12, 16, 24, 0.38);
  backdrop-filter: saturate(162%) blur(22px);
  -webkit-backdrop-filter: saturate(162%) blur(22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 26px 64px rgba(0, 0, 0, 0.38);
}

body.heatmap-page-body:not(.heatmap-basemap-dark) .hdr.heatmap-fs-hdr {
  background: linear-gradient(180deg,
      rgba(246, 248, 252, 0.68) 0%,
      rgba(236, 240, 248, 0.42) 78%,
      rgba(226, 233, 244, 0.16) 100%),
    rgba(246, 248, 252, 0.28);
  border-bottom-color: rgba(76, 90, 118, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 0 rgba(60, 70, 90, 0.08),
    0 20px 50px rgba(40, 55, 82, 0.18);
}

body.heatmap-page-body:not(.heatmap-basemap-dark) .hdr.heatmap-fs-hdr .logo-t {
  color: rgba(26, 32, 44, 0.92);
}

body.heatmap-page-body:not(.heatmap-basemap-dark) .hdr.heatmap-fs-hdr .hdr-menu-toggle-bars span {
  background: rgba(32, 40, 54, 0.88);
}

body.heatmap-page-body:not(.heatmap-basemap-dark) .hdr.heatmap-fs-hdr .btn-ios.btn-ios--ghost {
  color: rgba(28, 36, 50, 0.9);
  border-color: rgba(52, 64, 88, 0.2);
}

body.heatmap-page-body:not(.heatmap-basemap-dark) .hdr.heatmap-fs-hdr .btn-ios.btn-ios--ghost:hover {
  border-color: rgba(52, 64, 88, 0.32);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(52, 64, 88, 0.08);
}

body.heatmap-page-body .heatmap-page-main {
  display: contents;
}

.heatmap-fs-panel {
  padding: clamp(18px, 2.8vw, 24px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(22, 27, 36, 0.72);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.heatmap-fs-panel-head {
  margin-bottom: 1rem;
}

.heatmap-fs-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.52rem);
  letter-spacing: -0.035em;
  line-height: 1.22;
  color: rgba(250, 250, 255, 0.98);
  text-wrap: balance;
}

.heatmap-fs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-bottom: 0;
}

.heatmap-fs-btn-primary {
  font-weight: 800 !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.015em !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 999px !important;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 14px 32px rgba(250, 74, 61, 0.2) !important;
}

.heatmap-fs-btn-secondary {
  border-radius: 999px !important;
}

.heatmap-fs-status--hint {
  margin: 0 0 11px !important;
}

.heatmap-fs-status {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(155, 170, 188, 0.95);
  line-height: 1.42;
  min-height: 1.35em;
}

/* Leaflet: zoom controls */
body.heatmap-page-body .leaflet-container {
  font-family: inherit;
}

body.heatmap-page-body .leaflet-bar,
body.heatmap-page-body .leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 12px;
  margin-top: 12px;
  margin-right: 12px !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

/* Zoom +/- yalnızca tam ekranda; küçük haritada gizli */
body.heatmap-page-body:not(.heatmap-fs-fallback) .heatmap-embed-stage:not(:fullscreen) .leaflet-control-zoom {
  display: none !important;
}

body.heatmap-fs-fallback .leaflet-control-zoom,
.heatmap-embed-stage:fullscreen .leaflet-control-zoom {
  margin-top: calc(12px + env(safe-area-inset-top));
}

body.heatmap-page-body .leaflet-control-zoom a {
  background-color: rgba(18, 22, 30, 0.88);
  color: rgba(245, 245, 248, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.heatmap-page-body .leaflet-control-zoom a:hover {
  background-color: rgba(30, 36, 48, 0.95);
  color: #fff;
}

body.heatmap-page-body .leaflet-bottom.leaflet-right .leaflet-control-attribution {
  margin: 0 !important;
  margin-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  margin-right: calc(10px + env(safe-area-inset-right)) !important;
  max-width: min(420px, calc(50vw - 20px));
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(253, 252, 250, 0.94);
  color: rgba(45, 50, 60, 0.88);
  font-size: 0.72rem;
  line-height: 1.38;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  display: none !important;
}

body.heatmap-page-body.heatmap-attribution-visible .leaflet-bottom.leaflet-right .leaflet-control-attribution {
  display: block !important;
}

body.heatmap-page-body .leaflet-control-attribution a {
  color: #1565c0;
  text-decoration: none;
}

body.heatmap-page-body .leaflet-control-attribution a:hover {
  text-decoration: underline;
}

/* —— Web login / account (Supabase Auth) —— */
.auth-sheet .legal-sheet-head h1 {
  margin-bottom: 0.35rem;
}

.auth-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(166, 184, 204, 0.94);
  max-width: 42ch;
}

.auth-error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 0.88rem;
  line-height: 1.4;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.25rem;
  max-width: 22rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(138, 154, 176, 0.92);
}

.auth-field input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f6fb;
  font: inherit;
  font-size: 1rem;
}

.auth-field input:focus {
  outline: 2px solid rgba(229, 210, 172, 0.55);
  outline-offset: 2px;
}

.auth-submit {
  margin-top: 0.25rem;
  align-self: flex-start;
  font-weight: 700 !important;
}

.auth-foot {
  margin-top: 1.75rem;
  font-size: 0.88rem;
}

.auth-foot a {
  color: rgba(229, 210, 172, 0.95);
}

.auth-stats {
  margin: 0.5rem 0 1.25rem;
  padding: 0;
  max-width: 24rem;
}

.auth-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-stat:last-child {
  border-bottom: none;
}

.auth-stat dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(166, 184, 204, 0.9);
}

.auth-stat dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f4f6fb;
  text-align: right;
}

.auth-signout {
  margin-top: 0.5rem;
}

/* Hesap özeti — masaüstü: legal-main üst dolgusu (72px) sıkılaştırılır; mobil hamburger bar yüksekliği aynı kalır */
@media (min-width: 769px) {
  body.account-page-body #main.legal-main {
    padding-top: calc(46px + env(safe-area-inset-top, 0px));
  }
}

/* —— Account dashboard (post-login) —— */
body.account-page-body .legal-sheet.account-dashboard {
  max-width: 640px;
}

.account-dashboard .legal-sheet-head {
  display: none;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.account-hero-emoji {
  flex-shrink: 0;
  width: 3.35rem;
  height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  line-height: 1;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(250, 74, 61, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.account-hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fafafa;
  word-break: break-word;
}

.account-section {
  margin-bottom: 2rem;
}

.account-section-title--trips {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.account-history-count {
  font-family: inherit;
  font-weight: 650;
  font-size: 0.86em;
  letter-spacing: 0.02em;
  color: rgba(188, 206, 228, 0.82);
  white-space: nowrap;
  unicode-bidi: isolate;
}

.account-section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(242, 242, 242, 0.96);
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .account-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.account-stat-card {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(166, 184, 204, 0.85);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.account-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f4f6fb;
  line-height: 1.25;
}

.account-ranks-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(166, 184, 204, 0.78);
  max-width: 62ch;
}

.account-heatmap-frame-wrap {
  width: 100%;
  margin: 0.15rem 0 0.75rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 10, 16, 0.45);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.account-heatmap-frame {
  display: block;
  width: 100%;
  min-height: 260px;
  height: 380px;
  border: none;
  background: #1a1f28;
}

.account-lb-toolbar {
  margin: 0 0 1rem;
}

.account-lb-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.account-lb-search-input {
  flex: 1 1 140px;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #f0f4fb;
  font-family: inherit;
  font-size: 0.88rem;
}

.account-lb-search-input::placeholder {
  color: rgba(166, 184, 204, 0.72);
}

.account-lb-search-input:focus {
  outline: none;
  border-color: rgba(229, 210, 172, 0.55);
  box-shadow: 0 0 0 2px rgba(229, 210, 172, 0.18);
}

.account-lb-search .btn-ios {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

.account-lb-search-status {
  margin: 0.4rem 0 0;
  min-height: 1.25em;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(250, 180, 120, 0.94);
}

.account-lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.85rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.account-lb-tab {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.62rem 0.45rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body, inherit);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: rgba(230, 236, 246, 0.88);
  background: rgba(30, 36, 48, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease;
}

.account-lb-tab + .account-lb-tab {
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.account-lb-tab:hover:not(.is-active) {
  background: rgba(42, 50, 66, 0.95);
  color: rgba(240, 244, 251, 0.95);
}

.account-lb-tab.is-active {
  color: rgba(22, 26, 34, 0.96);
  background: linear-gradient(180deg, #f0e4cc 0%, #e5d2ac 48%, #d9c49a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 6px 18px rgba(229, 210, 172, 0.2);
  z-index: 1;
  position: relative;
}

.account-lb-tab:focus-visible {
  outline: 2px solid rgba(229, 210, 172, 0.85);
  outline-offset: 2px;
  z-index: 2;
}

.account-lb-panel {
  margin: 0;
}

.account-lb-panel-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(229, 210, 172, 0.92);
}

.account-lb-scroll {
  max-height: min(320px, 50vh);
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
}

.account-lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.account-lb-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.55rem 0.65rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(166, 184, 204, 0.88);
  background: rgba(22, 26, 38, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-lb-table tbody td {
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.account-lb-table tbody tr:last-child td {
  border-bottom: none;
}

.account-lb-td-rank {
  width: 2.75rem;
  color: rgba(229, 210, 172, 0.95);
  font-weight: 700;
}

.account-lb-td-user {
  color: #f0f4fb;
  word-break: break-word;
}

.account-lb-td-km {
  text-align: right;
  white-space: nowrap;
  color: rgba(236, 239, 244, 0.95);
}

.account-lb-td-empty {
  padding: 0.85rem 0.65rem !important;
  text-align: center;
  color: rgba(166, 184, 204, 0.75);
  font-style: italic;
}

.account-lb-tr--you {
  background: rgba(250, 74, 61, 0.12);
}

.account-lb-tr--you .account-lb-td-rank {
  color: #ffb4a8;
}

.account-lb-you {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(250, 74, 61, 0.95);
  white-space: nowrap;
}

.account-lb-foot {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(166, 184, 204, 0.9);
}

.account-trip-toolbar {
  margin: 0 0 0.85rem;
}

/* Liste kutusu ile arama satırı (Ara / Temizle) aynı iç genişlikte olsun */
.account-section--trips .account-trip-scroll,
.account-section--trips .account-trips-empty {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.account-trip-search {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.account-trip-search-input {
  flex: 1 1 140px;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #f0f4fb;
  font-family: inherit;
  font-size: 0.88rem;
}

.account-trip-search-input::placeholder {
  color: rgba(166, 184, 204, 0.72);
}

.account-trip-search-input:focus {
  outline: none;
  border-color: rgba(229, 210, 172, 0.55);
  box-shadow: 0 0 0 2px rgba(229, 210, 172, 0.18);
}

.account-trip-search .btn-ios {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

.account-trip-scroll {
  max-height: min(520px, 65vh);
  overflow: auto;
  margin: 0;
  padding: 0.1rem 0 0.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  -webkit-overflow-scrolling: touch;
}

.account-trip-scroll:focus-visible {
  outline: 2px solid rgba(229, 210, 172, 0.65);
  outline-offset: 2px;
}

.account-trip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Gün kutusu: dışarıda çerçeve yok; tarih ve sürüş sayısı kendi yüzeylerinde */
.account-trip-day {
  list-style: none;
  margin: 0;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  border-radius: 0;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.account-trip-day-line {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  column-gap: 0.5rem;
  row-gap: 0.35rem;
}

.account-trip-item {
  align-self: stretch;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.account-trip-day-label {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(252, 244, 230, 0.96);
  line-height: 1.45;
  text-align: center;
  padding: 0.52rem 0.72rem;
  border-radius: 11px;
  box-sizing: border-box;
  background: linear-gradient(
    158deg,
    rgba(229, 210, 172, 0.22) 0%,
    rgba(229, 210, 172, 0.08) 55%,
    rgba(42, 36, 28, 0.55) 100%
  );
  border: 1px solid rgba(229, 210, 172, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.2);
}

.account-trip-day-hint {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(214, 222, 238, 0.95);
  line-height: 1.45;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  padding: 0.45rem 0.7rem;
  border-radius: 11px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(54, 68, 92, 0.65) 0%, rgba(32, 38, 52, 0.78) 100%);
  border: 1px solid rgba(148, 168, 200, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.18);
}

.account-trip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.account-trip-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #f2f6fc;
}

.account-trip-status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(229, 210, 172, 0.95);
}

.account-trip-details {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-trip-row {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  align-items: start;
}

.account-trip-k {
  margin: 0;
  font-weight: 600;
  color: rgba(166, 184, 204, 0.92);
}

.account-trip-v {
  margin: 0;
  color: #eceff4;
  word-break: break-word;
}

.account-trip-v.mono {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .account-trip-row {
    grid-template-columns: 1fr;
    gap: 0.12rem 0;
  }

  .account-trip-k {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(166, 184, 204, 0.78);
  }
}

.account-trip-meta {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(166, 184, 204, 0.88);
  word-break: break-word;
}

.account-trips-empty {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(166, 184, 204, 0.88);
}

@media (max-width: 480px) {
  .account-lb-scroll {
    max-height: min(280px, 45vh);
  }

  .account-trip-scroll {
    max-height: min(400px, 58vh);
  }
}

/* —— Login page (dedicated layout) —— */
body.login-page-body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  margin: 0;
}

.login-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(76, 175, 128, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 40%, rgba(56, 189, 248, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 45% at 0% 60%, rgba(229, 210, 172, 0.09), transparent 48%),
    linear-gradient(180deg, #0a0e14 0%, #0f141c 45%, #121a24 100%);
}

body.login-page-body .grid-bg.login-page-grid-fade {
  opacity: 0.28;
}

.hdr.hdr--login {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.94) 0%, rgba(10, 14, 20, 0.72) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.login-main.legal-main {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  padding: calc(56px + env(safe-area-inset-top, 0px)) clamp(1.1rem, 3.5vw, 1.75rem) env(safe-area-inset-bottom, 0px);
  display: flex;
  flex-direction: column;
}

.login-center-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 428px;
  margin: 0 auto;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(22, 28, 38, 0.94) 0%, rgba(14, 18, 26, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.login-card-glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg,
      rgba(76, 175, 128, 0.95) 0%,
      rgba(229, 210, 172, 0.85) 45%,
      rgba(56, 189, 248, 0.75) 100%);
  opacity: 0.95;
}

.login-card-inner {
  position: relative;
  padding: 1.75rem clamp(1.25rem, 4vw, 2rem) 1.85rem;
}

.login-card-hero {
  text-align: center;
  margin-bottom: 1.35rem;
}

.login-app-icon {
  display: block;
  margin: 0 auto 1rem;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.login-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(229, 210, 172, 0.9);
}

.login-callout {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  margin-bottom: 1.35rem;
  border-radius: 16px;
  background: rgba(76, 175, 128, 0.08);
  border: 1px solid rgba(129, 199, 132, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}

.login-callout-ico {
  flex-shrink: 0;
  margin-top: 0.06rem;
  color: rgba(165, 214, 167, 0.95);
}

.login-callout-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(214, 228, 220, 0.96);
  text-align: left;
}

.login-error {
  margin-bottom: 1rem;
}

.login-form {
  max-width: none;
  margin-top: 0;
  gap: 1.15rem;
}

.login-field input {
  padding: 0.78rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 16, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.login-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.78rem 1.25rem !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  background: linear-gradient(180deg, #5cbd8a 0%, #3d9a62 48%, #2e7a4c 100%) !important;
  color: #061208 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 28px rgba(46, 122, 76, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.25) !important;
  transition:
    transform 0.18s var(--ease, ease),
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.login-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.login-submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.login-back {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.login-back-link {
  color: rgba(186, 214, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(186, 214, 255, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.login-back-link:hover {
  color: rgba(229, 210, 172, 0.98);
  border-bottom-color: rgba(229, 210, 172, 0.55);
}

  .login-card-inner {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .login-callout-text {
    font-size: 0.86rem;
  }
}