:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --panel-bg: #ffffff;
  --surface-alt: #f1f5f9;
  --stroke: #e2e8f0;
  --text: #111827;
  --muted: #64748b;
  --accent: #47ba2c;
  --accent-hover: #3ba223;
  --accent-2: #fa7103;
  --ndio-green: #47ba2c;
  --ndio-green-hover: #3ba223;
  --ndio-green-light: #f0fdf2;
  --ndio-orange: #fa7103;
  --ndio-orange-hover: #e06300;
  --ndio-dark: #111827;
  --danger: #dc2626;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --btn-radius: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Outfit", "Inter", system-ui;
  --header-bg: rgba(255, 255, 255, 0.92);
  --input-bg: #ffffff;
  --code-fg: #0f766e;
  --btn-primary-text: #ffffff;
  --step-active-bg: rgba(13, 148, 136, 0.08);
  --step-active-border: rgba(13, 148, 136, 0.35);
  --flash-success-bg: rgba(13, 148, 136, 0.08);
  --flash-success-border: rgba(13, 148, 136, 0.28);
  --flash-error-bg: rgba(220, 38, 38, 0.06);
  --flash-error-border: rgba(220, 38, 38, 0.25);
  --nav-link-bg: transparent;
  --pill-ghost-bg: var(--surface-alt);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1419;
  --bg-elevated: #1a1f2e;
  --panel-bg: #1a1f2e;
  --surface-alt: #151a24;
  --stroke: rgba(255, 255, 255, 0.1);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #5eead4;
  --accent-hover: #2dd4bf;
  --accent-2: #fa7103;
  --ndio-green: #5eead4;
  --ndio-green-hover: #2dd4bf;
  --ndio-green-light: rgba(45, 212, 191, 0.12);
  --ndio-orange: #fb923c;
  --danger: #f87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(15, 20, 25, 0.92);
  --input-bg: #121820;
  --code-fg: #5eead4;
  --btn-primary-text: #0f1419;
  --step-active-bg: rgba(45, 212, 191, 0.1);
  --step-active-border: rgba(45, 212, 191, 0.35);
  --flash-success-bg: rgba(45, 212, 191, 0.1);
  --flash-success-border: rgba(45, 212, 191, 0.35);
  --flash-error-bg: rgba(248, 113, 113, 0.1);
  --flash-error-border: rgba(248, 113, 113, 0.35);
  --nav-link-bg: transparent;
  --pill-ghost-bg: rgba(255, 255, 255, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.nav-open {
  overflow: hidden;
}

.site-header,
.shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(14px, 3vw, 28px);
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

.brand__tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface-alt);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav__hello {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav__link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.nav__link--cta {
  color: var(--btn-primary-text);
  background: var(--accent);
  font-weight: 600;
  border-radius: var(--btn-radius);
}

.nav__link--cta:hover {
  background: var(--accent-hover);
  color: var(--btn-primary-text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin-inline: auto;
}

.shell {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 40px) clamp(14px, 3vw, 36px) 64px;
}

/* Landing (and similar): narrow column, no wide stretch */
.layout-compress {
  max-width: 34rem;
  width: 100%;
  margin-inline: auto;
}

.layout-compress .hero--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 2.5vw, 20px);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.layout-compress .hero__copy {
  max-width: 30rem;
}

.layout-compress .hero__copy h1 {
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
}

.layout-compress .ticks {
  text-align: left;
  display: inline-block;
  margin-inline: auto;
}

.layout-compress .stepper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  margin-bottom: 1.25rem;
}

.layout-compress .step {
  flex: 0 0 auto;
  min-width: 4.75rem;
  max-width: 5.5rem;
  padding: 8px 4px;
  font-size: 0.78rem;
}

.layout-compress .step span {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}

.layout-compress .step small {
  display: block;
  line-height: 1.15;
  word-break: break-word;
}

.layout-compress .coords {
  grid-template-columns: 1fr;
}

.layout-compress .actions {
  justify-content: center;
}

.layout-compress .btn--primary {
  width: 100%;
  max-width: 18rem;
}

.connect-back {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.connect-intro {
  margin-bottom: 1.5rem;
}

.connect-intro h1 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 0.65rem;
}

.page-connect .shell {
  max-width: 42rem;
}

/* --- Izwi-style address hero (landing + home #connect) --- */
.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;
}

.connect-hero {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 4.5rem);
  min-height: calc(100svh - 4.5rem);
  padding: clamp(1.5rem, 5vh, 3rem) 0 clamp(2rem, 6vh, 3.5rem);
}

.connect-hero__inner {
  max-width: 38rem;
  margin-inline: auto;
  width: 100%;
  text-align: center;
}

.connect-hero__inner .eyebrow,
.connect-hero__inner .connect-hero__title,
.connect-hero__inner .connect-hero__lede,
.connect-hero__inner .connect-back {
  text-align: center;
}

.connect-hero__inner .address-hero-form {
  text-align: left;
}

.connect-hero__inner .connect-hero__steps {
  justify-content: center;
}

.connect-hero__title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.connect-hero__lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.address-hero-form {
  margin-bottom: 1.75rem;
}

/* Home / Business segmented control (also used when /connect/ renders in staff shell) */
.coverage-customer-paths {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin: 0 0 1rem;
  padding: 4px;
  border: 1px solid var(--stroke, #dce4de);
  border-radius: 14px;
  background: var(--surface-alt, rgba(255, 255, 255, 0.6));
  max-width: 280px;
}
.coverage-path {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted, #626a63);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.coverage-path:hover {
  color: var(--ndio-green-hover, #28743f);
}
.coverage-path:focus-visible {
  outline: 3px solid rgba(240, 97, 53, 0.4);
  outline-offset: 3px;
}
.coverage-path.selected,
.coverage-path[aria-pressed="true"] {
  background: var(--ndio-green-light, #eef7ef);
  box-shadow: inset 0 0 0 1px rgba(71, 186, 44, 0.42);
  color: var(--ndio-green-hover, #28743f);
}
html[data-theme="dark"] .coverage-customer-paths {
  border-color: #405044;
  background: #161d18;
}
html[data-theme="dark"] .coverage-path {
  color: #b6c5b8;
}
html[data-theme="dark"] .coverage-path.selected,
html[data-theme="dark"] .coverage-path[aria-pressed="true"] {
  background: #173b20;
  color: #b9edbb;
  box-shadow: inset 0 0 0 1px #4d9150;
}

.address-hero__field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.address-hero__input-wrap {
  background: var(--bg-elevated);
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
  padding: 4px;
}

.address-hero-form .address-input,
.address-hero-form #id_address {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-size: 1rem;
  color: var(--text);
  min-height: 3.25rem;
  box-shadow: none;
}

.address-hero-form .address-input:focus,
.address-hero-form #id_address:focus {
  outline: none;
  box-shadow: none;
}

.address-hero__input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

html[data-theme="dark"] .address-hero__input-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.address-hero-form .address-input::placeholder,
.address-hero-form #id_address::placeholder {
  color: var(--muted);
  opacity: 1;
}

.address-hero__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.25rem;
}

.address-hero__locate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0;
  min-height: 44px;
}

.address-hero__locate:hover {
  color: var(--accent-hover);
}

.address-hero__locate:disabled {
  opacity: 0.55;
  cursor: wait;
}

.address-hero__submit {
  border: none;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}

html[data-theme="dark"] .address-hero__submit {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--stroke);
}

.address-hero__submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.address-hero__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.address-hero__error {
  padding-left: 1rem;
}

.connect-hero__steps {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  opacity: 0.85;
}

.connect-hero__steps .step {
  flex: 0 0 auto;
  min-width: 4.25rem;
  padding: 6px 4px;
  font-size: 0.7rem;
}

.connect-hero__steps .step span {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
}

.page-connect-hero .shell {
  max-width: min(72rem, 100%);
}

.site-footer {
  text-align: center;
  padding: 32px 16px 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 4vw, 36px);
  margin-bottom: clamp(24px, 5vw, 48px);
}

.hero__copy h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 16px;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.ticks {
  padding-left: 18px;
  color: var(--muted);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow);
}

.card--media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__visual--compact {
  max-width: min(200px, 42vw);
  width: 100%;
  margin-inline: auto;
  align-self: center;
  padding: 10px 10px 12px;
  gap: 8px;
}

.hero__visual--compact .hero__gif {
  display: block;
  width: 100%;
  max-width: 180px;
  max-height: 126px;
  height: auto;
  margin-inline: auto;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid var(--stroke);
}

.pill-row--tight {
  gap: 6px;
  justify-content: center;
}

.pill-row--tight .pill {
  padding: 4px 10px;
  font-size: 0.68rem;
}

.hero__gif {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--stroke);
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 28px);
  box-shadow: var(--shadow);
}

.panel--narrow {
  max-width: 640px;
  margin: 0 auto;
}

.address-map {
  width: 100%;
  height: clamp(220px, 40vw, 320px);
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--stroke);
  overflow: hidden;
  background: var(--bg-elevated);
}

.pac-container {
  z-index: 10000;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.step {
  text-align: center;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.85rem;
}

.step span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 6px;
  border: 1px solid var(--stroke);
}

.step.is-active {
  border-color: var(--step-active-border);
  color: var(--text);
  background: var(--step-active-bg);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

.field--full {
  grid-column: 1 / -1;
}

.input,
input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 12px 14px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

html[data-theme="dark"] .input:focus,
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.address-input,
.mkt-form .address-input {
  min-height: 3rem;
  font-size: 1rem;
  border-width: 1.5px;
  background: var(--bg-elevated);
}

html[data-theme="dark"] .address-input,
html[data-theme="dark"] .mkt-form .address-input {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.18);
}

.address-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.address-panel .field > span {
  font-weight: 600;
  color: var(--text);
}

.coords {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: var(--btn-radius);
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--btn-primary-text);
  box-shadow: none;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn--block {
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
}

.hint,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.error {
  color: var(--danger);
  font-size: 0.85rem;
}

.ok {
  color: var(--accent);
}

.warn {
  color: #ffc773;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 900px) {
  .package-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package h3 {
  margin: 8px 0 12px;
  font-size: 1.15rem;
}

.price span {
  font-size: 2rem;
  font-family: var(--display);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--stroke);
}

.pill--accent {
  border-color: var(--step-active-border);
  color: var(--accent);
}

.pill--ghost {
  background: var(--pill-ghost-bg);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.25rem 0;
}

.service-switch--carriers {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.service-switch__carrier.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.package-section[hidden],
.package.card[hidden],
.pkg-card[hidden] {
  display: none !important;
}

/* Promo package cards */
.package-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 900px) {
  .package-grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .package-grid--cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #eef6fc;
  border: 1px solid #d6e8f5;
  box-shadow: 0 8px 24px rgba(15, 35, 70, 0.06);
}

.pkg-card--featured {
  background: linear-gradient(180deg, #1a2d5a 0%, #243b73 100%);
  border-color: #1a2d5a;
  color: #fff;
}

.pkg-card__ribbon {
  background: #e91e8c;
  color: #fff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
}

.pkg-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1rem 1.1rem;
}

.pkg-card__provider {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b7086;
}

.pkg-card--featured .pkg-card__provider {
  color: rgba(255, 255, 255, 0.72);
}

.pkg-card__type {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.pkg-card--featured .pkg-card__type {
  color: rgba(255, 255, 255, 0.92);
}

.pkg-card__name {
  margin: 0.15rem 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 500;
  color: #64748b;
}

.pkg-card--featured .pkg-card__name {
  color: rgba(255, 255, 255, 0.78);
}

.pkg-card__pricing {
  margin-bottom: 0.85rem;
}

.pkg-card__price {
  margin: 0;
  line-height: 1;
}

.pkg-card__price-value {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: #17345f;
}

.pkg-card--featured .pkg-card__price-value {
  color: #fff;
}

.pkg-card__price-unit {
  margin-left: 0.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #17345f;
}

.pkg-card--featured .pkg-card__price-unit {
  color: rgba(255, 255, 255, 0.92);
}

.pkg-card__was-price {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #7c93a8;
  text-decoration: line-through;
}

.pkg-card--featured .pkg-card__was-price {
  color: rgba(255, 255, 255, 0.55);
}

.pkg-card__speeds {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.pkg-card--featured .pkg-card__speeds {
  color: rgba(255, 255, 255, 0.92);
}

.pkg-card__speed {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pkg-card__speed-arrow {
  font-size: 0.85rem;
  opacity: 0.85;
}

.pkg-card__install {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.pkg-card--featured .pkg-card__install {
  color: rgba(255, 255, 255, 0.72);
}

.pkg-card__form {
  margin-top: 1rem;
}

.pkg-card__cta {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  background: #17345f;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pkg-card__cta:hover {
  opacity: 0.92;
}

.pkg-card--featured .pkg-card__cta {
  background: #fff;
  color: #17345f;
}

.details-form__heading {
  margin: 0.5rem 0 0;
  font-family: var(--display);
  font-size: 1.05rem;
}

.field--checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-direction: row;
}

.field--checkbox .checkbox {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.dwelling-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.dwelling-fieldset legend {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.dwelling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.dwelling-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  border: 1px solid var(--stroke);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dwelling-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dwelling-option:has(input:checked) {
  border-color: var(--step-active-border);
  box-shadow: 0 0 0 1px var(--step-active-border);
}

.dwelling-option__title {
  font-weight: 600;
  font-family: var(--display);
}

.dwelling-option__hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

.flash--success {
  border-color: var(--flash-success-border);
  background: var(--flash-success-bg);
}

.flash--error,
.flash--danger {
  border-color: var(--flash-error-border);
  background: var(--flash-error-bg);
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--stroke);
}

.summary__row:last-child {
  border-bottom: none;
}

.summary__row--total {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--stroke);
  border-bottom: none;
  font-weight: 600;
}

.pay-options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.pay-option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.checkout-fees {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stroke);
}

.checkout-fees__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.checkout-fees__hint {
  margin: 0 0 12px;
  max-width: 56rem;
}

.checkout-fees__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
}

.checkout-fees__fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.checkout-fees__updated {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

.metric--tab {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.metric--tab:hover {
  border-color: var(--accent, #6366f1);
}

.metric--active {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 1px var(--accent, #6366f1);
}

.metric strong {
  font-size: 2rem;
  font-family: var(--display);
}

.table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--stroke);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--stroke);
}

.table th {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.85em;
  color: var(--code-fg);
}

.meta-list {
  display: grid;
  gap: 8px 16px;
  margin: 16px 0 24px;
}

.meta-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
}

.meta-list dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-list dd {
  margin: 0;
}

.ticket-thread {
  display: grid;
  gap: 12px;
  margin: 16px 0 24px;
}

.ticket-message {
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius, 8px);
  background: var(--surface, transparent);
}

.ticket-message header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.ticket-message time {
  color: var(--muted);
  font-size: 0.85rem;
}

.ticket-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(62vh, 560px);
  overflow-y: auto;
  padding: 16px 12px;
  margin: 12px 0 24px;
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius, 8px) + 4px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, var(--muted) 6%), color-mix(in srgb, var(--bg) 98%, var(--muted) 2%));
}

.ticket-chat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.ticket-chat-header h3 {
  margin: 0;
}

.ticket-chat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.ticket-chat-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticket-chat-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.ticket-chat-legend__dot--you {
  background: color-mix(in srgb, var(--accent, #2563eb) 70%, white);
}

.ticket-chat-legend__dot--support {
  background: var(--surface, #fff);
  border: 1px solid var(--stroke);
}

.ticket-chat__empty {
  margin: 0;
  text-align: center;
  padding: 24px 12px;
}

.ticket-bubble {
  display: flex;
  gap: 10px;
  max-width: min(88%, 560px);
  align-items: flex-end;
}

.ticket-bubble--in {
  align-self: flex-start;
  flex-direction: row;
}

.ticket-bubble--out {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ticket-bubble__avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ticket-bubble--in .ticket-bubble__avatar {
  background: var(--surface, #fff);
  border: 1px solid var(--stroke);
  color: var(--muted);
}

.ticket-bubble--out .ticket-bubble__avatar {
  background: color-mix(in srgb, var(--accent, #2563eb) 82%, white);
  color: #fff;
}

.ticket-bubble__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ticket-bubble__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  font-size: 0.76rem;
  color: var(--muted);
  padding: 0 4px;
}

.ticket-bubble__meta strong {
  color: var(--fg);
  font-size: 0.84rem;
}

.ticket-bubble__role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticket-bubble__meta time {
  margin-left: auto;
  font-size: 0.72rem;
}

.ticket-bubble__body {
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.5;
  word-break: break-word;
  font-size: 0.95rem;
}

.ticket-bubble--in .ticket-bubble__body {
  background: var(--surface, #fff);
  border: 1px solid var(--stroke);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--fg) 6%, transparent);
}

.ticket-bubble--out .ticket-bubble__body {
  background: color-mix(in srgb, var(--accent, #2563eb) 16%, var(--surface, #fff));
  border: 1px solid color-mix(in srgb, var(--accent, #2563eb) 28%, var(--stroke));
  border-bottom-right-radius: 6px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--accent, #2563eb) 12%, transparent);
}

.ticket-reply-box {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.ticket-reply-form {
  margin-top: 8px;
}

/* Legacy breakpoint merged into mobile section at end of file */

/* --- Availability loading overlay --- */
body.avail-overlay-open {
  overflow: hidden;
}

.avail-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.avail-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.avail-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(10px);
}

html[data-theme="light"] .avail-overlay__backdrop {
  background: rgba(244, 246, 251, 0.72);
}

.avail-overlay__card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--stroke);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  text-align: center;
  animation: avail-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes avail-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.avail-scanner {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
}

.avail-scanner__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: avail-spin 1.1s linear infinite;
}

.avail-scanner__ring--delay {
  inset: 12px;
  opacity: 0.65;
  animation-duration: 1.6s;
  animation-direction: reverse;
}

.avail-scanner__core {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), transparent 62%),
    radial-gradient(circle at 70% 75%, var(--accent-2), transparent 55%);
  opacity: 0.35;
  animation: avail-pulse 2s ease-in-out infinite;
}

.avail-scanner__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(15, 157, 120, 0.2);
  animation: avail-pin 1.4s ease-in-out infinite;
}

html[data-theme="dark"] .avail-scanner__pin {
  box-shadow: 0 0 0 6px rgba(108, 250, 204, 0.18);
}

@keyframes avail-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes avail-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
}

@keyframes avail-pin {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.avail-overlay__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.avail-overlay__hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 1.4em;
  transition: opacity 0.25s ease;
}

.avail-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
  margin-bottom: 14px;
}

.avail-progress__bar {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--accent);
  animation: avail-progress 1.8s ease-in-out infinite;
}

@keyframes avail-progress {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.avail-overlay__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
}

/* --- Yoco checkout must sit above app panels (sticky header / backdrop-filter) --- */
body.yoco-checkout-open .shell,
body.yoco-checkout-open .site-header,
body.yoco-checkout-open .site-footer {
  z-index: 0;
}

body.yoco-checkout-open .panel {
  visibility: hidden;
  pointer-events: none;
}

body.yoco-checkout-open iframe[src*="yoco"],
body.yoco-checkout-open iframe[src*="thrive"],
body.yoco-checkout-open [class*="yoco-checkout"],
body.yoco-checkout-open [class*="yoco-online"] {
  z-index: 2147483647 !important;
  position: fixed !important;
}

/* --- Ops catalog pricing --- */
.ops-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.catalog-filter label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.table--catalog .input--compact {
  width: 7rem;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
}

.table--catalog code {
  font-size: 0.72rem;
}

.catalog-sync__status {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel-bg);
}

.catalog-sync__status[hidden] {
  display: none !important;
}

.catalog-sync__track {
  height: 6px;
  border-radius: 999px;
  background: var(--nav-link-bg);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.catalog-sync__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.catalog-sync__message {
  margin: 0;
  font-size: 0.875rem;
}

.pagination {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pagination__summary {
  margin: 0;
  font-size: 0.875rem;
}

.pagination__links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination__link {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text);
  background: var(--panel-bg);
}

.pagination__link:hover {
  border-color: var(--accent);
}

.pagination__link--current {
  background: var(--step-active-bg);
  border-color: var(--step-active-border);
  font-weight: 600;
}

.pagination__link--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.catalog-row__status-cell {
  width: 4.5rem;
  text-align: right;
}

.catalog-row__status {
  font-size: 0.75rem;
  color: var(--muted);
}

.catalog-row__status--ok {
  color: var(--accent);
}

.catalog-row__status--err {
  color: var(--danger);
}

.package-section-title {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

.catalog-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.catalog-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.catalog-row--disabled {
  opacity: 0.55;
}

.catalog-row--disabled .catalog-toggle__label {
  color: var(--danger);
}

.catalog-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
}

.catalog-toggle__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* --- Mobile & touch --- */
@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px));
  }

  .brand__tag {
    display: none;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    flex: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    order: 3;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--stroke);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__hello {
    padding: 0.65rem 0.5rem 0.35rem;
    font-size: 0.88rem;
  }

  .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.5rem;
  }

  .nav__link--cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .shell {
    width: 100%;
    padding-top: clamp(14px, 4vw, 24px);
    padding-bottom: max(48px, env(safe-area-inset-bottom, 0px));
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  .site-footer {
    padding-bottom: max(56px, calc(env(safe-area-inset-bottom, 0px) + 2rem));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .hero__copy h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .panel {
    padding: 1.15rem;
  }

  .panel h2 {
    font-size: 1.35rem;
  }

  .stepper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    margin-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .step {
    flex: 0 0 auto;
    min-width: 4.6rem;
    scroll-snap-align: start;
    padding: 8px 4px;
    font-size: 0.72rem;
  }

  .step span {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .form-grid.two-col,
  .coords {
    grid-template-columns: 1fr;
  }

  .input,
  input,
  select,
  textarea,
  .address-input {
    font-size: 16px;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 1.15rem;
  }

  .split-actions {
    flex-direction: column;
  }

  .split-actions .btn {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .service-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .service-switch .btn,
  .service-switch__carrier {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .package-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .address-map {
    height: min(220px, 45vw);
  }

  .pay-option {
    padding: 0.85rem;
  }

  .ops-actions,
  .catalog-filter,
  .catalog-bulk {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-filter label,
  .catalog-filter .btn {
    width: 100%;
  }

  .catalog-bulk .btn {
    width: 100%;
    justify-content: center;
  }

  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination__links {
    justify-content: center;
  }

  .table-wrap {
    margin-inline: -0.25rem;
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
  }

  .avail-overlay {
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  }

  .avail-overlay__card {
    padding: 24px 20px 20px;
  }

  .connect-intro h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .connect-hero__actions {
    flex-wrap: wrap;
  }

  .address-hero__submit {
    margin-left: auto;
  }

  .address-hero__locate {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .brand img {
    height: 30px;
  }

  .theme-toggle,
  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .price span {
    font-size: 1.65rem;
  }

  .metric strong {
    font-size: 1.65rem;
  }
}
