:root {
  --sky: #2E7BF6;
  --sky-secondary: #4B8DF8;
  --pale: #F2F7FF;
  --ink: #132B56;
  --muted: #7485A4;
  --tertiary: #9CAAC0;
  --canvas: #FAFBFD;
  --line: #E2E8F0;
  --white: #FFFFFF;
  --green: #7EC68C;
  --shadow: 0 4px 12px rgba(21, 44, 88, 0.06);
  --shadow-phone: 0 28px 70px rgba(19, 43, 86, 0.15);
  --reading: #3D5178;
  --radius-card: 18px;
  --radius-control: 14px;
  --touch: 44px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-wrap: break-word;
}

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

a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 40px), 1160px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}

.skip:focus {
  top: 12px;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-cta { display: none; }

.nav-toggle {
  display: none;
  position: relative;
}

.nav-toggle > summary {
  list-style: none;
  min-height: var(--touch);
  min-width: var(--touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  padding: 0 12px;
  cursor: pointer;
}

.nav-toggle > summary::-webkit-details-marker { display: none; }

.navlinks {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 550;
}

.navlinks a {
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}

.navlinks a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

.nav-cta {
  color: var(--sky) !important;
  background: var(--pale);
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 650;
  min-height: 40px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 64px;
  align-items: center;
  padding: 88px 0 80px;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
}

.lede {
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 550;
}

.hero-copy p {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--reading);
}

.ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 650;
  border: 1px solid var(--line);
}

.btn.primary {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
}

.btn.secondary {
  background: var(--white);
  color: var(--ink);
}

.btn.primary:hover { background: var(--sky-secondary); border-color: var(--sky-secondary); }
.btn.secondary:hover { background: var(--canvas); }

/* iPhone home mock */

.phone-wrap {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone {
  width: min(360px, 100%);
  background: var(--white);
  border: 8px solid #111827;
  border-radius: 48px;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  position: relative;
  padding-bottom: 18px;
}

.island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  border-radius: 20px;
  background: #050608;
  z-index: 3;
}

.status {
  height: 54px;
  padding: 16px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 700;
}

.status-time { padding-left: 8px; padding-top: 2px; }

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
  padding-top: 4px;
  color: var(--ink);
}

.appcontent {
  padding: 8px 22px 8px;
}

.appbrandline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.appbrand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.mapbtn {
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--sky);
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.apphero {
  font: 700 34px/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
  margin: 28px 0 12px;
}

.appsupport {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.upload {
  margin-top: 22px;
  min-height: 78px;
  border: 1px solid #CCE0FF;
  background: linear-gradient(120deg, #fff, #EAF3FF);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sky);
  font-weight: 650;
  font-size: 15px;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.3px solid var(--sky);
  display: grid;
  place-items: center;
  color: var(--sky);
  flex-shrink: 0;
}

.grow { flex: 1; min-width: 0; }

.chev {
  color: var(--sky);
  font-size: 16px;
  font-weight: 500;
}

.folder-action {
  margin-top: 10px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.folder-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--pale);
  display: grid;
  place-items: center;
  color: var(--sky);
  flex-shrink: 0;
}

.sectionlabel {
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.approw {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 8px 0 0;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.approw .mini {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--pale);
  display: grid;
  place-items: center;
  color: var(--sky);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.name { font-size: 14px; font-weight: 650; }
.sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.homebar {
  width: 130px;
  height: 5px;
  background: #050608;
  border-radius: 5px;
  margin: 14px auto 0;
}

/* Sections */

.band {
  background: var(--canvas);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 36px;
}

.section-head .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 10px;
}

h2 {
  margin: 0;
  font: 700 clamp(32px, 4.2vw, 52px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  min-height: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature .num {
  font-size: 11px;
  color: var(--tertiary);
  letter-spacing: 0.13em;
  margin-bottom: 48px;
  font-weight: 700;
}

.feature h3 {
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--reading);
  font-size: 14px;
  line-height: 1.55;
}

.appflow { padding: 80px 0; }

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.preview {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  background: var(--white);
  min-height: 380px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.preview h3 { font-size: 22px; margin: 0 0 8px; }

.preview > p {
  margin: 0;
  color: var(--reading);
  font-size: 14px;
  line-height: 1.5;
}

.format-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--reading);
}

.supported {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.format {
  min-height: 72px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border-bottom: 1px solid #EDF1F6;
}

.format:last-child { border-bottom: 0; }

.format-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--pale);
  display: grid;
  place-items: center;
  color: var(--sky);
  font-size: 10px;
  font-weight: 750;
  flex-shrink: 0;
  margin-top: 2px;
}

.format .sub { margin-top: 2px; line-height: 1.4; }

/* Map workspace mock */

.mapmock {
  height: 320px;
  margin-top: 22px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  background: #F5F8F3;
  border: 1px solid var(--line);
}

.map-title {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.map-title-text {
  text-align: center;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}

.map-title-text span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 550;
  margin-top: 2px;
}

.circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--sky);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.control-stack {
  position: absolute;
  z-index: 5;
  right: 14px;
  top: 58px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.circle-control {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--sky);
  display: grid;
  place-items: center;
  box-shadow: 0 7px 18px rgba(19, 43, 86, 0.10);
  font-weight: 700;
  font-size: 16px;
}

.river {
  position: absolute;
  width: 130%;
  height: 42px;
  background: #DCEFF8;
  transform: rotate(-11deg);
  left: -40px;
  top: 70px;
}

.road {
  position: absolute;
  width: 120%;
  height: 18px;
  background: var(--white);
  transform: rotate(-18deg);
  left: -20px;
  top: 150px;
}

.poly {
  position: absolute;
  width: 150px;
  height: 128px;
  left: 22%;
  top: 88px;
  background: rgba(46, 123, 246, 0.07);
  border: 2px solid var(--sky);
  clip-path: polygon(10% 15%, 70% 0, 100% 42%, 84% 100%, 25% 85%);
}

.tree {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(126, 198, 140, 0.4);
}

.t1 { left: 34%; top: 128px; }
.t2 { left: 42%; top: 152px; }
.t3 { left: 50%; top: 176px; }

.userdot {
  position: absolute;
  left: 46%;
  top: 168px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sky);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 8px rgba(46, 123, 246, 0.18);
}

.locate {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--sky);
  box-shadow: 0 7px 18px rgba(19, 43, 86, 0.10);
}

.layerpill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  height: 46px;
  padding: 0 15px;
  border-radius: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sky);
  font-weight: 650;
  font-size: 13px;
}

/* Privacy / local-first */

.privacy-band {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.privacy-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  background: var(--pale);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 36px;
  align-items: start;
}

.privacy-box h2 { font-size: clamp(32px, 4vw, 44px); }

.privacy-box p {
  color: var(--reading);
  line-height: 1.6;
  margin: 16px 0 0;
  font-size: 16px;
}

.links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.linkrow {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  min-height: var(--touch);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  gap: 12px;
}

.linkrow:hover { background: var(--canvas); }

.linkrow .chev { color: var(--sky); }

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.footerrow {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.footerbrand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.footerlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
}

.footerlinks a {
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
}

.footerlinks a[aria-current="page"] { color: var(--ink); }

/* Inner pages */

.page {
  padding: 48px 0 88px;
  max-width: 760px;
}

.page h1 {
  font-size: clamp(36px, 5vw, 52px);
}

.page-lede {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--reading);
}

.meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.page h2 {
  margin: 40px 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  font-family: Georgia, "Times New Roman", serif;
}

.page h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.page p,
.page li {
  color: var(--reading);
  font-size: 17px;
  line-height: 1.65;
}

.page p { margin: 0 0 14px; }

.page ul, .page ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.page li + li { margin-top: 6px; }

.page a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
  background: var(--pale);
  border: 1px dashed var(--sky-secondary);
  border-radius: 8px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
}

.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  background: var(--canvas);
  margin: 20px 0 24px;
}

.callout strong { color: var(--ink); }

.verify {
  border-left: 3px solid var(--sky);
  padding: 2px 0 2px 12px;
  color: var(--ink);
}

.contact-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.checklist li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 8px;
  background: var(--white);
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 0 56px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-head .label { padding-top: 0; }

  .feature-grid,
  .preview-grid { grid-template-columns: 1fr; }

  .privacy-box { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .navlinks { display: none; }

  .header-cta {
    display: inline-flex;
    min-height: 40px;
    font-size: 12px;
    padding: 0 12px;
  }

  .nav-toggle { display: block; }

  .nav-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: min(280px, calc(100vw - 32px));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-phone);
    padding: 8px;
    z-index: 30;
  }

  .nav-panel a {
    min-height: var(--touch);
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 550;
  }

  .nav-panel a:hover,
  .nav-panel a[aria-current="page"] {
    background: var(--pale);
  }

  .nav-panel .nav-cta {
    margin-top: 4px;
    justify-content: center;
  }

  .nav-toggle[open] .nav-panel {
    display: grid;
  }
}

@media (max-width: 400px) {
  .header-cta { display: none; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 24px), 1160px); }
  .wordmark { font-size: 15px; letter-spacing: 0.26em; }
  .hero { padding: 44px 0 48px; }
  .apphero { font-size: 28px; }
  .band, .appflow, .privacy-band { padding: 56px 0; }
  .feature { min-height: 0; }
  .feature .num { margin-bottom: 24px; }
  .footerrow {
    align-items: flex-start;
    flex-direction: column;
  }
  .page { padding-top: 32px; }
  .mapmock { height: 300px; }
  .control-stack { top: 56px; gap: 6px; }
  .circle-control { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
