:root {
  --navy: #081a33;
  --navy-2: #102743;
  --teal: #13aaa4;
  --teal-dark: #0b8581;
  --cyan: #36c6dc;
  --purple: #7657e8;
  --pink: #df3aa9;
  --ink: #14243a;
  --muted: #66758a;
  --line: #dfe6ef;
  --surface: #ffffff;
  --bg: #f2f6f7;
  --soft: #eef9f9;
  --warning: #fff7e8;
  --warning-line: #efb858;
  --shadow: 0 18px 50px rgba(8, 26, 51, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button, input, textarea { font: inherit; }
button, label, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.site-header { background: #fff; border-bottom: 1px solid #dce6ea; box-shadow: 0 5px 22px rgba(8,26,51,.04); }
.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  width: 162px;
  height: 64px;
  display: flex;
  align-items: center;
  overflow: visible;
}
.brand img {
  width: 160px;
  height: 64px;
  object-fit: contain;
  filter: brightness(1.06);
}
.header-help { display: flex; align-items: center; gap: 24px; font-size: .88rem; }
.header-help a { color: var(--navy); text-decoration: none; font-weight: 700; }
.header-help a:hover { color: #7ee5df; }
.secure-label { color: #68788b; display: flex; align-items: center; gap: 7px; }
.secure-label svg { width: 20px; fill: #67d9d2; }

main { padding-bottom: 56px; }
.progress-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 28px;
}
.progress-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow, .section-kicker {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.progress-heading h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.1; }
.prototype-pill {
  padding: 7px 11px;
  border: 1px solid #cbd5e2;
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: .66rem;
  font-weight: 700;
}

.desktop-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 30px; }
.step-marker { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: center; padding: 9px 11px; border: 1px solid #dfe7eb; border-radius: 11px; background: #fff; text-align: left; color: #8a96a7; }
.step-marker::before {
  display: none;
}
.step-marker:first-child::before { left: 50%; }
.step-marker:last-child::before { right: 50%; }
.step-marker .number {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #edf3f5;
  font-size: .78rem;
  font-weight: 800;
}
.step-marker .label { display: block; font-size: .75rem; font-weight: 700; line-height: 1.15; }
.step-marker.done::before, .step-marker.active::before { background: #8fded9; }
.step-marker.done .number { background: var(--teal); border-color: var(--teal); color: white; }
.step-marker.active .number {
  background: var(--teal);
  color: white;
  box-shadow: none;
}
.step-marker.active { border-color: var(--teal); background: #effbfa; box-shadow: 0 6px 18px rgba(19,170,164,.08); }
.step-marker.active .label { color: var(--ink); }
.mobile-progress { display: none; }

.checkout-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 26px;
}
.form-card, .summary-card {
  background: var(--surface);
  border: 1px solid rgba(202, 214, 227, .8);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.form-card { padding: clamp(24px, 4vw, 42px); min-height: 600px; }
.step-panel { display: none; animation: stepIn .28s ease both; }
.step-panel.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.step-panel h2, .success-panel h2 { margin: 0; font-size: clamp(1.55rem, 2.7vw, 2.05rem); line-height: 1.17; }
.intro { margin: 9px 0 26px; color: var(--muted); max-width: 670px; }

.term-switch {
  width: fit-content;
  display: flex;
  gap: 5px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fc;
}
.term-switch button {
  border: 0;
  background: transparent;
  padding: 10px 15px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 750;
}
.term-switch button span {
  margin-left: 5px;
  color: var(--teal-dark);
  font-size: .67rem;
  text-transform: uppercase;
}
.term-switch button.selected { background: white; color: var(--ink); box-shadow: 0 4px 13px rgba(8, 26, 51, .08); }
.term-switch { background:#dff5f4;border-color:#93dcd8;box-shadow:0 10px 24px rgba(19,170,164,.1); }
.term-switch button { color:#465a70; }
.term-switch button.selected { background:var(--teal);color:#fff;box-shadow:0 7px 16px rgba(19,170,164,.25); }
.term-switch button.selected span { display:inline-block;background:#fff;color:var(--teal-dark);border-radius:999px;padding:3px 6px;margin-left:7px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.plan-card {
  position: relative;
  min-height: 250px;
  padding: 19px 17px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: white;
  text-align: left;
  transition: .18s ease;
}
.plan-card:hover { border-color: #9fcfcd; transform: translateY(-2px); }
.plan-card.selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 170, 164, .1); background: #fbffff; }
.plan-card.selected::after {
  content: "✓";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: .75rem;
  font-weight: 900;
}
.plan-badge {
  display: inline-block;
  margin-bottom: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf0ff;
  color: #6048c8;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.plan-card h3 { margin: 0; font-size: 1.08rem; }
.plan-card .plan-price { display: block; margin: 10px 0 2px; font-size: 1.48rem; color: var(--navy); }
.plan-card .plan-period { color: var(--muted); font-size: .76rem; }
.legal-fee{display:block;margin-top:9px;padding:7px 9px;border-radius:8px;background:#fff4df;color:#71552a;font-size:.7rem;font-weight:700}.legal-fee strong{color:#9b6300}
.plan-card ul { margin: 15px 0 0; padding: 0; list-style: none; color: #4d5e73; font-size: .78rem; }
.plan-card li { position: relative; padding-left: 17px; margin: 6px 0; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 900; }
.annual-benefit-note{display:block;margin-top:12px;padding:9px 10px;border-radius:9px;font-size:.69rem;line-height:1.35;font-weight:800}.annual-benefit-note.restricted{background:#fff1e8;color:#9a431d;border:1px solid #ffd3be}.annual-benefit-note.included{background:#e8f8f6;color:#087c78;border:1px solid #bfe9e5}
.plan-card.unavailable { opacity: .55; }
.reassurance-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 650;
}

fieldset { margin: 0; padding: 0; border: 0; }
fieldset legend, label > span:first-child { color: #34465c; font-size: .84rem; font-weight: 750; }
.choice-group legend, .signature-options legend, .payment-options legend, .compact-question legend { margin-bottom: 10px; }
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px; }
.choice-group legend { grid-column: 1 / -1; }
.choice-card, .signature-card, .payment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: white;
  cursor: pointer;
  transition: .16s ease;
}
.choice-card:hover, .signature-card:hover, .payment-card:hover { border-color: #9fcfcd; }
.choice-card input, .signature-card input, .payment-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-dot {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border: 2px solid #bcc7d5;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px white;
}
.selected-choice { border-color: var(--teal) !important; background: var(--soft); }
.selected-choice .choice-dot { border-color: var(--teal); background: var(--teal); }
.choice-card span:last-child, .signature-card span, .payment-card span:last-child { display: grid; gap: 2px; }
.choice-card strong, .signature-card strong, .payment-card strong { font-size: .9rem; }
.choice-card small, .signature-card small, .payment-card small { color: var(--muted); font-size: .76rem; }

.field-grid { display: grid; gap: 17px 14px; }
.two-cols { grid-template-columns: 1fr 1fr; }
.field-grid label, .full-field { display: grid; gap: 7px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #d8e0ea;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: .16s ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 170, 164, .1); }
input::placeholder, textarea::placeholder { color: #9aa5b3; }
.full-field { margin-top: 17px; }
.full-field small { color: var(--muted); font-size: .73rem; }
.compact-question { margin-top: 22px; padding: 15px 16px; border-radius: 12px; background: #f7f9fc; }
.compact-question label { margin-right: 22px; font-size: .88rem; }
.compact-question input { accent-color: var(--teal); margin-right: 5px; }
.review-warning { margin-top: 12px; padding: 13px 15px; border-left: 3px solid var(--warning-line); background: var(--warning); border-radius: 8px; }
.review-warning strong, .review-warning span { display: block; }
.review-warning span { margin-top: 2px; color: #765f35; font-size: .8rem; }

.optional-section { margin-top: 25px; border: 1px solid var(--line); border-radius: 12px; }
.optional-section { border-color:#92dcd8;background:#effbfa;box-shadow:0 8px 20px rgba(19,170,164,.08); }
.optional-section summary { display: flex; justify-content: space-between; padding: 15px; cursor: pointer; font-weight: 750; }
.optional-section summary small { color: var(--muted); font-weight: 500; }
.optional-section summary small { background:var(--teal);color:#fff;padding:4px 9px;border-radius:999px;font-size:.7rem;font-weight:800; }
.optional-fields { padding: 0 15px 15px; }

.review-block { margin-bottom: 16px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; }
.review-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.review-title h3 { margin: 0; font-size: 1rem; }
.review-title button { border: 0; background: transparent; color: var(--teal-dark); font-size: .8rem; font-weight: 800; }
.review-block dl { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 25px; margin: 17px 0 0; }
.review-block dl div { display: grid; gap: 2px; }
.review-block dt { color: var(--muted); font-size: .73rem; }
.review-block dd { margin: 0; font-size: .88rem; font-weight: 700; }
.review-block input[type="date"] { min-height: 36px; padding: 5px 9px; }
.signature-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 22px; }
.signature-options legend { grid-column: 1 / -1; }
.signature-card { justify-content: space-between; }
.signature-card b { margin-left: auto; font-size: .88rem; }
.consent-line { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--muted); font-size: .76rem; }
.consent-line input { margin-top: 3px; accent-color: var(--teal); }
.legalization-box { display:flex;align-items:center;gap:12px;margin-top:22px;padding:16px;border:1.5px solid var(--teal);border-radius:13px;background:var(--soft); }
.legalization-box > span:nth-child(2) { display:grid;gap:2px; }
.legalization-box strong { font-size:.9rem; }
.legalization-box small { color:var(--muted);font-size:.76rem; }
.legalization-box > b { margin-left:auto; }
.legalization-icon { display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--teal);color:#fff;font-weight:900; }
.field-error { border-color:#d84b4b!important;box-shadow:0 0 0 3px rgba(216,75,75,.09)!important; }
.error-copy { color:#bd3232!important;font-size:.72rem!important; }

.payment-options { display: grid; gap: 11px; }
.payment-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid !important;
  place-items: center;
  border-radius: 9px;
  background: white;
  color: var(--teal-dark);
  border: 1px solid #dce4ed;
  font-size: 1.05rem;
}
.payment-note { display: flex; gap: 11px; margin-top: 20px; padding: 14px; border-radius: 11px; background: #eef4fb; color: #53667d; }
.payment-note svg { flex: 0 0 auto; width: 21px; fill: #557a9d; }
.payment-note p { margin: 0; font-size: .8rem; }
.coupon-box { display:grid; grid-template-columns:1fr minmax(260px, .8fr); gap:12px 20px; align-items:end; margin-top:18px; padding:17px; border:1px solid #dce5ed; border-radius:13px; background:#f8fafc; }
.coupon-box label { color:var(--ink); font-size:.86rem; font-weight:850; }
.coupon-box p { margin:3px 0 0; color:var(--muted); font-size:.73rem; }
.coupon-controls { display:grid; grid-template-columns:1fr auto; gap:8px; }
.coupon-controls input { min-height:44px; text-transform:uppercase; }
.coupon-controls button { min-height:44px; padding:0 17px; border:0; border-radius:9px; background:var(--navy); color:#fff; font-size:.78rem; font-weight:850; }
.coupon-controls button:hover { background:var(--teal-dark); }
.coupon-controls button:disabled { opacity:.6; cursor:wait; }
#couponMessage { grid-column:1 / -1; color:var(--teal-dark); font-size:.73rem; font-weight:750; }
#couponMessage.coupon-error { color:#bd3232; }
.transfer-details { margin-top:16px; padding:18px; border:1.5px solid #77d4cf; border-radius:13px; background:#effbfa; }
.transfer-title { margin:0 0 13px; color:var(--teal-dark); font-size:.88rem; font-weight:850; }
.transfer-details dl { display:grid; grid-template-columns:1fr 1fr; gap:12px 22px; margin:0; }
.transfer-details dl div { display:grid; gap:2px; }
.transfer-details dt { color:var(--muted); font-size:.7rem; }
.transfer-details dd { margin:0; color:var(--ink); font-size:.84rem; font-weight:750; overflow-wrap:anywhere; }
.transfer-details > p:last-child { margin:15px 0 0; color:#53667d; font-size:.76rem; }
.primary-button[disabled] { opacity:.65; cursor:wait; transform:none; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.back-button, .primary-button, .secondary-button {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 800;
}
.back-button { display: flex; align-items: center; gap: 5px; padding: 0 10px; border: 0; background: transparent; color: #5c6d81; }
.back-button svg, .primary-button svg { width: 19px; fill: currentColor; }
.back-button:disabled { opacity: .35; cursor: not-allowed; }
.primary-button {
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  background: var(--teal);
  color: white;
  box-shadow: 0 10px 22px rgba(19, 170, 164, .22);
}
.primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.secondary-button { padding: 0 20px; border: 1px solid var(--line); background: white; color: var(--ink); }

.summary-card {
  position: sticky;
  top: 22px;
  overflow: hidden;
  padding: 25px;
  background: var(--navy);
  color: white;
}
.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
}
.summary-top { display: flex; justify-content: space-between; color: #aebdce; font-size: .72rem; }
.summary-status { color: #72ded8; }
.summary-card h2 { margin: 17px 0 2px; font-size: 1.35rem; }
.summary-card > p { margin: 0; color: #b8c4d3; font-size: .78rem; }
.summary-price { margin-top: 21px; }
.summary-price strong { display: block; font-size: 2rem; line-height: 1; }
.summary-price span { color: #9fb0c4; font-size: .76rem; }
.summary-card ul { margin: 22px 0 0; padding: 0; list-style: none; color: #d5dde7; font-size: .77rem; }
.summary-card li { position: relative; margin: 9px 0; padding-left: 20px; }
.summary-card li::before { content: "✓"; position: absolute; left: 0; color: #63d9d2; font-weight: 900; }
.summary-card li.annual-only-unavailable{color:#ffc6a8;font-weight:750}.summary-card li.annual-only-unavailable::before{content:"!";display:grid;place-items:center;width:14px;height:14px;top:2px;border-radius:50%;background:#ff8a50;color:#071b3b;font-size:.6rem}
.summary-divider { height: 1px; margin: 22px 0 15px; background: rgba(255,255,255,.13); }
.price-breakdown { margin: 0; }
.price-breakdown div { display: flex; justify-content: space-between; margin: 8px 0; color: #b8c4d3; font-size: .76rem; }
.price-breakdown dd { margin: 0; color: white; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 17px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.14); }
.summary-total span { font-size: .83rem; }
.summary-total strong { color: #75e1db; font-size: 1.55rem; }
.summary-footnote { margin-top: 9px !important; text-align: right; font-size: .68rem !important; }

.success-panel { padding: 42px 20px; text-align: center; }
.success-panel p:not(.eyebrow) { max-width: 560px; margin: 10px auto 25px; color: var(--muted); }
.success-mark { width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--teal-dark); font-size: 2rem; font-weight: 900; }
.success-details { width: min(420px, 100%); margin: 0 auto 25px; padding: 15px; display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #dbe3ec;
  color: #798699;
  font-size: .72rem;
}
footer p { margin: 0; }

@media (max-width: 940px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: relative; top: auto; order: -1; }
  .summary-card ul { display: none; }
  .summary-card h2 { margin-top: 12px; }
  .summary-price { margin-top: 13px; }
  .summary-divider { margin-top: 15px; }
}

@media (max-width: 720px) {
  .header-inner, .progress-shell, .checkout-layout, footer { width: min(100% - 28px, 1180px); }
  .site-header { border-bottom-width: 2px; }
  .header-inner { min-height: 64px; }
  .brand { width: 126px; height: 54px; }
  .brand img { width: 124px; height: 52px; }
  .secure-label { display: none; }
  .header-help { font-size: .77rem; }
  .progress-shell { padding: 25px 0 18px; }
  .progress-heading { align-items: flex-start; }
  .prototype-pill { display: none; }
  .desktop-steps { display: none; }
  .mobile-progress { display: block; margin-top: 18px; }
  .mobile-progress-copy { display: flex; justify-content: space-between; gap: 15px; font-size: .76rem; }
  .mobile-progress-copy span { color: var(--muted); }
  .mobile-progress-track { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #dde5ee; }
  .mobile-progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--teal); transition: width .25s ease; }
  .checkout-layout { gap: 14px; }
  .form-card { padding: 23px 18px; min-height: 0; border-radius: 14px; }
  .summary-card { padding: 20px; border-radius: 14px; }
  .summary-card > p, .summary-status { display: none; }
  .summary-card h2 { font-size: 1.1rem; }
  .summary-price { display: flex; align-items: baseline; gap: 8px; }
  .summary-price strong { font-size: 1.55rem; }
  .price-breakdown { display: none; }
  .summary-divider { margin: 13px 0 0; }
  .summary-total { margin-top: 13px; padding-top: 13px; }
  .summary-footnote { display: none; }
  .term-switch { width: 100%; }
  .term-switch button { flex: 1; padding: 9px 5px; font-size: .76rem; }
  .term-switch button span { display: none; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: auto; }
  .choice-group, .two-cols, .signature-options { grid-template-columns: 1fr; }
  .review-block dl { grid-template-columns: 1fr; }
  .transfer-details dl { grid-template-columns:1fr; }
  .coupon-box { grid-template-columns:1fr; }
  .form-actions { position: sticky; bottom: 0; z-index: 5; margin: 28px -18px -23px; padding: 14px 18px; background: rgba(255,255,255,.96); box-shadow: 0 -10px 24px rgba(8,26,51,.06); }
  .primary-button { min-width: 0; flex: 1; }
  footer { display: grid; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
