/* Marketing site — public, no-auth. Shares the app brand palette
   (#00354a / #de0031, see templates/landing.html + templates/pricing.html) and
   echoes the in-app product colours (the #1d3557 map chrome, the #2a9d8f link
   accent, the occupancy strip + expiry tiers from assets/style.css) so the site
   reads as one product. Frontend-owned (assets/**); no app JS runs on it. */

:root {
  --ink: #00354a;          /* brand deep navy */
  --ink-2: #00516f;
  --accent: #de0031;       /* brand red */
  --teal: #2a9d8f;         /* in-app link / custom-site accent */
  --navy-app: #1d3557;     /* in-app map chrome */
  --bg: #eef3f6;
  --bg-2: #f6f9fb;
  --paper: #ffffff;
  --muted: #5b6b73;
  --muted-2: #7d8b93;
  --line: #e2e8eb;
  --line-2: #d3dde3;
  /* Product signal colours mirrored from the running app (assets/style.css). */
  --occ-free: #a8d5a2;
  --occ-manual: #e76f51;
  --occ-licensed: #1d3557;
  --tier-red: #c1121f;
  --tier-orange: #f77f00;
  --tier-yellow: #e0a800;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 53, 74, 0.08);
  --shadow-lg: 0 18px 50px rgba(0, 53, 74, 0.18);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: var(--ink-2); }

img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #b8002a; }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg); }
.btn-lg { font-size: 16px; padding: 14px 30px; }

/* ---- Top nav ------------------------------------------------------------ */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 30px; width: auto; display: block; }
.nav-brand b { color: var(--ink); font-size: 16px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 8px 16px; font-size: 14px; }
.nav-signin { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; padding: 8px 6px; }
.nav-signin:hover { color: var(--accent); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .nav-signin { display: none; }
}

/* ---- Sections ----------------------------------------------------------- */
section { padding: 76px 0; }
section.alt { background: var(--bg); }
section.ink { background: var(--ink); color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
section.ink .section-head p { color: #b9cdd7; }

h2 { letter-spacing: -0.01em; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 500px at 78% -8%, rgba(42, 157, 143, 0.16), transparent 60%),
    linear-gradient(160deg, #002637 0%, #00354a 46%, #013e56 100%);
  color: #fff;
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.08;
  margin: 14px 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 .hl { color: #6fd0c2; }
.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: #c8dae2;
  margin: 0 0 28px;
  max-width: 560px;
}
.hero .eyebrow { color: #6fd0c2; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: #9fb8c3; }
.hero-note b { color: #dcecf2; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; }
}

/* ---- Logo / trust strip ------------------------------------------------- */
.trust {
  background: var(--ink);
  color: #cfe0e8;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.trust-inner span { display: inline-flex; align-items: center; gap: 8px; }
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ---- Problem / solution ------------------------------------------------- */
.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.ps-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
}
.ps-card.problem { border-top: 4px solid var(--accent); }
.ps-card.solution { border-top: 4px solid var(--teal); }
.ps-card h3 { font-size: 19px; margin: 0 0 12px; }
.ps-card ul { list-style: none; padding: 0; margin: 0; }
.ps-card li { position: relative; padding: 7px 0 7px 28px; font-size: 15px; color: #38474e; border-top: 1px solid var(--line); }
.ps-card li:first-child { border-top: none; }
.ps-card.problem li::before { content: "✕"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.ps-card.solution li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }
@media (max-width: 760px) { .ps-grid { grid-template-columns: 1fr; } }

/* ---- Annotated product shots -------------------------------------------- */
.shot {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 44px;
  align-items: center;
  margin: 0 auto 72px;
  max-width: var(--maxw);
}
.shot:last-child { margin-bottom: 0; }
.shot.flip .shot-copy { order: 2; }
.shot.flip .shot-media { order: 1; }
.shot-copy .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
}
.shot-copy h3 { font-size: 25px; line-height: 1.2; margin: 0 0 12px; }
.shot-copy p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.shot-copy .points { list-style: none; padding: 0; margin: 0; }
.shot-copy .points li { position: relative; padding: 5px 0 5px 26px; font-size: 15px; color: #38474e; }
.shot-copy .points li::before {
  content: "";
  position: absolute; left: 4px; top: 12px;
  width: 9px; height: 9px; border-radius: 2px; background: var(--teal);
}
.shot-media svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.shot-media figcaption {
  margin: 10px 2px 0;
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
}
@media (max-width: 820px) {
  .shot { grid-template-columns: 1fr; gap: 22px; }
  .shot.flip .shot-copy { order: 0; }
  .shot.flip .shot-media { order: 0; }
}

/* SVG mockup shared label styling (used inside the product SVGs). */
.mk-anno { font: 600 13px "Segoe UI", system-ui, sans-serif; fill: var(--ink); }
.mk-anno-bg { fill: #fff; stroke: var(--accent); stroke-width: 1.5; }
.mk-lead { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.mk-dot { fill: var(--accent); }

/* ---- Feature grid ------------------------------------------------------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 53, 74, 0.13); }
.feat .ico {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(42, 157, 143, 0.12);
  margin-bottom: 14px;
}
.feat .ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 17px; margin: 0 0 8px; }
.feat p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---- How it works ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 8px 4px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }
section.ink .step p { color: #b9cdd7; }
section.ink .step .num { background: var(--accent); }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* ---- Pricing teaser ----------------------------------------------------- */
.price-teaser { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 26px; }
.pt {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.pt.featured { border-color: var(--ink); box-shadow: 0 6px 22px rgba(0, 53, 74, 0.16); }
.pt h3 { font-size: 15px; margin: 0 0 6px; }
.pt .amt { font-size: 22px; font-weight: 700; }
.pt .amt small { font-size: 12px; font-weight: 400; color: var(--muted); }
.pt .who { color: var(--muted); font-size: 12px; margin: 6px 0 0; min-height: 32px; }
@media (max-width: 820px) { .price-teaser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .price-teaser { grid-template-columns: 1fr; } }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }

/* ---- Final CTA ---------------------------------------------------------- */
.cta {
  background:
    radial-gradient(700px 320px at 80% 120%, rgba(222, 0, 49, 0.22), transparent 60%),
    linear-gradient(150deg, #00354a, #012c3f);
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: 32px; margin: 0 0 12px; }
.cta p { color: #c8dae2; font-size: 18px; margin: 0 auto 28px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ------------------------------------------------------------- */
footer.site {
  background: #012230;
  color: #9fb8c3;
  padding: 46px 0 26px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-brand img { height: 30px; margin-bottom: 12px; }
.foot-brand p { margin: 0; max-width: 280px; color: #86a1ad; font-size: 13.5px; }
.foot-col h4 { color: #dcecf2; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; }
.foot-col a { display: block; color: #9fb8c3; text-decoration: none; padding: 4px 0; font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  color: #6f8792;
  font-size: 12.5px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .foot-grid { grid-template-columns: 1fr; } }

/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
