:root {
  --bg: #0b0f14;
  --surface: #11161d;
  --text: #f3f6fb;
  --muted: #9aa6b8;
  --line: #243041;
  --accent: #3d8bfd;
  --accent-ink: #061014;
  --bar: #0a1018;
  --accent-soft: rgba(61,139,253,.18);
  --card: #121a24;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
strong { color: var(--text); }
em { font-style: italic; }

.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.main { flex: 1; }

/* top bar */

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 8px; gap: 16px;
}
.logo { line-height: 0; display: inline-flex; }
.logo img { height: 88px; width: auto; display: block; }
.support { margin-left: auto; position: relative; z-index: 6; }
.support { color: var(--muted); font-size: .92rem; }
.support a { color: var(--accent); font-weight: 650; }
.support a:hover { text-decoration: underline; }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 28px;
  margin-top: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
nav.primary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px;
  padding: 0;
  margin: 0;
  border: 0;
  color: var(--muted); font-size: 1rem; font-weight: 600;
}

.nav-tools {
  display: flex; align-items: center; gap: 18px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-tools a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: .92rem; font-weight: 650;
  text-decoration: none;
}
.nav-tools a:hover { color: var(--accent); }
.nav-tools svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

nav.primary a:hover,
nav.primary a[aria-current="page"] { color: var(--text); }
nav.primary a[aria-current="page"] { color: var(--accent); }

.announce {
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  color: #c9d3e3;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(700px 280px at 85% 10%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 850;
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--accent); display: block; margin-top: .18em; font-size: .55em; line-height: 1.25; letter-spacing: .02em; text-transform: none; font-weight: 700; }
.hero h1 .accent-long { font-size: .36em; line-height: 1.45; font-weight: 600; max-width: 34em; margin-top: .6em; }
.hero h1 + .ctas { margin-top: 26px; }
.hero p {
  max-width: 46rem;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}
.page-hero {
  padding: 40px 0 28px;
  background:
    radial-gradient(600px 220px at 90% 0%, var(--accent-soft), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -.02em;
  font-weight: 850;
}
.page-hero p { margin: 0; color: var(--muted); max-width: 40rem; }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 8px;
  font-weight: 800; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-fill { background: var(--accent); color: var(--accent-ink); }
.btn-fill:hover { filter: brightness(1.08); }
.btn-outline { border: 2px solid var(--accent); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--accent-soft); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.feature-bar {
  background: #0a121c;
  border-block: 1px solid var(--line);
  padding: 22px 0;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
  align-items: start;
}
.feat {
  min-width: 0;
  padding: 0 8px;
  text-align: center;
}
.feat:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: 28px;
}
.feat:not(:first-child) {
  padding-left: 28px;
}
.feat strong {
  display: block; color: var(--accent); font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px;
}
.feat span { color: #d5deec; font-size: .92rem; display: block; }
@media (max-width: 900px) {
  .feat { text-align: left; }
  .feat:not(:last-child) { border-right: 0; padding-right: 8px; }
  .feat:not(:first-child) { padding-left: 8px; }
}

.section { padding: 48px 0; }
.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 40rem; }

.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.kit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kit-card .path-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(61,139,253,.35);
  border-radius: 6px;
  padding: 4px 10px;
  width: fit-content;
}
.kit-card h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.kit-card p { margin: 0; color: var(--muted); flex: 1; }
.kit-card ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: #d5deec;
  font-size: .92rem;
}
.kit-card li { margin-bottom: 4px; }
.kit-card .price {
  font-weight: 700;
  color: var(--text);
  font-size: .95rem;
}
.kit-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.step-card .n {
  color: var(--accent);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Quiz */
.quiz-wrap { max-width: 640px; margin: 0 auto; padding: 36px 0 56px; }
.progress {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.25s ease;
}
.qstep { display: none; }
.qstep.active { display: block; }
.qnum { font-size: .8rem; color: var(--accent); font-weight: 700; margin-bottom: .35rem; letter-spacing: .04em; text-transform: uppercase; }
.qtext { font-size: 1.2rem; font-weight: 700; margin: 0 0 1.25rem; }
.opts { display: flex; flex-direction: column; gap: .65rem; }
button.opt {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .9rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
button.opt:hover { border-color: var(--accent); background: #152033; }
button.opt.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.quiz-nav { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.result-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}
.pill {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: .2rem .55rem;
  border-radius: 6px;
  margin-bottom: .75rem;
}
.pill.pinfo { background: #334155; color: #e2e8f0; }
.pill.p1 { background: #0c4a6e; color: #7dd3fc; }
.pill.p2 { background: #1e3a5f; color: #93c5fd; }
.result-box h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.result-box p { color: var(--muted); margin: 0 0 .75rem; }
.result-box .includes { font-size: .9rem; color: var(--text); }
.result-box .includes strong { color: var(--accent); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }

/* Support form-like card */
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 560px;
}
.contact-card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.contact-card p { color: var(--muted); margin: 0 0 16px; }
.contact-card a.mail {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid rgba(61,139,253,.35);
}
.contact-card a.mail:hover { border-bottom-color: var(--accent); }

footer.site-footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: .88rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
footer.site-footer .foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
footer.site-footer a { color: var(--accent); font-weight: 600; }
footer.site-footer a:hover { text-decoration: underline; }
footer.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }

@media (max-width: 800px) {
  .features { grid-template-columns: 1fr 1fr; }
  .kit-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  nav.primary {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
  }
  nav.primary.open { display: flex; }
  .top { flex-wrap: wrap; }
  .logo img { height: 64px; }
  .nav-row { flex-wrap: wrap; padding-left: 0; }
  .nav-tools { width: 100%; justify-content: flex-end; }

  .support { font-size: .85rem; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 36px; }
}

/* Content pages */
.eyebrow {
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.section-compact { padding-top: 0; }
.faq-layout,
.about-grid,
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: start;
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 18px;
}
.faq-item[open] { border-color: rgba(61,139,253,.55); }
.faq-item summary {
  cursor: pointer;
  font-weight: 750;
  list-style: none;
  padding: 17px 24px 17px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  color: var(--accent);
  content: '+';
  font-size: 1.25rem;
  position: absolute;
  right: 0;
  top: 14px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--muted); margin: 0 0 18px; }
.faq-item a { color: var(--accent); font-weight: 700; }
.prose-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.prose-card p { color: var(--muted); margin: 0 0 16px; }
.prose-card p:last-child { margin-bottom: 0; }
.blog-placeholder { max-width: 680px; }
.blog-placeholder h2 { margin-top: 4px; }

/* Checkout */
.checkout-grid { grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); }
.checkout-summary { position: sticky; top: 20px; }
.checkout-path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 12px;
  padding: 18px;
  opacity: .62;
}
.checkout-path-card.selected { border-color: var(--accent); opacity: 1; }
.checkout-path-card h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.checkout-path-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.checkout-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 9px;
  padding: 24px;
}
.checkout-form h2 { margin: 0; }
.checkout-form label { font-size: .88rem; font-weight: 700; margin-top: 6px; }
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
  width: 100%;
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.checkout-form fieldset { border: 0; margin: 0 0 4px; padding: 0; }
.checkout-form legend { font-size: .88rem; font-weight: 700; margin-bottom: 8px; }
.radio-option {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin: 6px 0 0 !important;
  padding: 10px 12px;
}
.radio-option:has(input:checked) { border-color: var(--accent); }
.radio-option input { accent-color: var(--accent); width: auto; }
.radio-option span { display: flex; flex-direction: column; }
.radio-option small { color: var(--muted); font-weight: 400; }
.form-note { color: var(--muted); font-size: .82rem; margin: 0; }
.clickwrap { align-items: flex-start; display: flex; gap: 8px; font-size: .82rem !important; font-weight: 500 !important; line-height: 1.4; }
.clickwrap input { accent-color: var(--accent); margin-top: 3px; width: auto; }
.clickwrap a { color: var(--accent); font-weight: 700; }
.form-success { color: var(--accent); font-size: .88rem; margin: 0; }

@media (max-width: 800px) {
  .faq-layout,
  .about-grid,
  .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
  .checkout-summary { position: static; }
}

/* Photography-led preview — text over photo like Peak/PTT style */
.hero.hero-photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #070b10;
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: brightness(.55) saturate(.85);
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-photo-bg img.is-active { opacity: 1; }
.hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(7,11,16,.92) 0%,
    rgba(7,11,16,.78) 42%,
    rgba(7,11,16,.35) 70%,
    rgba(7,11,16,.2) 100%);
}
.hero-photo-content {
  position: relative;
  z-index: 1;
  padding: 64px 0 72px;
  max-width: 560px;
  /* align with .wrap content column (~same left as logo) */
  margin-left: max(18px, calc((100% - 1120px) / 2 + 18px));
  margin-right: auto;
  width: min(560px, calc(100% - 36px));
}
.hero.hero-photo h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero.hero-photo p {
  color: rgba(243,246,251,.92);
  max-width: 34rem;
}
.hero.hero-photo .btn-outline {
  border-color: rgba(255,255,255,.85);
  color: #fff;
  background: transparent;
}
.hero.hero-photo .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.card-image {
  height: 188px;
  margin: -24px -24px 4px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a1018;
}
.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.78) saturate(.9);
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo-bg img { transition: none; }
}

@media (max-width: 800px) {
  .hero.hero-photo { min-height: 420px; }
  .hero-photo-content { padding: 48px 0 56px; margin-left: 18px; }
  .hero-photo-bg::after {
    background: linear-gradient(180deg,
      rgba(7,11,16,.75) 0%,
      rgba(7,11,16,.88) 55%,
      rgba(7,11,16,.95) 100%);
  }
}

/* Hero placement variants */
.hero.hero-photo--center { align-items: center; }
.hero.hero-photo--center .hero-photo-bg img { object-position: center center; }
.hero.hero-photo--center .hero-photo-bg::after {
  background: radial-gradient(ellipse at center,
    rgba(7,11,16,.88) 0%,
    rgba(7,11,16,.68) 48%,
    rgba(7,11,16,.42) 100%);
}
.hero.hero-photo--center .hero-photo-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  width: min(760px, calc(100% - 36px));
  text-align: center;
}
.hero.hero-photo--center .hero-photo-content p { margin-left: auto; margin-right: auto; }
.hero.hero-photo--center .ctas { justify-content: center; }

.hero.hero-photo--bottom { align-items: flex-end; }
.hero.hero-photo--bottom .hero-photo-bg::after {
  background: linear-gradient(0deg,
    rgba(7,11,16,.96) 0%,
    rgba(7,11,16,.86) 34%,
    rgba(7,11,16,.42) 68%,
    rgba(7,11,16,.12) 100%);
}
.hero.hero-photo--bottom .hero-photo-content {
  max-width: 800px;
  padding-top: 176px;
  padding-bottom: 48px;
  margin-left: max(18px, calc((100% - 1120px) / 2 + 18px));
  margin-right: auto;
  width: min(800px, calc(100% - 36px));
}

.hero.hero-photo--right { align-items: center; }
.hero.hero-photo--right .hero-photo-bg img { object-position: 30% center; }
.hero.hero-photo--right .hero-photo-bg::after {
  background: linear-gradient(270deg,
    rgba(7,11,16,.94) 0%,
    rgba(7,11,16,.78) 40%,
    rgba(7,11,16,.32) 72%,
    rgba(7,11,16,.12) 100%);
}
.hero.hero-photo--right .hero-photo-content {
  margin-left: auto;
  margin-right: max(18px, calc((100% - 1120px) / 2 + 18px));
  text-align: right;
}
.hero.hero-photo--right .hero-photo-content p { margin-left: auto; }
.hero.hero-photo--right .ctas { justify-content: flex-end; }

/* Placement comparison page */
.placement-compare { padding-top: 36px; }
.placement-compare .section-lead { margin-bottom: 24px; }
.placement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.placement-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.placement-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.placement-card p { color: var(--muted); margin: 0 0 16px; }
.placement-card .btn { width: 100%; }
@media (max-width: 800px) {
  .placement-grid { grid-template-columns: 1fr; }
  .hero.hero-photo--center .hero-photo-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero.hero-photo--bottom .hero-photo-content {
    padding-top: 132px;
    padding-bottom: 38px;
    margin-left: 18px;
  }
  .hero.hero-photo--right .hero-photo-content {
    margin-left: auto;
    margin-right: 18px;
    text-align: right;
  }
}


@media (min-width: 801px) {
  .top { padding: 8px 0 0; min-height: 0; }
  .top .nav-toggle { display: none; }
}


/* Header: logo row, then nav row — no overlap */
.site-header, body > .wrap:first-of-type { position: relative; z-index: 20; background: var(--bg); }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 4px; gap: 16px;
  position: relative; z-index: 2;
}
.logo { line-height: 0; display: inline-flex; align-items: center; position: static !important; left: auto !important; top: auto !important; }
.logo img { height: 88px !important; width: auto; display: block; }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 22px;
  margin-top: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
  clear: both;
  position: relative;
  z-index: 1;
}
nav.primary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px;
  padding: 0; margin: 0; border: 0;
  color: var(--muted); font-size: 1rem; font-weight: 600;
}
nav.primary .logo { display: none !important; } /* never in nav */

.brand-block { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-block .logo img { height: 72px !important; }
.brand-tag {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  border-left: 1px solid var(--line); padding-left: 14px;
}
.brand-tag strong { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.brand-tag span { font-size: .78rem; color: var(--muted); line-height: 1.25; }
.top { padding: 12px 0 6px !important; }
.nav-row { padding: 6px 0 18px !important; }
@media (max-width: 800px) {
  .brand-tag { display: none; }
  .hero-photo-content { margin-left: max(16px, 1.5in); width: min(560px, calc(100% - 2in)); }
}

.header-bar {
  margin-left: auto;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}
.brand-tag { display: none !important; }
@media (max-width: 800px) {
  .header-bar { font-size: .62rem; letter-spacing: .06em; white-space: normal; max-width: 11rem; }
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
  flex-wrap: wrap;
}
.qty-row label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text, #e8eef6);
}
.qty-input {
  width: 72px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  color: inherit;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
}
.qty-hint { color: var(--muted); font-size: .85rem; }

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 800px) {
  .next-grid { grid-template-columns: 1fr; }
}
.order-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  align-items: flex-start;
}
.order-controls select {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  color: inherit;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
}
.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;
}

.kit-card .price-note {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-top: 4px;
}
.order-estimate {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

.card-image.radio-shot {
  height: 280px;
  background: #f3f6fb;
}
.card-image.radio-shot img {
  object-fit: cover;
  object-position: center 70%;
  filter: none;
}
.kit-card .price {
  font-size: 1.65rem;
  font-weight: 850;
  color: var(--accent);
  letter-spacing: -.02em;
}

.nav-tools a[aria-current="page"] { color: var(--accent); }

.cart-panel { max-width: 720px; }
.cart-banner {
  margin: 0 0 16px;
  color: var(--text);
}
.cart-empty p { margin: 0 0 16px; color: var(--muted); }
.cart-line {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.cart-line .path-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(61,139,253,.35);
  border-radius: 6px;
  padding: 4px 10px;
  width: fit-content;
}
.cart-radio { margin: 10px 0 8px; font-size: 1.15rem; font-weight: 800; }
.cart-meta { margin: 0 0 6px; color: var(--muted); }
.cart-meta strong { color: var(--text); }
.cart-remove {
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cart-remove:hover { color: var(--accent); }
.cart-totals { margin: 6px 0 18px; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cart-note { color: var(--muted); margin: 14px 0 0; max-width: 40rem; }

.preview-flag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(61,139,253,.35);
  border-radius: 6px;
  padding: 4px 10px;
  margin: 0 0 14px;
  width: fit-content;
}
.agree-actions { margin-top: 8px; }
.agree-status { margin: 10px 0 0; }

/* Cart count badge */
.nav-tools a[href="cart.html"] { position: relative; }
.nav-tools .cart-badge {
  position: absolute; top: -7px; left: 12px;
  min-width: 17px; height: 17px; padding: 0 5px; box-sizing: border-box;
  border-radius: 999px; background: #3d8bfd; color: #fff;
  font-size: .66rem; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px #0b0f14; pointer-events: none;
}
.nav-tools .cart-badge[hidden] { display: none; }

/* Request a quote popup (js/quote.js) */
html.quote-open, html.quote-open body { overflow: hidden; }
.quote-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.quote-modal[hidden],
.quote-modal [hidden] { display: none !important; }
.quote-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 10, .78); }
.quote-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  padding: 26px 24px 20px;
  color: var(--text);
}
.quote-dialog:focus { outline: none; }
.quote-dialog h2 { margin: 0 40px 6px 0; font-size: 1.35rem; letter-spacing: -.01em; font-weight: 850; }
.quote-lead { margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.quote-close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.quote-close:hover { background: var(--accent-soft); border-color: var(--accent); }
.quote-close:focus-visible,
.quote-dialog .btn:focus-visible,
.quote-fallback a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.quote-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.quote-field label { font-size: .86rem; font-weight: 700; }
.quote-field input,
.quote-field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  padding: 10px 12px;
  width: 100%;
}
.quote-field textarea { resize: vertical; min-height: 90px; }
.quote-field input:focus,
.quote-field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.quote-field input[readonly] { color: var(--muted); background: var(--surface); }
.quote-field input[aria-invalid="true"] { border-color: #ff6b6b; }
.quote-hint { margin: 0; color: var(--muted); font-size: .76rem; }
.quote-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote-status {
  margin: 2px 0 12px; padding: 10px 12px; border-radius: 7px;
  background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .45);
  color: #ffd1d1; font-size: .88rem;
}
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-fallback { margin: 12px 0 0; color: var(--muted); font-size: .84rem; }
.quote-fallback a { color: var(--accent); font-weight: 700; }
.quote-done { display: grid; gap: 16px; justify-items: start; padding: 6px 0 4px; }
.quote-done-title { margin: 0; font-size: 1.1rem; font-weight: 750; }
.quote-done-title:focus { outline: none; }
@media (max-width: 560px) {
  .quote-modal { padding: 0; align-items: flex-end; }
  .quote-dialog {
    width: 100%; max-height: 92vh; max-height: 92dvh;
    border-radius: 14px 14px 0 0; padding: 22px 16px 18px;
  }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-actions .btn { flex: 1 1 auto; }
}

/* On-site payment page (pay.html) and order-complete.html */
.pay-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.pay-summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 18px 16px;
  position: sticky;
  top: 16px;
}
.pay-summary-label {
  margin: 0 0 12px; font-size: .78rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.pay-line {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.pay-line .cart-meta { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
.pay-line-name, .pay-line-amt { margin: 0; font-weight: 750; }
.pay-totals { margin: 12px 0 8px; }
.pay-total-row { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
.pay-total-row strong { color: var(--text); text-align: right; }
.pay-fine { margin: 8px 0 10px; color: var(--muted); font-size: .78rem; }
.pay-edit { color: var(--accent); font-weight: 700; font-size: .9rem; }
.pay-edit:hover { text-decoration: underline; }
.pay-main { min-width: 0; }
.pay-status { margin: 0 0 14px; }
.pay-status.pay-error {
  color: #ffd1d1; background: rgba(255, 107, 107, .12);
  border: 1px solid rgba(255, 107, 107, .45); border-radius: 8px; padding: 10px 12px;
}
.pay-checkout { border-radius: 12px; overflow: hidden; }
.pay-checkout:empty { display: none; }
.oc-done { display: grid; gap: 6px; }
.oc-thanks { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; }
.oc-done .cart-actions { margin-top: 12px; }
.oc-done .mail { color: var(--accent); font-weight: 700; }
@media (max-width: 820px) {
  .pay-layout { grid-template-columns: 1fr; gap: 18px; }
  .pay-summary { position: static; }
}
