:root {
  --ink: #161616;
  --muted: #666;
  --line: #222;
  --soft-line: #cfcfcf;
  --paper: #f3f3f3;
  --panel: #fff;
  --wash: #e8e8e8;
  --success: #eef7ee;
  --warning: #fff8dd;
  --danger: #fff0f0;
  --info: #eef3f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.prototype-strip {
  background: var(--ink);
  color: white;
  padding: 8px 20px;
  font-size: 12px;
  text-align: center;
  letter-spacing: .04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  border-bottom: 2px solid var(--line);
}
.audience-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--soft-line);
}
.audience-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}
.audience-switcher {
  display: inline-flex;
  align-items: center;
}
.audience-switcher > span {
  margin-right: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.audience-switcher a {
  min-height: 34px;
  padding: 7px 13px;
  border: 2px solid var(--line);
  background: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}
.audience-switcher a + a { margin-left: -2px; }
.audience-switcher a:hover,
.audience-switcher a:focus-visible { background: var(--wash); }
.audience-switcher a[aria-current="page"] {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: white;
}
.audience-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.audience-login-arrow {
  font-size: 10px;
  line-height: 1;
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}
.logo img {
  display: block;
  width: auto;
  max-width: 220px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}
.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
}
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration: underline; }
.nav-cta {
  text-decoration: none;
  border: 2px solid var(--line);
  padding: 9px 12px;
  font-weight: 800;
  background: white;
}
.nav-cta.primary { background: var(--ink); color: white; }
.nav-phone {
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.nav-phone:hover { text-decoration: underline; }

main { min-height: 62vh; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}
.container.compact { padding-top: 38px; padding-bottom: 38px; }
.band {
  background: white;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 66px 24px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 42px;
  align-items: center;
  min-height: 520px;
}
.hero.no-art { grid-template-columns: 1fr; min-height: 360px; }
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: .98;
  margin: 15px 0 20px;
  max-width: 820px;
}
h2 { font-size: 34px; margin: 0 0 18px; }
h3 { font-size: 21px; margin: 0 0 10px; }
p { line-height: 1.6; }
.lead { font-size: 19px; max-width: 760px; color: #3d3d3d; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.wire-art {
  min-height: 330px;
  display: grid;
  place-items: center;
  border: 2px dashed #777;
  background:
    linear-gradient(45deg, transparent 49.5%, #ddd 50%, transparent 50.5%),
    linear-gradient(-45deg, transparent 49.5%, #ddd 50%, transparent 50.5%);
  background-size: 42px 42px;
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 2px solid var(--line);
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.btn.primary { background: var(--ink); color: white; }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn.is-disabled { pointer-events: none; }

.grid-2, .grid-3, .grid-4, .grid-5 {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card {
  background: white;
  border: 2px solid var(--line);
  padding: 24px;
  min-height: 170px;
}
.card .wire-label,
.wire-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  border: 1px solid var(--line);
  padding: 5px 7px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.card.is-unavailable { opacity: .42; }
.card.is-available { outline: 4px solid #d6d6d6; outline-offset: -6px; }
.plan-price { font-size: 32px; font-weight: 900; margin: 14px 0; }
.plan-speed { font-size: 38px; font-weight: 900; line-height: 1; margin: 12px 0; }
.availability-note { min-height: 36px; font-size: 13px; font-weight: 700; }
.plan-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.plan-filter label { font-size: 14px; font-weight: 800; }
.plan-filter select {
  min-height: 46px;
  min-width: 220px;
  padding: 10px 38px 10px 12px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
}
.plan-filter select:focus-visible {
  outline: none;
  box-shadow: none;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: white;
  border: 2px solid var(--line);
  padding: 23px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  font-weight: 900;
  margin-bottom: 16px;
}

.address-checker {
  background: white;
  border: 3px solid var(--line);
  padding: 24px;
  position: relative;
}
.address-checker h3 { margin-bottom: 4px; }
.address-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}
.address-input-row input {
  width: 100%;
  border: 2px solid var(--line);
  padding: 14px 15px;
  min-height: 50px;
}
.address-input-wrap { position: relative; }
.address-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--line);
  max-height: 340px;
  overflow-y: auto;
}
.address-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  background: white;
  cursor: pointer;
}
.address-suggestion:last-child { border-bottom: 0; }
.address-suggestion:hover, .address-suggestion:focus { background: var(--wash); outline: none; }
.address-suggestion strong { display: block; }
.address-suggestion span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
[data-address-submit] { min-width: 150px; gap: 9px; }
[data-address-submit].is-loading:disabled { opacity: 1; }
.address-loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.address-loading-dots[hidden] { display: none; }
.address-loading-dots i {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  background: transparent;
  animation: address-loading-pulse 1s steps(2, jump-none) infinite;
}
.address-loading-dots i:nth-child(2) { animation-delay: .16s; }
.address-loading-dots i:nth-child(3) { animation-delay: .32s; }
.address-status { font-size: 13px; min-height: 21px; margin-top: 9px; color: var(--muted); }
.address-status.is-loading { color: var(--ink); font-weight: 700; }

@keyframes address-loading-pulse {
  0%, 100% { background: transparent; opacity: .45; }
  50% { background: currentColor; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .address-loading-dots i { animation: none; }
  .address-loading-dots i:nth-child(2) { background: currentColor; }
}
.address-result {
  border-top: 2px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.result-banner {
  padding: 17px;
  border: 2px solid var(--line);
  margin-bottom: 16px;
}
.result-banner.success { background: var(--success); }
.result-banner.warning { background: var(--warning); }
.result-banner.danger { background: var(--danger); }
.result-banner.info { background: var(--info); }
.result-banner h3 { margin: 0 0 6px; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.qualification-details {
  margin-bottom: 18px;
}
.qualification-details summary {
  padding: 13px 2px;
  cursor: pointer;
}
.qualification-details .result-grid { padding-bottom: 14px; }
.result-item {
  border: 1px solid var(--soft-line);
  padding: 12px;
  background: white;
}
.result-item span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.result-item strong { word-break: break-word; }
.service-intent {
  border: 2px solid var(--line);
  margin: 18px 0 0;
  padding: 18px;
  background: white;
  min-width: 0;
}
.service-intent legend {
  padding: 0 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  max-width: 100%;
}
.service-intent > p { margin: 0 0 14px; }
.service-intent-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.service-intent-options.has-fibre-upgrade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-intent-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 106px;
  padding: 14px;
  border: 2px solid var(--soft-line);
  cursor: pointer;
}
.service-intent-option:hover { border-color: var(--line); }
.service-intent-option.is-disabled { cursor: not-allowed; opacity: .62; }
.service-intent-option.is-disabled:hover { border-color: var(--soft-line); }
.service-intent-option.is-selected {
  border-color: var(--line);
  background: var(--info);
  outline: 2px solid var(--line);
  outline-offset: -4px;
}
.service-intent-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}
.service-intent-option span,
.service-intent-option strong,
.service-intent-option small { display: block; }
.service-intent-option small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}
.service-intent-status { min-height: 18px; margin-top: 10px; color: var(--muted); }
.transfer-flow {
  border-top: 2px solid var(--soft-line);
  margin-top: 18px;
  padding-top: 18px;
}
.existing-connection-picker {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.existing-connection-picker legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 900;
}
.existing-connection-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.existing-connection-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 82px;
  padding: 12px;
  border: 2px solid var(--soft-line);
  cursor: pointer;
}
.existing-connection-option:hover { border-color: var(--line); }
.existing-connection-option.is-disabled {
  cursor: not-allowed;
  background: #f4f4f4;
  border-style: dashed;
}
.existing-connection-option.is-disabled:hover { border-color: var(--soft-line); }
.existing-connection-option.is-disabled input { cursor: not-allowed; }
.existing-connection-option.is-selected {
  border-color: var(--line);
  background: var(--info);
  outline: 2px solid var(--line);
  outline-offset: -4px;
}
.existing-connection-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}
.existing-connection-option span,
.existing-connection-option strong,
.existing-connection-option small { display: block; min-width: 0; }
.existing-connection-option small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}
.avc-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}
.avc-input-label,
.avc-input-label span { display: block; }
.avc-input-label span {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.avc-input-label input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  text-transform: uppercase;
}
.avc-help { margin-top: 7px; }
.avc-status { min-height: 18px; margin-top: 9px; }
.avc-status.success { color: #176b2c; font-weight: 700; }
.avc-status.error { color: #9e1c1c; font-weight: 700; }
.speed-tier-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.speed-tier-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  min-height: 108px;
  padding: 16px;
  border: 2px solid var(--soft-line);
  background: white;
  cursor: pointer;
}
.speed-tier-option:hover { border-color: var(--line); }
.speed-tier-picker.is-disabled { opacity: .62; }
.speed-tier-option.is-disabled { cursor: not-allowed; background: rgb(244, 244, 244); }
.speed-tier-option.is-disabled:hover { border-color: var(--soft-line); }
.speed-tier-option.is-selected {
  border-color: var(--line);
  background: var(--info);
  outline: 2px solid var(--line);
  outline-offset: -4px;
}
.speed-tier-option input { width: 16px; height: 16px; margin: 0; }
.speed-tier-name strong { display: block; font-size: 18px; }
.speed-tier-name small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}
.speed-tier-price {
  font-size: 22px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}
.speed-tier-price small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.service-intent-option,
.existing-connection-option {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.service-intent-option:has(input:focus-visible),
.existing-connection-option:not(.is-disabled):has(input:focus-visible),
.speed-tier-option:has(input:focus-visible) {
  border-color: var(--line);
  outline: 3px solid var(--line);
  outline-offset: 2px;
}
.debug-details { margin-top: 14px; font-size: 13px; }
.debug-details pre { background: #111; color: #eee; padding: 14px; overflow: auto; max-height: 420px; white-space: pre-wrap; word-break: break-word; }

.state-note {
  padding: 14px 16px;
  border-left: 5px solid var(--line);
  background: white;
  margin: 18px 0;
}
.new-connection-summary {
  padding: 16px;
  border-left: 5px solid var(--line);
  background: var(--info);
  margin: 18px 0;
}
.new-connection-summary.warning { background: var(--warning); }
.new-connection-summary .wire-label { margin-bottom: 10px; }
.new-connection-summary h3 { margin: 0 0 6px; }
.new-connection-summary p { margin: 0; }
.new-connection-meta {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

.footer {
  background: var(--ink);
  color: white;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 26px;
}
.footer a { color: white; display: block; margin: 7px 0; }
.footer .muted { color: #c7c7c7; }

@media (max-width: 980px) {
  .nav { flex-wrap: wrap; gap: 14px; }
  .logo { margin-right: 10px; }
  .hero, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .speed-tier-options { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .audience-inner { justify-content: center; gap: 12px; padding: 8px 16px; }
  .audience-switcher { flex: 1 1 auto; width: auto; }
  .audience-switcher > span { margin-right: auto; }
  .audience-switcher a { flex: 1 1 0; justify-content: center; }
  .hero, .grid-2, .grid-3, .grid-4, .grid-5, .steps, .result-grid, .footer-inner { grid-template-columns: 1fr; }
  .address-input-row { grid-template-columns: 1fr; }
  .service-intent-options, .service-intent-options.has-fibre-upgrade, .existing-connection-options { grid-template-columns: 1fr; }
  .speed-tier-options { grid-template-columns: 1fr; }
  .avc-check { grid-template-columns: 1fr; }
  .service-intent legend { font-size: 16px; }
  .nav-link, .nav-phone { font-size: 13px; }
  .plan-filter { align-items: stretch; flex-direction: column; }
  .plan-filter select { width: 100%; }
  h1 { font-size: 44px; }
}
