:root {
  --ink: #242733;
  --muted: #66707f;
  --line: #dfe7ef;
  --cyan: #55d6ec;
  --blue: #055fd4;
  --green: #15bb78;
  --red: #ff5a50;
  --soft: #f7fbff;
  --shadow: 0 24px 70px rgba(38, 51, 77, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 clamp(24px, 5vw, 96px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 800;
}
.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  font-size: 18px;
  align-items: center;
}
.nav-links a { color: #1f2530; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.login-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  font-weight: 750;
  white-space: nowrap;
}
.pill.dark { color: #fff; background: linear-gradient(135deg, #2b2f38, #11141b); box-shadow: 0 10px 26px rgba(18, 22, 30, 0.22); }
.pill.light { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.pill.blue { color: #fff; background: linear-gradient(135deg, #116ee8, #0057ca); box-shadow: 0 14px 34px rgba(0, 92, 213, 0.24); }

.grid-faint {
  background-image:
    linear-gradient(120deg, rgba(35, 82, 122, 0.06) 1px, transparent 1px),
    linear-gradient(60deg, rgba(35, 82, 122, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  min-height: calc(100vh - 86px);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh clamp(26px, 8vw, 132px);
}
.eyebrow {
  margin: 0 0 18px;
  color: #148ca2;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5.3vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.45;
}
.hero-actions { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.hero-image {
  min-height: 640px;
  overflow: hidden;
  background: #eef7fb;
}
.hero-image img,
.preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 42px auto 0;
  padding: 0 22px;
}
.bottom-proof { margin: 0 auto 78px; }
.proof-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  border-radius: 6px;
}
.proof-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #7b8795;
}
.proof-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.proof-item strong { display: block; font-size: 17px; }
.proof-item small { color: var(--muted); }
.tooltip {
  position: fixed;
  z-index: 60;
  max-width: 300px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(25, 29, 36, 0.94);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s ease;
}
.tooltip.show { opacity: 1; transform: translateY(0); }

.section { padding: clamp(74px, 9vw, 132px) clamp(24px, 7vw, 120px); }
.section-heading { text-align: center; margin-bottom: 42px; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}
.calculator-panel {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: 26px;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 66px);
  background: rgba(250, 252, 255, 0.9);
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.invoice {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(29, 44, 69, 0.14);
}
.invoice h3 {
  margin: 0;
  padding: 22px;
  color: #fff;
  font-size: 24px;
}
.invoice.western h3 { background: linear-gradient(135deg, #ff857e, var(--red)); }
.invoice.nexus h3 { background: linear-gradient(135deg, #98f0c9, var(--green)); }
.invoice dl { margin: 0; padding: 18px 22px 22px; }
.invoice div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e6edf5;
}
.invoice .total { border-bottom: 0; font-weight: 800; }
.compare-mark { font-size: 32px; font-weight: 800; }
.savings-box h3 { font-size: 33px; line-height: 1.12; margin-bottom: 18px; }
.savings-box label { display: block; color: var(--muted); margin-bottom: 8px; }
input[type="range"] { width: 100%; accent-color: #18bfd1; }
.scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-top: 4px; }
#savedAmount { display: block; margin: 16px 0; color: #1199aa; font-size: 25px; }
.text-cta {
  color: var(--blue);
  background: transparent;
  border: 0;
  padding: 0;
  font-weight: 800;
}

.sop-hub {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  width: min(1500px, calc(100% - clamp(42px, 7vw, 132px)));
  min-height: 640px;
  margin: clamp(72px, 8vw, 118px) auto;
  background-color: #f8fcff;
  border: 1px solid #d5e3ee;
  overflow: hidden;
}
.sop-menu {
  padding: 48px 30px 42px 48px;
  background: linear-gradient(90deg, rgba(215, 244, 255, 0.86), rgba(235, 249, 255, 0.72));
  border-right: 1px solid #c4dce9;
}
.sop-menu h2 {
  margin: 0 0 34px;
  font-size: 23px;
  line-height: 1.12;
}
.sop-menu button {
  display: block;
  width: 100%;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 12px 16px;
  color: #1e252e;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  font-size: 17px;
  line-height: 1.25;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.sop-menu button.active {
  background: rgba(235, 250, 255, 0.78);
  border-color: #a9d3ee;
  box-shadow: 0 16px 46px rgba(92, 173, 222, 0.24);
}
.sop-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 54px;
}
.sop-feature-card {
  width: min(1120px, 100%);
  min-height: 560px;
  padding: 54px 58px 46px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #edf2f6;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(46, 66, 91, 0.16);
  display: grid;
  grid-template-rows: auto 270px auto;
  row-gap: 24px;
}
.sop-feature-card h2 {
  max-width: 920px;
  min-height: 140px;
  margin: 0;
  font-size: clamp(38px, 4vw, 66px);
  line-height: 1.06;
  font-weight: 850;
  transition: opacity 0.24s ease;
}
.sop-images {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  height: 100%;
  min-height: 0;
}
.sop-images img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}
.sop-feature-card p {
  max-width: 850px;
  margin: 0;
  color: #626b78;
  font-size: 18px;
  line-height: 1.5;
}

.hubs-preview {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.preview-copy h2 { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.06; }
.preview-copy p { max-width: 680px; color: var(--muted); font-size: 21px; line-height: 1.55; }
.preview-media {
  min-height: 560px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.fpp {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
}
.badge {
  display: inline-flex;
  padding: 16px 24px;
  border-radius: 6px;
  color: #194b5b;
  background: #90e8fb;
  font-weight: 900;
  font-size: 19px;
}
.fpp h2 { margin: 28px 0; font-size: clamp(38px, 4.6vw, 70px); line-height: 1.05; }
.check-list { display: grid; gap: 22px; padding: 0; margin: 0; list-style: none; color: #4b5360; font-size: 24px; line-height: 1.35; }
.check-list li { position: relative; padding-left: 52px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #8b95a1;
  border-radius: 6px;
}
.progress-card {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  border: 1px solid #e7edf5;
}
.progress-top { display: flex; justify-content: space-between; gap: 16px; font-size: 26px; }
.progress-track { height: 34px; margin: 28px 0 18px; border-radius: 999px; background: #e5e8ee; overflow: hidden; }
.progress-track span { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, #19c4e4, #14d2e5); box-shadow: 0 8px 20px rgba(25, 196, 228, 0.3); }
.progress-card p { text-align: center; color: var(--muted); font-size: 25px; }
.progress-card .pill { width: 100%; min-height: 74px; font-size: 27px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(24px, 7vw, 120px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer strong { color: var(--ink); }

.quiz-dialog,
.login-dialog {
  width: min(720px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 35px 100px rgba(13, 20, 32, 0.38);
}
.quiz-dialog::backdrop,
.login-dialog::backdrop { background: rgba(10, 14, 21, 0.42); backdrop-filter: blur(8px); }
.quiz-card,
.login-card { position: relative; padding: clamp(26px, 5vw, 54px); }
.quiz-card h2,
.login-card h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.close-btn {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f0f4f8;
  font-size: 28px;
}
.quiz-step { display: none; gap: 14px; margin: 28px 0; }
.quiz-step.active { display: grid; }
.quiz-step label { font-weight: 800; }
.quiz-step input, .quiz-step select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #cfd9e5;
  border-radius: 6px;
}
.login-card {
  display: grid;
  gap: 18px;
}
.login-card label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}
.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #cfd9e5;
  border-radius: 6px;
  font-weight: 500;
}
.login-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--muted);
}
.login-meta a { color: var(--blue); font-weight: 800; }
.remember {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px !important;
  font-weight: 600 !important;
}
.login-submit { width: 100%; }
.login-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.quiz-actions { display: flex; justify-content: flex-end; gap: 12px; }
.quiz-thanks { color: #215d6c; background: #edfaff; border: 1px solid #bfeefa; padding: 16px; border-radius: 6px; }

.subpage {
  min-height: 100vh;
  padding: 42px clamp(22px, 6vw, 90px);
  background: #f8fbff;
}
.subpage-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 42px; }
.dashboard-grid, .hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.dash-card, .hub-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(32, 48, 73, 0.09);
}
.wide { grid-column: span 2; }
.node-list { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.node-list li { padding: 14px 16px; border-radius: 6px; background: #f1f7fb; }

@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; min-height: auto; padding-block: 18px; gap: 16px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; font-size: 15px; }
  .hero, .hubs-preview, .fpp, .sop-hub { grid-template-columns: 1fr; }
  .hero-image { min-height: 420px; }
  .proof-strip, .calculator-panel, .dashboard-grid, .hub-grid { grid-template-columns: 1fr; }
  .compare-mark { text-align: center; }
  .sop-hub { width: min(100% - 28px, 720px); margin: 52px auto; min-height: auto; }
  .sop-menu { padding: 36px 24px 18px; border-right: 0; border-bottom: 1px solid #c4dce9; }
  .sop-menu h2 { margin-bottom: 24px; }
  .sop-menu button { min-height: 54px; margin-bottom: 10px; font-size: 17px; }
  .sop-display { padding: 32px 20px; }
  .sop-feature-card { padding: 34px 24px; border-radius: 18px; grid-template-rows: auto auto auto; }
  .sop-feature-card h2 { min-height: auto; }
  .sop-feature-card h2 { font-size: clamp(34px, 8vw, 52px); }
  .sop-images { grid-template-columns: 1fr; height: auto; }
  .sop-images img { height: 240px; }
  .wide { grid-column: auto; }
}

@media (max-width: 620px) {
  .header-actions { width: 100%; justify-content: space-between; }
  .hero h1 { font-size: 40px; }
  .hero-copy { padding-top: 56px; }
  .section { padding-inline: 18px; }
  .proof-strip { padding-inline: 18px; }
  .progress-top { font-size: 20px; }
  .progress-card .pill { font-size: 20px; }
  .site-footer { flex-direction: column; }
}
