/* ============================================================
   Sam's Cellphone Repair — "Circuit Lab" design system
   Zero external requests. GPU-composited animation only.
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-2: #0c1322;
  --surface: rgba(17, 25, 40, 0.66);
  --surface-solid: #101827;
  --line: rgba(120, 200, 255, 0.14);
  --line-strong: rgba(120, 200, 255, 0.3);
  --cyan: #22d3ee;
  --cyan-hi: #67e8f9;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.14);
  --green: #34d399;
  --red: #f87171;
  --text: #e6edf7;
  --muted: #93a4bc;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
  --glow: 0 0 0 1px var(--line), 0 0 42px -8px rgba(34, 211, 238, 0.25);
  --wrap: 1160px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cyan-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* Background circuitry field behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(245, 158, 11, 0.05), transparent 55%),
    radial-gradient(700px 500px at 60% 110%, rgba(34, 211, 238, 0.06), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(120, 200, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.grad {
  background: linear-gradient(92deg, var(--cyan-hi) 0%, #fff 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.amber-grad {
  background: linear-gradient(92deg, var(--amber) 0%, #ffd98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-head { max-width: 700px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0.04));
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 18px -4px rgba(34, 211, 238, 0.5);
}
.brand small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--cyan); font-weight: 500; }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 0.92rem; font-weight: 600;
  padding: 0.5rem 0.85rem; border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(120, 200, 255, 0.08); text-decoration: none; }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem clamp(1rem, 4vw, 2rem) 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin: 0.5rem 0 0; text-align: center; }
}

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--amber)); z-index: 101; box-shadow: 0 0 10px var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-weight: 700; font-size: 0.98rem; font-family: var(--font);
  padding: 0.85rem 1.55rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  will-change: transform;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0ea5c4 100%);
  color: #04121a;
  box-shadow: 0 6px 28px -6px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover { box-shadow: 0 10px 36px -6px rgba(34, 211, 238, 0.75); transform: translateY(-2px); }
.btn-ghost { background: rgba(120, 200, 255, 0.06); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(120, 200, 255, 0.12); transform: translateY(-2px); }
.btn-amber { background: linear-gradient(135deg, var(--amber), #d97706); color: #1a1002; box-shadow: 0 6px 28px -8px rgba(245, 158, 11, 0.6); }
.btn-amber:hover { transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.38rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--cyan-dim); color: var(--cyan-hi);
}
.chip-amber { background: var(--amber-dim); color: #fbd38d; border-color: rgba(245, 158, 11, 0.3); }
.chip-green { background: rgba(52, 211, 153, 0.1); color: var(--green); border-color: rgba(52, 211, 153, 0.3); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; } 50% { opacity: 0.55; box-shadow: 0 0 0 5px transparent; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 2rem) 0 4rem; overflow: clip; }
#circuit-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 2.6rem; }
.proof-item strong { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.proof-item span { font-size: 0.82rem; color: var(--muted); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 0.95rem; }

/* ---------- 3D phone ---------- */
.phone-stage { perspective: 1200px; display: grid; place-items: center; min-height: 420px; }
.phone3d {
  position: relative; width: 210px; height: 420px;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(8deg);
  transition: transform 0.15s linear;
}
.phone3d .layer {
  position: absolute; inset: 0; border-radius: 32px;
  transform: translateZ(calc(var(--z, 0) * var(--explode, 0.25) * 1px));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid var(--line-strong);
}
.layer-back { --z: -60; background: linear-gradient(160deg, #16233b, #0a101d); box-shadow: var(--shadow); }
.layer-battery {
  --z: -20; inset: 12% 14% 30%; border-radius: 14px;
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.22), rgba(52, 211, 153, 0.05));
  border-color: rgba(52, 211, 153, 0.4);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.65rem; color: var(--green); letter-spacing: 0.15em;
}
.layer-board {
  --z: 20; inset: 8% 10%; border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.35) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.5) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 45% 70%, rgba(34, 211, 238, 0.35) 0 3px, transparent 4px),
    linear-gradient(rgba(120, 200, 255, 0.12) 1px, transparent 1px) 0 0/100% 22px,
    linear-gradient(90deg, rgba(120, 200, 255, 0.12) 1px, transparent 1px) 0 0/22px 100%,
    linear-gradient(160deg, #0d2436, #081527);
  border-color: rgba(34, 211, 238, 0.35);
}
.layer-screen {
  --z: 60;
  background: linear-gradient(165deg, rgba(103, 232, 249, 0.16), rgba(13, 20, 34, 0.94) 45%);
  backdrop-filter: blur(2px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  text-align: center; padding: 1.2rem;
}
.layer-screen .time { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; color: var(--cyan-hi); text-shadow: 0 0 18px rgba(34, 211, 238, 0.6); }
.layer-screen .fixed-tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--green); }
.layer-screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 10px; background: #05080f; border: 1px solid var(--line); }
.phone-caption { text-align: center; margin-top: 1.4rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
@media (max-width: 900px) { .phone-stage { min-height: 340px; } .phone3d { width: 170px; height: 340px; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 0.9rem 0; overflow: hidden; background: rgba(12, 19, 34, 0.5); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee span b { color: var(--cyan); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
  transform-style: preserve-3d;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--glow); }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--cyan-hi); text-decoration: none; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0.03));
  border: 1px solid var(--line-strong);
  color: var(--cyan-hi);
  transform: translateZ(30px);
}
.card p { color: var(--muted); font-size: 0.95rem; }
.card .price-tag { font-family: var(--mono); font-size: 0.8rem; color: var(--amber); }
.card .card-link { font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.tilt { will-change: transform; }
.tilt .glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(103, 232, 249, 0.1), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.tilt:hover .glare { opacity: 1; }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 2.6rem; font-weight: 700;
  background: linear-gradient(180deg, var(--cyan), transparent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 0.4rem;
}

/* ---------- Comparison table ---------- */
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); backdrop-filter: blur(14px); }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 1rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.compare thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare .hl { color: var(--cyan-hi); font-weight: 700; }
.compare td:nth-child(2) { background: rgba(34, 211, 238, 0.045); }

/* ---------- Pricing table ---------- */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.price-table .price { font-family: var(--mono); color: var(--amber); font-weight: 700; white-space: nowrap; }
.price-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Reviews ---------- */
.review-card { display: flex; flex-direction: column; gap: 0.8rem; }
.review-card blockquote { margin: 0; font-size: 1rem; color: var(--text); }
.review-card cite { font-style: normal; color: var(--muted); font-size: 0.88rem; }
.review-card .stars { font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 0.8rem; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.4rem;
  font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--cyan); transition: transform 0.3s; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.25rem; color: var(--muted); }
.faq-item .faq-body p { margin-bottom: 0.5em; }

/* ---------- Info / hours panel ---------- */
.info-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.2rem; }
@media (max-width: 860px) { .info-panel { grid-template-columns: 1fr; } }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.hours-list li span:last-child { font-family: var(--mono); color: var(--cyan-hi); }
.hours-list li.today { color: var(--text); font-weight: 700; }
.addr-lines { font-style: normal; color: var(--muted); line-height: 1.8; }
.addr-lines strong { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--r-lg); padding: clamp(2.2rem, 5vw, 3.6rem);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(500px 300px at 90% 100%, rgba(245, 158, 11, 0.12), transparent 60%),
    var(--surface-solid);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 3.2rem 0 7rem; background: rgba(7, 11, 20, 0.7); font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
footer h4 { font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 0.55rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--cyan-hi); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--muted); font-size: 0.82rem; }

/* ---------- Sticky mobile action bar ---------- */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; grid-template-columns: 1fr 1fr 1fr;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-strong);
  padding: 0.6rem 0.7rem calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.55rem;
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 700; padding: 0.7rem 0.4rem; border-radius: 12px;
}
.action-bar .ab-call { background: linear-gradient(135deg, var(--cyan), #0ea5c4); color: #04121a; }
.action-bar .ab-quote { background: rgba(245, 158, 11, 0.16); color: #fbd38d; border: 1px solid rgba(245, 158, 11, 0.35); }
.action-bar .ab-dir { background: rgba(120, 200, 255, 0.07); color: var(--text); border: 1px solid var(--line); }
.action-bar a:hover { text-decoration: none; }
@media (max-width: 860px) { .action-bar { display: grid; } footer { padding-bottom: 8.5rem; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 3.5rem) 0 3rem; }
.breadcrumbs { font-size: 0.82rem; font-family: var(--mono); color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--cyan-hi); }
.answer-first {
  border-left: 3px solid var(--cyan);
  background: var(--cyan-dim);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
  max-width: 70ch;
}

/* ---------- Prose (copy-heavy sections) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--muted); }
.prose li { margin-bottom: 0.45em; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 0.7rem 0.9rem; text-align: left; font-size: 0.93rem; }
.prose table th { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); background: rgba(120, 200, 255, 0.04); }

/* ---------- Quote form ---------- */
.quote-form { display: grid; gap: 1rem; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .quote-form .row { grid-template-columns: 1fr; } }
.quote-form label { display: grid; gap: 0.4rem; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.quote-form input, .quote-form textarea, .quote-form select {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
  background: rgba(7, 11, 20, 0.6); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font); font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quote-form input:focus, .quote-form textarea:focus, .quote-form select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form .form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Progressive enhancement: scroll-driven hero fade */
@supports (animation-timeline: view()) {
  .hero-grid { animation: heroFade linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  @keyframes heroFade { to { opacity: 0.15; transform: translateY(-40px) scale(0.98); } }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .phone3d { transform: rotateY(-18deg) rotateX(6deg) !important; }
  #circuit-canvas { display: none; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
