:root {
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: #eef6ff;
  --green: #16843b;
  --surface: #ffffff;
  --canvas: #f5f5f7;
  --line: rgba(0, 0, 0, .1);
  --soft-line: rgba(0, 0, 0, .06);
  --shadow: 0 18px 50px rgba(0, 0, 0, .08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--canvas); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  width: 100%; height: 52px; padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250, 250, 252, .82); border-bottom: 1px solid var(--soft-line);
  backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; font-weight: 650; letter-spacing: .12em; text-decoration: none; }
.brand-mark { width: 21px; height: 21px; display: flex; align-items: flex-end; gap: 2px; }
.brand-mark i { width: 5px; border-radius: 4px; background: currentColor; }
.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 14px; }
.header-cta { color: var(--blue); font-size: 13px; font-weight: 500; text-decoration: none; }

.hero { width: min(980px, calc(100% - 40px)); min-height: 620px; margin: auto; padding: 128px 0 70px; text-align: center; }
.hero::after { display: none; }
.eyebrow { margin-bottom: 28px; color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.eyebrow span { display: none; }
.hero h1 { margin: 0; font-size: clamp(58px, 7vw, 94px); font-weight: 700; letter-spacing: -.065em; line-height: .96; }
.hero h1 em { display: block; margin-top: 8px; font-family: inherit; font-style: normal; font-weight: 700; color: var(--blue); }
.hero-copy { width: min(650px, 100%); margin: 35px auto 0; color: var(--secondary); font-size: 21px; line-height: 1.45; letter-spacing: -.015em; }
.hero-meta { margin: 62px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--secondary); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.hero-meta span { padding: 8px 13px; background: rgba(255,255,255,.72); border: 1px solid var(--soft-line); border-radius: 99px; }

.builder { padding: 100px max(24px, calc((100vw - 1180px) / 2)) 120px; background: var(--surface); }
.builder-intro { margin-bottom: 58px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-index { margin: 0 0 10px; color: var(--blue); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.builder-intro h2 { margin: 0; font-size: clamp(42px, 5vw, 64px); font-weight: 650; letter-spacing: -.055em; line-height: 1; }

.period-switch { position: relative; isolation: isolate; width: 390px; padding: 3px; display: grid; grid-template-columns: repeat(3, 1fr); background: #e8e8ed; border-radius: 13px; }
.switch-pill { position: absolute; z-index: -1; top: 3px; left: 3px; width: calc((100% - 6px) / 3); height: calc(100% - 6px); background: var(--surface); border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: transform .3s cubic-bezier(.25,.1,.25,1); }
.period-switch.six_month .switch-pill { transform: translateX(100%); }
.period-switch.annual .switch-pill { transform: translateX(200%); }
.period-switch button { min-height: 48px; padding: 7px 8px; border: 0; background: transparent; color: var(--secondary); border-radius: 10px; cursor: pointer; font-size: 11px; font-weight: 600; }
.period-switch button.active { color: var(--text); }
.period-switch button small { display: block; margin-top: 2px; color: var(--green); font-size: 10px; font-weight: 650; text-transform: none; }

.config-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 64px; align-items: start; }
.options-panel { min-width: 0; }
.step-heading { margin: 46px 0 18px; display: flex; align-items: center; gap: 12px; }
.step-heading:first-child { margin-top: 0; }
.step-number { flex: 0 0 28px; height: 28px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 10px; font-weight: 700; }
.step-heading h3 { margin: 0 0 3px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.step-heading p { margin: 0; color: var(--secondary); font-size: 13px; }
.second-step, .third-step { margin-top: 46px; }

.channel-options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.channel-card { position: relative; min-height: 148px; padding: 20px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; align-items: start; gap: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.channel-card:hover { transform: translateY(-2px); border-color: rgba(0,113,227,.45); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.channel-card.selected { padding: 19px; background: var(--blue-soft); border: 2px solid var(--blue); }
.channel-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot { grid-row: 1; width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid #a1a1a6; border-radius: 50%; }
.radio-dot::after { content: ""; width: 10px; height: 10px; background: var(--blue); border-radius: 50%; transform: scale(0); transition: transform .2s; }
.channel-card.selected .radio-dot { border-color: var(--blue); }
.channel-card.selected .radio-dot::after { transform: scale(1); }
.channel-copy { min-width: 0; display: grid; gap: 4px; }
.channel-copy strong { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.channel-copy small { color: var(--secondary); font-size: 12px; line-height: 1.35; }
.channel-copy .bundle-saving { color: var(--green); font-size: 10px; font-weight: 600; }
.channel-price { grid-column: 2; align-self: end; min-width: 0; display: grid; justify-items: start; gap: 2px; padding-top: 13px; white-space: normal; }
.channel-price strong { font-size: 15px; font-weight: 650; }
.channel-price small { color: var(--green); font-size: 10px; font-weight: 600; }
.best-fit { position: absolute; top: 12px; right: 12px; max-width: 120px; padding: 4px 7px; color: var(--blue); background: rgba(0,113,227,.08); border-radius: 99px; font-size: 8px; font-weight: 700; letter-spacing: .02em; }
.bundle-card .channel-copy { padding-right: 78px; }

.addon-options { display: grid; gap: 8px; }
.upgrade-card { position: relative; min-height: 76px; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; background: var(--canvas); border: 1px solid transparent; border-radius: 16px; cursor: pointer; transition: background .2s, border-color .2s; }
.upgrade-card:hover { background: #eeeeF2; }
.upgrade-card:has(input:checked) { background: var(--blue-soft); border-color: rgba(0,113,227,.22); }
.upgrade-card input { position: absolute; opacity: 0; }
.custom-check { grid-column: 2; grid-row: 1; width: 42px; height: 24px; padding: 2px; border: 0; border-radius: 99px; color: transparent; background: #d1d1d6; font-size: 0; transition: background .2s; }
.custom-check::after { content: ""; display: block; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.upgrade-card input:checked + .custom-check { background: #34c759; }
.upgrade-card input:checked + .custom-check::after { transform: translateX(18px); }
.upgrade-copy { grid-column: 1; grid-row: 1; display: grid; gap: 3px; }
.upgrade-copy strong { font-size: 14px; font-weight: 600; }
.upgrade-copy small { color: var(--secondary); font-size: 12px; }
.upgrade-price { grid-column: 1; grid-row: 2; display: block; margin-top: -8px; }
.upgrade-price strong { color: var(--secondary); font-size: 12px; font-weight: 500; }
.upgrade-price small { display: none; }

.summary-card { position: sticky; top: 76px; padding: 30px; color: var(--text); background: rgba(255,255,255,.92); border: 1px solid var(--soft-line); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(20px); overflow: hidden; }
.summary-card::after { display: none; }
.summary-card > * { position: relative; z-index: 1; }
.summary-topline { display: flex; justify-content: space-between; align-items: center; color: var(--tertiary); font-size: 9px; font-weight: 650; letter-spacing: .12em; }
.summary-topline p { margin: 0; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.live-indicator i { width: 6px; height: 6px; background: #34c759; border-radius: 50%; }
.summary-card > h3 { margin: 34px 0 5px; font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.summary-subtitle { margin: 0; color: var(--secondary); font-size: 13px; }
.total-wrap { margin-top: 24px; display: flex; align-items: baseline; letter-spacing: -.045em; }
.currency-symbol { margin-right: 4px; color: var(--text); font-size: 24px; font-weight: 500; }
.total-wrap strong { font-size: clamp(48px, 4.5vw, 66px); font-weight: 650; line-height: 1; }
.total-suffix { margin-left: 6px; color: var(--secondary); font-size: 12px; letter-spacing: 0; }
.term-saving { margin: 24px 0; padding: 16px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 14px; color: #fff; background: linear-gradient(135deg, #147ce5, #0071e3); border-radius: 16px; }
.term-saving[hidden] { display: none; }
.term-saving > span { grid-row: 1 / span 2; align-self: center; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.term-saving strong { font-size: 22px; font-weight: 650; }
.term-saving small { font-size: 9px; font-weight: 600; opacity: .8; }
.term-saving p { grid-column: 2; margin: 0; font-size: 9px; opacity: .72; }
.term-saving.saving-preview { grid-template-columns: auto 1fr 1fr; gap: 8px 14px; }
.term-saving.saving-preview > span { grid-row: 1 / span 2; }
.term-saving.saving-preview > div { display: grid; gap: 2px; }
.term-saving.saving-preview > div small { font-size: 8px; font-weight: 600; opacity: .8; }
.term-saving.saving-preview > div strong { font-size: 20px; font-weight: 650; }
.term-saving.saving-preview p { grid-column: 2 / -1; }
.summary-lines { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.summary-lines > div, .dynamic-lines > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; color: var(--secondary); font-size: 11px; }
.summary-lines .dynamic-lines { display: contents; }
.summary-lines span { color: var(--secondary); }
.summary-lines strong { color: var(--text); text-align: right; }
.summary-lines small { margin-left: 4px; padding: 2px 5px; color: var(--green); background: #eaf7ed; border: 0; border-radius: 5px; font-size: 7px; font-weight: 700; text-transform: uppercase; }
.discount-line { padding-top: 12px; border-top: 1px dashed var(--line); }
.discount-line[hidden] { display: none; }
.summary-lines .discount-line span, .summary-lines .discount-line strong { color: var(--green); font-weight: 650; }
.included-note { display: flex; gap: 10px; padding: 20px 0; color: var(--secondary); }
.included-note > span { color: var(--blue); }
.included-note p { margin: 0; font-size: 11px; line-height: 1.45; }
.included-note strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 12px; }
.primary-cta { width: 100%; min-height: 50px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: var(--blue); border: 0; border-radius: 13px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.primary-cta:hover { background: var(--blue-hover); transform: translateY(-1px); }
.fine-print { margin: 12px 0 0; color: var(--tertiary); text-align: center; font-size: 9px; }

.clarity-strip { display: none; }
footer { padding: 44px max(24px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--secondary); background: var(--canvas); border-top: 1px solid var(--soft-line); }
footer p { font-size: 11px; }
.footer-brand { color: var(--text); }

.lead-dialog { width: min(920px, calc(100% - 32px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; color: var(--text); background: var(--surface); border: 0; border-radius: 28px; box-shadow: 0 30px 100px rgba(0,0,0,.28); overflow: hidden; }
.lead-dialog::backdrop { background: rgba(0,0,0,.38); backdrop-filter: blur(12px); }
.dialog-layout { min-height: 630px; display: grid; grid-template-columns: .84fr 1.16fr; }
.dialog-summary { position: relative; padding: 50px 38px; background: var(--canvas); border-right: 1px solid var(--soft-line); }
.dialog-summary h2 { margin: 70px 0 12px; font-size: 38px; font-weight: 650; letter-spacing: -.04em; line-height: 1.05; }
.dialog-summary > p:not(.section-index) { color: var(--secondary); font-size: 13px; line-height: 1.5; }
.modal-price { margin-top: 40px; display: grid; }
.modal-price strong { font-size: 34px; font-weight: 650; letter-spacing: -.04em; }
.modal-price span { color: var(--secondary); font-size: 11px; }
.dialog-summary ul { margin: 30px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 12px; font-size: 11px; }
.dialog-summary li { display: flex; justify-content: space-between; gap: 12px; }
.dialog-summary li strong { text-align: right; }
.dialog-summary .modal-discount { padding-top: 12px; color: var(--green); border-top: 1px dashed var(--line); }
.dialog-form-wrap { position: relative; padding: 50px; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; color: var(--secondary); background: #e8e8ed; border: 0; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.mobile-close { display: none; }
.form-heading h2, .success-state h2 { margin: 0 0 32px; font-size: 38px; font-weight: 650; letter-spacing: -.04em; }
#lead-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#lead-form label:not(.consent) { display: grid; gap: 7px; color: var(--secondary); font-size: 10px; font-weight: 600; }
#lead-form label > span { color: var(--tertiary); font-weight: 400; }
#lead-form input:not([type="checkbox"]) { width: 100%; padding: 12px 13px; color: var(--text); background: var(--canvas); border: 1px solid transparent; border-radius: 10px; outline: none; font-size: 14px; }
#lead-form input:focus { background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.consent { display: flex; align-items: flex-start; gap: 8px; color: var(--secondary); font-size: 11px; }
.consent input { accent-color: var(--blue); }
.honeypot { position: absolute !important; left: -10000px; }
.form-submit { margin-top: 4px; }
.form-submit[disabled] { opacity: .5; cursor: wait; }
.form-error { min-height: 14px; margin: -4px 0; color: #d70015; font-size: 11px; }
.success-state { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.success-state[hidden] { display: none; }
.success-icon { width: 58px; height: 58px; margin-bottom: 28px; display: grid; place-items: center; color: #fff; background: #34c759; border-radius: 50%; font-size: 24px; }
.success-state h2 { margin-bottom: 12px; font-size: 48px; }
.success-state > p:not(.section-index) { color: var(--secondary); line-height: 1.5; }
.text-button { align-self: flex-start; margin-top: 22px; padding: 0; color: var(--blue); background: transparent; border: 0; cursor: pointer; }

@media (max-width: 980px) {
  .config-grid { grid-template-columns: 1fr; }
  .summary-card { position: relative; top: 0; }
  .dialog-layout { grid-template-columns: .85fr 1.15fr; }
}

@media (max-width: 820px) {
  .builder-intro { align-items: stretch; flex-direction: column; }
  .period-switch { width: 100%; }
}

@media (max-width: 700px) {
  .site-header { padding-inline: 18px; }
  .header-cta { display: none; }
  .hero { min-height: auto; padding: 92px 0 58px; }
  .hero h1 { font-size: clamp(48px, 14vw, 68px); }
  .hero-copy { font-size: 18px; }
  .hero-meta { margin-top: 42px; }
  .builder { padding: 68px 16px 80px; }
  .builder-intro { align-items: stretch; flex-direction: column; }
  .builder-intro h2 { font-size: 44px; }
  .period-switch { width: 100%; }
  .channel-options { grid-template-columns: 1fr; }
  .channel-card { min-height: 138px; }
  .config-grid { gap: 38px; }
  .summary-card { padding: 24px; border-radius: 22px; }
  .term-saving.saving-preview { grid-template-columns: 1fr 1fr; }
  .term-saving.saving-preview > span { grid-column: 1 / -1; grid-row: auto; }
  .term-saving.saving-preview p { grid-column: 1 / -1; }
  footer { align-items: flex-start; flex-direction: column; }
  .lead-dialog { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .dialog-layout { min-height: 100%; grid-template-columns: 1fr; }
  .dialog-summary { padding: 32px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-summary h2 { margin-top: 34px; font-size: 34px; }
  .dialog-summary ul { display: none; }
  .modal-price { margin-top: 22px; }
  .dialog-form-wrap { padding: 38px 24px; }
  .desktop-close { display: none; }
  .mobile-close { display: block; }
  .field-row { grid-template-columns: 1fr; }
  #lead-form input:not([type="checkbox"]) { min-height: 46px; font-size: 16px; }
}

@media (hover: none) {
  .channel-card:hover, .primary-cta:hover { transform: none; }
}

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