:root {
  --bg: #f3f4ef;
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.84);
  --text: #141414;
  --muted: #5f6258;
  --accent: #1db954;
  --stroke: rgba(220, 222, 212, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(18, 16, 12, 0.12) 0%, rgba(18, 16, 12, 0.22) 100%) center center / cover no-repeat fixed,
    url("/images/bg.jpg") center center / cover no-repeat fixed;
  color: var(--text);
  font-family: "Roboto Condensed", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

.landing-wrap {
  width: min(100% - 32px, 860px);
  margin-inline: auto;
}

.landing-nav {
  padding: 18px 0 8px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
}

.link-chip {
  text-decoration: none;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(17, 17, 17, 0.25);
  backdrop-filter: blur(2px);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.hero {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
  background: var(--card-strong);
  border: 1px solid var(--stroke);
  border-radius: 26px 14px 24px 12px;
  padding: 22px 35px;
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 5%, 3.5% 0, 96.5% 0, 100% 6%, 100% 94%, 96% 100%, 4% 100%, 0 95%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 12%, rgba(150, 119, 74, 0.08) 0 2px, transparent 2px),
    radial-gradient(circle at 72% 22%, rgba(129, 100, 62, 0.08) 0 1.8px, transparent 1.8px),
    radial-gradient(circle at 36% 78%, rgba(171, 136, 85, 0.07) 0 2.2px, transparent 2.2px);
  background-size:
    160px 120px,
    140px 110px,
    150px 130px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #3a7f4f;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 0.98;
}

.hero-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.35;
}

.hero-brand {
  display: flex;
  align-items: center;
}

.hero-brand > img {
  max-width: min(86%, 440px);
  height: auto;
}

.hero-qr {
  width: 100px;
  min-width: 100px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  display: inline-flex;
  text-decoration: none;
}

.store-qr {
  width: 132px;
  min-width: 132px;
  border-radius: 0;
}

.hero-qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-qr.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.store-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 18px;
}

.store-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-app-wrap {
  display: grid;
  gap: 4px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  color: inherit;
  border-radius: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  transition: transform 0.15s ease;
}

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

.store-badge {
  display: block;
  width: auto;
  height: 52px;
  border-radius: 10px;
}

.store-btn.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.store-badge-note {
  margin: 0;
  font-size: 11px;
  color: #6a6e63;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
}

.beta-row {
  margin-top: 18px;
  display: grid;
  justify-items: start;
  gap: 8px;
}

.beta-download-wrap {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.beta-qr {
  width: 92px;
  min-width: 92px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(214, 217, 206, 0.9);
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  overflow: hidden;
  text-decoration: none;
}

.beta-qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.beta-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.beta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s ease;
}

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

.beta-btn i {
  font-size: 18px;
}

.beta-note {
  margin: 0;
  color: #6a6e63;
  font-size: 12px;
}

.store-note {
  margin-top: 10px;
  color: #7a7d74;
  font-size: 12px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(280px, 100%);
  aspect-ratio: 392 / 850;
  border-radius: 30px;
  background: linear-gradient(180deg, #101010 0%, #242424 100%);
  border: 5px solid #0f0f0f;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  padding: 6px;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 96px;
  height: 12px;
  border-radius: 0 0 12px 12px;
  background: #0f0f0f;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.phone-frame img,
.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.phone-frame video {
  display: block;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
}

.updates {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 0;
  padding: 22px 30px;
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 6%, 4.5% 0, 94% 0, 100% 7.5%, 100% 95%, 94% 100%, 6% 100%, 0 93%);
}

.updates::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgba(153, 116, 67, 0.08) 0 2px, transparent 2px),
    radial-gradient(circle at 82% 26%, rgba(123, 90, 50, 0.07) 0 1.6px, transparent 1.6px),
    radial-gradient(circle at 28% 88%, rgba(179, 144, 89, 0.07) 0 2px, transparent 2px);
  background-size:
    170px 125px,
    150px 115px,
    150px 120px;
}

.updates::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 132px;
  height: 78px;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(166, 122, 65, 0.22) 0%, rgba(255, 255, 255, 0.08) 72%);
  clip-path: polygon(26% 0, 100% 0, 100% 80%, 0 100%, 0 36%);
}

.updates-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.carousel-actions {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(205, 189, 158, 0.7);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.scroll-btn {
  border: 1px solid rgba(206, 209, 197, 0.9);
  background: rgba(255, 255, 255, 0.95);
  color: #2c2c2c;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

.scroll-btn:hover {
  background: #ffffff;
}

.log-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.log-track::-webkit-scrollbar {
  display: none;
}

.log-card {
  scroll-snap-align: start;
  border: none;
  border-radius: 14px;
  background: rgba(252, 252, 250, 0.82);
  padding: 14px;
}

.hero-delete-content {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.log-card.type-alert {
  background: #fff7f5;
  border-color: #f3d3cf;
}

.log-card.type-maintenance {
  background: #fffaf0;
  border-color: #f0e0bd;
}

.log-card.type-update {
  background: #f4fbf6;
  border-color: #d5ebd9;
}

.log-card h3 {
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-card p {
  margin: 0;
  color: #5f6258;
  font-size: 14px;
  line-height: 1.35;
}

.log-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #70736a;
  margin-bottom: 2px;
  white-space: nowrap;
}

.log-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  min-width: 0;
}

.log-info-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 12px;
  color: #5d6057;
}

.log-info-line i {
  color: #4f7d5d;
  font-size: 12px;
}

.log-description {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-meta-location {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.log-type.type-alert {
  background: #fdecea;
  color: #b42318;
}

.log-type.type-maintenance {
  background: #fff4e0;
  color: #b26a00;
}

.log-type.type-update {
  background: #e6f4ea;
  color: #1b7f3a;
}

.dot {
  color: #a0a398;
}

.log-card.empty {
  grid-auto-columns: 100%;
}

.feed-drag {
  margin-top: 20px;
  padding: 2px 4px 0;
}

.bike-slider {
  width: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.bike-slider:focus {
  outline: none;
}

.bike-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ced2c5 0%, #bfc4b4 100%);
}

.bike-slider::-moz-range-track {
  height: 4px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ced2c5 0%, #bfc4b4 100%);
}

.bike-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 52px;
  height: 30px;
  border: 0;
  border-radius: 0;
  margin-top: -13px;
  background: url("/images/bike.svg") center center / contain no-repeat;
  cursor: grab;
  transform: translateY(-10px) rotate(-45deg);
  transform-origin: center;
}

.bike-slider::-moz-range-thumb {
  width: 52px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: url("/images/bike.svg") center center / contain no-repeat;
  cursor: grab;
  transform: translateY(-10px) rotate(-45deg);
  transform-origin: center;
}

.bike-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.bike-slider:active::-moz-range-thumb {
  cursor: grabbing;
}

.feed-drag.is-disabled {
  opacity: 0.5;
}

.feed-drag.is-disabled .bike-slider::-webkit-slider-thumb,
.feed-drag.is-disabled .bike-slider::-moz-range-thumb {
  cursor: default;
}

.landing-footer {
  padding: 16px 0 26px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-inner a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-link-anchor {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.footer-link-anchor:hover {
  text-decoration: underline;
}

.footer-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  cursor: pointer;
}

.footer-link-btn:hover {
  text-decoration: underline;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 6, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.privacy-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  background: rgba(252, 252, 249, 0.97);
  border: 1px solid rgba(208, 211, 200, 0.95);
  border-radius: 0;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  clip-path: polygon(0 3.5%, 2.5% 0, 97% 0, 100% 4.5%, 100% 96.5%, 97% 100%, 3.5% 100%, 0 96%);
}

.privacy-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(216, 220, 206, 0.9);
}

.privacy-modal-head h3 {
  margin: 0;
  font-size: 24px;
}

.privacy-modal-head p {
  margin: 4px 0 0;
  color: #6b6f65;
  font-size: 13px;
}

.privacy-close-btn {
  border: 1px solid rgba(207, 210, 200, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #2c2c2c;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.privacy-modal-body {
  overflow: auto;
  padding: 20px 24px 24px;
}

.privacy-page-dialog {
  width: 100%;
  max-height: none;
  margin-top: 10px;
}

.privacy-page-dialog .privacy-modal-body {
  max-height: min(60vh, 560px);
}

.privacy-section + .privacy-section {
  margin-top: 14px;
}

.privacy-section h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.privacy-section p {
  margin: 0;
  color: #51554d;
  line-height: 1.4;
}

.privacy-section ul {
  margin: 6px 0 0 18px;
  padding: 0;
  color: #51554d;
  line-height: 1.4;
}

.privacy-section a {
  color: #2e6f43;
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-brand {
    justify-content: center;
  }

  .hero-brand > img {
    max-width: 100%;
  }

  .hero-qr {
    display: none;
  }

  .store-row {
    justify-content: center;
  }

  .beta-row {
    justify-items: center;
  }

  .beta-download-wrap {
    flex-direction: column;
    align-items: center;
  }

  .beta-copy {
    justify-items: center;
  }

  .beta-note {
    text-align: center;
  }

  .store-note {
    text-align: center;
  }

  .hero-visual {
    justify-content: center;
  }

  .phone-frame {
    width: 220px;
  }

  .updates-head {
    align-items: center;
  }

  .privacy-modal {
    padding: 10px;
  }

  .privacy-modal-head h3 {
    font-size: 20px;
  }
}
