:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --surface-strong: #dfe9ff;
  --text: #151824;
  --muted: #697286;
  --line: #d6e0f1;
  --accent: #3563f1;
  --accent-deep: #214ddf;
  --accent-soft: #ebf2ff;
  --success: #15b86a;
  --danger: #ff6d57;
  --shadow: 0 30px 80px rgba(35, 77, 223, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(53, 99, 241, 0.12), transparent 20%),
    radial-gradient(circle at 90% 10%, rgba(53, 99, 241, 0.1), transparent 18%),
    linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  color: var(--text);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(214, 224, 241, 0.8);
  background: rgba(248, 251, 255, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand,
h1,
h2,
h3 {
  font-family: "Raleway", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.nav-primary {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
}

.hero {
  padding: 56px 0 72px;
}

.hero-grid,
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 44px;
  align-items: center;
}

.hero-shell {
  max-width: 900px;
  margin: 0 auto;
}

.hero-copy {
  text-align: center;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .lead {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow,
.section-tag {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2 {
  letter-spacing: -0.05em;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.94;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.24rem;
}

.calculator-card {
  max-width: 920px;
  margin: 30px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.calculator-grid,
.calculator-results {
  display: grid;
  gap: 14px;
}

.calculator-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calculator-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.calculator-field span,
.result-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.calculator-field input:focus {
  outline: 2px solid rgba(53, 99, 241, 0.2);
  border-color: var(--accent);
}

.calculator-results {
  grid-template-columns: 1fr;
  margin-top: 22px;
}

.result-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 28px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(235, 242, 255, 0.7), rgba(255, 255, 255, 0.96));
  text-align: center;
}

.result-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Raleway", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.result-card p {
  margin: 14px 0 0;
  font-size: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 800;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 36px rgba(53, 99, 241, 0.24);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.section {
  padding: 88px 0;
}

.flow-section {
  background: linear-gradient(180deg, rgba(235, 242, 255, 0.75), rgba(248, 251, 255, 0.9));
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.1;
}

p {
  color: var(--muted);
  font-size: 1.04rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flow-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.flow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.flow-tab {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.flow-tab:hover {
  transform: translateY(-1px);
}

.flow-tab.is-active {
  border-width: 2px;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.flow-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.flow-visual-panel,
.flow-copy-panel {
  min-width: 0;
}

.flow-visual-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #cfefff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flow-visual,
.flow-copy {
  display: none;
}

.flow-visual.is-active,
.flow-copy.is-active {
  display: block;
}

.flow-visual {
  width: 100%;
}

.tool-image {
  display: block;
  width: 100%;
  max-width: 720px;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.flow-copy-panel {
  padding: 8px 0;
}

.flow-points {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.flow-points li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
  font-size: 1.04rem;
}

.flow-points li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
}

.flow-points li::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 6px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(-45deg);
}

.flow-cta {
  margin-top: 28px;
}

.flow-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: "Raleway", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 56px 0 20px;
  background: #202f69;
  color: rgba(240, 244, 255, 0.9);
}

.footer-mark {
  position: absolute;
  inset: 18px 28px 86px;
  pointer-events: none;
  user-select: none;
}

.footer-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.28;
  filter: brightness(0.78) saturate(1);
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-top: 288px;
}

.footer-divider {
  height: 1px;
  background: rgba(221, 229, 255, 0.14);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-links a,
.footer-meta p {
  color: rgba(233, 239, 255, 0.82);
  font-size: 0.96rem;
}

.footer-meta p {
  margin-bottom: 0;
}

.demo-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(53, 99, 241, 0.12), transparent 22%),
    radial-gradient(circle at 88% 0%, rgba(53, 99, 241, 0.1), transparent 18%),
    linear-gradient(180deg, #fbfdff 0%, #f1f7ff 100%);
}

.demo-page-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.demo-sheet {
  width: min(100%, 760px);
  border: 1px solid rgba(214, 224, 241, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 80px rgba(35, 77, 223, 0.16);
  overflow: hidden;
}

.demo-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(214, 224, 241, 0.92);
}

.demo-sheet-head h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
}

.demo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 1.5rem;
}

.demo-sheet-body {
  padding: 30px 28px 32px;
}

.demo-sheet-intro {
  max-width: 560px;
  margin-bottom: 30px;
  font-size: 1.08rem;
}

.demo-sheet-form {
  display: grid;
  gap: 18px;
}

.demo-sheet-field {
  display: grid;
  gap: 8px;
}

.demo-sheet-field span,
.demo-sheet-consent span {
  font-size: 0.97rem;
}

.demo-sheet-field em {
  color: var(--accent);
  font-style: normal;
}

.demo-sheet-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.demo-sheet-field input:focus {
  outline: 2px solid rgba(53, 99, 241, 0.16);
  border-color: var(--accent);
}

.demo-sheet-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  margin-top: 4px;
}

.demo-sheet-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.demo-sheet-consent a {
  color: var(--accent);
}

.demo-sheet-submit {
  margin-top: 12px;
}

.demo-sheet-note {
  margin: 28px 0 0;
  text-align: center;
}

.demo-sheet-feedback {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.demo-sheet-feedback.is-success {
  color: var(--success);
}

.demo-sheet-feedback.is-error {
  color: var(--danger);
}

.waitlist-page .demo-sheet {
  width: min(100%, 720px);
}

.waitlist-page .demo-sheet-intro {
  max-width: 520px;
}

.waitlist-page .demo-sheet-form {
  gap: 20px;
}

.waitlist-sheet-feedback {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.waitlist-sheet-feedback.is-success {
  color: var(--success);
}

.waitlist-sheet-feedback.is-error {
  color: var(--danger);
}

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .calculator-grid,
  .calculator-results {
    grid-template-columns: 1fr;
  }

  .flow-showcase {
    grid-template-columns: 1fr;
  }

  .flow-visual-panel {
    min-height: 420px;
  }

  .footer-inner {
    padding-top: 228px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
  }

  .header-nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero {
    padding-top: 42px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .demo-page-main {
    padding: 12px;
  }

  .demo-sheet-head,
  .demo-sheet-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .lead,
  p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    padding-top: 56px;
  }

  .footer-mark {
    inset: 14px 16px 92px;
  }

  .footer-inner {
    padding-top: 152px;
  }

  .footer-links {
    gap: 18px;
  }
}
