:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #102038;
  --muted: #5f6f83;
  --line: #d8e1ec;
  --teal: #087f96;
  --teal-dark: #062758;
  --coral: #ff5b3f;
  --gold: #b7791f;
  --sky: #2563eb;
  --shadow: 0 18px 50px rgba(23, 32, 31, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
select,
input {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 42px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-logo {
  width: clamp(210px, 24vw, 310px);
  height: 68px;
  object-fit: cover;
  object-position: left center;
  flex: 0 0 auto;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.primary-button,
.secondary-button,
.icon-button,
.tab,
.booking-link {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  cursor: pointer;
  text-decoration: none;
}

.primary-button,
.booking-link {
  background: var(--teal);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
}

.secondary-button {
  background: #eef6f4;
  color: var(--teal-dark);
  padding: 9px 12px;
  font-weight: 750;
}

.icon-button {
  width: 42px;
  background: #eef6f4;
  color: var(--teal-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 22px;
  padding: 24px clamp(16px, 4vw, 42px) 42px;
}

.hero-band {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  background: #edf5fb;
  border-top: 4px solid var(--coral);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: var(--shadow);
}

.hero-band h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.hero-band p:not(.eyebrow) {
  max-width: 920px;
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0 0;
}

.status-strip {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.status-strip span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.status-strip strong {
  display: inline-block;
  min-width: 22px;
  color: var(--teal-dark);
  font-size: 1.2rem;
}

.filters,
.engine-panel,
.settings-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.filters {
  align-self: start;
  position: sticky;
  top: 92px;
}

.filters h2,
.engine-panel h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.filters label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 14px;
}

select,
input[type="range"],
input[type="number"],
input[type="text"],
input[type="search"],
input[type="date"] {
  width: 100%;
}

select,
input[type="number"],
input[type="text"],
input[type="search"],
input[type="date"] {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.settings-panel {
  display: grid;
  gap: 22px;
}

.settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.settings-heading h2 {
  margin: 0;
}

.settings-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.preset-control {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}

.preset-button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  cursor: pointer;
  font-weight: 750;
}

.preset-button:last-child {
  border-right: 0;
}

.preset-button:hover,
.preset-button:focus-visible {
  background: #eef6f4;
  color: var(--teal-dark);
}

.settings-panel fieldset {
  margin: 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.settings-panel legend {
  padding: 0 12px 0 0;
  color: var(--ink);
  font-weight: 850;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-grid-spaced {
  margin-top: 16px;
  grid-template-columns: minmax(190px, 0.7fr) minmax(280px, 2fr);
  align-items: end;
}

.settings-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid label,
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
  font-weight: 700;
}

.scope-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #a9c8db;
  border-radius: 8px;
  background: #edf7fb;
  cursor: pointer;
}

.scope-toggle input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.scope-toggle span,
.airport-grid span,
.source-row div {
  display: grid;
  gap: 3px;
}

.scope-toggle small,
.airport-grid small,
.source-row span,
.source-empty {
  color: var(--muted);
  line-height: 1.35;
}

.airport-selection {
  margin-top: 14px;
  transition: opacity 160ms ease;
}

.airport-selection.is-disabled {
  opacity: 0.48;
}

.airport-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}

.airport-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.selection-count {
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.airport-grid {
  max-height: 360px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.airport-grid label {
  padding: 7px 8px;
  border-radius: 6px;
}

.airport-grid label:hover {
  background: #edf5fb;
}

.choice-grid input,
.inline-check input {
  width: 18px;
  height: 18px;
}

.field-help,
.input-suffix,
#configStatus {
  color: var(--muted);
  font-size: 0.85rem;
}

.field-help {
  margin: 10px 0 0;
}

.destination-limit {
  margin-top: 10px;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

.settings-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}

output {
  color: var(--ink);
  font-weight: 850;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

.content {
  min-width: 0;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tab {
  background: #fff;
  color: var(--muted);
  padding: 9px 13px;
  border-color: var(--line);
  font-weight: 800;
}

.tab.is-active {
  background: var(--ink);
  color: #fff;
}

.alert-list,
.history-list {
  display: grid;
  gap: 14px;
}

.offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.offer-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.offer-heading h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.urgency,
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.urgency.critica {
  background: #fee2e2;
  color: #991b1b;
}

.urgency.alta {
  background: #ffedd5;
  color: #9a3412;
}

.urgency.media {
  background: #fef9c3;
  color: #854d0e;
}

.favorite-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--gold);
}

.favorite-button.is-active {
  background: #fef3c7;
}

.meta,
.anomaly,
.detected,
.engine-panel,
.history-item {
  color: var(--muted);
  line-height: 1.45;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.total {
  font-size: 1.85rem;
  color: var(--teal-dark);
}

.per-person {
  color: var(--muted);
  font-weight: 750;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.facts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.facts dd {
  margin: 3px 0 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips span {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.82rem;
  font-weight: 760;
}

.offer-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.status {
  align-self: flex-start;
  background: #dcfce7;
  color: #166534;
}

.status.follow {
  background: #dbeafe;
  color: #1d4ed8;
}

.booking-link {
  text-align: center;
}

.booking-link[aria-disabled="true"] {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  text-decoration: none;
}

.scan-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 190px;
  justify-content: center;
}

.scan-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
}

.scan-indicator.is-scanning {
  border-color: #0f766e;
  color: #0f766e;
  background: #f0fdfa;
}

.scan-indicator.is-scanning .scan-dot {
  background: #14b8a6;
  animation: scan-pulse 1.2s ease-in-out infinite;
}

.scan-indicator.is-error {
  border-color: #dc2626;
  color: #b91c1c;
  background: #fef2f2;
}

.scan-indicator.is-error .scan-dot {
  background: #dc2626;
}

.scan-indicator.is-delayed {
  border-color: #d97706;
  color: #92400e;
  background: #fffbeb;
}

.scan-indicator.is-delayed .scan-dot {
  background: #f59e0b;
  animation: scan-pulse 1.8s ease-in-out infinite;
}

.scan-indicator.is-unavailable {
  border-color: #e9a86f;
  color: #8a431d;
  background: #fff7ed;
}

.scan-indicator.is-unavailable .scan-dot {
  background: var(--orange);
}

@keyframes scan-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.source-note {
  max-width: 820px;
  border-left: 4px solid #f59e0b;
  padding: 9px 12px;
  background: #fffbeb;
  color: #78350f;
}

.engine-panel ol {
  padding-left: 20px;
}

.engine-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.engine-heading h2 {
  margin: 0;
}

.coverage-badge,
.source-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.coverage-badge.is-ready,
.source-status.is-ok {
  border-color: #7cc3b2;
  background: #ecfdf5;
  color: #116149;
}

.coverage-badge.is-pending,
.source-status.is-not_configured,
.source-status.is-pending_credentials,
.source-status.is-pending_search_plan,
.source-status.is-application_rejected {
  border-color: #f3c579;
  background: #fff8e8;
  color: #885312;
}

.source-status.is-application_rejected {
  border-color: #d8b4a6;
  background: #fff3ee;
  color: #8f3a28;
}

.source-status.is-error {
  border-color: #f0a1a1;
  background: #fff1f2;
  color: #a11b2e;
}

.source-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.source-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.history-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}

.empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
  z-index: 10;
}

.hidden {
  display: none !important;
}

@media (max-width: 840px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-band {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .offer-card {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .settings-heading {
    flex-direction: column;
  }

  .settings-grid,
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-grid-spaced {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: min(245px, 70vw);
    height: 56px;
  }

  .top-actions {
    width: 100%;
  }

  .primary-button {
    flex: 1;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .settings-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .airport-toolbar,
  .source-row {
    grid-template-columns: 1fr;
  }

  .selection-count,
  .source-status {
    justify-self: stretch;
  }

  .engine-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .preset-control {
    width: 100%;
  }

  .preset-button {
    flex: 1;
    padding: 0 8px;
  }

  .offer-heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .urgency {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Public beta experience */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

:root {
  --navy: #062758;
  --navy-deep: #031a3c;
  --aqua: #05a9bd;
  --aqua-soft: #dff7f8;
  --orange: #ff5b23;
  --orange-dark: #d94212;
  --paper: #f6f9fc;
  --shadow-soft: 0 16px 44px rgba(6, 39, 88, 0.11);
}

body {
  overflow-x: hidden;
  background: #fff;
  color: var(--navy-deep);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3,
.primary-button,
.secondary-button,
.quick-submit,
.tab,
.plan-name,
.price strong {
  font-family: "Bahnschrift SemiCondensed", "Arial Black", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

a { color: inherit; }

.section-wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  min-height: 78px;
  padding: 8px max(20px, calc((100vw - 1240px) / 2));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(6, 39, 88, 0.08);
  border: 0;
  z-index: 20;
}

.brand-logo {
  width: 300px;
  height: 64px;
  object-fit: cover;
  object-position: left center;
  image-rendering: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: #42536b;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--orange); }

.primary-button,
.secondary-button,
.quick-submit,
.icon-button,
.booking-link {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 9px 20px rgba(255, 91, 35, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible,
.quick-submit:hover,
.quick-submit:focus-visible {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(217, 66, 18, 0.26);
}

.primary-button.compact { min-height: 42px; padding-inline: 18px; }

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 78px));
  display: flex;
  align-items: center;
  padding: 72px max(20px, calc((100vw - 1180px) / 2)) 150px;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("./assets/hero-mediterraneo-rastreatuviaje.png") center center / cover no-repeat;
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 31%, rgba(255,255,255,0.64) 52%, rgba(255,255,255,0.04) 76%);
}

.hero-inner {
  width: min(660px, 55vw);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-kicker span {
  width: 28px;
  height: 3px;
  background: var(--orange);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--navy-deep);
  font-size: 4.7rem;
  line-height: 0.98;
  font-weight: 850;
}

.hero h1 strong { color: var(--orange); font-weight: inherit; }

.hero-copy {
  max-width: 600px;
  margin: 22px 0 0;
  color: #30445f;
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.hero-button { min-height: 54px; padding: 0 22px; font-size: 1rem; }
.text-link { color: var(--navy); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
  color: #4b6078;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-trust li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--aqua-soft);
  color: #057589;
}

.quick-radar {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1.22fr 1fr 1fr .8fr auto;
  gap: 0;
  align-items: stretch;
  background: rgba(3, 26, 60, 0.95);
  color: #fff;
  box-shadow: 0 18px 50px rgba(3, 26, 60, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.quick-radar-heading,
.quick-radar label {
  padding: 17px 18px;
  border-right: 1px solid rgba(255,255,255,.15);
}

.quick-radar-heading { display: flex; align-items: center; gap: 12px; }
.quick-radar-heading div { display: grid; gap: 4px; }
.quick-radar-heading strong { font-size: .95rem; }
.quick-radar-heading small { color: #b9c7d9; line-height: 1.3; }
.step-number { color: var(--orange); font-size: 1.35rem; font-weight: 900; }

.quick-radar label { display: grid; gap: 8px; }
.quick-radar label > span { color: #aebdd0; font-size: .73rem; font-weight: 800; text-transform: uppercase; }
.quick-radar input,
.quick-radar select {
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 750;
  outline-offset: 3px;
}
.quick-radar input::placeholder { color: #fff; opacity: 1; }
.quick-radar option { color: var(--ink); }

.quick-submit {
  border: 0;
  border-radius: 0;
  padding: 0 25px;
  background: var(--orange);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.confidence-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  border-bottom: 1px solid #dae4ef;
}

.confidence-strip p {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0 24px;
  border-right: 1px solid #dce5ef;
}
.confidence-strip p:first-child { padding-left: 0; }
.confidence-strip p:last-child { border: 0; }
.confidence-strip strong { color: var(--navy); font-size: 1.35rem; white-space: nowrap; }
.confidence-strip span { color: var(--muted); font-size: .82rem; line-height: 1.35; }

.how-it-works,
.plans { padding: 88px 0; }

.section-intro { max-width: 700px; }
.section-intro h2,
.product-heading h2,
.closing-inner h2 {
  margin: 7px 0 0;
  color: var(--navy-deep);
  font-size: 3.2rem;
  line-height: 1.02;
}
.section-intro > p:last-child,
.product-heading p,
.closing-inner p { color: var(--muted); line-height: 1.6; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 50px;
  border-top: 1px solid #dbe4ed;
  border-bottom: 1px solid #dbe4ed;
}
.steps article { padding: 34px 38px 38px 0; border-right: 1px solid #dbe4ed; }
.steps article:not(:first-child) { padding-left: 38px; }
.steps article:last-child { border-right: 0; }
.steps span { color: var(--orange); font-weight: 900; }
.steps h3 { margin: 22px 0 10px; color: var(--navy); font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; }

.radar-product {
  padding: 78px 0 90px;
  background: var(--paper);
  border-block: 1px solid #e0e8f0;
}

.product-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}
.product-heading h2 { font-size: 3rem; }
.product-heading p { margin: 8px 0 0; }
.product-actions { width: auto; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; color: #17644c; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.live-pill span { width: 9px; height: 9px; border-radius: 50%; background: #1cb176; box-shadow: 0 0 0 5px rgba(28,177,118,.11); }
.live-pill b { font: inherit; }
.live-pill.is-offline { color: #97451d; }
.live-pill.is-offline span { background: var(--orange); box-shadow: 0 0 0 5px rgba(255,91,35,.11); }
.live-pill.is-checking { color: var(--muted); }
.live-pill.is-checking span { background: #94a3b8; box-shadow: none; }

.layout {
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 0;
}

.hero-band {
  background: #fff;
  border: 1px solid #d8e3ed;
  border-top: 4px solid var(--aqua);
  box-shadow: var(--shadow-soft);
}
.hero-band h2 { color: var(--navy); font-size: 2.15rem; line-height: 1.04; }
.source-note { border-left-color: var(--orange); background: #fff7f0; color: #76402c; }

.filters,
.engine-panel,
.settings-panel {
  box-shadow: none;
  border-color: #d8e3ed;
}
.filters { top: 96px; }
.tabs { position: relative; z-index: 3; display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; }
.tab { flex: 0 0 auto; min-height: 46px; padding: 0 17px; background: #fff; border: 1px solid #ced9e5; color: #465a72; box-shadow: 0 3px 8px rgba(6,39,88,.05); cursor: pointer; }
.tab:hover, .tab:focus-visible { border-color: var(--aqua); color: var(--navy); transform: translateY(-1px); }
.tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 -4px 0 var(--orange), 0 8px 16px rgba(6,39,88,.14); }
.view { position: relative; z-index: 1; min-height: 120px; }
.empty { min-height: 132px; display: grid; place-items: center; background: rgba(255,255,255,.72); }

.compact-intro { margin-inline: auto; text-align: center; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; margin-top: 46px; }
.plan { position: relative; display: flex; flex-direction: column; min-height: 450px; padding: 34px; border: 1px solid #d8e3ed; border-radius: 8px; background: #fff; box-shadow: var(--shadow-soft); }
.plan.featured { border: 2px solid var(--aqua); }
.plan-name { margin: 0; color: var(--navy); font-size: 1.05rem; font-weight: 850; }
.price { display: grid; gap: 3px; margin: 22px 0; }
.price strong { color: var(--navy-deep); font-size: 2.6rem; }
.price span { color: var(--muted); }
.plan ul { display: grid; gap: 14px; padding: 20px 0 0; margin: 0 0 30px; border-top: 1px solid #e0e8f0; list-style: none; }
.plan li::before { content: "✓"; margin-right: 10px; color: var(--aqua); font-weight: 900; }
.plan-button { margin-top: auto; text-align: center; }
.plan small { margin-top: 12px; color: var(--muted); text-align: center; }
.founder-badge { position: absolute; top: 20px; right: 20px; padding: 6px 9px; border-radius: 999px; background: #fff1e8; color: var(--orange-dark); font-size: .72rem; font-weight: 900; text-transform: uppercase; }

.closing-cta { padding: 64px 0; background: var(--navy); color: #fff; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.closing-inner .eyebrow { color: #72d9e3; }
.closing-inner h2 { color: #fff; }
.closing-inner p { color: #c5d2e1; margin-bottom: 0; }

footer { background: var(--navy-deep); color: #c5d2e1; }
.footer-inner { min-height: 120px; display: flex; align-items: center; gap: 28px; }
.footer-inner img { width: 250px; height: 64px; object-fit: cover; object-position: left center; }
.footer-inner p { margin-right: auto; }
.footer-inner a { color: #fff; }

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .scan-indicator { display: none; }
  .hero-inner { width: min(620px, 66vw); }
  .hero h1 { font-size: 3.9rem; }
  .quick-radar { grid-template-columns: 1.2fr 1fr 1fr auto; }
  .quick-radar-heading { display: none; }
  .confidence-strip p { padding-inline: 14px; }
}

@media (max-width: 840px) {
  html { scroll-padding-top: 70px; }
  .section-wrap { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 68px; padding: 7px 14px; flex-direction: row; align-items: center; }
  .brand-logo { width: min(220px, 54vw); height: 52px; }
  .top-actions { width: auto; }
  .top-actions .compact { display: none; }
  .hero { min-height: 760px; align-items: flex-start; padding: 60px 24px 250px; }
  .hero-media { background-position: 62% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 44%, rgba(255,255,255,.25) 67%, rgba(3,26,60,.18) 100%); }
  .hero-inner { width: 100%; }
  .hero h1 { font-size: 3.35rem; }
  .hero-copy { max-width: 560px; font-size: 1rem; }
  .quick-radar { bottom: 14px; width: calc(100% - 28px); grid-template-columns: 1fr 1fr; }
  .quick-radar label { padding: 13px 15px; }
  .quick-radar label:nth-of-type(2) { border-right: 0; }
  .quick-submit { min-height: 58px; grid-column: 1 / -1; }
  .confidence-strip { grid-template-columns: 1fr 1fr; width: calc(100% - 28px); }
  .confidence-strip p { min-height: 66px; border-bottom: 1px solid #dce5ef; }
  .confidence-strip p:nth-child(2) { border-right: 0; }
  .confidence-strip p:nth-child(3) { padding-left: 0; border-bottom: 0; }
  .confidence-strip p:nth-child(4) { border-bottom: 0; }
  .how-it-works, .plans { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps article, .steps article:not(:first-child) { padding: 26px 0; border-right: 0; border-bottom: 1px solid #dbe4ed; }
  .steps article:last-child { border-bottom: 0; }
  .product-heading { align-items: flex-start; flex-direction: column; }
  .layout { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .filters { display: none; }
  .hero-band { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan { min-height: 410px; }
  .closing-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { flex-wrap: wrap; padding-block: 26px; gap: 12px; }
  .footer-inner p { width: 100%; margin: 0; }
}

@media (max-width: 520px) {
  .hero { min-height: 790px; padding-inline: 18px; }
  .hero-kicker { max-width: 300px; line-height: 1.35; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .hero-button { width: 100%; }
  .text-link { align-self: center; }
  .hero-trust { gap: 10px; flex-direction: column; }
  .quick-radar { grid-template-columns: 1fr; }
  .quick-radar label { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .quick-radar label:nth-of-type(2) { display: none; }
  .quick-submit { grid-column: auto; }
  .confidence-strip { grid-template-columns: 1fr; }
  .confidence-strip p, .confidence-strip p:first-child, .confidence-strip p:nth-child(3), .confidence-strip p:nth-child(4) { padding: 14px 0; border-right: 0; border-bottom: 1px solid #dce5ef; }
  .confidence-strip p:last-child { border-bottom: 0; }
  .hero h1 { font-size: 2.55rem; }
  .section-intro h2, .product-heading h2, .closing-inner h2 { font-size: 2.15rem; }
  .hero-band h2 { font-size: 1.55rem; }
  .product-actions { align-items: flex-start; flex-direction: column; }
  .status-strip { grid-template-columns: repeat(3, 1fr); min-width: 0; }
  .status-strip span { padding: 8px; font-size: .78rem; }
  .tabs { width: calc(100vw - 28px); }
  .settings-heading { gap: 16px; }
  .settings-grid, .choice-grid { grid-template-columns: 1fr; }
  .plan { padding: 28px 22px; }
  .founder-badge { position: static; align-self: flex-start; margin-bottom: 14px; }
  .footer-inner img { width: 220px; }
}
