@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/manrope-latin.woff2') format('woff2');
}

:root {
  --welcome-navy: #0d1d33;
  --welcome-navy-lift: #16324a;
  --welcome-ink: #14233a;
  --welcome-muted: #627086;
  --welcome-jade: #2f7d6e;
  --welcome-cyan: #1b8295;
  --welcome-paper: #fbfaf7;
  --welcome-paper-deep: #f1f3f1;
  --welcome-line: #d9dfe2;
  --welcome-white: #ffffff;
  --welcome-serif: Georgia, 'Times New Roman', serif;
  --welcome-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--welcome-ink);
  background: var(--welcome-paper);
  font-family: var(--welcome-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid rgba(27, 130, 149, .32); outline-offset: 3px; }

.welcome-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 12px clamp(20px, 4.5vw, 70px);
  color: #edf4f5;
  background: rgba(13, 29, 51, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
}
.welcome-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.welcome-brand img { display: block; width: 50px; height: 50px; }
.welcome-brand strong { display: block; font-size: 22px; line-height: 1; letter-spacing: -.03em; }
.welcome-brand strong > span { color: #9aa6b5; font-weight: 500; }
.welcome-brand strong { color: var(--welcome-paper); font-weight: 800; }
.welcome-brand small {
  display: block;
  margin-top: 6px;
  color: #3fa58f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.welcome-header nav { display: flex; align-items: center; gap: 24px; }
.welcome-header nav > a { color: #c3ced6; font-size: 12px; font-weight: 700; text-decoration: none; }
.welcome-header nav > a:hover { color: white; }
.welcome-header .nav-cta {
  padding: 9px 14px;
  color: var(--welcome-navy);
  background: var(--welcome-paper);
  border-radius: 8px;
}
.welcome-header .nav-cta:hover { color: var(--welcome-navy); background: white; }

.welcome-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(400px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  min-height: 690px;
  padding: 88px clamp(24px, 6vw, 96px) 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(47, 125, 110, .12), transparent 30%),
    linear-gradient(145deg, #fbfaf7 0%, #f4f6f4 70%, #edf2f1 100%);
}
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.welcome-eyebrow {
  margin: 0 0 12px;
  color: var(--welcome-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.welcome-hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--welcome-serif);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.045em;
}
.hero-lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: #485970;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.58;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hero-actions > span { color: var(--welcome-muted); font-size: 12px; }
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 20px;
  color: white;
  background: var(--welcome-navy);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(13, 29, 51, .13);
}
.primary-cta:hover { background: var(--welcome-navy-lift); transform: translateY(-1px); }

.agreement-stack {
  position: relative;
  min-height: 470px;
  perspective: 1100px;
}
.stack-doc {
  position: absolute;
  width: min(370px, 78%);
  min-height: 112px;
  padding: 20px 22px;
  color: var(--welcome-ink);
  background: rgba(255, 255, 255, .94);
  border: 1px solid #d8dee2;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(13, 29, 51, .1);
  transform: rotateY(-8deg) rotateZ(-1deg);
}
.stack-doc small { float: right; color: #8b98a6; font-size: 10px; font-weight: 800; }
.stack-doc strong { display: block; font-family: var(--welcome-serif); font-size: 24px; line-height: 1.15; }
.stack-doc span { display: block; margin-top: 8px; color: var(--welcome-muted); font-size: 12px; }
.stack-master { top: 4px; left: 7%; }
.stack-order { top: 98px; left: 18%; }
.stack-schedule { top: 192px; left: 29%; }
.stack-dpa { top: 286px; left: 40%; }
.stack-result {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: min(320px, 70%);
  padding: 18px 20px;
  color: white;
  background: var(--welcome-navy);
  border-left: 4px solid #3fa58f;
  border-radius: 9px;
  box-shadow: 0 20px 45px rgba(13, 29, 51, .2);
}
.stack-result span { display: block; color: #9fd5ca; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.stack-result strong { display: block; margin-top: 5px; font-family: var(--welcome-serif); font-size: 21px; }

.local-section {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 7vw, 110px);
  padding: 88px clamp(24px, 7vw, 112px);
  color: #e9eff2;
  background:
    radial-gradient(circle at 10% -20%, rgba(63, 165, 143, .26), transparent 38%),
    var(--welcome-navy);
}
.section-heading h2 {
  max-width: 770px;
  margin: 0;
  font-family: var(--welcome-serif);
  font-size: clamp(35px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.dark-heading .welcome-eyebrow { color: #72bdc4; }
.dark-heading h2 { color: white; }
.local-copy { align-self: end; max-width: 760px; }
.local-copy p { margin: 0; color: #bdcad3; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.65; }
.local-copy p + p { margin-top: 22px; }
.local-copy strong { color: white; font-weight: 700; }
/* The story page is the long form of this section's argument, so the invitation
   belongs at the end of it -- not only in the footer beside Privacy and Terms,
   where it reads as boilerplate. */
.local-copy p.local-more { margin-top: 32px; }
.local-more a {
  color: #72bdc4;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid rgba(114, 189, 196, .38);
  padding-bottom: 2px;
  transition: color .18s ease, border-color .18s ease;
}
.local-more a:hover { color: white; border-bottom-color: white; }

/* The sticky header would otherwise cover the heading an in-page nav link
   scrolls to. */
#why-local, #workbench { scroll-margin-top: 92px; }

.workbench-section { padding: 96px clamp(18px, 5vw, 78px) 100px; background: var(--welcome-paper); }
.workbench-section > .section-heading { max-width: 840px; margin: 0 auto 42px; text-align: center; }
.section-heading > p:last-child { max-width: 710px; margin: 18px auto 0; color: var(--welcome-muted); }
.workbench-tour { max-width: 1320px; margin: 0 auto; }
.tour-image {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd4da;
  border-radius: 14px;
  background: white;
  box-shadow: 0 30px 70px rgba(13, 29, 51, .15);
}
.tour-image img { display: block; width: 100%; height: auto; }
.tour-marker {
  position: absolute;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--welcome-cyan);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(13, 29, 51, .28);
  font-size: 14px;
  font-weight: 800;
}
.marker-library { top: 19%; left: 18%; }
.marker-graph { top: 19%; left: 55%; }
.marker-chat { top: 19%; left: 84%; }
.tour-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.tour-cards article {
  padding: 24px;
  background: white;
  border: 1px solid var(--welcome-line);
  border-radius: 12px;
}
.tour-cards article > span, .principle-number { color: var(--welcome-cyan); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.tour-cards h3, .principle-grid h3 { margin: 9px 0 8px; font-family: var(--welcome-serif); font-size: 22px; line-height: 1.2; }
.tour-cards p, .principle-grid p { margin: 0; color: var(--welcome-muted); font-size: 13px; line-height: 1.6; }

.principles-section { padding: 90px clamp(24px, 7vw, 112px); background: var(--welcome-paper-deep); border-top: 1px solid var(--welcome-line); }
.compact-heading { max-width: 820px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 46px; }
.principle-grid article { padding-top: 18px; border-top: 2px solid #b9c5ca; }
.principle-grid article:nth-child(2) { border-color: #78aaa0; }
.principle-grid article:nth-child(3) { border-color: #6faeb9; }

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 74px clamp(24px, 7vw, 112px);
  color: white;
  background: var(--welcome-jade);
}
.final-cta > div { max-width: 760px; }
.final-cta .welcome-eyebrow { color: #d1eee7; }
.final-cta h2 { margin: 0; font-family: var(--welcome-serif); font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.03em; }
.final-cta p:last-child { margin: 17px 0 0; color: #d7ebe6; }
.light-cta { flex: 0 0 auto; color: var(--welcome-navy); background: white; }
.light-cta:hover { color: var(--welcome-navy); background: #f0f7f5; }

.welcome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px clamp(20px, 5vw, 78px);
  color: #aebbc5;
  background: #091728;
  font-size: 11px;
}
.welcome-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.welcome-footer a { color: #d6e0e5; text-decoration: none; }
.welcome-footer a:hover { color: white; text-decoration: underline; }

@media (max-width: 980px) {
  .welcome-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 72px; }
  .agreement-stack { width: min(700px, 100%); margin: 0 auto; }
  .local-section { grid-template-columns: 1fr; }
  .local-copy { max-width: 800px; }
}

@media (max-width: 760px) {
  .welcome-header { min-height: 70px; padding: 10px 16px; }
  .welcome-brand img { width: 42px; height: 42px; }
  .welcome-brand strong { font-size: 19px; }
  .welcome-brand small { font-size: 8px; }
  .welcome-header nav > a:not(.nav-cta) { display: none; }
  .welcome-hero { padding: 56px 22px 68px; }
  .welcome-hero h1 { font-size: clamp(45px, 13vw, 66px); }
  .agreement-stack { min-height: 420px; transform: scale(.94); transform-origin: top center; }
  .stack-doc { width: 75%; }
  .stack-master { left: 0; }
  .stack-order { left: 8%; }
  .stack-schedule { left: 16%; }
  .stack-dpa { left: 24%; }
  .local-section, .workbench-section, .principles-section { padding: 68px 22px; }
  .tour-cards, .principle-grid { grid-template-columns: 1fr; }
  .tour-marker { width: 30px; height: 30px; border-width: 2px; font-size: 11px; }
  .final-cta { align-items: flex-start; flex-direction: column; padding: 62px 22px; }
  .welcome-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .welcome-header .nav-cta { padding: 8px 11px; font-size: 11px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .agreement-stack { min-height: 390px; margin-top: -10px; transform: scale(.86); transform-origin: top left; width: 116%; }
  .stack-doc { min-height: 100px; }
  .stack-order { top: 88px; }
  .stack-schedule { top: 176px; }
  .stack-dpa { top: 264px; }
  .stack-result { bottom: 8px; }
  .section-heading h2 { font-size: 36px; }
  .tour-cards article { padding: 20px; }
  .marker-library { left: 15%; }
  .marker-graph { left: 53%; }
  .marker-chat { left: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-cta:hover { transform: none; }
}
