/* Layout concept: a telephone-directory spine. Expanded grotesk headings, ruled
   listings, mono for numbers, prices and extensions. Palette: Figma "Marina"
   (cream, sky, navy) with Zoom blue in place of chestnut as the accent. */
:root {
  --paper: #fff1e7;      /* Marina cream */
  --panel: #fffaf6;
  --ink: #15293b;
  --muted: #4f6070;
  --line: #e6d6ca;
  --accent: #0b5cff;     /* Zoom blue */
  --accent-soft: #e2ebff;
  --btn: #0b5cff;
  --signal: #326080;     /* Marina navy */
  --signal-soft: #b5d2e6;/* Marina sky */
  --good: #2c7a4b;
  --warn: #9a6a10;
  --shadow: 0 1px 2px rgba(21, 41, 59, .06), 0 8px 24px rgba(21, 41, 59, .07);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s-0: .8125rem; --s-1: .9375rem; --s-2: 1.0625rem; --s-3: 1.3rem;
  --s-4: 1.7rem; --s-5: 2.3rem; --s-6: clamp(2.4rem, 5.4vw, 3.9rem);
  --wrap: 72rem;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1a24; --panel: #162533; --ink: #f6ece4; --muted: #a9b6c2; --line: #27394a;
    --accent: #5b92ff; --accent-soft: #162c52; --btn: #0b5cff; --signal: #b5d2e6; --signal-soft: #24435c;
    --good: #6cc792; --warn: #e0b35a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1a24; --panel: #162533; --ink: #f6ece4; --muted: #a9b6c2; --line: #27394a;
  --accent: #5b92ff; --accent-soft: #162c52; --btn: #0b5cff; --signal: #b5d2e6; --signal-soft: #24435c;
  --good: #6cc792; --warn: #e0b35a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--s-2)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--panel); }
img, svg { max-width: 100%; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--s-6); font-weight: 800; }
h2 { font-size: var(--s-5); font-weight: 750; }
h3 { font-size: var(--s-3); font-weight: 700; }
h4 { font-size: var(--s-2); font-weight: 700; }
p { margin: 0; max-width: 65ch; }
.mono, .price { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 var(--s-0)/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.lede { font-size: var(--s-3); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--s-0); }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font: 800 1.1rem/1 var(--f-display); font-stretch: 118%; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a { text-decoration: none; color: var(--ink); font-size: var(--s-1); padding: .45rem .6rem; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: var(--signal-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--signal); font-weight: 600; box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
.nav .btn { margin-left: .4rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: .45rem .7rem; font: 600 var(--s-1) var(--f-body); cursor: pointer; }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--panel); border-bottom: 1px solid var(--line); padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .5rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal); padding-left: .9rem; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 var(--s-1)/1 var(--f-body); padding: .8rem 1.15rem; border-radius: 8px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: .55rem .85rem; font-size: var(--s-0); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .8rem; margin-bottom: 2.25rem; max-width: 46rem; }
.page-hero { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); background: var(--signal-soft); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 1rem; }
.page-hero p.lede { max-width: 58ch; color: var(--ink); }
.page-hero .eyebrow { color: var(--signal); }
.band { background: var(--panel); }

/* Copper-to-signal rule */
.wire { height: 14px; width: 100%; display: block; }

/* Home hero */
.hero { background: var(--panel); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.ticket { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; font-family: var(--f-mono); font-size: var(--s-0); box-shadow: var(--shadow); min-width: 0; }
.ticket-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .75rem; margin-bottom: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ticket-number { font-size: 1.55rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; margin-bottom: .2rem; }
.ticket ol { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ticket li { display: grid; grid-template-columns: 1.4rem 1fr auto; gap: .5rem; align-items: center; }
.ticket .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--signal); }
.ticket .done .dot { background: var(--signal); }
.ticket .now .dot { border-color: var(--accent); background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.ticket .when { color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent); } }
.ticket-foot { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; color: var(--muted); gap: 1rem; flex-wrap: wrap; }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.card p { color: var(--muted); font-size: var(--s-1); }
.card .card-link { margin-top: auto; padding-top: .4rem; font-weight: 600; font-size: var(--s-1); }
.card-tag { font: 600 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--signal); }
.card.feature { border-top: 3px solid var(--signal); }
.card.feature.old { border-top-color: var(--accent); }

/* Audience paths */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.path { padding: 1.6rem; display: grid; gap: .8rem; align-content: start; }
.path + .path { border-left: 1px solid var(--line); }
.path p { color: var(--muted); font-size: var(--s-1); }
.path .ext { font: 600 var(--s-0) var(--f-mono); color: var(--accent); }
.path ul { margin: 0; padding-left: 1.1rem; font-size: var(--s-1); display: grid; gap: .25rem; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .path + .path { border-left: 0; border-top: 1px solid var(--line); } }

/* Directory-style listing (feature lists, scenarios) */
.listing { border-top: 2px solid var(--ink); }
.listing-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 1.25rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); align-items: start; }
.listing-row .code { font: 600 var(--s-0) var(--f-mono); color: var(--accent); padding-top: .25rem; }
.listing-row p { color: var(--muted); font-size: var(--s-1); }
.listing-row ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: var(--s-1); }
.listing-row .act { white-space: nowrap; font-weight: 600; font-size: var(--s-1); padding-top: .2rem; }
@media (max-width: 860px) {
  .listing-row { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .listing-row > :nth-child(3), .listing-row .act { grid-column: 2; }
}

/* Steps (a real sequence) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.step { padding: 1.4rem; display: grid; gap: .5rem; align-content: start; border-right: 1px solid var(--line); counter-increment: step; }
.step:last-child { border-right: 0; }
.step::before { content: "Step " counter(step); font: 600 var(--s-0) var(--f-mono); color: var(--signal); text-transform: uppercase; letter-spacing: .08em; }
.step p { color: var(--muted); font-size: var(--s-1); }
.step .when { font: 500 var(--s-0) var(--f-mono); color: var(--muted); }
@media (max-width: 900px) { .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }

/* Phones */
.phone { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; }
.phone + .phone { margin-top: 1.25rem; }
.phone-art { background: var(--paper); border-right: 1px solid var(--line); display: grid; place-items: center; padding: 1.5rem; }
.phone-art svg { width: 100%; max-width: 170px; height: auto; }
.phone-body { padding: 1.5rem; display: grid; gap: 1rem; min-width: 0; }
.phone-top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; }
.phone-top .price { font-size: var(--s-4); font-weight: 600; color: var(--ink); line-height: 1; }
.phone-top .price small { display: block; font-size: var(--s-0); color: var(--muted); font-weight: 400; margin-top: .3rem; text-align: right; }
.best-for { display: inline-block; font: 600 var(--s-0) var(--f-mono); background: var(--signal-soft); color: var(--ink); padding: .3rem .55rem; border-radius: 5px; }
.specs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.specs li { font: 500 .78rem/1 var(--f-mono); border: 1px solid var(--line); border-radius: 5px; padding: .35rem .5rem; color: var(--muted); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.proscons h4 { font-size: var(--s-1); margin-bottom: .35rem; }
.proscons ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: .3rem; font-size: var(--s-1); color: var(--muted); }
.proscons li { padding-left: 1.3rem; position: relative; }
.pros li::before { content: "+"; position: absolute; left: 0; color: var(--good); font: 700 1rem/1.4 var(--f-mono); }
.cons li::before { content: "−"; position: absolute; left: 0; color: var(--accent); font: 700 1rem/1.4 var(--f-mono); }
@media (max-width: 760px) { .phone { grid-template-columns: 1fr; } .phone-art { border-right: 0; border-bottom: 1px solid var(--line); } .phone-art svg { max-width: 120px; } .proscons { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: var(--s-1); }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 var(--s-0) var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.yes { color: var(--good); font-weight: 600; }
.no { color: var(--accent); font-weight: 600; }

/* Packages */
.pkg { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.pkg.featured { border: 2px solid var(--signal); }
.pkg .price { font-size: var(--s-5); font-weight: 600; line-height: 1; }
.pkg .price small { font-size: var(--s-0); color: var(--muted); font-weight: 400; }
.pkg ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: var(--s-1); color: var(--muted); }
.pkg .btn { margin-top: auto; align-self: flex-start; }

/* Callouts */
.note { border-left: 3px solid var(--warn); background: var(--panel); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; font-size: var(--s-1); color: var(--muted); max-width: 65ch; }
.note strong { color: var(--ink); }
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { font-size: var(--s-4); }
.cta-band p { color: color-mix(in srgb, var(--paper) 75%, var(--ink)); }
.cta-band .btn-ghost { border-color: var(--paper); color: var(--paper); }
.cta-band .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* FAQ */
.faq-group { display: grid; gap: .25rem; margin-bottom: 2.5rem; }
.faq-group > h2 { font-size: var(--s-3); margin-bottom: .75rem; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 2px solid var(--ink); }
summary { cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font: 500 1.4rem var(--f-mono); color: var(--signal); }
details[open] summary::after { content: "−"; }
details .answer { padding: 0 0 1.2rem; color: var(--muted); display: grid; gap: .7rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label, .legend { font-weight: 600; font-size: var(--s-1); }
.field .hint { font-size: var(--s-0); color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font: 400 var(--s-1)/1.4 var(--f-body); color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--signal); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .row-2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .85rem; font-size: var(--s-1); cursor: pointer; background: var(--panel); }
.chip input:checked + span { background: var(--btn); border-color: var(--btn); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.form-status { padding: 1rem 1.2rem; border-radius: 8px; background: var(--signal-soft); color: var(--ink); font-size: var(--s-1); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { display: grid; gap: 1rem; }
.contact-line { display: grid; gap: .15rem; }
.contact-line .mono { font-size: var(--s-2); color: var(--ink); user-select: all; }
.estimate-attached { border: 1px dashed var(--signal); border-radius: 8px; padding: 1rem; background: var(--signal-soft); font-size: var(--s-0); white-space: pre-wrap; font-family: var(--f-mono); max-height: 18rem; overflow: auto; }

/* Estimator */
.est { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 960px) { .est { grid-template-columns: 1fr; } }
.est-step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 1rem; }
.est-step + .est-step { margin-top: 1.25rem; }
.est-step > header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.est-step > header .eyebrow { color: var(--signal); }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: .6rem; }
.preset { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .85rem; cursor: pointer; color: var(--ink); font: inherit; display: grid; gap: .2rem; }
.preset strong { font-size: var(--s-1); }
.preset span { font-size: var(--s-0); color: var(--muted); }
.preset:hover, .preset.active { border-color: var(--signal); background: var(--signal-soft); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .6rem; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt label { display: grid; gap: .25rem; border: 1px solid var(--line); border-radius: 8px; padding: .85rem; cursor: pointer; height: 100%; background: var(--paper); }
.plan-opt .price { font-size: var(--s-3); font-weight: 600; }
.plan-opt span { font-size: var(--s-0); color: var(--muted); }
.plan-opt input:checked + label { border: 2px solid var(--signal); padding: calc(.85rem - 1px); background: var(--signal-soft); }
.plan-opt input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; }
.qty-list { display: grid; border-top: 1px solid var(--line); }
.qty-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding-block: .7rem; border-bottom: 1px solid var(--line); }
.qty-row .name { font-weight: 600; font-size: var(--s-1); }
.qty-row .desc { font-size: var(--s-0); color: var(--muted); }
.qty-row .unit { font: 500 var(--s-0) var(--f-mono); color: var(--muted); text-align: right; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.stepper button { width: 2.2rem; height: 2.2rem; border: 0; background: var(--paper); color: var(--ink); font: 600 1.1rem var(--f-mono); cursor: pointer; }
.stepper button:hover { background: var(--signal-soft); }
.stepper input { width: 3rem; border: 0; border-radius: 0; text-align: center; padding: .4rem 0; font-family: var(--f-mono); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 520px) { .qty-row { grid-template-columns: minmax(0, 1fr) auto; } .qty-row .unit { grid-column: 1; text-align: left; } .qty-row .stepper { grid-column: 2; grid-row: 1 / span 2; } }
.toggle { display: flex; gap: .6rem; align-items: center; font-size: var(--s-1); }
.toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--signal); }

.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.summary-head { background: var(--ink); color: var(--paper); padding: 1.1rem 1.3rem; display: grid; gap: .3rem; }
.summary-head .eyebrow { color: color-mix(in srgb, var(--accent) 70%, var(--paper)); }
.summary-totals { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.total { padding: 1rem 1.3rem; display: grid; gap: .2rem; }
.total + .total { border-left: 1px solid var(--line); }
.total .label { font: 600 .72rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.total .value { font: 600 var(--s-4)/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.total .value.accent { color: var(--accent); }
.summary-body { padding: 1rem 1.3rem 1.3rem; display: grid; gap: 1rem; }
.lines { display: grid; gap: .25rem; font-size: var(--s-0); }
.lines h4 { font: 600 .72rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .5rem; }
.line { display: flex; justify-content: space-between; gap: 1rem; }
.line span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.line.sub { border-top: 1px solid var(--line); padding-top: .35rem; font-weight: 600; }
.year-one { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 1rem; background: var(--accent-soft); border-radius: 8px; }
.year-one .value { font: 700 var(--s-4)/1 var(--f-mono); color: var(--accent); }
.empty-line { color: var(--muted); font-style: italic; }

/* Footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: var(--s-1); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-grid h4 { font: 600 var(--s-0) var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .7rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--signal); text-decoration: underline; }
.legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--s-0); display: grid; gap: .4rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

.stack { display: grid; gap: 1rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check-list li { padding-left: 1.6rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .4rem; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1.25rem; }
.stat .value { font: 700 var(--s-5)/1 var(--f-mono); color: var(--signal); }
.stat p { font-size: var(--s-1); color: var(--muted); margin-top: .4rem; }

/* Carp Valley Exchange brand lockup */
:root { --sign: #1f4fbf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sign: #8fb0ff; } }
:root[data-theme="dark"] { --sign: #8fb0ff; }
.brand { gap: .65rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; }
.brand-name { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.brand-title { font: 800 1.2rem/1 var(--f-display); font-stretch: 96%; letter-spacing: -.02em; }
.brand-sub { display: flex; align-items: center; gap: .4rem; align-self: stretch; font: 600 .58rem/1 var(--f-mono); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--sign); }
.brand-sub::before, .brand-sub::after { content: ""; flex: 1; height: 1.5px; min-width: 6px; background: currentColor; border-radius: 1px; }
.brand-sub::before { margin-left: -.42em; }

/* Manufacturer product photos sit on white, like a catalog page, in both themes.
   They start zoomed in to fill the frame (sides cropped) and pull back on hover
   or keyboard focus to show the whole product. */
:root { --photo-bg: #ffffff; --photo-bg-poly: #e6e6e6; --photo-zoom: 1.32; }
.phone { grid-template-columns: 300px minmax(0, 1fr); }
.phone-art:has(img) { background: var(--photo-bg); padding: 0; overflow: hidden; position: relative; min-height: 240px; }
.phone-art img.photo, .card-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; border-radius: 0;
  transform: scale(var(--photo-zoom)); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.phone-art.scene img.photo { object-fit: cover; --photo-zoom: 1.12; }
.phone:hover .phone-art img.photo, .phone:focus-within .phone-art img.photo,
a.card:hover .card-photo img, a.card:focus-visible .card-photo img,
.card:hover .card-photo img, .card:focus-within .card-photo img { transform: scale(1); }
.card-photo { position: relative; background: var(--photo-bg); border-radius: 8px; margin: -.4rem -.4rem .2rem; aspect-ratio: 4 / 3; max-width: calc(100% + .8rem); overflow: hidden; }
.credits { padding-block: 1.25rem; }
/* Poly shoots on flat grey; match it so the frame edge disappears */
.phone-art:has(img[src*="poly-edge"]), .card-photo:has(img[src*="poly-edge"]) { background: var(--photo-bg-poly); }
/* Touch screens have no hover, so crop less there */
@media (hover: none) { :root { --photo-zoom: 1.15; } }
@media (max-width: 760px) { .phone { grid-template-columns: 1fr; } .phone-art:has(img) { min-height: 0; aspect-ratio: 16 / 10; } }

/* Optional bill upload on the contact form */
.upload { position: relative; display: block; cursor: pointer; }
.upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-box { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; border: 1.5px dashed var(--line); border-radius: 8px; padding: .9rem 1rem; background: var(--panel); font-size: var(--s-1); }
.upload-box strong { color: var(--signal); }
.upload:hover .upload-box, .upload input:focus-visible + .upload-box { border-color: var(--signal); background: var(--signal-soft); }
.upload input:focus-visible + .upload-box { outline: 3px solid var(--signal); outline-offset: 2px; }
.upload.has-file .upload-box { border-style: solid; border-color: var(--signal); }
.upload.too-big .upload-box { border-color: var(--warn); }

/* About page closing line */
.motto { font: 750 var(--s-3)/1.3 var(--f-display); font-stretch: 112%; color: var(--signal); }
/* Words quoted from someone else, set apart from the narrator's voice */
.voice { font-style: italic; color: var(--accent); }
