/* NeoWorks public site. Tokens from neoworks-dashboard/public/app.css (D-9);
   layout and states per services-site-plan.md design decisions D3–D12.
   Ink bands (header, hero, footer) over light content (D9). Raw hex lives only in :root. */
:root {
  --ink: #0D0D0E;
  --ink-2: #1C1C1E;
  --ink-line: #2A2A2D;
  --red: #E1251B;
  --red-hover: #C11C13;
  --red-on-dark: #FF4A3D;
  --muted: #5F5F62;
  --muted-on-dark: #A3A29E;
  --line: #E4E3E0;
  --field: #8A8985; /* 3.5:1 on white, the 3:1 minimum for form-field edges */
  --bg: #E8E7E4;
  --surface: #FFFFFF;
  --surface-2: #F4F3F0;
  --paid-bg: #E6F4EA;
  --paid: #1E7A3C;
  --over-bg: #FDE7E5;
  --red-text: #B3170F;

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --panel-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 16px 40px rgb(0 0 0 / .18);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --wrap: 1120px;
  --gutter: 16px;
}

/* ── Base + themed browser surfaces ── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: #fff; }
input, select, textarea { caret-color: var(--red); accent-color: var(--red); font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.ink :focus-visible { outline-color: var(--red-on-dark); }
a { color: inherit; text-underline-offset: 3px; }
main a:not(.btn):not(.tlink) { color: var(--ink); text-decoration-thickness: 1px; }
main a:not(.btn):not(.tlink):visited { color: var(--muted); }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .price { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 68ch; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; line-height: 1.15; }
h2 { font-size: 28px; font-weight: 800; margin-top: 0; margin-bottom: var(--s3); }
h3 { font-size: 19px; font-weight: 700; margin-bottom: var(--s2); }
p { margin: 0 0 var(--s3); }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; }
.label { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.skip { position: absolute; left: var(--s4); top: -60px; background: var(--red); color: #fff; padding: var(--s3) var(--s4); z-index: 50; font-weight: 600; }
.skip:focus { top: var(--s3); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border: 0; border-radius: 2px;
  background: var(--red); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
}
.btn:hover { background: var(--red-hover); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.ink .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.ink .btn.ghost:hover { background: #fff; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.tlink { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }
.ink .tlink { color: #fff; }
.ink .tlink .arrow, .ink .accent { color: var(--red-on-dark); }

/* ── Ink bands ── */
.ink { background: var(--ink); color: #fff; }
.ink .lede, .ink .muted { color: var(--muted-on-dark); }
.ink .label { color: var(--muted-on-dark); }

/* ── Header + nav (D4) ── */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; border-bottom: 1px solid var(--ink-line); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: #fff; text-decoration: none; }
.logo img { height: 36px; width: auto; }
.logo .word { font: 800 17px/1 var(--sans); letter-spacing: .14em; }
.foot-logo img { height: 36px; }
.foot-logo .word { font-size: 20px; }
.nav { display: flex; gap: var(--s5); margin-right: auto; }
.nav a { color: #DAD9D5; text-decoration: none; font-weight: 600; font-size: 15px; padding: var(--s3) 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current=page] { color: #fff; border-bottom-color: var(--red-on-dark); }
.head-actions { display: flex; align-items: center; gap: var(--s4); }
.head-actions .book { color: #fff; font-weight: 600; text-decoration: none; padding: var(--s3) 0; border-bottom: 2px solid transparent; }
.head-actions .book[aria-current=page] { border-bottom-color: var(--red-on-dark); }
.head-actions .book:hover { text-decoration: underline; }
.head-actions .btn { min-height: 40px; padding: 0 var(--s4); font-size: 15px; }
.menu-btn { display: none; background: none; border: 1.5px solid #fff; color: #fff; min-height: 40px; padding: 0 var(--s3); font-weight: 600; border-radius: 2px; }
.help-btn { display: none; }

.menu-sheet { position: fixed; inset: 0; z-index: 40; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: var(--s3) var(--gutter) var(--s6); overflow-y: auto; }
.menu-sheet .sheet-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.menu-sheet nav { display: flex; flex-direction: column; margin-top: var(--s4); }
.menu-sheet nav a { min-height: 56px; display: flex; align-items: center; font-size: 22px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink-line); }
.menu-sheet nav a[aria-current=page] { color: var(--red-on-dark); }
.menu-sheet .sheet-actions { display: grid; gap: var(--s3); margin-top: var(--s5); }

/* ── Hero (D3, D7): type-led, one main action ── */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: var(--s7) 0 var(--s7); }
/* Atmosphere behind the circuit: a slow-drifting red light plus fine film grain. */
.hero::before {
  content: ''; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 70%, rgb(225 37 27 / .22), transparent 70%),
    radial-gradient(30% 40% at 95% 10%, rgb(225 37 27 / .10), transparent 70%),
    radial-gradient(60% 60% at 10% 0%, rgb(255 255 255 / .04), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero > .wrap { position: relative; z-index: 1; }
/* Animated circuit background (public/js/circuit.js). Purely decorative. */
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* Scanner (WebGL) background: it brings its own grain and vignette, so the CSS
   glow and grain step aside, and the left side fades so the name stays crisp. */
.bg-scanner::before, .bg-scanner::after { display: none; }
.bg-scanner .circuit {
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .35) 0%, rgb(0 0 0 / .55) 30%, #000 70%);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / .35) 0%, rgb(0 0 0 / .55) 30%, #000 70%);
}
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.04; letter-spacing: -.02em; max-width: 15ch; }
/* Home hero: the brand is the headline; what we do sits right under it. */
.hero h1.hero-brand { max-width: none; font-size: inherit; }
.brand-xl { display: block; font-size: min(60px, calc((100vw - 32px) / 9.5)); font-weight: 800; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.brand-xl .ch { display: inline-block; }
.brand-xl .accent { color: var(--red-on-dark); }
.hero .lede { margin-top: var(--s4); font-size: 19px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s5); margin-top: var(--s7); align-items: start; }
.hero .now { margin-top: var(--s5); }
.trust { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--ink-line); font: 600 12px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); }
.trust span + span::before { content: '·'; margin: 0 var(--s3); color: var(--red-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: letters slide up in order, the red dot pops, then the panels rise. */
  .brand-xl .ch { animation: letter .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 45ms); }
  .brand-xl .ch.accent { animation: letter .7s cubic-bezier(.2, .8, .2, 1) both, dot .5s cubic-bezier(.3, 1.6, .5, 1) .75s both; animation-delay: calc(var(--i) * 45ms), .75s; }
  @keyframes letter { from { transform: translateY(.55em); opacity: 0; filter: blur(4px); } }
  @keyframes dot { 50% { transform: scale(1.8); } }
  .enter { animation: enter .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
  @keyframes enter { from { transform: translateY(16px); opacity: 0; } }
  .hero::before { animation: drift 18s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate(-6%, -4%) scale(1.08); } }

  /* Sections fade up as they scroll into view (class added by site.js, so no-JS stays visible). */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .reveal.in { opacity: 1; transform: none; }

  /* Hover: small, informative feedback, only where a real pointer hovers
     (on touch, :hover sticks after a tap). */
  .btn { transition: background .15s, transform .15s, box-shadow .15s; }
  .choice span { transition: border-color .15s, box-shadow .15s, transform .15s; }
  .rows li { transition: background .15s; }
  .zones li { transition: transform .15s; }
  @media (hover: hover) {
    .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(225 37 27 / .28); }
    .btn:active { transform: none; box-shadow: none; }
    .choice input:hover + span { transform: translateX(3px); box-shadow: inset 3px 0 var(--red); }
    .rows li:hover { background: var(--surface-2); }
    .zones li:hover { transform: translateX(4px); }
  }
}

/* ── Panels: picker, ZIP box ── */
.panel { background: var(--surface); color: var(--ink); padding: var(--s5); border-radius: 2px; box-shadow: var(--panel-shadow); }
/* Panels sit on ink bands but are light surfaces: reset ink-band link colors. */
.panel .tlink, .panel a:not(.btn) { color: var(--ink); }
.panel .label { color: var(--muted); }
.panel :focus-visible { outline-color: var(--red); }
.picker fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker legend { font-size: 20px; font-weight: 800; padding: 0; margin-bottom: var(--s4); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.choices.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 56px; padding: var(--s3) var(--s4); border: 1.5px solid var(--field); border-radius: 2px; font-weight: 600; background: var(--surface); }
.choice input:hover + span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.picker-nav { display: flex; gap: var(--s4); margin-top: var(--s4); font-size: 15px; }
.picker-nav button { background: none; border: 0; padding: var(--s2) 0; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

.result .label { margin-bottom: var(--s2); }
.result h3 { font-size: 22px; }
.result .price { font-size: 26px; font-weight: 600; margin: var(--s2) 0 var(--s1); }
.result .travel { font: 400 14px var(--mono); color: var(--muted); margin-bottom: var(--s4); }
.result .actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.result .tip { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 15px; }

.zipbox label { display: block; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s2); }
.zipbox input { width: 100%; min-height: 52px; padding: 0 var(--s3); border: 1.5px solid var(--field); border-radius: 2px; font: 600 22px var(--mono); letter-spacing: .1em; }
.zipbox input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 2px var(--red); }
.zip-out { margin-top: var(--s3); font: 400 15px/1.45 var(--mono); min-height: 2.9em; }
.zip-out strong { font-weight: 600; }
.zip-out.err { color: var(--red-text); font-family: var(--sans); }

/* ── Sections ── */
.band { padding: var(--s8) 0; }
.band:not(.ink) + .band:not(.ink) { padding-top: 0; }
.band-head { display: flex; justify-content: space-between; align-items: last baseline; gap: var(--s4); margin-bottom: var(--s5); }
.band-head p { margin: 0; }
.page-head { padding: var(--s7) 0 var(--s6); }
.page-head h1 { font-size: 44px; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.page-head .lede { margin-top: var(--s3); }
/* Page titles sit on the same animated ink band as the home hero. */
.page-head.hero { padding: var(--s7) 0; }
.page-head.ink a:not(.btn), .page-head.ink a:not(.btn):visited { color: #fff; }
.page-head .thanks a:not(.btn), .page-head .thanks a:not(.btn):visited { color: var(--ink); }

/* Price rows */
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 2px; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s4); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); align-items: baseline; }
.rows li:last-child { border-bottom: 0; }
.rows .name { font-weight: 600; }
.rows .note { grid-column: 1; color: var(--muted); font-size: 15px; }
.rows .price { grid-column: 2; grid-row: 1; text-align: right; font-weight: 600; white-space: nowrap; }
.rows .row-act { grid-column: 2; font-size: 14px; text-align: right; }
/* Small standalone links keep their look but get a 44px tap area. */
.rows .row-act, .band-head > a { position: relative; }
.rows .row-act::after, .band-head > a::after { content: ""; position: absolute; inset: -12px -8px; }
.cat + .cat { margin-top: var(--s6); }
.cat h2 { font-size: 22px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.note-line { font-size: 15px; color: var(--muted); margin-top: var(--s4); }

/* Plans (D8) */
.toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 2px; margin-bottom: var(--s5); }
.toggle label { position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.toggle span { display: block; padding: var(--s2) var(--s4); min-height: 44px; line-height: 28px; font-weight: 600; cursor: pointer; }
.toggle input:checked + span { background: var(--ink); color: #fff; }
.toggle input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.toggle-note { font: 600 13px var(--mono); color: var(--red-text); margin-left: var(--s3); }
.plans-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.plans-table th, .plans-table td { padding: var(--s4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plans-table thead th { font-size: 22px; font-weight: 800; border-bottom: 2px solid var(--ink); }
.plans-table thead .tag { display: block; margin-top: var(--s1); font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red-text); }
.plans-table tbody th { font-weight: 600; color: var(--muted); width: 26%; }
.plans-table .price { font-size: 22px; font-weight: 600; }
.plans-table tfoot td { border-bottom: 0; }
.plans-stack { display: none; }
.plan-card { background: var(--surface); padding: var(--s5); border-top: 3px solid var(--ink); }
.plan-card + .plan-card { margin-top: var(--s4); }
.plan-card .price { font-size: 26px; font-weight: 600; margin: var(--s2) 0; }
.plan-card summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.plan-card ul, .list { margin: var(--s2) 0 var(--s4); padding-left: 20px; }
.plan-card li, .list li { margin-bottom: var(--s1); }
.biz { margin-top: var(--s6); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s6); padding: var(--s6); }
.biz .price { font-size: 30px; font-weight: 600; margin: var(--s2) 0; }
.terms { background: var(--surface-2); padding: var(--s5); margin-top: var(--s6); border-left: 0; }
.terms ul { margin: var(--s2) 0 0; padding-left: 20px; }
.cols-2 > .terms { margin-top: 0; }

/* Zones */
.zones { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.zones li { background: var(--surface); padding: var(--s4) var(--s5); display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: var(--s4); align-items: baseline; }
.zones .z { font: 600 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.zones .price { font-weight: 600; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s5); }
.reviews blockquote { margin: 0; font-size: 19px; line-height: 1.45; }
.reviews cite { display: block; margin-top: var(--s3); font: 400 13px var(--mono); font-style: normal; color: var(--muted); }

/* Recent work (websites page) */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) var(--s6); margin-top: var(--s5); }
.work .shot { display: block; aspect-ratio: 16 / 10; background: var(--ink); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.work .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work .label { margin: var(--s4) 0 var(--s2); }
.work h3 { font-size: 22px; font-weight: 800; }
.work p:not(.label) { color: var(--muted); max-width: 52ch; margin: 0 0 var(--s3); }

/* Remote help steps */
.price-line { margin-top: var(--s4); font: 600 20px/1.3 var(--mono); }
.actions-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.steps { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: var(--s4); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 13px var(--mono); letter-spacing: .12em; color: var(--red-text); margin-bottom: var(--s3); }
.steps h3 { font-size: 20px; font-weight: 800; }
.steps p { margin: 0 0 var(--s3); max-width: 52ch; }

/* Wi-Fi speed test */
.speed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.speed-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.speed-status { margin: 0; font: 400 14px var(--mono); color: var(--muted); }
.speed-out { margin: var(--s5) 0 0; }
.speed-out > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.speed-out > div:last-child { border-bottom: 0; }
.speed-out dt { font-weight: 600; }
.speed-out dd { margin: 0; font: 600 28px/1 var(--mono); font-variant-numeric: tabular-nums; }
.speed-out small { display: inline-block; min-width: 4ch; font-size: 13px; font-weight: 400; color: var(--muted); }
.notice.speed-verdict { margin-top: var(--s5); padding: var(--s4) 0 0; box-shadow: none; background: none; }
.speed-verdict h3 { font-size: 24px; font-weight: 800; }
.speed-verdict p:last-child { margin-bottom: 0; }

/* Tools (shared) */
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.page-head .label a { color: var(--muted-on-dark); text-decoration: none; }
.page-head .label a:hover { color: #fff; }
.page-head .label + h1 { margin-top: var(--s2); }

/* Is this a scam? */
.scam-q { border: 0; margin: 0; padding: var(--s4) 0; border-bottom: 1px solid var(--line); min-width: 0; }
.scam-q:first-child { padding-top: 0; }
.scam-q legend { float: left; width: 100%; padding: 0; font-weight: 600; }
.scam-q legend + * { clear: both; }
.scam-n { font: 600 12px var(--mono); letter-spacing: .12em; color: var(--red-text); margin-right: var(--s3); }
.scam-q .hint { margin: var(--s1) 0 0; padding-top: var(--s1); font-size: 15px; color: var(--muted); }
.scam-q .toggle { margin: var(--s3) 0 0; }
.notice.scam-result, .notice.pw-result { margin-top: var(--s5); box-shadow: none; padding: var(--s4) 0 0; background: none; }
.scam-result h3, .pw-result h3 { font-size: 22px; font-weight: 800; }
.scam-wait { border-top-color: var(--line); }
/* The verdict sits above the advice and stays in view while answering. */
@media (min-width: 900px) { .scam-side { position: sticky; top: 88px; } }
.scam-side .notice.scam-result { margin: 0; padding: var(--s4) var(--s5) var(--s5); background: var(--surface); }
.list .mono { white-space: nowrap; }

/* Camera & mic check */
.cam-view { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 2px; overflow: hidden; }
.cam-view video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted-on-dark); font: 400 14px var(--mono); }
.mic-meter { height: 8px; margin: var(--s3) 0; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.mic-meter span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .08s linear; }
.cam-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s3); }
.cam-pick .field { margin: 0; }

/* Password leak check */
.pw-row { display: flex; gap: var(--s2); }
.pw-row input { flex: 1; min-width: 0; }
.pw-row .btn { min-height: 48px; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s1); margin-top: var(--s2); }
.pw-meter span { height: 6px; background: var(--line); border-radius: 2px; }
.pw-meter span.on { background: var(--red); }
.pw-meter span.on.s3, .pw-meter span.on.s4 { background: var(--paid); }
.pw-meter + .speed-status { margin-top: var(--s2); }

/* ── Forms (quote) ── */
.form-wrap { background: var(--surface); padding: var(--s6); max-width: 760px; }
.type-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s6); border: 0; padding: 0; }
.type-pick legend { font-size: 20px; font-weight: 800; margin-bottom: var(--s4); padding: 0; }
.fsec { border: 0; padding: 0; margin: 0 0 var(--s6); min-width: 0; }
.fsec legend { font-size: 20px; font-weight: 800; padding: 0; margin-bottom: var(--s4); }
.field { margin-bottom: var(--s4); }
.field > label, .field > .flabel { display: block; font-weight: 600; margin-bottom: var(--s2); }
.field .req { color: var(--red-text); }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s3); border: 1.5px solid var(--field); border-radius: 2px; background: var(--surface); color: var(--ink); font-size: 16px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 2px var(--red); }
.field .hint { font-size: 14px; color: var(--muted); margin-top: var(--s1); }
.field .ferr { color: var(--red-text); font-size: 14px; margin-top: var(--s1); font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red-text); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s4); }
.checks label { display: flex; gap: var(--s2); align-items: flex-start; min-height: 32px; font-weight: 400; }
.checks input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form-error { background: var(--over-bg); color: var(--red-text); padding: var(--s3) var(--s4); font-weight: 600; margin-bottom: var(--s4); }
.form-foot { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.draft-note { font-size: 14px; color: var(--muted); }
.thanks { background: var(--paid-bg); padding: var(--s6); max-width: 760px; }
.thanks h2 { color: var(--paid); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Booking (D5, D20) */
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s6); align-items: start; }
.cal-frame { width: 100%; min-height: 680px; border: 0; background: var(--surface); display: block; }
.cal-loading { background: var(--surface-2); min-height: 200px; display: grid; place-items: center; color: var(--muted); font: 400 15px var(--mono); }
.notice { background: var(--surface); padding: var(--s5); border-top: 3px solid var(--red); }
.notice.ok { border-top-color: var(--paid); }
.cols-2 > .notice { align-self: start; }

/* ── Footer ── */
.site-foot { padding: var(--s7) 0 var(--s6); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.site-foot a { color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.foot-note { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--ink-line); font: 400 13px/1.6 var(--mono); color: var(--muted-on-dark); }

/* ── Responsive (D10) ── */
@media (max-width: 899px) {
  .nav, .head-actions { display: none; }
  .menu-btn, .help-btn { display: inline-flex; align-items: center; }
  .site-head .wrap { gap: var(--s3); }
  .logo img { height: 30px; }
  .help-btn { white-space: nowrap; }
  .help-btn { margin-left: auto; min-height: 40px; padding: 0 var(--s4); font-size: 15px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cols-2, .biz, .book-grid, .foot-grid, .work, .steps, .speed-grid, .tool-grid, .cam-pick { grid-template-columns: minmax(0, 1fr); }
  .plans-table { display: none; }
  .plans-stack { display: block; }
}
@media (max-width: 767px) {
  .hero { padding: var(--s6) 0; }
  .hero.ink { padding-bottom: var(--s7); }
  .hero h1 { font-size: 34px; line-height: 1.1; }
  .hero .lede { font-size: 17px; }
  .price-line { font-size: 17px; }
  .page-head h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .band { padding: var(--s7) 0; }
  .choices, .choices.many, .type-pick, .checks { grid-template-columns: minmax(0, 1fr); }
  .panel, .form-wrap, .biz { padding: var(--s4); }
  .rows li { padding: var(--s3) var(--s4); }
  .rows li.long { grid-template-columns: minmax(0, 1fr); }
  .rows li.long .price, .rows li.long .row-act { grid-column: 1; grid-row: auto; text-align: left; }
  .rows li.long .price { white-space: normal; }
  .zones li { grid-template-columns: minmax(0, 1fr) auto; }
  .zones li .where { grid-column: 1 / -1; }
  .band-head { flex-direction: column; align-items: start; }
  .site-foot ul a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ── Print: the services page doubles as the price sheet (D17) ── */
@media print {
  .site-head, .site-foot, .no-print, .skip, .circuit { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero::before, .hero::after { display: none; }
  body { background: #fff; font-size: 11pt; }
  .page-head { padding: 0 0 12pt; }
  .page-head h1 { font-size: 20pt; }
  .page-head.ink { background: #fff; color: #000; }
  .page-head.ink .lede, .page-head.ink .print-only { color: #333; }
  .band { padding: 0 0 12pt; }
  .rows li { padding: 4pt 0; break-inside: avoid; }
  .cat { break-inside: avoid; }
  .print-only { display: block !important; }
  a { text-decoration: none; }
}
.print-only { display: none; }

/* ── Home: the repair stage (scroll-craft) ──
   Two photos of one desk, Broken over Fixed. js/home.js moves --x (0..1, the
   repair line) and prints ticket lines from the pinned act's progress. Without
   JS the stage is a still split with a fully printed ticket. Engine files:
   scrollcraft.css / js/scrollcraft.js (vendored from the scroll-craft skill,
   don't edit them; override here). */
:root {
  --sc-canvas: var(--ink); --sc-surface: var(--ink-2);
  --sc-ink: #fff; --sc-ink-soft: var(--muted-on-dark);
  --sc-accent: var(--red); --sc-accent-ink: #fff;
  --sc-font-display: var(--sans); --sc-font-text: var(--sans);
  --head-h: 65px;
}
html { scroll-behavior: auto; }
body { letter-spacing: normal; }
.no-js [data-sc-in], .no-js [data-sc-stagger] > *, .no-js [data-sc-cue] { opacity: 1; transform: none; }

.repair { position: relative; background: var(--ink); color: #fff; }
.repair-stage { height: calc(100svh - var(--head-h)); min-height: 560px; overflow: clip; --x: .5; }
.repair-stage:not(.sc-stage) { position: relative; }
.sc-act--pinned .repair-stage { top: var(--head-h); }
.repair-photo { position: absolute; inset: 0; }
.ph, .ph img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph img { object-fit: cover; object-position: 50% 62%; transform: scale(var(--zoom, 1.06)); transform-origin: 50% 70%; }
.ph-broken { clip-path: inset(0 calc((1 - var(--x)) * 100%) 0 0); }
.repair-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--red-on-dark); transform: translateX(calc(var(--x) * (100vw - 2px))); box-shadow: 0 0 0 1px rgb(13 13 14 / .35); }
.repair-line .tag { position: absolute; bottom: var(--s5); font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; background: var(--ink); white-space: nowrap; }
.repair-line .tag-b { right: 10px; color: var(--muted-on-dark); opacity: clamp(0, calc(var(--x) * 14 - 1), 1); }
.repair-line .tag-f { left: 10px; color: #fff; box-shadow: inset 0 -2px 0 var(--red-on-dark); }
.repair-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(13 13 14 / .78) 0%, rgb(13 13 14 / .42) 26%, transparent 44%); }

.repair-stage { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.repair-copy { position: absolute; top: clamp(24px, 5vh, 48px); left: var(--edge); right: calc(var(--edge) + 340px + var(--s7)); }
.repair-copy h1 { font-size: clamp(32px, 1.6rem + 2.2vw, 54px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.repair-copy h1 > span { display: block; }
.h-b { color: var(--muted-on-dark); margin-bottom: .12em; font-size: .62em; line-height: 1.12; }
/* The strike is a background on the inline text, so it follows every wrapped line. */
.h-strike { background: linear-gradient(var(--red-on-dark), var(--red-on-dark)) 0 58% / calc(var(--strike, 1) * 100%) .08em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h-f em { display: block; font-style: normal; color: var(--red-on-dark); }
.repair-sub { margin-top: var(--s4); max-width: 44ch; font-size: 17px; line-height: 1.5; color: #E4E3E0; }

.ticket { position: absolute; right: var(--edge); top: clamp(24px, 5vh, 48px); width: 340px;
  background: var(--surface); color: var(--ink); border-radius: 2px; padding: var(--s4) var(--s4) var(--s4);
  box-shadow: 0 2px 4px rgb(0 0 0 / .25), 0 24px 48px rgb(0 0 0 / .45); transform: translateY(var(--lift, 0px)) rotate(-1deg); }
.t-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px dashed var(--field); }
.t-brand { font: 800 13px/1 var(--sans); letter-spacing: .14em; }
.t-brand .accent { color: var(--red); }
.t-title { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.t-lines { list-style: none; margin: 0; padding: var(--s2) 0; }
.t-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); padding: 7px 0; border-bottom: 1px solid var(--line); }
.t-prob { position: relative; width: fit-content; font-size: 15px; font-weight: 600; }
.t-prob::after { content: ''; position: absolute; left: -1px; right: -1px; top: 55%; height: 2px; background: var(--red); transform: scaleX(1); transform-origin: 0 50%; }
.t-travel .t-prob::after { display: none; }
.t-fix { grid-column: 1; font: 400 12px/1.35 var(--mono); color: var(--muted); }
.t-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 600 15px var(--mono); font-variant-numeric: tabular-nums; }
.t-total { display: flex; justify-content: space-between; margin: var(--s2) 0 var(--s3); font: 800 17px var(--sans); }
.t-sum { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.t-cta { width: 100%; }
.t-note { margin: var(--s3) 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Live (JS) states: lines start open and print as the line sweeps. */
.repair.is-live .t-lines li .t-fix, .repair.is-live .t-lines li .t-price { opacity: 0; transform: translateY(-4px); transition: opacity .2s cubic-bezier(.23, 1, .32, 1), transform .2s cubic-bezier(.23, 1, .32, 1); }
.repair.is-live .t-prob::after { transform: scaleX(0); transition: transform .28s cubic-bezier(.23, 1, .32, 1); }
.repair.is-live li.done .t-fix, .repair.is-live li.done .t-price { opacity: 1; transform: none; }
.repair.is-live li.done .t-prob::after { transform: scaleX(1); }
.repair.is-live .t-total { opacity: var(--total-o, 0); }
.repair.is-live .h-strike { background-size: calc(var(--strike, 0) * 100%) .08em; }

.offers .rows li { will-change: auto; }
.help-band { padding: var(--s8) 0; }
.help-band h2 { font-size: 36px; margin-bottom: var(--s5); }
.help-band .hero-grid { margin-top: 0; }
.help-band .now { margin-top: var(--s5); }

@media (max-width: 860px) {
  .repair-stage { min-height: 0; }
  .repair-photo { bottom: auto; height: 34svh; }
  .ph img { object-position: 50% 70%; transform: none; }
  .repair-line .tag { bottom: var(--s2); }
  .repair-scrim { display: none; }
  .repair-copy { position: absolute; top: calc(34svh + var(--s4)); left: var(--gutter); right: var(--gutter); }
  .repair-copy h1 { font-size: 26px; }
  .repair-sub { display: none; }
  .ticket { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: var(--s4); transform: none; padding: var(--s3); }
  .t-lines li { padding: 5px 0; }
  .t-prob { font-size: 14px; }
  .t-fix { display: none; }
  .t-price { grid-row: 1; font-size: 14px; }
  .t-note { display: none; }
  .t-total { margin: var(--s2) 0; }
  .help-band { padding: var(--s7) 0; }
  .help-band h2 { font-size: 26px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .repair-photo { height: 25svh; }
  .repair-copy { top: calc(25svh + var(--s3)); }
  .repair-copy h1 { font-size: 22px; }
  .t-head { padding-bottom: var(--s2); }
  .t-lines { padding: 0; }
}
@media print { .repair-photo, .repair-scrim { display: none; } .repair { background: #fff; color: #000; } }
