:root {
  --navy: #102a56;
  --navy-2: #173f7a;
  --red: #d71920;
  --teal: #19a7a8;
  --ink: #152033;
  --muted: #647085;
  --line: #e6ebf2;
  --bg: #f5f7fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 42, 86, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #dfe5ee;
  color: var(--ink);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(100%, 440px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  padding-bottom: 98px;
}

.hero {
  min-height: 590px;
  position: relative;
  color: var(--white);
  isolation: isolate;
}

.hero img {
  width: 100%;
  height: 590px;
  object-fit: cover;
  display: block;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 24, 52, 0.74) 0%, rgba(16, 42, 86, 0.34) 42%, rgba(16, 42, 86, 0.88) 100%),
    linear-gradient(90deg, rgba(215, 25, 32, 0.18), transparent 42%);
}

.topbar {
  position: absolute;
  z-index: 2;
  inset: 18px 18px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
}

.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  background: var(--red);
  border-radius: 7px;
  letter-spacing: 0;
}

.ghost-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 34px;
}

.eyebrow,
.section-title p {
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy .eyebrow {
  color: #ffffff;
  opacity: 0.9;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  margin: 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.55;
}

.quick-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: -18px 16px 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-quote div {
  padding: 16px;
  background: var(--white);
}

.quick-quote span,
.summary-box span,
.sticky-cta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.quick-quote strong,
.sticky-cta strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 15px;
}

.section {
  padding: 28px 16px 0;
}

.section-title h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0;
}

.plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plan-card {
  min-height: 170px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.plan-card.active {
  border-color: var(--red);
  box-shadow: 0 14px 30px rgba(215, 25, 32, 0.12);
  transform: translateY(-1px);
}

.plan-card strong,
.plan-card small,
.plan-card .price {
  display: block;
}

.plan-card strong {
  margin-top: 14px;
  color: var(--navy);
  font-size: 19px;
}

.plan-card small {
  min-height: 42px;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.price {
  margin-top: 10px;
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fce8e9;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.badge-dark {
  background: #e9f4f4;
  color: #087778;
}

.benefit-panel,
.fit-grid div,
.rule,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.benefit-panel {
  margin-top: 12px;
  padding: 16px;
}

.benefit-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.benefit-head span,
label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.benefit-head strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.25;
}

ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
  color: #344055;
  font-size: 14px;
  line-height: 1.5;
}

li:last-child {
  margin-bottom: 0;
}

.compact {
  padding-top: 24px;
}

.fit-grid {
  display: grid;
  gap: 10px;
}

.fit-grid div {
  padding: 16px;
}

.fit-grid strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}

.fit-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.rules {
  display: grid;
  gap: 8px;
}

.rule {
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  cursor: pointer;
}

.rule span {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.rule small {
  display: none;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.rule.open small {
  display: block;
}

.form-section {
  padding-bottom: 8px;
}

.lead-form {
  padding: 16px;
}

label + label {
  margin-top: 13px;
}

input,
select {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fbfcff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(23, 63, 122, 0.1);
}

.summary-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f2f6fc;
}

.summary-box strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 20px;
}

.summary-box small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.primary-btn,
.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  margin-top: 14px;
}

.fineprint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  width: min(100%, 440px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(16, 42, 86, 0.1);
  backdrop-filter: blur(14px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 20;
  width: min(calc(100% - 32px), 408px);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  line-height: 1.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 360px) {
  h1 {
    font-size: 30px;
  }

  .plan-toggle {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: 138px;
  }
}
