/* Globe Geospatial marketing — calm, product-aligned, not template-heavy */

:root {
  --ink: #1a1f24;
  --muted: #5c6670;
  --line: #cfd6dd;
  --paper: #f7f8f9;
  --white: #ffffff;
  --accent: #0a5f8c;
  --accent-hover: #084c70;
  --nav-bg: #212529; /* Bootstrap bg-dark — matches app navbar */
  --nav-link: rgba(255, 255, 255, 0.75);
  --nav-link-hover: #ffffff;
  --font: "DM Sans", system-ui, sans-serif;
  --max: 1400px;
  --gutter: clamp(1.25rem, 3.5vw, 2.75rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.02rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* —— Nav (app-like dark bar) —— */
.site-nav {
  background: rgb(28 71 115);
  padding: 0.55rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  width: 95%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: 1rem;
  color: var(--nav-link-hover) !important;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav .navbar-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  flex-shrink: 0;
}

.site-nav .navbar-collapse {
  flex-grow: 1;
}

.site-nav .navbar-nav {
  margin-left: auto;
  align-items: center;
}

.site-nav .nav-link {
  color: var(--nav-link) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem !important;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
  color: var(--nav-link-hover) !important;
}

/* Text-style CTA in nav — same family as links, slightly stronger */
.site-nav .nav-app {
  color: var(--nav-link-hover) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem !important;
  margin-left: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none !important;
}

.site-nav .nav-app:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  margin-left: auto;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* —— Layout —— */
main { flex: 1 0 auto; }

.page-wrap,
.container-wide {
  width: 95%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* —— Home hero: centered wide image —— */
.hero {
  background: #faf9f6;
  /* border-bottom: 1px solid var(--line); */
  padding: 2.75rem 0 3.25rem;
}

.hero-grid {
  width: 95%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.hero-copy {
  max-width: 44rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
}

.hero-tagline {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.hero-lead {
  color: var(--muted);
  margin: 1.5rem 0 0;
  font-size: 1.02rem;
  text-align: left;
  max-width: 52rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: center;
}

.btn-primary-site {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-radius: 2px;
  padding: 0.65rem 1.15rem;
  font-size: 0.92rem;
  text-decoration: none !important;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary-site:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.btn-text-site {
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-text-site:hover {
  color: var(--accent) !important;
}

/* Full screenshot — rectangular, no crop, no radius */
.hero-visual {
  margin: 0;
  border: none;
  background: transparent;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #e8eaed;
  box-shadow: 0 12px 36px rgba(26, 31, 36, 0.12);
}

.hero-note {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: left;
}

/* Alternating wide / short columns (template 8/4 pattern) */
.layout-band {
  margin-bottom: 2.5rem;
}

.layout-band.row {
  align-items: center;
}

.layout-band.row > [class*="col-"] {
  min-width: 0;
}

.layout-band:last-child {
  margin-bottom: 0;
}

.layout-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  height: auto;
}

.layout-panel--media {
  padding: 0.65rem; /* room for screenshot box-shadow */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-width: 100%;
  overflow: visible;
  background: transparent;
}

.layout-panel--empty {
  display: none;
}

.section-intro {
  margin-bottom: 2rem;
}

.section-intro .section-lead {
  margin-bottom: 0;
  max-width: 52rem;
}

.section-intro p {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 52rem;
}

.section-intro p:last-child {
  margin-bottom: 0;
}

.layout-band--text {
  max-width: 52rem;
}

.layout-band--text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}

.layout-band--text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.layout-panel .section-title {
  margin-bottom: 0.35rem;
}

.layout-panel .section-lead {
  margin-bottom: 1rem;
}

.layout-panel > h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.45rem;
}

.layout-panel .feature-list {
  max-width: none;
}

.layout-panel .feature-row {
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.layout-panel .feature-row:first-child {
  border-top: none;
  padding-top: 0;
}

.layout-panel .feature-media {
  border-top: none;
  padding: 0;
  display: block;
}

.layout-panel .feature-shot,
.layout-panel .feature-stack {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Product / home bands: keep screenshots inside the wide column */
.layout-panel--media .feature-shot {
  width: 100%;
  max-width: 100%;
}

.layout-panel--media .feature-shot img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(22rem, 40vw);
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  display: block;
  box-shadow:
    0 0 0 1px rgba(10, 95, 140, 0.04),
    0 10px 28px rgba(26, 31, 36, 0.1),
    0 0 36px rgba(10, 95, 140, 0.12);
}

.layout-panel--media .feature-shot--wide img {
  max-height: min(24rem, 44vw);
}

.layout-panel--media .feature-shot--sm img {
  width: auto;
  max-width: min(100%, 18rem);
  max-height: min(18rem, 34vw);
}

.layout-panel--media .feature-stack {
  position: relative;
  width: 100%;
  max-width: min(100%, 28rem);
  height: 14rem;
  min-height: 14rem;
  max-height: 14rem;
  overflow: visible;
  margin: 0 auto;
}

.layout-panel--media .feature-stack__layer {
  max-width: 62%;
  height: auto;
  object-fit: contain;
}

.layout-panel--media .feature-stack__layer--1 {
  width: 62%;
  left: 0;
  top: 0;
}

.layout-panel--media .feature-stack__layer--2 {
  width: 58%;
  right: 0;
  top: 12%;
}

.layout-panel--media .feature-stack__layer--3 {
  width: 42%;
  left: 16%;
  bottom: 0;
}

/* —— Sections —— */
.section {
  padding: 2.75rem 0;
  background: #fffdf8;
}

.section-alt {
  background: #fffdf8;
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.section-lead {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

/* Uneven feature layout — label column narrower, not card-like */
.feature-list {
  display: grid;
  gap: 0;
  max-width: 68rem;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 0.35rem 1.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.feature-row:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-row h3,
.feature-copy h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.feature-row p,
.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.feature-copy h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.feature-body {
  min-width: 0;
}

.feature-row:has(.feature-logo) {
  align-items: start;
}

/* Alternating media blocks (image + copy) */
.feature-media {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.75rem 2.25rem;
  align-items: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.feature-media:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-media--img-right {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.feature-media--img-right .feature-copy {
  order: 1;
}

.feature-media--img-right .feature-shot,
.feature-media--img-right .feature-stack {
  order: 2;
}

.feature-shot {
  margin: 0;
  min-width: 0;
}

.feature-shot img {
  width: 100%;
  max-width: 36rem;
  height: auto;
  display: block;
  /* border: 1px solid var(--line);
  background: #e8eaed; */
  box-shadow:
    0 0 0 1px rgba(10, 95, 140, 0.04),
    0 10px 28px rgba(26, 31, 36, 0.1),
    0 0 36px rgba(10, 95, 140, 0.12);
}

.feature-shot--wide img {
  max-width: 42rem;
}

.feature-shot--sm img {
  max-width: 16rem;
}

/* Stacked vector-style modals */
.feature-stack {
  position: relative;
  width: 100%;
  max-width: 28rem;
  min-height: 22rem;
  margin: 0 auto;
}

.feature-stack__layer {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(10, 95, 140, 0.04),
    0 12px 30px rgba(26, 31, 36, 0.12),
    0 0 32px rgba(10, 95, 140, 0.14);
}

.feature-stack__layer--1 {
  left: 0;
  top: 0;
  width: 72%;
  z-index: 1;
}

.feature-stack__layer--2 {
  right: 0;
  top: 18%;
  width: 68%;
  z-index: 2;
}

.feature-stack__layer--3 {
  left: 18%;
  bottom: 0;
  width: 48%;
  z-index: 3;
}

.feature-logo {
  margin: 0.8rem 0 0;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
}

.feature-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.feature-logo a:hover {
  opacity: 0.85;
}

.feature-logo img {
  width: auto;
  height: auto;
  max-height: 56px;
  max-width: 180px;
  object-fit: contain;
}

/* Split band — text left, offset content right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.1fr);
  gap: 2rem 3rem;
  align-items: start;
}

.split-aside {
  padding-top: 0.35rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.split-aside p:first-child { margin-top: 0; }

/* Inner page header — flat */
.page-hero {
  padding: 2.25rem 0 1.25rem;
  background: #faf9f6;
  /* border-bottom: 1px solid var(--line); */
}

.page-hero h1 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.4rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.prose {
  max-width: 40rem;
}

.prose p { color: var(--muted); }
.prose p strong { color: var(--ink); font-weight: 600; }

.feature-row p em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

/* Invite form */
.invite-form {
  max-width: 28rem;
  display: grid;
  gap: 0.85rem;
}

.invite-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.invite-form input,
.invite-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.5rem 0.65rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}

.invite-form textarea { min-height: 7rem; resize: vertical; }

.invite-form .form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.invite-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.invite-form {
  position: relative;
}

.form-status {
  font-size: 0.92rem;
  margin: 0;
}

.form-status.is-ok { color: var(--ink); }
.form-status.is-error { color: #8a2b2b; }

.page-next {
  margin-top: 2rem;
  padding-top: 1.25rem;
  
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Footer —— */
.site-footer {
  background: rgb(28 71 115);
  color: #9aa3ab;
  padding: 2.25rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.88rem;
}

.site-footer a { color: #c5cdd4; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem 2rem;
  width: 95%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 1.35rem;
}

.footer-brand {
  font-weight: 700;
  color: #f0f2f4;
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
}

.footer-address {
  margin: 0;
  line-height: 1.5;
  color: #8a939c;
}

.footer-grid h4 {
  color: #e4e8eb;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.55rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li { margin-bottom: 0.3rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 95%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter) 0;
  font-size: 0.8rem;
  color: #7a848e;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero-copy {
    max-width: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .feature-media,
  .feature-media--img-right {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .feature-media--img-right .feature-copy,
  .feature-media--img-right .feature-shot,
  .feature-media--img-right .feature-stack {
    order: unset;
  }

  .feature-media--img-right .feature-copy {
    order: 1;
  }

  .feature-media--img-right .feature-shot,
  .feature-media--img-right .feature-stack,
  .feature-media--img-left .feature-shot,
  .feature-media--img-left .feature-stack {
    order: 2;
  }

  .feature-media--img-left .feature-copy {
    order: 1;
  }

  .layout-panel--media .feature-shot img,
  .layout-panel--media .feature-shot--wide img {
    max-height: none;
  }

  .layout-panel--media .feature-shot--sm img {
    max-width: 100%;
    max-height: none;
  }

  .layout-panel--media .feature-stack {
    max-width: 100%;
    height: 12rem;
    min-height: 12rem;
    max-height: 12rem;
  }

  .feature-shot img,
  .feature-shot--wide img {
    max-width: 100%;
  }

  .feature-shot--sm img {
    max-width: 14rem;
  }

  .feature-stack {
    max-width: 22rem;
    min-height: 18rem;
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .site-nav .nav-app {
    margin-left: 0;
    margin-top: 0.35rem;
    display: inline-block;
  }
}
