:root {
  --bg: #f5f7fc;
  --bg-soft: linear-gradient(180deg, #fcfdfd 0%, #eef4ff 52%, #eaf2ff 100%);
  --ink: #14213d;
  --muted: #65708a;
  --primary: #05164d;
  --primary-soft: #dbe7ff;
  --secondary: #ffb400;
  --success: #0f9f72;
  --warning: #c58a00;
  --danger: #d14343;
  --white: rgba(255, 255, 255, 0.92);
  --white-strong: rgba(255, 255, 255, 0.98);
  --border: rgba(5, 22, 77, 0.06);
  --shadow: 0 26px 60px rgba(5, 22, 77, 0.12);
  --shadow-soft: 0 16px 36px rgba(5, 22, 77, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 180, 0, 0.12), transparent 24%),
    var(--bg-soft);
  color: var(--ink);
  font-family: var(--font);
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(5, 22, 77, 0.97), rgba(29, 78, 216, 0.92) 65%, rgba(255, 180, 0, 0.8) 140%);
  box-shadow: var(--shadow);
  color: #ffffff;
}

.hero h1,
.hero h2,
.card h2,
.card h3 {
  margin: 0;
}

.hero p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.hero-art-stack {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  width: min(196px, 100%);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.16));
}

.hero-note {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.trust-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.trust-item strong {
  font-size: 0.95rem;
}

.trust-item span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.76);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-cta-primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

.hero-cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.promo-card {
  width: min(100%, 360px);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.promo-card h2 {
  margin-top: 6px;
  font-size: 1.18rem;
}

.promo-card p {
  margin-top: 8px;
  font-size: 0.94rem;
}

.muted-light {
  color: rgba(255, 255, 255, 0.72);
}

.promo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.promo-pills span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.88rem;
}

.store-badge-row {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.store-badge-link {
  display: inline-flex;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.store-badge-link:hover,
.store-badge-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.store-badge-image {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.muted {
  color: var(--muted);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.tab-button {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tab-button:hover,
.tab-button:focus-visible {
  background: rgba(5, 22, 77, 0.08);
  color: var(--primary);
  outline: none;
}

.tab-button.is-active {
  background: var(--primary);
  color: #ffffff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.panel-grid {
  display: grid;
  gap: 20px;
}

.panel-grid-two {
  grid-template-columns: minmax(290px, 0.9fr) minmax(340px, 1.1fr);
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.result-card {
  background: var(--white-strong);
}

.primary-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 255, 0.92));
}

.warning-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 225, 0.95));
}

.accent-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(230, 247, 245, 0.92));
}

.success-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 248, 243, 0.94));
}

.result-value {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.result-value span {
  font-size: 1rem;
  letter-spacing: 0;
}

.result-subline,
.support-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.segmented-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(5, 22, 77, 0.08);
}

.segmented-toggle__button {
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.segmented-toggle__button.is-active {
  background: var(--primary);
  color: #ffffff;
}

.field-list,
.selection-group,
.option-group-list {
  display: grid;
  gap: 14px;
}

.field-card,
.option-group-card,
.option-button {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.field-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.82);
}

.field-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.field-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-input-wrap input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
}

.field-input-wrap input:focus {
  outline: none;
}

.field-unit {
  color: var(--muted);
  font-weight: 600;
}

.selection-card {
  background: rgba(255, 255, 255, 0.86);
}

.option-group-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.option-group-card.is-active-group {
  background: rgba(244, 248, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.08);
}

.option-group-head {
  margin-bottom: 12px;
}

.option-group-head h3 {
  margin-top: 6px;
  font-size: 1.1rem;
}

.option-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.option-button.is-active {
  background: linear-gradient(135deg, rgba(5, 22, 77, 0.96), rgba(29, 78, 216, 0.92));
  color: #ffffff;
}

.option-button.is-active .option-copy span,
.option-button.is-active .option-points {
  color: rgba(255, 255, 255, 0.82);
}

.option-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 180, 0, 0.16);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
}

.option-button.is-active .option-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.option-copy {
  display: grid;
  gap: 4px;
}

.option-copy strong {
  font-size: 1rem;
}

.option-copy span,
.option-points {
  color: var(--muted);
}

.option-points {
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero,
  .panel-grid-two {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .promo-card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 16px;
  }

  .hero,
  .card {
    padding: 20px;
  }

  .hero {
    gap: 16px;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta {
    width: 100%;
  }

  .section-head {
    flex-direction: column;
  }

  .tab-bar {
    border-radius: 24px;
  }

  .tab-button {
    flex: 1 1 calc(50% - 10px);
  }

  .option-button {
    grid-template-columns: auto 1fr;
  }

  .option-points {
    grid-column: 2;
  }
}