/* Public home page. Shares the AV Tools palette with the app; its own type and layout. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --plum: #8a4f7d;
  --plum-deep: #5e3355;
  --teal: #006e90;
  --teal-dark: #005570;
  --gold: #eab464;
  --vermilion: #db5a42;
  --lavender: #a3a5c3;
  --taupe: #6e6469;
  --paper: #f3f4f8;
  --ink: #1f1d1e;
  --white: #ffffff;

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.landing {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
@media (min-width: 900px) { body.landing { font-size: 18px; } }

a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
img { max-width: 100%; height: auto; display: block; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  font: 700 1rem/1.2 var(--body);
  color: var(--white); background: var(--teal);
  border: 2px solid var(--teal); border-radius: 6px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; }

/* Header */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
  background: var(--plum); color: var(--white);
}
.wordmark {
  font: 700 1.5rem/1 var(--display); letter-spacing: 0.01em;
  color: var(--white); text-decoration: none;
}
.site-head nav { display: flex; align-items: center; gap: 16px; }
.head-link { color: var(--white); font-weight: 700; }
@media (max-width: 520px) {
  .site-head .btn-small { display: none; }
}

/* Hero: plum band, the headline beside the before/after demo */
.hero {
  display: grid; gap: 40px;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(48px, 7vw, 88px);
  background: var(--plum);
  color: var(--white);
}
.hero > * { max-width: var(--max); }
.hero h1 {
  margin: 0;
  font: 700 clamp(3rem, 9vw, 5.75rem)/0.92 var(--display);
  letter-spacing: -0.01em;
  max-width: 11ch;
}
.lede { margin: 24px 0 0; max-width: 34em; font-size: 1.1em; color: #f6eef4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start; column-gap: 56px;
    max-width: none;
    padding-left: max(var(--gutter), calc((100% - var(--max)) / 2));
    padding-right: max(var(--gutter), calc((100% - var(--max)) / 2));
  }
}

/* The demo: raw notes, then the report they become */
.demo { display: grid; gap: 16px; color: var(--ink); }
@media (min-width: 640px) { .demo { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.demo-card {
  margin: 0; padding: 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(31, 29, 30, 0.08), 0 18px 40px -24px rgba(31, 29, 30, 0.55);
}
.demo-card figcaption { font-size: 0.85rem; color: var(--taupe); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.raw-text { margin: 0; font-size: 1.05rem; line-height: 1.75; }
.frag { border-radius: 3px; padding: 1px 2px; transition: background-color 0.4s ease, box-shadow 0.4s ease; }

/* Section colors, shared by highlights in the raw notes and the report headings */
.frag[data-to="work"], .sec-work { --c: var(--teal); --c-soft: #d7ebf2; }
.frag[data-to="issues"], .sec-issues { --c: var(--vermilion); --c-soft: #f8ddd7; }
.frag[data-to="materials"], .sec-materials { --c: #6b6e9a; --c-soft: #e3e4f0; }
.frag[data-to="follow"], .sec-follow { --c: #b07a1f; --c-soft: #f8ead3; }
.frag.lit, .demo:not(.will-animate) .frag { background: var(--c-soft); box-shadow: inset 0 -2px 0 var(--c); }

.sec { margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--c); }
.sec h3 { margin: 0 0 2px; font: 600 1.15rem/1.2 var(--display); color: var(--c); letter-spacing: 0.01em; }
.sec ul { margin: 0; padding-left: 18px; font-size: 0.95rem; line-height: 1.5; }
.sec li { margin: 2px 0; }

.ask {
  margin: 14px 0 0; padding: 10px 12px;
  background: #fbf3e4; border-radius: 6px; font-size: 0.95rem;
}
.ask-label { display: block; font-weight: 700; font-size: 0.8rem; color: #8a5a00; }

/* Job-number tag, styled like a printed heat-shrink cable label */
.tag {
  position: relative; display: inline-block;
  padding: 2px 12px 2px 10px;
  font: 700 0.95rem/1.3 var(--display); letter-spacing: 0.04em;
  color: var(--ink); background: var(--gold);
  border-radius: 3px;
}
.tag::before, .tag::after {
  content: ""; position: absolute; top: 3px; bottom: 3px; width: 2px;
  background: rgba(31, 29, 30, 0.25); border-radius: 1px;
}
.tag::before { left: 4px; }
.tag::after { right: 4px; }

/* Animation states, only when JS runs and motion is allowed */
.demo.will-animate .sec li, .demo.will-animate .ask { opacity: 0; transform: translateY(4px); }
.demo .sec li.shown, .demo .ask.shown { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }

/* Sections */
.steps, .crews, .request {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) 0;
}
h2 {
  margin: 0 0 32px;
  font: 700 clamp(2.1rem, 5vw, 3.25rem)/1 var(--display);
  max-width: 18ch;
}
h3 { font: 600 1.6rem/1.15 var(--display); margin: 0 0 8px; }

/* Steps: a real sequence, so the list is ordered and numbered */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; counter-reset: step; }
.step { display: grid; gap: 20px; counter-increment: step; }
.step-text { max-width: 30em; }
.step-text h3::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 1.5em; height: 1.5em; margin-right: 10px;
  font-size: 0.85em; color: var(--white); background: var(--plum); border-radius: 50%;
  vertical-align: 0.08em;
}
.step-text p { margin: 0; }
.phone {
  margin: 0; width: min(260px, 70vw);
  padding: 10px; background: var(--ink); border-radius: 30px;
  box-shadow: 0 24px 48px -28px rgba(31, 29, 30, 0.7);
}
.phone img { border-radius: 22px; }
.paper {
  margin: 0; max-width: 420px;
  background: var(--white); padding: 6px;
  box-shadow: 0 1px 0 rgba(31, 29, 30, 0.1), 0 24px 48px -30px rgba(31, 29, 30, 0.7);
  transform: rotate(-1.2deg);
}
@media (min-width: 860px) {
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
  .step { grid-template-rows: 420px auto; }
  .step figure { align-self: end; }
  .paper { margin-bottom: 40px; }
}

/* Feature list */
.feature-grid { display: grid; gap: 28px 48px; margin: 0; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-grid div { border-top: 3px solid var(--lavender); padding-top: 14px; }
.feature-grid dt { font: 600 1.45rem/1.15 var(--display); margin-bottom: 6px; }
.feature-grid dd { margin: 0; }

/* Trust band */
.trust {
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--teal); color: var(--white);
}
.trust-inner { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.trust h2 { color: var(--white); }
.trust-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; max-width: 46em; }
.trust-list li { padding-left: 30px; position: relative; }
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}
.trust-more { margin: 28px 0 0; }
.trust a { color: var(--white); font-weight: 700; }

/* Early access */
.request { display: grid; gap: 32px; padding-bottom: clamp(56px, 8vw, 104px); }
@media (min-width: 900px) { .request { grid-template-columns: 5fr 7fr; gap: 56px; } }
.request-copy p { max-width: 30em; margin: 0 0 12px; }
.small { font-size: 0.9em; }
.request-form, .request-done {
  background: var(--white); border-radius: 8px; padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 1px 0 rgba(31, 29, 30, 0.08), 0 18px 40px -28px rgba(31, 29, 30, 0.5);
}
.request-done h3 { color: var(--teal); }
.f { margin-bottom: 18px; }
.f-pair { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .f-pair { grid-template-columns: 1fr 1fr; } }
.f label { display: block; font-weight: 700; margin-bottom: 6px; }
.f input, .f select, .f textarea {
  width: 100%; min-height: 50px; padding: 10px 12px;
  font: 400 16px/1.4 var(--body); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--lavender); border-radius: 6px;
}
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--teal); }
.f-error { margin: 6px 0 0; color: #b23a24; font-size: 0.9rem; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash-box { margin: 0 0 16px; padding: 12px 14px; border-left: 4px solid var(--vermilion); background: #fbece9; }

/* Footer */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 28px var(--gutter);
  background: var(--plum-deep); color: #eadbe6; font-size: 0.95rem;
}
.site-foot p { margin: 0; max-width: 40em; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot a { color: var(--white); }

/* Privacy page */
.doc { max-width: 44em; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter); }
.doc h1 { font: 700 clamp(2.4rem, 6vw, 3.5rem)/1 var(--display); margin: 0 0 12px; }
.doc h2 { font-size: 1.9rem; margin: 40px 0 10px; }
.doc .updated { color: var(--taupe); }
