/*
 * EZ Software Labs — direction D, "Harbor, combined" (docs/03 §5.3, the brand canvas).
 * Every rule lives here: the pages carry no inline style, so the Content-Security-Policy allows
 * styles from this origin only. Fonts are served from this origin too: no visitor is sent to a
 * font service.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/AtkinsonHyperlegibleMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/AtkinsonHyperlegibleMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --teal: #0E7C86;
  --teal-deep: #0A5C63;
  --teal-on-dark: #5FC4CC;
  --mint: #D7F2F0;
  --sunshine: #FFC940;
  --sunshine-soft: #FFF4CF;
  --sunshine-line: #F0D57A;
  --mist: #F4F8F8;
  --row: #F1F6F6;
  --ink: #0F2427;
  --slate: #4A5F62;
  --line: #D3E0E1;
  --white: #FFFFFF;
  --on-ink: #E1ECED;
  --on-ink-muted: #B5C9CB;
  --on-ink-link: #B8ECEF;
  --rule-on-ink: #34474A;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: Figtree, "Segoe UI", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--teal); }
a:hover { color: var(--teal-deep); }

:focus-visible { outline: 3px solid var(--sunshine); outline-offset: 2px; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- header */

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 750; font-size: 20px;
}
.brand:hover { color: var(--ink); }

.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--mint); }
.mark::after { content: ""; width: 12px; height: 12px; border-radius: 999px; background: var(--teal); }

.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a {
  padding: 9px 12px; border-radius: 10px;
  color: var(--slate); font-weight: 600; font-size: 14px; text-decoration: none;
}
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--mint); color: var(--teal-deep); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--teal); color: var(--white);
  font: 600 15px var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--teal-deep); color: var(--white); }
.btn-small { min-height: 40px; font-size: 14px; }
.btn-outline { background: transparent; border: 1px solid var(--slate); color: var(--teal); }
.btn-outline:hover { background: var(--white); color: var(--teal-deep); }
.btn-light { background: var(--white); color: var(--teal-deep); }
.btn-light:hover { background: var(--mint); color: var(--teal-deep); }
.btn-outline-light { background: transparent; border: 1px solid var(--white); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--slate); cursor: default; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.buttons-center { justify-content: center; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--mint); color: var(--teal-deep); font-weight: 600; font-size: 14px;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--teal); }

.pill-new { padding: 2px 8px; border-radius: 999px; background: var(--sunshine); color: var(--ink); font-weight: 700; font-size: 11px; }

/* -------------------------------------------------------------- sections */

.section { padding: 88px 0; }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: var(--white); }
.section-mint { background: var(--mint); padding: 72px 0; }
.section-deep { background: var(--teal-deep); color: var(--white); padding: 80px 0; }
.section-tight { padding: 64px 0 88px; }

.stack { display: flex; flex-direction: column; gap: 40px; }
.intro { display: flex; flex-direction: column; gap: 10px; max-width: 46em; }

.display-1 {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance;
}
.display-page { font-family: var(--display); font-weight: 750; font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.02em; }
.display-2 { font-family: var(--display); font-weight: 750; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.display-3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25; }

.lede { font-size: 19px; line-height: 1.55; color: var(--slate); max-width: 34em; }
.intro p, .muted { color: var(--slate); }
.intro p { font-size: 18px; }
.small { font-size: 14px; color: var(--slate); }
.eyebrow { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); }

/* ------------------------------------------------------------------ hero */

.hero { padding: 72px 0 88px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-art { flex: 1 1 340px; display: flex; justify-content: center; }

/* The phone on the home page: a drawing of the app, not a screenshot. */
.phone { position: relative; width: 300px; height: 600px; }
.phone-screen {
  position: absolute; inset: 0; overflow: hidden;
  border: 10px solid var(--ink); border-radius: 44px; background: #E6EFEE;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.phone-map { position: absolute; left: 0; top: 0; }
.zone { position: absolute; border-radius: 999px; }
.zone-school { left: 112px; top: 292px; width: 88px; height: 88px; background: rgba(255, 201, 64, 0.3); border: 2px solid #A87B00; }
.zone-home { left: 18px; top: 398px; width: 72px; height: 72px; background: rgba(46, 125, 50, 0.12); border: 2px solid #2E7D32; }
.pin { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pin-name { padding: 2px 8px; border-radius: 999px; background: var(--white); font-weight: 700; font-size: 12px; color: var(--ink); }
.pin-face {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; border: 3px solid var(--white);
  color: var(--white); font-weight: 700; font-size: 15px;
}
.pin-maya { left: 126px; top: 300px; }
.pin-dad { left: 196px; top: 196px; }
.pin-grandma { left: 22px; top: 186px; opacity: 0.85; }
.face-cobalt { background: #2B59C8; }
.face-plum { background: #791F75; }
.face-offline { background: #5F7173; border-style: dashed; }
.phone-alert {
  position: absolute; left: 12px; right: 12px; top: 16px;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 16px; background: var(--white); border: 1px solid var(--line);
}
.phone-alert .mark { width: 28px; height: 28px; flex: none; }
.phone-alert .mark::after { width: 11px; height: 11px; }
.phone-alert strong { display: block; font-size: 13px; line-height: 18px; }
.phone-alert span { display: block; font-size: 12px; line-height: 16px; color: var(--slate); }
.phone-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 10px; padding: 10px 16px 18px;
  border-radius: 24px 24px 0 0; background: var(--white);
}
.phone-sheet .grabber { align-self: center; width: 36px; height: 4px; border-radius: 999px; background: var(--line); }
.phone-row { display: flex; align-items: center; gap: 10px; }
.phone-row .pin-face { width: 34px; height: 34px; border: 0; font-size: 13px; }
.phone-row div { display: flex; flex-direction: column; flex: 1 1 auto; }
.phone-row strong { font-size: 14px; line-height: 18px; }
.phone-row span { font-size: 12px; line-height: 16px; color: var(--slate); }

/* ----------------------------------------------------------------- cards */

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }

.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; background: var(--mist); border: 1px solid var(--line); }
.card p { color: var(--slate); }
.icon-round { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--mint); }

.feature { display: flex; gap: 16px; padding: 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.feature svg { flex: none; }
.feature div { display: flex; flex-direction: column; gap: 4px; }
.feature strong { font-size: 17px; }
.feature span { color: var(--slate); }

/* The ledger: what we hold, what we cannot read, what we sell. */
.ledger { background: var(--white); color: var(--ink); border-radius: 6px; }
.ledger > div { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.ledger > div:last-child { border-bottom: 0; }
.ledger dt { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.ledger dd { font-weight: 600; font-size: 19px; line-height: 1.35; }
.ledger-wide { display: flex; flex-wrap: wrap; border: 1px solid var(--line); }
.ledger-wide > div { flex: 1 1 260px; border-bottom: 0; border-right: 1px solid var(--line); }
.ledger-wide > div:last-child { border-right: 0; }

.split { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.split-center { align-items: center; }
.split > .grow { flex: 1.2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > .side { flex: 1 1 360px; min-width: 0; }

.section-ink .lede, .section-ink p.body { color: var(--on-ink-muted); font-size: 18px; line-height: 1.65; }
.section-ink .eyebrow, .section-ink .note { color: var(--sunshine); }
.section-ink a { color: var(--teal-on-dark); font-weight: 600; }
.section-ink a:hover { color: var(--white); }
.links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.note { font-family: var(--mono); font-size: 13px; }

.code-card { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 18px; background: var(--mist); border: 1px solid var(--line); }
.code { font-family: var(--mono); font-weight: 700; font-size: clamp(34px, 4.6vw, 50px); letter-spacing: 0.04em; line-height: 1.1; }
.glyphs { display: flex; flex-wrap: wrap; gap: 12px; }
.glyph { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 18px; border-radius: 14px; background: var(--mint); }
.glyph b { font-family: var(--mono); font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: 0.2em; }
.glyph span { font-size: 13px; color: var(--teal-deep); }

.story { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-start; }
.story h2 { flex: 1 1 320px; color: var(--teal-deep); font-size: clamp(28px, 3.4vw, 38px); }
.story div { flex: 2 1 480px; display: flex; flex-direction: column; gap: 14px; }
.story p { font-size: 18px; line-height: 1.6; }
.story .by { font-size: 15px; color: var(--teal-deep); }

.closing { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.closing h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; text-wrap: balance; }
.closing p { font-size: 14px; color: var(--mint); }

.coming { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--mint); color: var(--teal-deep); font-weight: 600; }
.section-deep .coming { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* ----------------------------------------------------------------- plans */

/* One plan to a row on a phone, two on a tablet, and every plan side by side from a laptop up. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; align-items: stretch; }
@media (min-width: 1100px) {
  .plans { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
.plan { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 18px; background: var(--mist); border: 1px solid var(--line); }
.plan-featured { background: var(--white); border: 2px solid var(--teal); }
.plan h3 { font-family: var(--display); font-weight: 700; font-size: 22px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1; }
.price span { color: var(--slate); }
.plan ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.data { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.data th, .data td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data tr:last-child th, .data tr:last-child td { border-bottom: 0; }
.data thead th { background: var(--row); font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.data tbody th { font-weight: 600; }
.data td.muted { color: var(--slate); }

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px 32px; }
.faq div { display: flex; flex-direction: column; gap: 6px; }
.faq strong { font-size: 17px; }
.faq p { color: var(--slate); }

/* ---------------------------------------------------------------- forms */

.form-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.form-card { flex: 1.4 1 480px; display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.form-row { display: flex; flex-wrap: wrap; gap: 24px; }
.field { position: relative; flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.field label {
  position: absolute; top: -8px; left: 12px; padding: 0 4px;
  background: var(--white); font-size: 12px; color: var(--slate);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 16px;
  border: 1px solid var(--slate); border-radius: 8px; background: var(--white);
  color: var(--ink); font: 400 16px/1.5 var(--body);
}
.field select { padding: 14px 16px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.field .hint { padding: 0 16px; font-size: 12px; line-height: 18px; color: var(--slate); }
.field .error, .form-error { padding: 0 16px; font-size: 13px; font-weight: 600; color: #A31515; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #A31515; }
.form-error { padding: 12px 16px; border-radius: 10px; background: #FDECEC; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .small { flex: 1 1 260px; }

/* The field people never see, and scripts fill. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.aside { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.aside-card strong { font-size: 17px; }
.aside-card span { color: var(--slate); }
.aside-card a { font-weight: 600; }
.aside-warn { background: var(--sunshine-soft); border-color: var(--sunshine-line); }
.aside-warn span { color: var(--ink); }

.thanks { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; max-width: 40em; }

/* ------------------------------------------------- law enforcement, legal */

.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.page-hero .lede { max-width: 40em; }
.page-white { background: var(--white); }

.chapter { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter-head { flex: 0 1 280px; display: flex; flex-direction: column; gap: 6px; }
.chapter-head .num { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--teal-deep); }
.chapter-head h2 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; }
/* min-width 0: a wide table inside scrolls in its box instead of widening the page. */
.chapter-body { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.chapter-body .small { font-size: 14px; }

.callout { padding: 20px 24px; border-radius: 6px; background: var(--ink); color: var(--white); font-size: 18px; line-height: 1.6; }
.callout span { color: var(--on-ink-muted); }

.process { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; }
.process > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.process > div:last-child { border-bottom: 0; }
.process dt { flex: 0 0 200px; font-weight: 700; }
.process dd { flex: 1 1 280px; color: var(--slate); }

.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 16px; }
.steps .n { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--mint); color: var(--teal-deep); font-weight: 700; }
.steps div { display: flex; flex-direction: column; gap: 2px; }
.steps span { color: var(--slate); }

.mono { font-family: var(--mono); }
.draft { font-size: 13px; color: var(--slate); }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 46em; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: var(--on-ink); padding: 56px 0 40px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 32px; }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px; }
.footer-columns > div, .footer-columns nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-columns strong { color: var(--white); }
.footer-columns .brand-name { font-family: var(--display); font-weight: 750; font-size: 20px; }
.footer-columns span { color: var(--on-ink-muted); }
.site-footer a { color: var(--on-ink-link); }
.site-footer a:hover { color: var(--white); }
.legal-line { padding-top: 20px; border-top: 1px solid var(--rule-on-ink); font-size: 13px; color: var(--on-ink-muted); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color 120ms ease, color 120ms ease; }
}
