/* Zappy AV public site (zappyav.com and /promo). Shared Zappy AV palette; its own type and layout.
   Started from the Job Notes product page's styles (job-note-optimizer, moved Oct 30, 2026). */
@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(20px, 5vw, 64px);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }  /* anchors land below the sticky header */
@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);
  /* Stays on top while scrolling (Nov 2), on every page */
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px -10px rgba(31, 29, 30, 0.55);
}
.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; white-space: nowrap; }
/* EN | FR switch: the current language plain, the other a link */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; overflow: hidden;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em;
}
.lang-switch > * { padding: 6px 10px; min-height: 32px; display: inline-flex; align-items: center; }
.lang-switch [aria-current] { background: var(--white); color: var(--plum-deep); }
.lang-switch a { color: var(--white); text-decoration: none; }
.lang-switch a:hover, .lang-switch a:focus-visible { background: rgba(255, 255, 255, 0.15); }
/* Shown to English-page visitors whose browser prefers French */
.lang-banner { margin: 0; padding: 10px var(--gutter); background: var(--gold); text-align: center; }
.lang-banner a { color: var(--ink); }
.shots-note { text-align: center; color: var(--taupe); font-size: 0.95rem; margin: 8px auto 0; max-width: 60ch; }
/* The French page says plainly that the app's screens are English for now */
.lang-note {
  display: inline-block; margin: 16px 0 0; padding: 8px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.14); font-size: 0.95rem;
}
@media (max-width: 520px) {
  .site-head .btn-small { display: none; }
  .site-head nav { gap: 12px; }
  .lang-switch > * { padding: 6px 8px; }
}

/* 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; }

/* The customer email the report becomes */
.demo-email { grid-column: 1 / -1; }
.email-subject { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #e6e0e4; font-weight: 700; font-size: 0.95rem; }
.email-label { display: inline-block; margin-right: 8px; font-weight: 400; color: var(--taupe); }
.email-body { font-size: 0.92rem; line-height: 1.5; }
.email-body p { margin: 0 0 8px; }
.email-more { color: var(--taupe); }

/* 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, .demo.will-animate [data-step="7"] { opacity: 0; transform: translateY(4px); }
.demo .sec li.shown, .demo .ask.shown, .demo [data-step="7"].shown { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }

/* Sections */
.steps, .crews, .office, .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; }
}

/* User guide link under the steps */
.guide-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 48px 0 0; padding: 20px 24px; background: var(--white); border-left: 4px solid var(--plum); border-radius: 6px; }
.guide-link span { max-width: 34em; color: var(--taupe); }
.btn-outline { color: var(--plum-deep); background: transparent; border-color: var(--plum); }
.btn-outline:hover { color: var(--white); background: var(--plum); border-color: var(--plum); }

/* 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: 900px) { .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; }

/* Office: the dashboard beside what admins get */
.office-grid { display: grid; gap: 32px 56px; align-items: start; }
@media (min-width: 980px) { .office-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.screen {
  margin: 0; padding: 8px 8px 0; background: var(--ink); border-radius: 12px 12px 4px 4px;
  box-shadow: 0 24px 48px -28px rgba(31, 29, 30, 0.7);
}
.screen img { border-radius: 6px 6px 0 0; }
.office-list { margin: 0; display: grid; gap: 22px; }
.office-list div { border-left: 3px solid var(--plum); padding-left: 16px; }
.office-list dt { font: 600 1.35rem/1.15 var(--display); margin-bottom: 4px; }
.office-list 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-go {
  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);
}

/* 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; flex-wrap: wrap; gap: 8px 20px; }
.site-foot nav a { white-space: nowrap; }
.site-foot a { color: var(--white); }
.site-foot strong { color: var(--white); }
.heart { color: var(--vermilion); font-size: 1.1em; }

/* 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); }
.request-go { display: grid; align-content: center; justify-items: start; gap: 12px; }
.request-go .btn { font-size: 1.15rem; }

/* Brand in the header: the patch, then "Zappy AV" */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 40px; height: 40px; }

/* The app's name above a product page's headline */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font: 700 1.35rem/1 var(--display); letter-spacing: 0.02em; color: var(--white);
}
.eyebrow img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75); }

/* Home page hero: one column, the patch above the headline */
.hero-home { grid-template-columns: none; }
.hero-home .hero-copy { max-width: 46rem; }
.hero-home h1 { max-width: 14ch; }
.hero-patch { width: clamp(80px, 14vw, 112px); height: auto; margin-bottom: 24px; }
@media (min-width: 980px) {
  /* line the headline up with the sections below */
  .hero.hero-home {
    grid-template-columns: minmax(0, 1fr);
    padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  }
}

/* App tiles (home and /promo) */
.apps, .why, .page-head { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.page-head h1 { margin: 0; font: 700 clamp(2.6rem, 7vw, 4.25rem)/0.95 var(--display); }
.page-head .lede { color: var(--taupe); max-width: 34em; }
.app-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .app-tiles { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.app-tile {
  display: grid; grid-template-columns: 88px 1fr; column-gap: 18px; row-gap: 4px; align-items: start;
  height: 100%; padding: 20px; color: var(--ink); text-decoration: none;
  background: var(--white); border-radius: 12px; border-top: 4px solid var(--plum);
  box-shadow: 0 1px 0 rgba(31, 29, 30, 0.08), 0 18px 40px -28px rgba(31, 29, 30, 0.5);
}
.app-tile:hover { box-shadow: 0 1px 0 rgba(31, 29, 30, 0.08), 0 22px 44px -24px rgba(31, 29, 30, 0.6); }
.app-tile img { grid-row: span 3; width: 88px; height: 88px; border-radius: 18px; }
.app-name { font: 700 1.6rem/1.1 var(--display); }
.app-line { color: var(--taupe); }
.app-more { color: var(--teal); font-weight: 700; margin-top: 6px; }
.apps-note { color: var(--taupe); margin: 24px 0 0; }
.apps-list { padding-top: 32px; padding-bottom: clamp(56px, 8vw, 104px); }

/* Privacy page: an app's subsections */
.doc h3 { font-size: 1.45rem; margin: 28px 0 6px; }

/* 404 */
.page-head .btn { margin: 8px 8px 0 0; }
.page-head:only-child { padding-bottom: clamp(56px, 8vw, 104px); }

/* App page hero (Worker, Scheduler): the headline beside a computer screenshot */
.hero-screen { margin: 0; align-self: center; }
.hero-app .hero-screen { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }

/* Header: Learn (the study site), the waitlist button, then Sign in / Register at the far right */
.head-signin { font-size: 0.95rem; }
@media (max-width: 520px) {
  .site-head .btn-head-learn { display: inline-flex; min-height: 36px; padding: 6px 10px; font-size: 0.85rem; }
  .head-signin { font-size: 0.85rem; white-space: normal; text-align: right; line-height: 1.2; max-width: 7.5em; }
  .brand .wordmark { font-size: 1.3rem; }
}

/* Small phones: room for the logo, EN | FR, Learn and Sign in on one line */
@media (max-width: 400px) {
  .site-head { gap: 8px; }
  .site-head nav { gap: 8px; }
  .site-head .btn-head-learn { padding: 6px 8px; }
  .lang-switch > * { padding: 6px 6px; }
  .brand .wordmark { display: none; }
}

/* Under construction */
.construction { text-align: left; padding-bottom: clamp(56px, 8vw, 104px); }
.construction-cone { width: 96px; height: 96px; margin-bottom: 16px; }
.construction p { max-width: 36em; }
.construction-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.construction-actions .btn { margin: 0; }

/* ---- Landing page: AV icons sweeping sideways behind the headline (P3) ----
   Two copies of one icon strip (img/av-strip.svg, drawn by tools/make_av_strip.py), at
   different sizes and speeds. Faint, behind the text, faded at the edges. Still when the
   visitor asks for less motion. */
.hero-home { position: relative; overflow: hidden; isolation: isolate; }
.hero-home::before, .hero-home::after {
  content: ""; position: absolute; left: 0; z-index: -1; pointer-events: none;
  background: url("../img/av-strip.svg") repeat-x 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  will-change: transform;
}
.hero-home::before {
  top: 6%; height: 40px; width: calc(100% + 960px);
  background-size: 960px 40px; opacity: 0.16;
  animation: av-sweep-a 48s linear infinite;
}
.hero-home::after {
  bottom: 4%; height: 64px; width: calc(100% + 1536px);
  background-size: 1536px 64px; opacity: 0.1;
  animation: av-sweep-b 80s linear infinite reverse;
}
@keyframes av-sweep-a { from { transform: translateX(0); } to { transform: translateX(-960px); } }
@keyframes av-sweep-b { from { transform: translateX(0); } to { transform: translateX(-1536px); } }
@media (min-width: 980px) {
  .hero-home::before { top: 9%; height: 48px; background-size: 1152px 48px; width: calc(100% + 1152px); animation-name: av-sweep-a-lg; }
  @keyframes av-sweep-a-lg { from { transform: translateX(0); } to { transform: translateX(-1152px); } }
}
@media (prefers-reduced-motion: reduce) {
  .hero-home::before, .hero-home::after { animation: none; }
}

/* ---- App page demos (Worker, Scheduler): the same idea as Job Notes' demo (P3) ----
   static/js/demo.js shows each [data-step] in turn. In a .swap group only one child shows at a
   time (data-until hides it again); without JS or with less motion, only .final shows. */
.demo-app { grid-template-columns: 1fr; }
@media (min-width: 640px) { .demo-app { grid-template-columns: 1.1fr 1fr; } }
.demo-app .demo-wide { grid-column: 1 / -1; }
/* Scoped to .demo-app: Job Notes' own demo (job-notes.js) lights its notes up with .lit, not
   .shown, so these rules must never reach it. */
.demo-app.will-animate [data-step]:not(.shown) { opacity: 0; transform: translateY(6px); }
.demo-app [data-step].shown { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }
.demo-app.will-animate .swap > :not(.shown), .demo-app:not(.will-animate) .swap > :not(.final) { display: none; }
.demo-app .swap > .shown { transition: none; }

.demo-person { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.demo-avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #f1e6ee; color: var(--plum); font: 700 1.2rem/1 var(--display);
}
.demo-person strong { display: block; line-height: 1.2; }
.demo-person span { color: var(--taupe); font-size: 0.85rem; }
.demo-rows { list-style: none; margin: 0; padding: 0; }
.demo-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #ece6ea; font-size: 0.93rem; }
.demo-rows li:first-child { border-top: 0; }
.demo-rows .muted { color: var(--taupe); font-size: 0.82rem; display: block; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 0.78rem; font-weight: 700; border: 1.5px solid currentColor;
}
.chip-ok { color: #fff; background: #3d8b5a; border-color: #3d8b5a; }
.chip-warn { color: #6b4500; background: #fbf0dc; border-color: var(--gold); }
.chip-plain { color: var(--taupe); }
.chip-star { color: var(--teal); background: #e3f1f6; border-color: #b9dbe7; }
.chip-tag { color: #6b2f5f; background: #f3e8f0; border-color: #e0c9da; letter-spacing: 0.04em; }
.demo-warn.shown .chip-warn { animation: chip-pulse 1.4s ease 2; }
@keyframes chip-pulse { 50% { box-shadow: 0 0 0 6px rgba(234, 180, 100, 0.35); } }
@media (prefers-reduced-motion: reduce) { .demo-warn.shown .chip-warn { animation: none; } }

.demo-mail-head { display: flex; gap: 8px; align-items: baseline; font-size: 0.85rem; color: var(--taupe); margin-bottom: 6px; }
.demo-mail-subject { font-weight: 700; margin: 0 0 6px; }
.demo-mail p { margin: 0; font-size: 0.9rem; line-height: 1.5; }

.demo-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.demo-week > span, .demo-week .swap > span {
  display: grid; place-items: center; padding: 8px 0; border-radius: 6px;
  background: #eef3f6; font-size: 0.78rem; font-weight: 700; color: var(--taupe);
}
.demo-week > .swap { display: grid; place-items: stretch; padding: 0; background: none; }
.demo-week .swap > .out { background: #fbe4df; color: #9b3523; }
.demo-request { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-request .muted { display: block; color: var(--taupe); font-size: 0.82rem; }

.demo-job h3 { margin: 6px 0 4px; font: 700 1.25rem/1.15 var(--display); }
.demo-job p { margin: 0 0 10px; color: var(--taupe); font-size: 0.9rem; }
.add-btn {
  display: inline-block; min-width: 72px; text-align: center; padding: 5px 10px; border-radius: 6px;
  background: var(--teal); color: #fff; font-size: 0.82rem; font-weight: 700; white-space: nowrap;
}
.add-btn.added { background: #3d8b5a; }

/* ---- Small touches everywhere (P3) ---- */
.app-tile { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.app-tile:hover { transform: translateY(-3px); }
/* Sections ease in as they scroll into view (site.js adds .js-reveal only when that's wanted). */
.js-reveal main > section:not(.hero):not(.page-head) { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal main > section.in:not(.hero):not(.page-head) { opacity: 1; transform: none; }
@media print { .js-reveal main > section { opacity: 1 !important; transform: none !important; } }

/* ---- Landing page copy (Nov 2: "Zap away the guesswork", every low-voltage trade) ---- */
.hero-kicker {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em;
}
.hero-trades { margin: 14px 0 0; max-width: 36em; color: var(--gold); font-weight: 700; }
.problem, .trades { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .problem-list { grid-template-columns: 1fr 1fr; } }
.problem-list li {
  padding: 18px 20px; background: var(--white); border-radius: 8px; border-left: 4px solid var(--vermilion);
  box-shadow: 0 1px 0 rgba(31, 29, 30, 0.06), 0 14px 30px -24px rgba(31, 29, 30, 0.45);
}
.problem-list strong { display: block; font: 600 1.3rem/1.2 var(--display); margin-bottom: 4px; }
.problem-answer { margin: 28px 0 0; max-width: 40em; font-size: 1.1em; font-weight: 700; color: var(--plum-deep); }
.trade-grid div { border-top-color: var(--teal); }


/* ---- Layout pass (Nov 2): everything lines up on one centered column ----
   The header and footer content sits on the same edges as the page sections, so on a wide
   screen nothing hugs the far left while the rest sits in the middle. */
.site-head, .site-foot {
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
/* Landing hero: centered, so the icon bands frame it evenly */
.hero.hero-home { justify-items: center; text-align: center; }
@media (min-width: 980px) { .hero.hero-home { padding-left: var(--gutter); padding-right: var(--gutter); } }
.hero-home .hero-copy { max-width: 44rem; margin: 0 auto; }
.hero-home h1 { max-width: none; margin-left: auto; margin-right: auto; }
.hero-home .hero-patch { margin-left: auto; margin-right: auto; }
.hero-home .lede, .hero-home .hero-trades { margin-left: auto; margin-right: auto; }
.hero-home .hero-actions { justify-content: center; }
/* Landing sections: headings and closing lines centered over the cards */
.home main > section:not(.hero) > h2 { text-align: center; max-width: none; }
.home .problem-answer, .home .apps-note { text-align: center; margin-left: auto; margin-right: auto; }
.home .request-home { align-items: center; }
/* Two cards side by side between phone and laptop width, three from 900px */
@media (min-width: 640px) and (max-width: 899px) { .home .why .feature-grid { grid-template-columns: 1fr; } }

/* ---- Icons on the landing page's feature cards ---- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.feat-icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 12px;
  border-radius: 14px; background: #f3e8f0; color: var(--plum);
}
.feat-icon svg {
  width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.trade-grid .feat-icon { background: #e3f1f6; color: var(--teal); }
.home .feature-grid div { padding-top: 18px; }

/* ---- Survey (Nov 2): shown only when config.SURVEY_URL is set ---- */
.survey { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.survey-card {
  display: grid; gap: 24px; justify-items: center; text-align: center;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 56px);
  background: var(--white); border-radius: 12px; border-top: 4px solid var(--gold);
  box-shadow: 0 1px 0 rgba(31, 29, 30, 0.08), 0 18px 40px -28px rgba(31, 29, 30, 0.5);
}
.survey-card h2 { margin: 0 auto 12px; max-width: none; }
.survey-card p { margin: 0 auto; max-width: 40em; }
.survey-card .small { margin-top: 12px; color: var(--taupe); }

/* Apps being built (decided Nov 4): not links, so no hover lift, and a tag in place of
   "See how it works". */
.apps-building h2 { margin-top: 0; }
.app-tile.is-building { border-top-color: var(--gold); }
.app-tile.is-building:hover { transform: none; box-shadow: 0 1px 0 rgba(31, 29, 30, 0.08), 0 18px 40px -28px rgba(31, 29, 30, 0.5); }
.building-tag {
  justify-self: start; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  background: #fcf3e4; color: #6b4a12; border: 1px solid var(--gold); font-size: 0.85rem; font-weight: 700;
}
.apps-building:last-child { padding-bottom: clamp(56px, 8vw, 104px); }


/* ---- Zappy AV Learn (Nov 16): /learn page and the landing band ---- */
.learn-motto mark {
  color: inherit; padding: 0 0.08em;
  background: linear-gradient(transparent 58%, rgba(234, 180, 100, 0.85) 58%, rgba(234, 180, 100, 0.85) 92%, transparent 92%);
}
.learn-page .hero h1.learn-motto { max-width: none; font-size: clamp(2.2rem, 3.4vw, 3.3rem); line-height: 1.05; }
.learn-band { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.learn-band-card {
  display: grid; gap: 20px; justify-items: center; text-align: center; padding: clamp(28px, 5vw, 48px);
  background: var(--plum); color: var(--white); border-radius: 12px;
  box-shadow: 0 18px 40px -28px rgba(31, 29, 30, 0.6);
}
@media (min-width: 900px) {
  .learn-band-card { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; gap: 32px; }
}
.learn-band-card img { width: 88px; height: 88px; }
.learn-band-card p { margin: 0 0 8px; max-width: 42em; }
.learn-band-kicker { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--gold); }
.learn-motto-small { font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.1 var(--display); color: var(--white); }
.learn-motto-small mark { background: linear-gradient(transparent 60%, rgba(234, 180, 100, 0.7) 60%, rgba(234, 180, 100, 0.7) 94%, transparent 94%); }
.learn-disclaimer { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 0; }
.learn-disclaimer p { max-width: 60em; color: var(--taupe); font-size: 0.85rem; line-height: 1.5; }
.learn-motto .motto-line { display: block; }
@media (min-width: 900px) { .learn-page .hero .learn-motto .motto-line { white-space: nowrap; } }
