:root {
  --primary: #3e7bfd;
  --primary-dark: #0d3f80;
  --primary-soft: #e8efff;
  --gold: #fdc03e;
  --gold-soft: #fff3d6;
  --green: #34a853;
  --green-soft: #eaf8ee;
  --coral: #ff6b57;
  --bg: #f4f8ff;
  --ink: #182033;
  --muted: #6c7486;
  --line: #dde3ef;
  --white: #fff;
  --shadow: 0 28px 90px rgba(24, 32, 51, 0.16);
  --soft-shadow: 0 18px 48px rgba(62, 123, 253, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(62,123,253,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(62,123,253,.04) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 124px;
  pointer-events: none;
  background: linear-gradient(180deg, #f4f8ff 0%, rgba(244, 248, 255, 0.98) 70%, rgba(244, 248, 255, 0) 100%);
  z-index: 10;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(62,123,253,.12), transparent 28%, rgba(253,192,62,.12) 58%, transparent 82%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
#app {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}
#app > .band:only-child {
  flex: 1;
  min-height: calc(100svh - 236px);
}
#app > .band:only-child:not(.legal) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 28px));
  min-height: 72px;
  margin: 14px auto 0;
  padding: 12px 14px 12px 16px;
  background: #ffffff;
  border: 1px solid rgba(221, 227, 239, 0.95);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(24,32,51,.10);
  backdrop-filter: none;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(62,123,253,.18)); }
.brand.small { font-size: 15px; }
.brand.small img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { padding: 8px 10px; border: 2px solid transparent; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 800; transition: .22s ease; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.82); border-color: var(--primary); color: var(--primary-dark); box-shadow: 0 8px 22px rgba(62,123,253,.14); transform: translateY(-1px); }
.menu { display: none; width: 42px; height: 42px; border: 0; background: transparent; }
.menu span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); }

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 22px; font-size: clamp(44px, 7vw, 88px); line-height: .96; letter-spacing: 0; }
h2 { margin-bottom: 14px; font-size: clamp(31px, 4.6vw, 58px); line-height: 1.03; letter-spacing: 0; }
h3 { margin-bottom: 9px; font-size: 21px; letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--primary); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--gold); }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
  min-height: calc(100svh - 92px);
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px) 44px;
}
.hero h1 { text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 900;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: white; background: linear-gradient(135deg, var(--primary), #6f99ff); box-shadow: 0 18px 42px rgba(62,123,253,.32); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 15%, rgba(255,255,255,.32) 35%, transparent 54%); transform: translateX(-120%); animation: shine 4s ease-in-out infinite; }
.btn.secondary { color: var(--ink); background: rgba(255,255,255,.88); border-color: var(--line); box-shadow: var(--soft-shadow); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin-top: 36px; }
.stat { padding: 16px; border: 1px solid rgba(221,227,239,.9); border-radius: 16px; background: rgba(255,255,255,.72); box-shadow: 0 12px 30px rgba(24,32,51,.06); backdrop-filter: blur(14px); }
.stat strong { display: block; font-size: 24px; font-weight: 950; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.phone { position: relative; padding: 12px; border-radius: 42px; background: #111827; box-shadow: var(--shadow); animation: floatPhone 6s ease-in-out infinite; }
.phone::before, .phone::after { content: ""; position: absolute; z-index: -1; border-radius: 24px; }
.phone::before { inset: 36px -24px auto auto; width: 180px; height: 180px; background: rgba(253,192,62,.22); filter: blur(34px); }
.phone::after { inset: auto auto 44px -26px; width: 170px; height: 170px; background: rgba(52,168,83,.2); filter: blur(34px); }
.phone img { display: block; width: 100%; border-radius: 31px; }

.band { padding: clamp(66px, 8vw, 106px) clamp(18px, 5vw, 72px); }
.white { background: rgba(255,255,255,.92); }
.section-head { max-width: 840px; }
.grid { display: grid; gap: 18px; margin-top: 32px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 26px;
  border: 1px solid rgba(221,227,239,.9);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 42px rgba(24,32,51,.07);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.card::after { content: ""; position: absolute; inset: auto 18px 0 18px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--gold), var(--green)); opacity: 0; transition: opacity .24s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(62,123,253,.35); box-shadow: 0 24px 60px rgba(24,32,51,.12); }
.card:hover::after { opacity: 1; }
.card p, .legal p, .legal li { color: var(--muted); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-weight: 950; box-shadow: inset 0 -10px 20px rgba(62,123,253,.08); }
.card:nth-child(2n) .icon { color: #9a6900; background: var(--gold-soft); }
.card:nth-child(3n) .icon { color: var(--green); background: var(--green-soft); }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr); gap: 38px; align-items: start; }
.product-panel { position: relative; overflow: hidden; color: white; padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: linear-gradient(135deg, #182033, #0d3f80 66%, #17376c); box-shadow: var(--shadow); }
.product-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(130deg, transparent, rgba(255,255,255,.1), transparent); transform: translateX(-100%); animation: panelSweep 7s ease-in-out infinite; }
.product-panel > * { position: relative; z-index: 1; }
.product-panel p { color: #dbe6ff; }
.checks { display: grid; gap: 12px; margin-top: 22px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); transition: transform .22s ease, background .22s ease; }
.check:hover { transform: translateX(4px); background: rgba(255,255,255,.12); }
.check b { color: white; min-width: 74px; }
.plans { align-items: stretch; }
.price { margin: 8px 0; font-size: 38px; font-weight: 950; }
.tag { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 950; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field span { color: var(--muted); font-size: 13px; font-weight: 900; }
input, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); outline: 0; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(62,123,253,.12); }
textarea { min-height: 132px; resize: vertical; }
.notice { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--primary-soft); color: var(--muted); }
.legal article { max-width: 920px; }
.legal h1 { font-size: clamp(34px, 5vw, 58px); }
.footer { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 32px clamp(18px, 5vw, 72px); border-top: 1px solid var(--line); background: rgba(255,255,255,.82); }
.footer p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.footlinks { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; font-weight: 900; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes floatPhone { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes shine { 0%, 45% { transform: translateX(-120%); } 70%, 100% { transform: translateX(120%); } }
@keyframes panelSweep { 0%, 55% { transform: translateX(-100%); } 80%, 100% { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 980px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--soft-shadow); }
  .nav.open { display: flex; }
  .hero, .split, .grid.two, .grid.three { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 46px; }
  #app > .band:only-child { min-height: calc(100svh - 220px); justify-content: flex-start; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
  .topbar { top: 8px; width: calc(100% - 16px); margin-top: 8px; border-radius: 18px; }
  h1 { font-size: 40px; }
  .actions, .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .phone { border-radius: 30px; }
  .band { padding: 46px 16px; }
  #app > .band:only-child { min-height: calc(100svh - 206px); }
}

.support-paths { align-items: stretch; }
.support-path { display: flex; flex-direction: column; }
.process-list { display: grid; gap: 10px; margin: 18px 0 0; padding-left: 21px; color: var(--muted); font-weight: 650; }
.process-list li::marker { color: var(--primary); font-weight: 950; }
.support-forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.support-form h3 { margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
select { width: 100%; min-height: 48px; padding: 12px 42px 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); outline: 0; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; transition: border-color .2s ease, box-shadow .2s ease; }
select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(62,123,253,.12); }
.form-note { margin: -2px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.support-form .btn { margin-top: 2px; width: 100%; }
@media (max-width: 980px) { .support-forms { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }

/* Refinements: split-benefits panel and support modal */
.brand { cursor: pointer; }
.split-card { padding: clamp(24px, 4vw, 40px); }
.split-card h2 { font-size: clamp(30px, 4vw, 56px); max-width: 820px; }
.dark-tag { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.split-benefits .check { align-items: center; gap: 16px; min-height: 64px; }
.split-benefits .check b { flex: 0 0 32px; width: 32px; height: 32px; min-width: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; line-height: 1; }
.split-benefits .check span { font-weight: 800; }
.support-path { gap: 10px; }
.support-path .support-cta { margin-top: auto; width: 100%; }
.support-forms { display: none; }
body.modal-open { overflow: hidden; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .52); backdrop-filter: blur(10px); }
.modal-panel { position: relative; z-index: 1; width: min(720px, 100%); max-height: min(88svh, 900px); overflow: auto; padding: clamp(22px, 4vw, 34px); border: 1px solid rgba(221,227,239,.95); border-radius: 22px; background: #fff; box-shadow: 0 30px 100px rgba(15,23,42,.32); }
.modal-close { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 24px; font-weight: 800; cursor: pointer; }
.modal-panel .support-form { display: grid; }
.modal-panel .support-form[hidden] { display: none; }
.modal-panel .btn { width: 100%; }
@media (max-width: 980px) {
  .split-feature .split { gap: 24px; }
  .split-card { border-radius: 20px; }
  .split-benefits .check { min-height: auto; padding: 14px; }
}
@media (max-width: 540px) {
  .split-card { padding: 22px; border-radius: 18px; }
  .split-card h2 { font-size: 30px; line-height: 1.08; }
  .split-benefits { gap: 10px; }
  .split-benefits .check { align-items: flex-start; gap: 12px; }
  .split-benefits .check b { flex-basis: 28px; width: 28px; height: 28px; min-width: 28px; font-size: 16px; }
  .split-benefits .check span { font-size: 15px; line-height: 1.42; }
  .modal { padding: 12px; align-items: end; }
  .modal-panel { width: 100%; max-height: 88svh; border-radius: 18px 18px 0 0; padding: 22px 16px 18px; }
}

/* Final mobile polish for split-bills and support actions */
.support-path p { flex: 1; }
.support-cta { min-height: 48px; }
@media (max-width: 720px) {
  .split-feature { padding-top: 38px; }
  .split-feature h1 { font-size: clamp(36px, 12vw, 48px); line-height: 1; }
  .split-feature .lead { font-size: 17px; }
  .split-card { margin-top: 4px; padding: 18px; border-radius: 18px; box-shadow: 0 18px 46px rgba(24,32,51,.18); }
  .split-card h2 { margin-bottom: 14px; font-size: clamp(25px, 8vw, 34px); line-height: 1.08; }
  .split-benefits .check { display: grid; grid-template-columns: 32px minmax(0, 1fr); padding: 12px; border-radius: 13px; }
  .split-benefits .check b { width: 30px; height: 30px; min-width: 30px; background: rgba(255,255,255,.95); color: var(--primary-dark); font-size: 16px; }
  .split-benefits .check span { font-size: 14px; line-height: 1.35; }
  .support-path { padding: 22px; }
  .support-path .icon { width: 42px; height: 42px; margin-bottom: 8px; }
  .process-list { margin-top: 8px; }
}
@media (max-width: 380px) {
  .split-feature h1 { font-size: 34px; }
  .split-card { padding: 16px; }
  .split-card h2 { font-size: 24px; }
  .split-benefits .check { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .split-benefits .check b { width: 26px; height: 26px; min-width: 26px; }
}

/* Support modal polish: keep it above the sticky header and scroll inside the panel */
.support-section.reveal,
.support-section.reveal.visible {
  transform: none;
}
body.modal-open .topbar {
  z-index: 15;
}
.modal {
  z-index: 9999;
  place-items: center;
  padding: clamp(18px, 4vh, 42px) 18px;
}
.modal-backdrop {
  background: rgba(15, 23, 42, .64);
  backdrop-filter: blur(14px) saturate(120%);
}
.modal-panel {
  display: grid;
  width: min(680px, calc(100vw - 36px));
  max-height: calc(100svh - 48px);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(221,227,239,.95);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 34px 110px rgba(15,23,42,.38);
}
.modal-panel::before {
  content: "Support request";
  display: block;
  padding: 18px 76px 16px 28px;
  border-bottom: 1px solid rgba(221,227,239,.9);
  background: linear-gradient(135deg, rgba(62,123,253,.11), rgba(253,192,62,.08));
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}
.modal-close {
  top: 13px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-color: rgba(62,123,253,.18);
  background: #ffffff;
  color: var(--ink);
  font-size: 0;
  box-shadow: 0 10px 30px rgba(24,32,51,.13);
}
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-close:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}
.modal-panel .support-form {
  max-height: calc(100svh - 118px);
  overflow: auto;
  padding: 28px;
  gap: 16px;
  overscroll-behavior: contain;
}
.modal-panel .support-form > .tag {
  width: fit-content;
  margin-bottom: 4px;
  background: #eaf1ff;
  color: var(--primary-dark);
}
.modal-panel .support-form h3 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
}
.modal-panel .field span {
  color: #687184;
}
.modal-panel input,
.modal-panel select,
.modal-panel textarea {
  min-height: 54px;
  border-radius: 14px;
}
.modal-panel textarea {
  min-height: 150px;
}
.modal-panel .form-note {
  margin-top: 0;
}
@media (max-width: 540px) {
  .modal {
    align-items: end;
    padding: 10px;
  }
  .modal-panel {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 24px 24px 16px 16px;
  }
  .modal-panel::before {
    padding: 16px 68px 14px 20px;
  }
  .modal-close {
    top: 10px;
    right: 14px;
    width: 40px;
    height: 40px;
  }
  .modal-panel .support-form {
    max-height: calc(100svh - 82px);
    padding: 22px 16px 18px;
  }
  .modal-panel .support-form h3 {
    font-size: 25px;
  }
}

/* Form submit state */
.btn:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
  box-shadow: none;
}

/* Required fields and form message states */
.required-label::after {
  content: " *";
  color: #dc2626;
  font-weight: 950;
}
.notice.error {
  border-color: rgba(220, 38, 38, .32);
  background: #fff1f2;
  color: #b91c1c;
  font-weight: 800;
}
.notice.info {
  border-color: rgba(62, 123, 253, .28);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
}
.notice.success {
  border-color: rgba(52, 168, 83, .32);
  background: #ecfdf3;
  color: #166534;
  font-weight: 800;
}
.field:has(:required:invalid) span.required-label {
  color: #b91c1c;
}
.field:has(:required:invalid) input,
.field:has(:required:invalid) select,
.field:has(:required:invalid) textarea {
  border-color: rgba(220, 38, 38, .42);
}

/* SEO fallback content shown only before JavaScript renders the app */
.seo-fallback {
  max-width: 900px;
  padding: 120px clamp(18px, 5vw, 72px) 72px;
}
.seo-fallback h1 {
  font-size: clamp(36px, 6vw, 72px);
}
.seo-fallback p,
.seo-fallback li {
  color: var(--muted);
  font-size: 18px;
}
