/* Gromator shared sheet: the USGS quadrangle (DESIGN.md).
   Flat lithograph inks on map white. No gradients, glass or soft shadows.
   Every page in A's look links this first, then its own page file (home.css, how-it-works.css). */

:root {
  --paper: #F7F8F3;      /* map white */
  --ink: #121416;        /* culture black */
  --ink-2: #3B3F44;      /* culture black, secondary text */
  --contour: #9A5B2E;    /* contour brown */
  --hydro: #1F68A8;      /* hydrography blue */
  --wood: #CFE3BE;       /* woodland tint */
  --built: #F1D3CA;      /* built-up tint */
  --amber: #B4690E;      /* the product's own Decide flag */
  --amber-text: #94550A; /* the same flag, dark enough for text on white */
  --rule: rgba(18, 20, 22, .18);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --label: "Old Standard TT", Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  caret-color: var(--hydro);
  overflow-x: clip;
}
::selection { background: var(--hydro); color: var(--paper); }
:focus-visible { outline: 2px solid var(--hydro); outline-offset: 3px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* Collar lettering: wide tracked caps */
.caps, .brand span, .nav-links a {
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: 600 15px/1 var(--sans); font-stretch: 112%; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--ink);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: var(--hydro); border-color: var(--hydro); }
  .btn-line:hover { background: var(--ink); color: var(--paper); }
}

.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 5px; text-decoration-color: var(--hydro);
  transition: color .2s ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--hydro); } }

/* ---------- Collar (nav) ---------- */
.collar { position: relative; z-index: 10; background: var(--paper); border-bottom: 5px double var(--ink); }
.collar-in {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 15px; }
.brand span { letter-spacing: .2em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 12px; font-weight: 600; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s ease; }
.nav-links a[aria-current="page"] { border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { border-color: var(--hydro); } }
.btn-nav { min-height: 42px; padding: 0 18px; font-size: 14px; }
.nav-login {
  display: inline-flex; align-items: center; min-height: 42px; font-size: 12px; font-weight: 600;
  font-stretch: 125%; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
  transition: text-decoration-color .2s ease;
}
@media (hover: hover) and (pointer: fine) { .nav-login:hover { text-decoration-color: var(--hydro); } }
.menu-btn { display: none; }

/* ---------- The map: terrain art, creeks, graticule ticks ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 4.4vw, 64px) 0 clamp(64px, 7vw, 110px); }
.map { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1440 / 1250; pointer-events: none; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.streams path { stroke: var(--hydro); }
/* The hero map prints faint under the text and full where the text ends */
.hero .map {
  --fade: linear-gradient(90deg, rgba(0,0,0,.14) 0, rgba(0,0,0,.14) 52%, #000 68%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
}
/* Narrower, the text spans most of the width: full below the text instead */
@media (max-width: 1399.98px) {
  .hero .map { --fade: linear-gradient(180deg, rgba(0,0,0,.14) 0, rgba(0,0,0,.14) 580px, #000 720px); }
}
.tick { position: absolute; width: 18px; height: 18px; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--ink); }
.tick::before { left: 8px; top: 0; width: 1.5px; height: 18px; }
.tick::after { top: 8px; left: 0; height: 1.5px; width: 18px; }
.t1 { left: 66.66%; top: 8%; } .t2 { left: 66.66%; top: 40%; }
.t3 { left: 33.33%; top: 8%; } .t4 { left: 66.66%; top: 80%; }

.hero-in { position: relative; }
.hero-text { max-width: 1000px; }
h1 {
  font-weight: 760; font-stretch: 108%;
  font-size: clamp(2.4rem, 1.1rem + 3.9vw, 4.6rem);
  line-height: 1.0; letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 0 3px var(--paper), 0 0 8px var(--paper), 0 0 14px var(--paper);
}
.hero-support { margin-top: 28px; max-width: 720px; }
.lede {
  font-size: clamp(17px, 1rem + .3vw, 19.5px); line-height: 1.55; color: var(--ink);
  text-shadow: 0 0 2px var(--paper), 0 0 6px var(--paper), 0 0 10px var(--paper);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Product tag (the Decide flag) */
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-text); border: 1px solid var(--amber); padding: 1px 6px; }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
h2 {
  font-weight: 720; font-stretch: 106%;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
  line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance;
  max-width: 22ch;
}
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.map-label { font: italic 19px/1.45 var(--label); color: var(--hydro); max-width: 52ch; }
.after { margin-top: clamp(40px, 5vw, 56px); max-width: 64ch; font-size: 19px; line-height: 1.55; }

/* Legend symbols (solid parcel, dashed outline, table grid) */
.sym { width: 56px; height: 56px; }
.sym .line { fill: none; stroke: var(--ink); stroke-width: 2; }
.sym .dashed { stroke-dasharray: 6 4; }
.sym .fill-built { fill: var(--built); }
.sym .solid { fill: var(--ink); }
.sym .draft { stroke: var(--contour); stroke-width: 1.5; fill: none; }
.sym .hydro { stroke: var(--hydro); stroke-width: 2; fill: none; stroke-linecap: round; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.2; font-stretch: 106%; margin-bottom: 10px; }
.nowrap { white-space: nowrap; }
.lede + .lede { margin-top: 14px; }
.pilot-tag { display: inline-block; vertical-align: 3px; margin-left: 6px; font-size: 11px; font-weight: 700; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--hydro); border: 1px solid var(--hydro); padding: 2px 6px; }
.detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 56px; margin-top: clamp(56px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--ink); }
h3.caps { font-size: 12px; margin-bottom: 14px; color: var(--contour); }
.sq li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.4; margin: 7px 0; }
.sq li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; background: var(--contour); }

/* What it does not do: solid ink */
.not { background: var(--ink); color: var(--paper); }
.not h2 { color: var(--paper); margin-bottom: clamp(36px, 4vw, 56px); }
.not-list li {
  font-weight: 600; font-stretch: 104%;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2.2rem); line-height: 1.3; letter-spacing: -0.01em;
  padding: 24px 0; border-top: 1px solid rgba(247, 248, 243, .28); max-width: 34em;
}
.not-list li:last-child { border-bottom: 1px solid rgba(247, 248, 243, .28); }
.not-list span { color: #B9BEB3; font-weight: 400; }

/* Pilot CTA: the same terrain, downstream */
.cta { position: relative; overflow: hidden; padding: clamp(90px, 10vw, 150px) 0; border-top: 1.5px solid var(--ink); }
.map-cta { aspect-ratio: 1440 / 650; }
.cta .wrap { position: relative; }
.cta-panel { max-width: 640px; background: var(--paper); border: 1.5px solid var(--ink); padding: clamp(28px, 4vw, 52px); }
.cta-panel p { margin: 20px 0 30px; font-size: 18px; }

/* Footer: bottom collar */
.foot { border-top: 5px double var(--ink); padding: 56px 0 36px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid p { margin-top: 14px; color: var(--ink-2); max-width: 34ch; }
.foot ul li { margin: 6px 0; }
.foot ul a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot ul a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hydro); } }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }

/* ---------- Inner pages: a shorter sheet over the same map ----------
   pilot, security, privacy, terms, thanks, 404 */
.ruled { border-top: 1.5px solid var(--ink); }
.page-hero { padding-bottom: clamp(56px, 6vw, 96px); }
.page-hero .hero-text { max-width: 920px; }
.page-hero h1 { font-size: clamp(2.3rem, 1.1rem + 3.4vw, 4.2rem); }
.page-hero .hero-support { max-width: 680px; }
.page-hero .hero-cta { margin-top: 30px; }
.page-hero .small { margin-top: 18px; font-size: 16px; color: var(--ink-2); text-shadow: 0 0 2px var(--paper), 0 0 6px var(--paper); }
.page-hero.short { min-height: min(64vh, 620px); }

/* Prose: legend rows, heading left, text right */
.prose a:not(.btn) { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--hydro); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .prose a:not(.btn):hover { color: var(--hydro); } }
.eff { font-size: 12px; font-weight: 700; color: var(--contour); margin-bottom: 22px; }
.clause {
  display: grid; grid-template-columns: minmax(200px, 4fr) 8fr; gap: 10px clamp(32px, 5vw, 80px);
  padding: 28px 0 32px; border-top: 1px solid var(--rule);
}
.clause:first-of-type { border-top: 1.5px solid var(--ink); }
.clause:last-child { border-bottom: 1.5px solid var(--ink); }
.clause h2 { font-size: clamp(19px, 1rem + .3vw, 22px); font-weight: 700; font-stretch: 106%; line-height: 1.25; letter-spacing: -0.005em; max-width: 20ch; }
.clause-body { max-width: 64ch; }
.clause-body > * + * { margin-top: 14px; }
.clause-body li { position: relative; padding-left: 22px; margin: 10px 0; }
.clause-body li:first-child { margin-top: 0; }
.clause-body li:last-child { margin-bottom: 0; }
.clause-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--contour); }
.clause-body b { font-weight: 700; }
.lead-in { font-size: clamp(17px, 1rem + .3vw, 19.5px); line-height: 1.55; }

/* A note set on the dashed built-up parcel */
.parcel-note { max-width: 860px; background: var(--built); border: 1.5px dashed var(--ink); padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px); font-size: clamp(17px, 1rem + .25vw, 19px); }

/* Four facts as a ruled legend (security) */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); }
.fact { padding: 26px 0 30px; border-top: 1.5px solid var(--ink); }
.fact .step-no { display: block; font-size: 11px; font-weight: 700; color: var(--contour); margin-bottom: 10px; }
.fact h3 { margin-bottom: 10px; }
.fact p { color: var(--ink-2); max-width: 46ch; }

/* ---------- Motion ----------
   One authored moment per page: the creek draws downstream while the headline settles. */
@media (prefers-reduced-motion: no-preference) {
  .s { stroke-dasharray: 1; animation: draw 1.6s var(--ease-out) .1s both; }
  .s-trib { animation-duration: 1s; animation-delay: .55s; }
  .s-t2 { animation-delay: .8s; }
  h1 { animation: rise 0.7s var(--ease-out) both; --rise: 14px; }
  .hero-support { animation: rise .6s var(--ease-out) .12s both; --rise: 8px; }
  .js .reveal.in { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  h1, .hero-support { animation: fade .3s ease both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }
@keyframes land { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; margin-left: auto; min-height: 42px; padding: 0 14px;
    background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
    font: 600 12px/1 var(--sans); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  }
  .collar.open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    margin: 5px 0 0; background: var(--paper); border-bottom: 1.5px solid var(--ink); padding: 8px var(--gutter) 16px;
  }
  .collar.open .nav-links a { display: block; padding: 14px 0; font-size: 13px; border-bottom: 1px solid var(--rule); }
  .nav-login { margin-left: auto; }
  .menu-btn { margin-left: 0; order: 3; }
  .detail { grid-template-columns: 1fr; }
  .clause { grid-template-columns: 1fr; }
  .clause h2 { max-width: none; }
  .map { width: 1500px; left: calc(50% - 860px); }
  .map-cta { width: 1500px; left: auto; right: -260px; }
  .tick { display: none; }
}
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .btn-nav { display: none; }
  .collar-in { height: 64px; gap: 20px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .after { font-size: 17px; }
  .hero .map { --fade: linear-gradient(180deg, rgba(0,0,0,.14) 0, rgba(0,0,0,.14) 700px, #000 840px); }
}
@media (pointer: coarse), (max-width: 720px) {
  .foot ul li { margin: 0; }
  .foot ul a { display: inline-flex; align-items: center; min-height: 44px; }
}
