/* Groundwork sales site: direction B, "the clipboard" */

/* Archivo is subset to Basic Latin plus "·" and pinned to normal width; the weight axis (100-900) is kept. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/Archivo.woff2") format("woff2");
}

:root {
  --ground: #fbfaf7;
  --card: #ffffff;
  --ink: #1d2433;
  --muted: #4b5670;
  --rule: #e3e6ec;
  --navy: #1b2a4a;
  --red: #c8102e;
  --link: #2563eb;
  --select: #c9d6f0;
  --shadow: 0 8px 24px rgba(20, 30, 50, 0.08);
  --shadow-sm: 0 6px 18px rgba(20, 30, 50, 0.07);

  --fs-small: 0.9rem;
  --fs-h2: clamp(1.6rem, 1.25rem + 1.4vw, 2.1rem);
  --fs-h1: clamp(2.05rem, 1.4rem + 3vw, 3.4rem);
  --section: clamp(56px, 3rem + 4vw, 104px);
  --ease: 120ms ease-out;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111723;
    --card: #1a2232;
    --ink: #eef1f6;
    --muted: #a9b3c5;
    --rule: #2b3548;
    --navy: #b9ccf5;
    --red: #ff6b7e;
    --link: #8fb0ff;
    --select: #33456b;
    --shadow: none;
    --shadow-sm: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem; /* 17px at the default size; follows a larger browser font setting */
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--fs-h1); font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

::selection { background: var(--select); color: var(--ink); }
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section) 0; scroll-margin-top: 16px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--ink); color: var(--ground);
  border-radius: 0 0 8px 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); text-decoration: none; }
.wordmark .mark { width: 32px; height: 32px; border-radius: 7px; flex: none; }
@media (max-width: 400px) { .header-inner { padding-inline: 16px; } .wordmark { gap: 8px; } .wordmark .mark { width: 28px; height: 28px; border-radius: 6px; } }
.by { font-size: var(--fs-small); color: var(--muted); }

/* Buttons: 44px+ tap targets */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 24px;
  border: 1.5px solid var(--ink); border-radius: 6px;
  font: inherit; font-weight: 650; text-decoration: none; text-align: center;
  transition: background-color var(--ease), color var(--ease);
}
.btn[hidden] { display: none; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: var(--ground); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--muted); }
/* Hover only where a pointer can hover, so a tap on a phone doesn't leave the button looking outlined. */
@media (hover: hover) {
  .btn-primary:hover { background: transparent; color: var(--navy); }
  .btn-secondary:hover { border-color: var(--ink); }
}
.btn-primary:active { background: color-mix(in srgb, var(--navy) 82%, var(--ink)); border-color: var(--navy); color: var(--ground); }
.btn-secondary:active { background: var(--rule); border-color: var(--ink); }

/* Hero */
.hero { padding: clamp(40px, 2rem + 4vw, 88px) 0 var(--section); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 14em; margin-bottom: 0.4em; }
.hero-lede { font-size: 1.15rem; max-width: 34em; color: var(--ink); }
.hero-note { font-size: var(--fs-small); font-weight: 650; color: var(--muted); margin: 0 0 24px; }
.hero-note::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--red); border-radius: 50%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-shot {
  margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 10px; box-shadow: var(--shadow);
}
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 6px; }
/* Phones get a phone capture of the "Who is coming" card (same breakpoint as the <source> in index.html). */
@media (max-width: 640px) { .hero-shot { max-width: 380px; } }

/* Wide screens: text first, then the plan screen large enough to read. */
@media (min-width: 880px) {
  .hero-grid { gap: 48px; }
  .hero-shot { max-width: 1000px; padding: 12px; }
}

/* Footer */
.site-footer { flex-shrink: 0; border-top: 1px solid var(--rule); padding: 32px 0 40px; font-size: var(--fs-small); color: var(--muted); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.footer-inner p { margin: 0; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.footer-made { font-weight: 650; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }

/* Story sections */
.tint { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-lede { font-size: 1.1rem; color: var(--muted); max-width: 34em; margin-bottom: 2em; }
.aside { margin-top: 28px; color: var(--muted); max-width: 40em; font-size: var(--fs-small); }

.problems, .situations { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: 12px; }
.problems { gap: 24px; }
.problems li { font-size: 1.2rem; font-weight: 600; line-height: 1.35; max-width: 30em; }
.problems li::before {
  content: ""; display: block; width: 32px; height: 3px; margin-bottom: 12px;
  background: var(--red); border-radius: 2px;
}
.situations li { padding: 14px 0; border-top: 1px solid var(--rule); max-width: 40em; }
.situations li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 880px) {
  .problems { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .situations { grid-template-columns: 1fr 1fr; column-gap: 48px; max-width: 980px; }
  .situations li { max-width: none; }
  .situations li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}

.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 48px; }
.step h3 { font-size: 1.2rem; margin: 20px 0 0.35em; }
.step p { color: var(--muted); max-width: 30em; margin: 0; }
/* The tag sits on the top edge of the step's screen, like a tab on a clipboard sheet. It comes first in
   the figure, so it is read before the screen and the heading. */
.step-tag {
  position: absolute; top: -12px; left: 16px; z-index: 1;
  padding: 2px 10px; border-radius: 99px;
  background: var(--navy); color: var(--ground); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.steps .shot { position: relative; }
.shot { margin: 0; background: var(--ground); border: 1px solid var(--rule); border-radius: 10px; padding: 8px; box-shadow: var(--shadow-sm); }
.shot img { display: block; width: 100%; border-radius: 6px; }
.shot-phone { max-width: 260px; }
/* Below 880px the "After" step shows a phone capture (same breakpoint as its <source> in index.html). */
.shot-laptop { max-width: 260px; }
.shot figcaption { padding: 10px 4px 2px; font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 880px) {
  /* Each step spans three shared rows (screen, heading, text): the screens stand on one line and the
     three headings line up. */
  .steps { grid-template-columns: 1fr 1fr 1.7fr; column-gap: 32px; row-gap: 0; }
  .step { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
  .steps .shot { align-self: end; }
  .shot-laptop { max-width: none; }
}

.demo-line { font-size: 1.2rem; font-weight: 650; margin: 0 0 14px; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0; }
.demo-addr { color: var(--muted); font-size: var(--fs-small); overflow-wrap: anywhere; }

.jobs-layout { display: grid; gap: 32px; align-items: start; }
.jobs { display: grid; gap: 16px; align-content: start; }
.job { background: var(--ground); border: 1px solid var(--rule); border-radius: 10px; padding: 20px 22px; }
.job h3 { font-size: 1.1rem; margin-bottom: 0.3em; color: var(--navy); }
.job p { margin: 0; }
@media (min-width: 640px) { .jobs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) {
  .jobs-layout { grid-template-columns: 1fr 240px; gap: 48px; }
  .job { padding: 24px 26px; }
}

/* Board section, pricing, pilot */
.board-grid { display: grid; gap: 32px; align-items: start; }
.board-answers { display: grid; gap: 28px; }
.answer h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.35em; }
.answer p { max-width: 38em; margin: 0 0 0.6em; }
.facts { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 38em; }
.price-cards { display: grid; gap: 10px; max-width: 26rem; margin: 0 0 12px; }
.price { margin: 0; padding: 12px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; }
.price-num { font-size: 1.7rem; font-weight: 800; color: var(--navy); margin-right: 4px; }
.price-note { color: var(--muted); font-size: var(--fs-small); }
.board-shot { max-width: 440px; }
.board-cta { margin: 40px 0 0; }
.pilot-facts { margin-bottom: 28px; }
.pilot .section-lede { margin-bottom: 1em; }
.demo-addr a { color: inherit; }
@media (min-width: 980px) {
  .board-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .board-shot { position: sticky; top: 24px; }
}

/* Share block */
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.share-status { min-height: 1.6em; margin: 12px 0 0; font-weight: 650; color: var(--navy); }

/* Privacy and 404: the reading column starts at the same left edge as the header and footer. */
.legal, .notfound { width: 100%; max-width: 1100px; margin: 0 auto; padding: clamp(40px, 2rem + 3vw, 80px) 24px; }
.legal > *, .notfound > * { max-width: 41rem; }
.legal a, .legal strong { overflow-wrap: anywhere; } /* long addresses wrap with large text */
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.updated { color: var(--muted); font-size: var(--fs-small); }
.notfound .btn { margin-top: 8px; }
.hero-addr { margin: 12px 0 0; color: var(--muted); font-size: var(--fs-small); overflow-wrap: anywhere; }
.hero-addr a { color: inherit; }
.demo-club { margin: 0 0 20px; color: var(--muted); font-size: var(--fs-small); font-weight: 650; }
.share-addr { margin: 0 0 16px; font-size: 1.2rem; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }

/* Stand-alone-looking text links: pad the tap area to 44px+ without moving the text (inline padding takes no layout space). */
.hero-addr a, .demo-addr a, .job a, .print-actions a { padding-block: 14px; }
/* With keyboard focus the ring hugs the text instead of the padded tap area. */
.hero-addr a:focus-visible, .demo-addr a:focus-visible, .job a:focus-visible, .print-actions a:focus-visible { padding-block: 0; }
