/* The GC Connection — "Jobsite" color scheme
   One accent (safety orange). Used by the marketing site and the app demo. */

:root {
  --bg: #F2F1EE;          /* concrete */
  --surface: #FAF9F7;     /* raised card on concrete */
  --panel: #E8E6E1;       /* panel */
  --ink: #1E2124;         /* charcoal ink */
  --steel: #3C4A57;       /* secondary text, structure */
  --rule: #D5D2CC;        /* rules / borders */
  --rule-strong: #B9B5AD;
  --accent: #E2581F;      /* safety orange: marks, rules, focus */
  --accent-fill: #C24914; /* orange used under white text (AA 4.9:1) */
  --accent-text: #A93D10; /* orange used as text on concrete (AA 5.5:1) */
  --on-accent: #FFFFFF;
  --ok: #2F6B3F;
  --ok-bg: #E3ECE2;
  --no: #9B2C22;
  --no-bg: #F3E1DD;
  --focus: #E2581F;

  --font-head: "Archivo Narrow", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 3px;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16191C;
    --surface: #1E2124;
    --panel: #23272B;
    --ink: #ECEAE6;
    --steel: #A9B4BF;
    --rule: #343A40;
    --rule-strong: #4A5259;
    --accent: #E2581F;
    --accent-fill: #E2581F;
    --accent-text: #EE7A47;
    --on-accent: #16191C;
    --ok: #8FC79B;
    --ok-bg: #1F2E23;
    --no: #F0A196;
    --no-bg: #3A2220;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.num, table { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- Icons (one line family, 24px grid, 1.75 stroke) ---------- */
.ico { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; vertical-align: middle; }
.ico-lg { width: 32px; height: 32px; }

/* ---------- Buttons: one primary, one secondary ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: 600 0.975rem/1.2 var(--font-body);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.btn-primary:hover { background: var(--accent-text); border-color: var(--accent-text); color: var(--on-accent); }
@media (prefers-color-scheme: dark) {
  .btn-primary:hover { background: #F06C35; border-color: #F06C35; }
}
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; text-transform: uppercase;
}
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  background: var(--ink); color: var(--bg); font-size: .85rem; letter-spacing: .02em;
  border-radius: 2px; position: relative;
}
.brand-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1.5px solid var(--ink); color: var(--ink);
  border-radius: var(--radius); min-height: 40px; padding: 6px 12px; font: 600 .9rem var(--font-body); cursor: pointer;
}
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.site-nav li a[aria-current="page"] { color: var(--accent-text); }
.site-nav .nav-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.no-js .site-nav { display: block; position: static; padding: 0 0 12px; }
@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; padding: 0; border: 0; margin-left: auto; align-items: center; gap: 22px; background: none; }
  .site-nav ul { display: flex; gap: 20px; }
  .site-nav li a { border: 0; padding: 6px 0; font-size: .94rem; border-bottom: 2px solid transparent; }
  .site-nav li a:hover { border-bottom-color: var(--rule-strong); color: var(--ink); }
  .site-nav li a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
  .site-nav .nav-cta { margin: 0; }
  .site-nav .nav-cta .btn { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: 0; }
.section-alt { background: var(--panel); }
.eyebrow {
  display: inline-block; font: 600 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--accent);
}
.lede { font-size: 1.12rem; color: var(--steel); max-width: 62ch; }
.muted { color: var(--steel); }
.small { font-size: .9rem; }
.measure { max-width: 68ch; }
.section-head { max-width: 720px; margin-bottom: 32px; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } .hero { padding: 72px 0; } }
.hero h1 .hl { display: block; color: var(--steel); }
.hero .lede { margin: 18px 0 28px; }
.hero-note { margin-top: 22px; font-size: .9rem; color: var(--steel); }

/* job ticket (structural example panel) */
.ticket { background: var(--surface); border: 1px solid var(--rule-strong); border-top: 4px solid var(--ink); border-radius: var(--radius); }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px dashed var(--rule-strong); }
.ticket-head b { font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.ticket-head span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.ticket dl { margin: 0; padding: 6px 18px 4px; }
.ticket dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.ticket dl div:last-child { border-bottom: 0; }
.ticket dt { color: var(--steel); }
.ticket dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ticket-foot { padding: 12px 18px; background: var(--panel); font-size: .85rem; color: var(--steel); display: flex; gap: 10px; align-items: flex-start; }
.ticket-foot .ico { width: 20px; height: 20px; color: var(--ok); }

/* ---------- Status tags (rectangular, not pills) ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 .74rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.tag-ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.tag-no { color: var(--no); background: var(--no-bg); border-color: transparent; }
.tag-plain { color: var(--steel); border-color: var(--rule-strong); }
.tag-accent { color: var(--accent-text); border-color: var(--accent); }

/* ---------- Role cards ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.role-card { display: flex; flex-direction: column; border-top: 3px solid var(--ink); }
.role-card .role-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: var(--steel); }
.role-card h3 { margin-bottom: 4px; }
.role-card .price-line { font-weight: 600; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.rules { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--rule); }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.rules li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; border: 1.5px solid var(--steel); }
.rules li.yes::before { background: var(--ink); border-color: var(--ink); }
.rules li.no::before { border-color: var(--steel); background: linear-gradient(to top right, transparent 45%, var(--steel) 45%, var(--steel) 55%, transparent 55%); }
.role-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Job flow diagram ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.flow li { position: relative; padding: 0 0 28px 56px; counter-increment: step; }
.flow li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font: 700 1rem var(--font-head); border-radius: 2px;
}
.flow li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--rule-strong); }
.flow li:last-child::after { display: none; }
.flow li:last-child { padding-bottom: 0; }
.flow h3 { font-size: 1.15rem; margin: 6px 0 4px; }
.flow .who { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.flow p { font-size: .95rem; color: var(--steel); margin: 6px 0 0; }
.flow .sees { margin-top: 10px; font-size: .88rem; border-left: 3px solid var(--accent); padding: 6px 10px; background: var(--surface); }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .flow li { padding: 56px 0 0; }
  .flow li::after { left: 48px; right: -16px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .flow li:last-child::after { display: none; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font: 600 .78rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); background: var(--panel); border-bottom: 1px solid var(--rule-strong); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td.r, th.r { text-align: right; white-space: nowrap; }
.fee { font-weight: 700; font-variant-numeric: tabular-nums; }
.yes-cell { color: var(--ok); font-weight: 600; }
.no-cell { color: var(--steel); }
/* stacked rows on very small screens */
@media (max-width: 560px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack th, table.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 14px; text-align: right; }
  table.stack th { text-align: left; font-size: 1rem; }
  table.stack td::before { content: attr(data-label); color: var(--steel); text-align: left; font-weight: 500; }
}

/* ---------- State grid ---------- */
.states { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .states { grid-template-columns: repeat(5, 1fr); } }
.state { background: var(--surface); padding: 14px; min-height: 104px; display: flex; flex-direction: column; gap: 4px; }
.state abbr { font: 700 1.6rem/1 var(--font-head); text-decoration: none; letter-spacing: .02em; }
.state .sn { font-size: .85rem; color: var(--steel); }
.state .sr { margin-top: auto; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.state .sr.req { color: var(--ink); }
.state .sr.noreq { color: var(--accent-text); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.plan.key { border-top-color: var(--accent); }
.plan .for { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.plan h3 { margin: 6px 0 12px; }
.amount { font: 700 2.6rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.amount small { font: 500 .95rem var(--font-body); color: var(--steel); margin-left: 4px; }
.alt-price { font-size: .9rem; color: var(--steel); margin: 6px 0 16px; min-height: 1.4em; font-variant-numeric: tabular-nums; }
.plan .rules { margin-bottom: 20px; }
.plan .btn { margin-top: auto; }

/* ---------- Callouts ---------- */
.rule-box { border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent); background: var(--surface); padding: 18px 20px; border-radius: var(--radius); }
.rule-box p:last-child { margin-bottom: 0; }
.rule-box .fine { font-size: .88rem; color: var(--steel); }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ico { color: var(--steel); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--bg); padding: 48px 0; }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); max-width: 60ch; }
.cta-band .btn-secondary { color: var(--bg); border-color: var(--bg); }
.cta-band .btn-secondary:hover { background: var(--bg); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .cta-band { background: var(--panel); color: var(--ink); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .cta-band h2 { color: var(--ink); }
  .cta-band p { color: var(--steel); }
  .cta-band .btn-secondary { color: var(--ink); border-color: var(--ink); }
  .cta-band .btn-secondary:hover { background: var(--ink); color: var(--bg); }
}

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 1.06rem/1.35 var(--font-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq .ans { padding: 0 0 18px; color: var(--steel); max-width: 72ch; }
.faq h2 { margin-top: 40px; font-size: 1.5rem; }
.faq h2:first-child { margin-top: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form .row2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: 400 1rem var(--font-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--rule-strong); border-radius: var(--radius);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-set { display: grid; gap: 8px; }
@media (min-width: 640px) { .radio-set { grid-template-columns: repeat(3, 1fr); } }
.radio-set label { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 0; padding: 10px 12px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.radio-set input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent-fill); margin: 0; }
.radio-set label:has(input:checked) { border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .help { font-size: .85rem; color: var(--steel); margin-top: 6px; }
.form-panel { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 44px; font-size: .9rem; color: var(--steel); }
.site-footer .foot-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .site-footer .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .disclaimer { max-width: 62ch; margin: 0 0 8px; }
.site-footer .legal { margin: 0; }

/* ---------- Motion: hover/focus transitions only ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-grid > *, .split > *, .grid > *, .plans > * { min-width: 0; }
@media (max-width: 560px) { table.stack td.r, table.stack th.r { white-space: normal; } }
.brand, .site-nav li a, .nav-cta .btn { white-space: nowrap; }
@media (min-width: 1180px) { .site-nav .nav-cta { flex-wrap: nowrap; } .site-nav ul { gap: 18px; } }

/* =====================================================================
   Motion layer. Everything below is progressive: content is fully
   visible without JS. The <head> script adds .anim (never under
   prefers-reduced-motion), and only .anim pre-hides anything.
   Transform/opacity only; the FAQ height is animated by main.js.
   ===================================================================== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --rise: 16px; }
@keyframes gc-up { from { opacity: 0; transform: translateY(var(--rise)); } }
@keyframes gc-fade { from { opacity: 0; } }
@keyframes gc-line { from { opacity: 0; transform: translateY(105%); } }
@keyframes gc-left { from { opacity: 0; transform: translateX(-8px); } }
@keyframes gc-settle { from { opacity: 0; transform: translateY(-6px); } }
@keyframes gc-draw { from { stroke-dashoffset: 1.05; } }
@keyframes gc-scale-x { from { transform: scaleX(0); } }
@keyframes gc-scale-y { from { transform: scaleY(0); } }
@keyframes gc-land { from { opacity: 0; transform: translateY(-10px) scale(.86); } }
@keyframes gc-tile { from { opacity: 0; transform: perspective(700px) rotateX(-32deg) translateY(6px); } }

/* line spans are always block-level so the hero h1 looks the same with or without motion */
.hero h1 .ln, .hero h1 .ln > span { display: block; }
html { scroll-padding-top: 72px; }

/* ---------- Header: sticky, compacts by 12px with a hairline shadow ---------- */
.site-header { position: sticky; top: -12px; transition: box-shadow .2s ease; }
.site-header .wrap { transition: transform .22s var(--ease); }
.site-header.compact { box-shadow: 0 1px 0 var(--rule), 0 8px 18px -14px rgba(20, 22, 24, .45); }
.site-header.compact .wrap { transform: translateY(6px); }
.site-header .brand-mark { transition: transform .22s var(--ease); }
.site-header.compact .brand-mark { transform: scale(.92); }
@media (prefers-color-scheme: dark) { .site-header.compact { box-shadow: 0 1px 0 var(--rule), 0 10px 20px -14px rgba(0, 0, 0, .8); } }

/* mobile menu: fade/slide panel with staggered rows */
@media (max-width: 1179px) {
  .anim .site-nav.open { transition: opacity .2s ease, transform .22s var(--ease); }
  .anim .site-nav.open:not(.shown) { opacity: 0; transform: translateY(-6px); }
  .anim .site-nav.open li, .anim .site-nav.open .nav-cta { transition: opacity .24s ease, transform .28s var(--ease); }
  .anim .site-nav.open:not(.shown) li, .anim .site-nav.open:not(.shown) .nav-cta { opacity: 0; transform: translateY(-6px); }
  .anim .site-nav.shown li:nth-child(2) { transition-delay: 30ms; }
  .anim .site-nav.shown li:nth-child(3) { transition-delay: 60ms; }
  .anim .site-nav.shown li:nth-child(4) { transition-delay: 90ms; }
  .anim .site-nav.shown li:nth-child(5) { transition-delay: 120ms; }
  .anim .site-nav.shown li:nth-child(6) { transition-delay: 150ms; }
  .anim .site-nav.shown .nav-cta { transition-delay: 180ms; }
}

/* ---------- Scroll progress hairline (long pages only, added by main.js) ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 50; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ---------- Links: underline draws from the left ---------- */
main p a:not(.btn), main li a:not(.btn), .site-footer a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, currentColor 45%, transparent), color-mix(in srgb, currentColor 45%, transparent));
  background-size: 0% 1.5px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background-size .28s var(--ease), color .15s ease;
}
.site-footer a { background-size: 0% 1.5px, 0% 1px; }
main p a:not(.btn):hover, main li a:not(.btn):hover, .site-footer a:hover,
main p a:not(.btn):focus-visible, main li a:not(.btn):focus-visible { background-size: 100% 1.5px, 100% 1px; }
.site-footer a:hover { text-decoration: none; }
@media (min-width: 1180px) {
  .site-nav li a { position: relative; }
  .site-nav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--rule-strong); transform: scaleX(0); transform-origin: 0 50%; transition: transform .26s var(--ease); }
  .site-nav li a:hover { border-bottom-color: transparent; }
  .site-nav li a:hover::after { transform: scaleX(1); }
  .site-nav li a[aria-current="page"]::after { background: var(--accent); transform: scaleX(1); }
  .site-nav li a[aria-current="page"] { border-bottom-color: transparent; }
}

/* ---------- Buttons: color transition + press ---------- */
.btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease; }
.btn:active { transform: scale(.98); }

/* ---------- Cards: hover lift ---------- */
.role-card, .plan, .section .grid > .card { transition: transform .22s var(--ease), border-color .2s ease; }
@media (hover: hover) {
  .role-card:hover, .plan:hover, .section .grid > .card:hover { transform: translateY(-3px); border-color: var(--steel); }
  .role-card:hover, .plan:hover { border-top-color: var(--accent); }
}

/* ---------- Counters (spans are inserted by main.js and removed when done) ---------- */
.cnt { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Hero entrance (CSS-timed on load) ---------- */
.anim .hero .eyebrow { animation: gc-fade .5s ease backwards; }
.anim .hero h1 .ln { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.anim .hero h1 .ln > span { animation: gc-line .75s var(--ease) backwards .08s; }
.anim .hero h1 .ln + .ln > span { animation-delay: .2s; }
.anim .hero .lede { animation: gc-up .6s var(--ease) backwards .38s; }
.anim .hero .btn-row { animation: gc-up .6s var(--ease) backwards .48s; }
.anim .hero .hero-note, .anim .hero .checklist { animation: gc-up .6s var(--ease) backwards .58s; }
.anim .hero-grid > :nth-child(2):not(.ticket), .anim .hero .split > :nth-child(2) { animation: gc-up .7s var(--ease) backwards .32s; }

/* job ticket: written one row at a time, then the license note */
.anim .ticket { animation: gc-up .7s var(--ease) backwards .3s; }
.anim .ticket-head { animation: gc-fade .4s ease backwards .5s; }
.anim .ticket dl div { position: relative; border-bottom-color: transparent; }
.anim .ticket dl div::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rule); transform-origin: 0 50%; animation: gc-scale-x .45s var(--ease) backwards; animation-delay: calc(var(--t) + .1s); }
.anim .ticket dl div:last-child::after { display: none; }
.anim .ticket dt { animation: gc-left .4s var(--ease) backwards; animation-delay: var(--t); }
.anim .ticket dd { animation: gc-settle .42s var(--ease) backwards; animation-delay: calc(var(--t) + .14s); }
.ticket dl div:nth-child(1) { --t: .62s; }
.ticket dl div:nth-child(2) { --t: .74s; }
.ticket dl div:nth-child(3) { --t: .86s; }
.ticket dl div:nth-child(4) { --t: .98s; }
.ticket dl div:nth-child(5) { --t: 1.1s; }
.ticket dl div:nth-child(6) { --t: 1.22s; }
.ticket dl div:nth-child(7) { --t: 1.34s; }
.anim .ticket-foot { animation: gc-up .5s var(--ease) backwards 1.62s; --rise: 8px; }
.anim .ticket-foot .ico :is(path, rect, circle) { stroke-dasharray: 1; animation: gc-draw .6s var(--ease) backwards 1.78s; }
.anim .ticket-foot .ico path + path { animation-duration: .35s; animation-delay: 2.24s; }

/* ---------- Section entrances (main.js adds .in once, with a --d stagger) ---------- */
.anim :is(.section-head, .section .grid > *, .section tbody tr, .plans > .plan, .faq > h2, .faq > details):not(.in) { opacity: 0; }
.anim :is(.section-head, .section .grid > *, .section tbody tr, .plans > .plan, .faq > h2, .faq > details).in { animation: gc-up .55s var(--ease) backwards; animation-delay: var(--d, 0ms); }
.anim .section tbody tr.in { --rise: 12px; }
/* card icons stroke-draw on first reveal */
.anim .section .grid > .in .ico-lg :is(path, rect, circle) { stroke-dasharray: 1; animation: gc-draw .7s var(--ease) backwards; animation-delay: calc(var(--d, 0ms) + .22s); }
.anim .section .grid > .in .ico-lg :is(path, rect, circle) + :is(path, rect, circle) { animation-delay: calc(var(--d, 0ms) + .34s); }

/* ---------- Job flow: each connector draws, the next step lands as it arrives ---------- */
.anim .flow:not(.in) > li > *, .anim .flow:not(.in) > li::before, .anim .flow:not(.in) > li::after { opacity: 0; }
.anim .flow.in > li::before { animation: gc-land .45s var(--ease) backwards; animation-delay: var(--s); }
.anim .flow.in > li > * { animation: gc-up .5s var(--ease) backwards; animation-delay: calc(var(--s) + .08s); --rise: 10px; }
.anim .flow.in > li > .sees { animation-delay: calc(var(--s) + .16s); }
.anim .flow.in > li::after { transform-origin: 50% 0; animation: gc-scale-y .34s cubic-bezier(.5, 0, .3, 1) backwards; animation-delay: calc(var(--s) + .16s); }
@media (min-width: 960px) { .anim .flow.in > li::after { transform-origin: 0 50%; animation-name: gc-scale-x; } }
.flow > li:nth-child(1) { --s: 0s; }
.flow > li:nth-child(2) { --s: .5s; }
.flow > li:nth-child(3) { --s: 1s; }
.flow > li:nth-child(4) { --s: 1.5s; }

/* ---------- Launch states: tiles flip up in sequence; the Texas note lands last ---------- */
.state:has(.noreq) { position: relative; box-shadow: inset 0 2px 0 var(--accent); }
.anim .states:not(.in) > .state, .anim .states:not(.in) .noreq { opacity: 0; }
.anim .states.in > .state { transform-origin: 50% 0; animation: gc-tile .55s var(--ease) backwards; }
.states > .state:nth-child(2) { animation-delay: 45ms; }
.states > .state:nth-child(3) { animation-delay: 90ms; }
.states > .state:nth-child(4) { animation-delay: 135ms; }
.states > .state:nth-child(5) { animation-delay: 180ms; }
.states > .state:nth-child(6) { animation-delay: 225ms; }
.states > .state:nth-child(7) { animation-delay: 270ms; }
.states > .state:nth-child(8) { animation-delay: 315ms; }
.states > .state:nth-child(9) { animation-delay: 360ms; }
.states > .state:nth-child(10) { animation-delay: 405ms; }
.anim .states.in > .state:has(.noreq) { box-shadow: none; }
.anim .states.in > .state:has(.noreq)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; animation: gc-scale-x .5s var(--ease) backwards .72s; }
.anim .states.in .noreq { animation: gc-up .45s var(--ease) backwards .95s; --rise: 6px; }

@media (prefers-reduced-motion: reduce) {
  .site-header .wrap, .site-header.compact .wrap, .site-header.compact .brand-mark { transform: none; }
}

/* Terms / Privacy */
.legal-doc h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal-doc p, .legal-doc li { line-height: 1.6; max-width: 68ch; }
.legal-doc ul { padding-left: 1.2em; }
