/* Precision Routing — marketing site
   Direction: grit asphalt + copper route accent (not purple / cream-serif / broadsheet). */

:root {
  --ink: #12181f;
  --ink-soft: #243041;
  --paper: #eef1f4;
  --paper-deep: #d9e0e8;
  --mist: #9aabbc;
  --copper: #c45c26;
  --copper-bright: #e06a2c;
  /* Same royal blue as the in-app GPS chevron puck (MapComponent / gpsicon_puck). */
  --puck-blue: #2563eb;
  --steel: #5a6b7c;
  --line: rgba(18, 24, 31, 0.12);
  /* Sister stack with Precision Relay: Manrope display + DM Sans body. */
  --font-display: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --max: 68rem;
  --nav-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--copper-bright);
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav .brand:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Sister mark to Precision Relay — square + arrow, puck blue instead of Relay orange. */
.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: var(--puck-blue);
  border-radius: 0.55rem 0.55rem 0.55rem 0.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  transform: rotate(-5deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--copper);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  background: var(--ink-soft);
  color: var(--paper) !important;
}

@media (max-width: 720px) {
  .nav-links .hide-sm {
    display: none;
  }
}

/* —— Hero (full-bleed composition) —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem 3.5rem;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(196, 92, 38, 0.35), transparent 55%),
    linear-gradient(165deg, #1a2430 0%, #0e1319 45%, #1c1612 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-route path {
  fill: none;
  stroke: rgba(224, 106, 44, 0.85);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}

.hero-route.is-drawn path {
  animation: draw-route 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes draw-route {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0 0 1.25rem;
  opacity: 0;
  transform: translateY(1.25rem);
}

.hero-brand.is-in {
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 22ch;
  margin: 0 0 0.85rem;
  opacity: 0;
  transform: translateY(1rem);
}

.hero-headline.is-in {
  animation: rise-in 0.9s 0.12s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-support {
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--paper) 78%, var(--mist));
  max-width: 36ch;
  margin: 0 0 1.75rem;
  opacity: 0;
  transform: translateY(1rem);
}

.hero-support.is-in {
  animation: rise-in 0.9s 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(1rem);
}

.hero-actions.is-in {
  animation: rise-in 0.9s 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--copper-bright);
  color: var(--ink) !important;
  border-color: var(--copper-bright);
}

.btn-primary:hover {
  background: #f07838;
  color: var(--ink) !important;
}

.btn-ghost {
  background: transparent;
  color: var(--paper) !important;
  border-color: color-mix(in srgb, var(--paper) 45%, transparent);
}

.btn-ghost:hover {
  border-color: var(--paper);
  color: var(--paper) !important;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper) !important;
  border-color: var(--ink);
}

.btn-ink:hover {
  background: var(--ink-soft);
  color: var(--paper) !important;
}

.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.section .lede {
  font-size: 1.1rem;
  color: var(--steel);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.section-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .section-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
  }
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.feature-list li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.feature-list p {
  margin: 0;
  color: var(--steel);
}

.band-ink {
  background: var(--ink);
  color: var(--paper);
}

.band-ink .lede {
  color: color-mix(in srgb, var(--paper) 70%, var(--mist));
}

.band-ink .feature-list li {
  border-top-color: rgba(238, 241, 244, 0.14);
}

.band-ink .feature-list p {
  color: color-mix(in srgb, var(--paper) 65%, var(--mist));
}

.band-paper-deep {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

/* Pricing — interaction content, allowed as structured rows not hero cards */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

.price-table .amt {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.price-note {
  margin-top: 1.5rem;
  color: var(--steel);
  font-size: 0.95rem;
  max-width: 40rem;
}

/* Legal / inner pages */
.page-hero {
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.page-hero .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.page-hero .meta {
  color: var(--steel);
  margin: 0;
}

.legal-banner {
  margin: 0;
  padding: 0.75rem 1.5rem;
  background: #fff8eb;
  border-bottom: 1px solid #f2e5cd;
  color: #7a6339;
  font-size: 0.88rem;
  text-align: center;
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose a {
  font-weight: 600;
}

/* Join */
.join-panel {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
}

.join-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.28em;
  margin: 1.5rem 0 0.5rem;
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.footer-brand .brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1rem;
}

.footer-meta {
  margin: 0;
  color: var(--steel);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--copper);
}

/* —— Sister blurb + shell IA (layered on locked tokens) —— */
.sister-blurb {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--paper) 78%, var(--mist));
  opacity: 0;
  transform: translateY(1rem);
}

.sister-blurb.is-in {
  animation: rise-in 0.9s 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sister-blurb a {
  color: var(--copper-bright);
  font-weight: 600;
}

.sister-section {
  padding: 2.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.sister-section p {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--steel);
  font-size: 1.05rem;
}

.sister-section a {
  font-weight: 600;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-dropdown > button:hover {
  color: var(--copper);
}

.nav-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(18, 24, 31, 0.12);
  z-index: 50;
}

.nav-menu.is-open {
  display: block;
}

.nav-menu a,
.nav-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.nav-menu a:hover,
.nav-menu button:hover {
  color: var(--copper);
  background: color-mix(in srgb, var(--paper-deep) 70%, transparent);
}

/* Forms (login / account placeholders) */
.auth-form {
  max-width: 24rem;
  display: grid;
  gap: 1.1rem;
}

.auth-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.4rem;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: 2px solid color-mix(in srgb, var(--puck-blue) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--puck-blue);
}

.auth-form .form-message {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.95rem;
  color: var(--steel);
}

.auth-form .form-message.is-error {
  color: #a33a1a;
}

.auth-note {
  margin: 0;
  color: var(--steel);
  font-size: 0.95rem;
}

/* Support the launch — one-time contribute (not Donate) */
.support-facts {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.support-facts li {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.98rem;
}

.support-facts strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.support-actions {
  opacity: 1;
  transform: none;
  margin-bottom: 1rem;
}

.price-note code,
.auth-note code {
  font-size: 0.88em;
  word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand,
  .hero-headline,
  .hero-support,
  .hero-actions,
  .sister-blurb,
  .hero-route path {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
