:root {
  --ink: #08111f;
  --ink-soft: #111c2d;
  --paper: #f4f7f8;
  --white: #ffffff;
  --mint: #8fd7d2;
  --mint-bright: #b8e7e3;
  --gold: #f2c66d;
  --muted: #687589;
  --line: #dde5e7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { height: 84px; background: var(--ink); color: white; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-shell { max-width: 1180px; height: 100%; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Manrope", sans-serif; font-size: 14px; letter-spacing: .16em; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(143,215,210,.5); border-radius: 50%; color: var(--mint); }
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark img { width: 38px; height: 38px; display: block; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 600; color: #cbd3dc; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--mint-bright); }
.nav-button { color: var(--ink) !important; background: var(--mint); border-radius: 7px; padding: 12px 18px; }
.menu-button { display: none; border: 0; background: none; color: white; }
.menu-button svg { width: 28px; }

.hero { min-height: 650px; overflow: hidden; color: white; background: radial-gradient(circle at 78% 42%, rgba(85,140,148,.24), transparent 23%), linear-gradient(135deg, #08111f 0%, #0d1929 100%); }
.hero-grid { max-width: 1180px; min-height: 650px; margin: auto; padding: 70px 24px 55px; display: grid; grid-template-columns: 48% 52%; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--mint-bright); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; }
.eyebrow span { width: 28px; height: 1px; background: var(--mint); }
.hero h1 { margin: 22px 0 20px; font-family: "Manrope", sans-serif; font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-lead { max-width: 510px; color: #bdc7d3; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 26px; border-radius: 7px; padding: 0 22px; font-size: 14px; font-weight: 700; }
.button-primary { background: var(--mint); color: var(--ink); }
.button-primary span { font-size: 19px; }
.button-secondary { border: 1px solid rgba(255,255,255,.18); }
.trust-row { display: flex; gap: 38px; margin-top: 54px; }
.trust-row div { display: grid; }
.trust-row strong { color: var(--mint-bright); font-family: "Manrope", sans-serif; font-size: 15px; }
.trust-row span { margin-top: 4px; color: #8795a7; font-size: 12px; }

.hero-device { height: 530px; position: relative; display: grid; place-items: center; }
.route-orbit { position: absolute; border: 1px solid rgba(143,215,210,.11); border-radius: 50%; }
.orbit-one { width: 500px; height: 500px; }
.orbit-two { width: 390px; height: 390px; }
.phone { width: 275px; height: 510px; z-index: 2; position: relative; overflow: hidden; border: 8px solid #050a12; border-radius: 38px; background: #eef1ef; box-shadow: 0 28px 70px rgba(0,0,0,.48); }
.phone-speaker { position: absolute; z-index: 5; width: 72px; height: 17px; top: 5px; left: 50%; transform: translateX(-50%); border-radius: 12px; background: #050a12; }
.phone > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.app-topbar { height: 52px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px 9px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; }
.app-topbar button { border: 0; background: none; color: #7d8794; }
.app-map { height: 300px; position: relative; background-color: #dfe8e5; background-image: linear-gradient(30deg, rgba(255,255,255,.8) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.8) 87.5%), linear-gradient(150deg, rgba(255,255,255,.7) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.7) 87.5%); background-size: 44px 76px; }
.app-map svg { width: 100%; height: 100%; }
.map-road { fill: none; stroke: #fff; stroke-width: 16; }
.map-route { fill: none; stroke: #1d7772; stroke-width: 5; stroke-dasharray: 9 7; }
.map-point { fill: #f2c66d; stroke: white; stroke-width: 4; }
.map-start { fill: #08111f; stroke: white; stroke-width: 5; }
.map-end { fill: #ef6f61; stroke: white; stroke-width: 5; }
.distance-chip { position: absolute; top: 18px; right: 13px; width: 78px; height: 58px; display: grid; place-content: center; text-align: center; border-radius: 8px; background: white; color: var(--ink); box-shadow: 0 8px 18px rgba(8,17,31,.14); }
.distance-chip span { font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 800; }
.distance-chip small { color: #7a8795; font-size: 7px; }
.app-waypoint { height: 142px; display: grid; grid-template-columns: 52px 1fr 62px; align-items: center; background: white; color: var(--ink); border-top: 1px solid #dfe5e5; }
.waypoint-number { height: 100%; display: grid; place-items: center; border-right: 1px solid #dfe5e5; font-family: "Manrope", sans-serif; font-size: 24px; font-weight: 800; }
.tulip { width: 95px; height: 95px; margin: auto; color: var(--ink); }
.tulip svg { width: 100%; height: 100%; }
.waypoint-meta { height: 100%; display: grid; align-content: center; text-align: center; border-left: 1px solid #dfe5e5; }
.waypoint-meta span { font-size: 7px; color: #75818e; }
.waypoint-meta strong { margin-top: 5px; font-size: 18px; }

.feature-strip { max-width: 1180px; margin: 0 auto; min-height: 132px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; background: white; transform: translateY(-1px); box-shadow: 0 20px 40px rgba(8,17,31,.08); }
.feature-strip article { display: flex; align-items: center; gap: 17px; padding: 20px 38px; border-right: 1px solid var(--line); }
.feature-strip article:last-child { border: 0; }
.feature-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #eaf5f4; color: #397c78; }
.feature-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.feature-strip h3 { margin: 0 0 5px; font-family: "Manrope", sans-serif; font-size: 14px; }
.feature-strip p { margin: 0; color: var(--muted); font-size: 12px; }

.workflow-section { max-width: 1180px; margin: auto; padding: 105px 24px 120px; }
.section-heading { margin-bottom: 42px; text-align: center; }
.section-heading span, .section-kicker { color: #548a87; text-transform: uppercase; letter-spacing: .17em; font-size: 11px; font-weight: 800; }
.section-heading h2 { margin: 12px 0 0; font-family: "Manrope", sans-serif; font-size: 42px; letter-spacing: -.04em; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.workflow-card { position: relative; background: white; border: 1px solid #e7ecec; border-radius: 5px; overflow: hidden; }
.step { position: absolute; z-index: 3; top: 15px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: white; color: #718080; font-size: 10px; font-weight: 800; box-shadow: 0 5px 15px rgba(8,17,31,.08); }
.card-visual { height: 230px; position: relative; overflow: hidden; background: #edf2f1; }
.card-visual svg { position: absolute; width: 100%; height: 100%; }
.workflow-card h3 { margin: 25px 28px 8px; font-family: "Manrope", sans-serif; font-size: 18px; }
.workflow-card p { margin: 0 28px 28px; color: var(--muted); line-height: 1.65; font-size: 14px; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(8,17,31,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(8,17,31,.055) 1px, transparent 1px); background-size: 28px 28px; }
.compass-visual { display: grid; place-items: center; background: #e8efef; }
.compass-ring { width: 150px; height: 150px; position: relative; display: grid; place-items: center; border: 1px solid #becbca; border-radius: 50%; box-shadow: inset 0 0 0 18px rgba(255,255,255,.45); }
.compass-ring:before, .compass-ring:after { content: ""; position: absolute; background: #bac7c6; }
.compass-ring:before { width: 1px; height: 125px; }
.compass-ring:after { height: 1px; width: 125px; }
.compass-ring span { position: absolute; top: 8px; z-index: 2; color: #6a7777; font-size: 9px; }
.compass-arrow { z-index: 2; width: 18px; height: 72px; transform: translateY(-8px); background: linear-gradient(to bottom, #4e9994 0 65%, #08111f 65%); clip-path: polygon(50% 0, 100% 52%, 62% 52%, 62% 100%, 38% 100%, 38% 52%, 0 52%); }
.bearing-card { position: absolute; right: 28px; bottom: 24px; width: 92px; height: 58px; display: grid; place-content: center; border-radius: 5px; background: white; text-align: center; box-shadow: 0 8px 20px rgba(8,17,31,.09); }
.bearing-card small { color: #879393; font-size: 7px; letter-spacing: .12em; }
.bearing-card strong { font-size: 16px; }
.share-visual { display: grid; place-items: center; background: #edf1eb; }
.route-sheet { width: 180px; height: 150px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; padding: 20px 15px; transform: rotate(-5deg); background: white; box-shadow: 0 12px 25px rgba(8,17,31,.1); }
.route-sheet i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #7dbcb7; }
.route-sheet i:nth-child(2n) { margin-top: 46px; }
.route-sheet i:nth-child(3) { margin-top: 84px; }
.route-sheet i:nth-child(4) { margin-top: 112px; }
.route-sheet i:nth-child(5) { margin-top: 58px; }
.share-badge { position: absolute; right: 28px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 5px; background: var(--ink); color: white; font-size: 9px; box-shadow: 0 8px 18px rgba(8,17,31,.16); }
.share-badge span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--ink); }

.download-section { min-height: 380px; max-width: 1180px; margin: 0 auto 100px; position: relative; overflow: hidden; display: flex; align-items: center; background: var(--ink); color: white; border-radius: 8px; }
.download-copy { position: relative; z-index: 2; width: 60%; padding: 55px 70px; }
.download-copy h2 { margin: 12px 0 16px; font-family: "Manrope", sans-serif; font-size: 43px; line-height: 1.08; letter-spacing: -.04em; }
.download-copy p { max-width: 430px; color: #abb6c4; line-height: 1.6; }
.store-button { width: 175px; height: 58px; margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(255,255,255,.05); }
.store-button svg { width: 25px; fill: var(--mint); }
.store-button span { display: grid; }
.store-button small { font-size: 8px; }
.store-button strong { font-size: 16px; }
.download-route { position: absolute; width: 55%; height: 100%; right: 0; }
.download-route svg { width: 100%; height: 100%; }

footer { background: #050a12; color: #98a3b2; }
.footer-inner { max-width: 1180px; min-height: 150px; margin: auto; padding: 30px 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.footer-brand { color: white; }
.footer-inner > p { text-align: center; font-size: 13px; }
.footer-links { display: flex; justify-content: flex-end; gap: 25px; font-size: 13px; }

.help-page { min-height: 800px; background: white; }
.help-hero { padding: 70px 24px 55px; text-align: center; background: var(--ink); color: white; }
.help-hero > span { color: var(--mint); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; }
.help-hero h1 { margin: 12px 0 10px; font-family: "Manrope", sans-serif; font-size: 46px; }
.help-hero p { color: #b9c3cf; }
.help-search { max-width: 550px; height: 52px; margin: 28px auto 0; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: rgba(255,255,255,.06); }
.help-search svg { width: 18px; fill: none; stroke: #9daab8; stroke-width: 1.7; }
.help-search input { width: 100%; border: 0; outline: 0; background: transparent; color: white; }
.help-search input::placeholder { color: #9daab8; }
.help-layout { max-width: 1080px; margin: auto; display: grid; grid-template-columns: 220px 1fr; gap: 55px; padding: 70px 24px 100px; }
.help-sidebar { height: fit-content; position: sticky; top: 24px; display: grid; border-left: 1px solid var(--line); }
.help-sidebar a { padding: 12px 18px; color: #778391; font-size: 14px; }
.help-sidebar a.active { border-left: 2px solid #65aaa5; margin-left: -1px; color: var(--ink); font-weight: 700; }
.help-content section { min-height: 280px; position: relative; padding: 0 0 45px 62px; margin-bottom: 45px; border-bottom: 1px solid var(--line); }
.help-number { position: absolute; left: 0; top: 2px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #eaf5f4; color: #4d8884; font-size: 11px; font-weight: 800; }
.help-content h2 { margin: 4px 0 14px; font-family: "Manrope", sans-serif; font-size: 28px; }
.help-content p, .help-content li { color: #657286; line-height: 1.75; }
.help-callout { margin: 22px 0; padding: 18px 20px; border-left: 3px solid var(--mint); background: #f1f7f6; }
.help-callout p { margin: 5px 0 0; }
.help-content ul { padding-left: 18px; }
.mode-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.mode-preview > div { color: #657286; font-size: 12px; }
.tile-preview, .single-preview { height: 140px; margin-top: 8px; display: grid; gap: 5px; padding: 8px; border: 1px solid var(--line); background: #edf2f1; }
.tile-preview { grid-template-columns: repeat(3, 1fr); }
.tile-preview i, .single-preview i { display: block; background: white; border-radius: 3px; }
.single-preview { grid-template-columns: 1fr 2fr; }
.format-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.format-list span { padding: 8px 12px; border-radius: 5px; background: #edf2f1; color: #4e5e70; font-size: 12px; font-weight: 700; }
.edit-page { min-height: 65vh; display: grid; place-items: center; padding: 60px 24px; background: radial-gradient(circle at 50% 30%, rgba(143,215,210,.16), transparent 35%), var(--paper); }
.edit-card { max-width: 620px; padding: 55px 45px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 48px rgba(8,17,31,.08); }
.edit-card h1 { margin: 12px 0; font-family: "Manrope", sans-serif; font-size: 42px; letter-spacing: -.04em; }
.edit-card p { margin: 0 auto 26px; max-width: 480px; color: var(--muted); line-height: 1.7; }

body.map-layout { width: 100%; height: 100vh; height: 100dvh; overflow: hidden; }
.map-layout .site-header { position: fixed; z-index: 40; inset: 0 0 auto; height: 56px; }
.map-layout .nav-shell { position: relative; max-width: none; padding: 0 18px; }
.map-layout .brand { gap: 8px; font-size: 11px; }
.map-layout .brand-mark, .map-layout .brand-mark img { width: 30px; height: 30px; }
.map-layout .nav-links { gap: 22px; font-size: 12px; }
.map-layout .nav-button { padding: 8px 12px; }
.map-layout .map-workspace { position: fixed; inset: 56px 0 40px; display: grid; place-items: center; overflow: hidden; padding: 24px; background-color: var(--paper); background-image: linear-gradient(rgba(8,17,31,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(8,17,31,.035) 1px, transparent 1px); background-size: 32px 32px; }
.map-layout .edit-card { width: min(620px, 100%); padding: 38px 36px; }
.map-layout .edit-card h1 { font-size: 34px; }
.map-layout footer { position: fixed; z-index: 40; inset: auto 0 0; height: 40px; }
.map-footer { max-width: none; height: 100%; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.map-footer a:first-child { color: white; font-family: "Manrope", sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; }

.map-layout .map-workspace { display: block; padding: 0; }
.map-layout #map { width: 100%; height: 100%; background: #dce7e5; }
.map-toolbar {
  position: absolute;
  z-index: 1000;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(8,17,31,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(8,17,31,.16);
}
.map-toolbar button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  padding: 0 10px;
  background: #edf5f4;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.map-toolbar button:hover { background: var(--mint-bright); }
.map-toolbar button.danger { background: #f9e7e4; color: #9b3e32; }
.leaflet-control-attribution { font-size: 9px; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; z-index: 20; top: 84px; left: 0; right: 0; padding: 20px 24px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: grid; gap: 18px; }
  .menu-button { display: block; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 55px; }
  .hero { min-height: 1050px; }
  .hero-device { margin-top: 20px; }
  .feature-strip { width: calc(100% - 48px); grid-template-columns: 1fr; }
  .feature-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-card { display: grid; grid-template-columns: 42% 58%; }
  .workflow-card .card-visual { grid-row: 1 / 3; }
  .workflow-card h3 { align-self: end; }
  .workflow-card p { align-self: start; }
  .download-section { width: calc(100% - 48px); }
  .download-copy { width: 70%; padding-left: 45px; }
  .help-layout { grid-template-columns: 170px 1fr; }
  .map-layout .nav-links { top: 56px; }
}

@media (max-width: 620px) {
  .site-header { height: 72px; }
  .nav-links { top: 72px; }
  .brand { font-size: 12px; }
  .hero-grid { min-height: 810px; padding: 45px 20px 40px; }
  .hero { min-height: 870px; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .trust-row { gap: 22px; }
  .hero-device { height: 410px; transform: scale(.78); margin: -20px -70px -50px; }
  .feature-strip { width: calc(100% - 40px); }
  .feature-strip article { padding: 18px 22px; }
  .workflow-section { padding: 75px 20px 80px; }
  .section-heading h2 { font-size: 34px; }
  .workflow-card { display: block; }
  .workflow-card h3 { margin-top: 22px; }
  .download-section { width: calc(100% - 40px); min-height: 410px; margin-bottom: 60px; }
  .download-copy { width: 100%; padding: 40px 28px; }
  .download-copy h2 { font-size: 36px; }
  .download-route { width: 100%; opacity: .45; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-inner > p { margin: 0; }
  .footer-links { justify-content: center; }
  .help-hero { padding: 55px 20px 45px; }
  .help-hero h1 { font-size: 38px; }
  .help-layout { display: block; padding: 45px 20px 70px; }
  .help-sidebar { position: static; margin-bottom: 35px; grid-template-columns: repeat(2, 1fr); }
  .help-content section { padding-left: 54px; }
  .mode-preview { grid-template-columns: 1fr; }
  .map-layout .nav-links { top: 56px; }
  .map-layout .map-workspace { padding: 16px; }
  .map-layout .edit-card { padding: 30px 22px; }
  .map-layout .map-workspace { padding: 0; }
  .map-toolbar {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    justify-content: space-between;
  }
  .map-toolbar button { flex: 1; padding: 0 6px; }
}
