/* Markup Maps marketing site.
   Concept: a drawing sheet. A site plan on a survey grid is the hero; the footer is the
   sheet's title block, carrying the real company details. One family (Geist) throughout. */

@font-face {
  font-family: "Geist";
  src: url("/assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sheet: #f6f8f7;      /* drawing paper, cool and faintly green */
  --ink: #14211b;        /* linework and text */
  --muted: #56665e;      /* secondary text */
  --grid: #dbe3df;       /* survey grid, hairlines */
  --fill: #e8eeeb;       /* building footprints, quiet fills */
  --brand: #149056;      /* Markup Maps emerald: markups and actions */
  --brand-ink: #ffffff;
  --flag: #e8b923;       /* hi-vis yellow, used once: the revision delta */
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --sheet: #0f1714;
    --ink: #e4ebe7;
    --muted: #9aaba2;
    --grid: #22302a;
    --fill: #1a2621;
    --brand: #2bb386;
    --brand-ink: #06140e;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 72rem; margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 650; font-size: 1.125rem; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: inherit; }
.brand img { width: 2rem; height: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border-radius: 6px;
  font-weight: 560;
  font-size: 0.975rem;
  text-decoration: none;
  border: 1px solid var(--brand);
  transition: background-color 120ms ease, color 120ms ease;
}
.button-primary { background: var(--brand); color: var(--brand-ink); }
.button-primary:hover { color: var(--brand-ink); filter: brightness(1.06); }
.button-quiet { color: var(--ink); border-color: var(--grid); background: transparent; }
.button-quiet:hover { border-color: var(--brand); color: var(--brand); }

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.375rem, 5.2vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 720;
  text-wrap: balance;
}
.hero p { margin: 1.25rem 0 0; color: var(--muted); font-size: 1.1875rem; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.plan { width: 100%; height: auto; display: block; color: var(--ink); }
.plan .grid-minor { stroke: var(--grid); stroke-width: 0.5; }
.plan .grid-major { stroke: var(--grid); stroke-width: 1; }
.plan .tick { fill: var(--muted); font: 500 9px var(--font); font-variant-numeric: tabular-nums; }
.plan .line { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.plan .line-thin { fill: none; stroke: var(--ink); stroke-width: 0.75; opacity: 0.7; }
.plan .boundary { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 10 4 2 4; }
.plan .footprint { fill: var(--fill); stroke: var(--ink); stroke-width: 1; }
.plan .utility { fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: 6 4; }
.plan .label { fill: var(--muted); font: 500 10px var(--font); }
.plan .mark { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan .mark-text { fill: var(--brand); font: 600 11px var(--font); font-variant-numeric: tabular-nums; }
.plan .note { fill: var(--sheet); stroke: var(--brand); stroke-width: 1.25; }
.plan .note-text { fill: var(--ink); font: 500 10.5px var(--font); }
.plan .delta { fill: var(--flag); stroke: var(--ink); stroke-width: 1; }
.plan .delta-text { fill: #14211b; font: 700 9px var(--font); }

/* The one orchestrated moment: the revision cloud draws itself in. */
.plan .cloud { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.6s cubic-bezier(.6,.1,.3,1) 0.3s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .plan .cloud { animation: none; } }

/* Workflow */
.workflow { border-top: 1px solid var(--grid); }
.workflow .wrap { padding-block: clamp(3rem, 7vw, 5rem); }
.workflow h2, .doc h1 {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 680;
  text-wrap: balance;
  max-width: 30ch;
}
.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.steps li { display: grid; gap: 0.5rem; align-content: start; }
.steps svg { width: 1.75rem; height: 1.75rem; color: var(--brand); }
.steps h3 { margin: 0.25rem 0 0; font-size: 1.0625rem; font-weight: 640; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.975rem; }

.invite .wrap { padding-block: 0 clamp(3rem, 7vw, 5rem); }
.invite p { margin: 0; max-width: var(--measure); font-size: 1.125rem; }
.invite a { color: var(--brand); font-weight: 560; }

/* Documents: privacy and support */
.doc .wrap { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.doc article { max-width: var(--measure); }
.doc .lede { color: var(--muted); margin: 1rem 0 0; }
.doc h2 { margin: 2.5rem 0 0.5rem; font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 650; text-wrap: balance; }
.doc p, .doc ul { margin: 0.75rem 0 0; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.375rem; }
.doc strong { font-weight: 620; }
.contact-line { font-size: 1.375rem; font-weight: 620; letter-spacing: -0.015em; margin-top: 1.5rem; }
.contact-line a { color: var(--brand); }

/* Footer: the drawing title block */
.title-block .wrap { padding-block: 0 2.5rem; }
.title-block dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1.4fr 1fr 0.9fr;
  border: 1.5px solid var(--ink);
}
.title-block dl > div { padding: 0.75rem 1rem; border-left: 1px solid var(--ink); min-width: 0; }
.title-block dl > div:first-child { border-left: 0; }
.title-block dt { font-size: 0.75rem; color: var(--muted); }
.title-block dd { margin: 0.125rem 0 0; font-size: 0.9375rem; font-weight: 560; overflow-wrap: anywhere; }
.title-block dd a { text-decoration: none; }
.title-block dd a:hover { text-decoration: underline; }
.title-block .pages a + a::before { content: ", "; color: var(--ink); }
.title-block .product dd { display: flex; align-items: center; gap: 0.5rem; }
.title-block .product img { width: 1.25rem; height: 1.25rem; }

@media (max-width: 60rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-block dl { grid-template-columns: 1fr 1fr; }
  .title-block dl > div { border-left: 0; border-top: 1px solid var(--ink); }
  .title-block dl > div:nth-child(-n+2) { border-top: 0; }
  .title-block dl > div:nth-child(even) { border-left: 1px solid var(--ink); }
}

@media (max-width: 34rem) {
  .steps { grid-template-columns: 1fr; }
  .title-block dl { grid-template-columns: 1fr; }
  .title-block dl > div, .title-block dl > div:nth-child(even) { border-left: 0; }
  .title-block dl > div:nth-child(2) { border-top: 1px solid var(--ink); }
}
