@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

/* Shared site styling (distinct, non-template look)
   Theme: clean, map-adjacent product UI (light surfaces + crisp typography). */

:root {
  /* Clean, "product" UI palette (light surfaces, high-contrast text). */
  --night: #0b1220;
  --ocean: #f6f8fb; /* page background */
  --paper: #ffffff; /* surfaces/cards */
  --paper-2: #f8fafc; /* subtle surface tint */
  --ink: #0f172a; /* primary text */
  --muted: #475569; /* secondary text */

  /* Primary + accents (Material-ish). */
  --teal: #1a73e8; /* primary */
  --sky: #4aa3ff; /* lighter primary tint (glows/highlights) */
  --sun: #fbbc04;
  --rose: #ea4335;
  --ring: rgba(26, 115, 232, 0.28);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 22px 60px rgba(15, 23, 42, 0.14);
  --maxw: 1120px;

  --header-h: 76px;
  --header-h-sm: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--ocean);
  /* Light-touch depth without the heavy "deep blue" look. */
  background-image:
    radial-gradient(1100px 640px at 12% 8%, rgba(26, 115, 232, 0.10), rgba(246, 248, 251, 0) 62%),
    radial-gradient(900px 520px at 92% 28%, rgba(251, 188, 4, 0.10), rgba(246, 248, 251, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 251, 0.92));
  overflow-x: hidden;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Contact page: keep the page calm and distraction-free (no animated canvas, no gradients). */
body.page-contact {
  background-color: #ffffff;
  background-image: none;
}

/* Anchor jumps should account for fixed header. */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

@media (max-width: 640px) {
  body {
    padding-top: var(--header-h-sm);
  }

  section[id] {
    scroll-margin-top: calc(var(--header-h-sm) + 18px);
  }
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(26, 115, 232, 0.35);
}

a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(26, 115, 232, 0.65);
}

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(56px, 6.6vw, 92px) 0;
}

.hero {
  position: relative;
  padding: clamp(44px, 6vw, 86px) 0;
  /* Keep hero overlay + content above any background layers. */
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Ensure legibility over the hero illustration. */
  background:
    radial-gradient(900px 520px at 16% 12%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(246, 248, 251, 0.94), rgba(246, 248, 251, 0.84));
  pointer-events: none;
  z-index: 0;
}

/* On an all-white page, keep the hero overlay plain white too. */
body.page-contact .hero::before {
  background: #ffffff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.40;
  filter: saturate(1.06) contrast(1.02);
  pointer-events: none;
  z-index: 0;
}

/* Home page hero: keep the illustration band centered (avoid "chopped" look). */
.page-home .hero__bg {
  object-position: 50% 50%;
}

@media (max-width: 640px) {
  /* Slightly bias upward on tall/narrow viewports. */
  .page-home .hero__bg {
    object-position: 50% 46%;
  }
}

.hero__route {
  position: absolute;
  inset: -40px 0 auto 0;
  height: 320px;
  width: 100%;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.hero__route path {
  stroke: rgba(15, 23, 42, 0.18);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 6 7;
}

.subcopy {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
  max-width: 76ch;
}

.subcopy--ink {
  color: rgba(15, 23, 42, 0.62);
}

.paper {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.paper--tight {
  border-radius: var(--radius-sm);
}

.paper__inner {
  padding: clamp(18px, 3.2vw, 28px);
}

.kicker {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.85rem;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.62);
}

.kicker--ink {
  color: rgba(15, 23, 42, 0.62);
}

.display {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(34px, 5.4vw, 58px);
}

.lede {
  font-size: clamp(16px, 1.9vw, 20px);
  color: rgba(15, 23, 42, 0.82);
  margin-top: 14px;
  max-width: 64ch;
}

.lede--ink {
  color: rgba(15, 23, 42, 0.82);
}

.section-title {
  margin-top: 10px;
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* ---------- Product visuals (homepage) ---------- */

.product-shot {
  margin-top: 14px;
}

.product-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.product-shot--crop .product-shot__frame {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  /* Crop tighter than the source screenshot so in-app chrome doesn't show
     (e.g. reset/refresh buttons and the legend/diagnostics panel). */
  aspect-ratio: 1 / 1;
}

.product-shot--crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the map center prominent while cropping UI side panels. */
  object-position: 50% 64%;
  /* Extra zoom so screenshot UI chrome stays out of frame. */
  transform: scale(1.42);
  transform-origin: 50% 60%;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

@media (max-width: 640px) {
  /* Keep the same "map-only" crop on small screens too. */
  .product-shot--crop .product-shot__frame {
    aspect-ratio: 1 / 1;
  }
}

.product-shot figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.66);
}

.product-shot--crop figcaption {
  max-width: 66ch;
}

.feature-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-item p {
  color: rgba(15, 23, 42, 0.74);
  max-width: 66ch;
}

.feature-item strong {
  color: rgba(15, 23, 42, 0.92);
  font-weight: 850;
}

.feature-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.10);
  flex: none;
}

.product-ui {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.14);
}

/* ---------- Header / nav ---------- */

.site-skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 9999;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-2);
  text-decoration: none;
  font-weight: 850;
}

.site-skip-link:focus {
  left: 12px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

@media (max-width: 640px) {
  .site-header {
    height: var(--header-h-sm);
  }
}

.site-header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.18));
}

.brand__name {
  font-size: 1.12rem;
  letter-spacing: 0.18px;
  font-weight: 820;
  color: var(--ink);
}

@media (max-width: 900px) {
  .brand__name {
    font-size: 0.98rem;
  }
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: rgba(15, 23, 42, 0.78);
  font-weight: 650;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
  font-family: inherit;
  letter-spacing: 0.01em;
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(26, 115, 232, 0.55);
}

.site-nav a:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 10px;
}

.site-nav a[aria-current="page"] {
  color: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(26, 115, 232, 0.85);
}

.menu-toggle {
  display: none;
  margin-left: 10px;
  height: 40px;
  width: 40px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.14);
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: relative;
  }

  .site-nav ul {
    position: absolute;
    top: 52px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
    min-width: 210px;
    border: 1px solid rgba(15, 23, 42, 0.12);
  }

  .site-nav li {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .site-nav li:last-child {
    border-bottom: none;
  }

  .site-nav a {
    display: block;
    padding: 12px 14px;
    border-bottom: none;
  }

  .site-header.is-open .site-nav ul {
    display: flex;
  }
}

@media (max-width: 640px) {
  .site-nav ul {
    top: 48px;
    min-width: 190px;
  }
}

/* ---------- Buttons / tags ---------- */

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 820;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

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

.btn--primary {
  background: var(--teal);
  color: #ffffff;
  border-color: rgba(26, 115, 232, 0.30);
  box-shadow: 0 10px 28px rgba(26, 115, 232, 0.22);
}

.btn--primary:hover {
  background: #1669d2;
  box-shadow: 0 12px 32px rgba(26, 115, 232, 0.26);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.86);
  border-color: rgba(15, 23, 42, 0.16);
}

.btn--ghost:hover {
  background: rgba(26, 115, 232, 0.06);
  border-color: rgba(26, 115, 232, 0.22);
}

/* Home page hero CTA: more "product" than generic gradient pill. */
.page-home .btn--hero-cta {
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  color: rgba(15, 23, 42, 0.92);
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}

.page-home .btn--hero-cta::after {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(520px 140px at 20% 0%, rgba(251, 188, 4, 0.20), rgba(255, 255, 255, 0) 65%),
    radial-gradient(520px 140px at 80% 100%, rgba(26, 115, 232, 0.18), rgba(255, 255, 255, 0) 62%);
  opacity: 0.95;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
  /* Slow drift keeps the CTA "alive" without being obnoxious. */
  animation: vss-cta-glow 7.6s ease-in-out infinite;
}

.page-home .btn--hero-cta.is-attention {
  /* Applied briefly via JS every few seconds (when visible). */
  animation: vss-cta-jiggle 650ms ease-in-out 1;
  will-change: transform;
}

.page-home .btn--primary.is-attention {
  /* Primary CTA (index actions row). */
  animation: vss-cta-jiggle 650ms ease-in-out 1;
  will-change: transform;
}

@keyframes vss-cta-glow {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes vss-cta-jiggle {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  18% { transform: translate3d(-2px, 0, 0) rotate(-1deg); }
  36% { transform: translate3d(2px, 0, 0) rotate(1deg); }
  54% { transform: translate3d(-1px, 0, 0) rotate(-0.7deg); }
  72% { transform: translate3d(1px, 0, 0) rotate(0.7deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

.page-home .btn--hero-cta span,
.page-home .btn--hero-cta svg {
  position: relative;
  z-index: 1;
}

.page-home .btn--hero-cta svg {
  width: 18px;
  height: 18px;
  opacity: 0.92;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.page-home .btn--hero-cta:hover {
  box-shadow:
    0 22px 58px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.page-home .btn--hero-cta:hover::after {
  transform: translateY(-2px);
  opacity: 1;
}

.page-home .btn--hero-cta:hover svg {
  transform: translateX(2px);
  opacity: 1;
}

.page-home .btn--hero-cta:focus-visible {
  border-radius: 14px; /* override generic 10px focus rounding */
}

.page-home .btn--hero-cta:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .btn--hero-cta,
  .page-home .btn--hero-cta::after,
  .page-home .btn--hero-cta svg {
    transition: none;
  }

  .page-home .btn--hero-cta::after,
  .page-home .btn--hero-cta.is-attention,
  .page-home .btn--primary.is-attention {
    animation: none;
  }
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(26, 115, 232, 0.08);
  border: 1px solid rgba(26, 115, 232, 0.18);
  color: rgba(15, 23, 42, 0.74);
}

.tag--ink {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.70);
}

/* ---------- Grids + notes ---------- */

.grid {
  display: grid;
  gap: 18px;
}

.grid--2 {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

@media (max-width: 980px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.grid--cards {
  grid-template-columns: repeat(12, 1fr);
}

.span-6 {
  grid-column: span 6;
}

@media (max-width: 980px) {
  .span-6 {
    grid-column: 1 / -1;
  }
}

.note {
  position: relative;
  overflow: hidden;
}

.note::before {
  content: "";
  position: absolute;
  inset: 10px 12px auto auto;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(240, 178, 62, 0.65), rgba(232, 93, 117, 0.15) 70%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.note h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.note p {
  color: rgba(15, 23, 42, 0.72);
}

/* ---------- Legal / long-form text (Privacy) ---------- */

.legal h1 {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.legal .meta {
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.62);
}

.legal h2 {
  margin-top: 22px;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.legal p {
  margin-top: 12px;
  color: rgba(15, 23, 42, 0.78);
}

.legal ul {
  margin: 10px 0 0 18px;
  color: rgba(15, 23, 42, 0.76);
}

.legal li {
  margin: 6px 0;
  line-height: 1.5;
}

/* ---------- Forms (Contact) ---------- */

.site-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .site-form {
    grid-template-columns: 1fr;
  }
}

.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 820;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.82);
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 23, 42, 0.92);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.help {
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.62);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 30px;
  padding: 22px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.62);
}

.site-footer a {
  color: rgba(15, 23, 42, 0.72);
}

/* ---------- Legal pages (privacy, terms, etc.) ---------- */

.legal {
  color: rgba(15, 23, 42, 0.78);
  max-width: 78ch;
}

.legal h1 {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  color: rgba(15, 23, 42, 0.92);
}

.legal .meta {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
}

.legal h2 {
  margin-top: 22px;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: rgba(15, 23, 42, 0.90);
}

.legal p {
  margin-top: 12px;
  color: rgba(15, 23, 42, 0.74);
}

.legal ul {
  margin: 10px 0 0 18px;
  color: rgba(15, 23, 42, 0.74);
}

.legal li {
  margin: 6px 0;
}

.legal a {
  color: rgba(15, 23, 42, 0.92);
  text-decoration-color: rgba(26, 115, 232, 0.55);
}

.legal a:hover {
  text-decoration-color: rgba(26, 115, 232, 0.85);
}

/* p5 background canvas (only on pages that load it) */
canvas.p5Canvas {
  position: fixed !important;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

