:root {
  --ink: #12183a;
  --muted: #5c6788;
  --line: #d5def5;
  --paper: #ffffff;
  --bg: #f3f6fd;
  --red: #3f67f5;
  --red-hot: #3f67f5;
  --good: #1f7a4d;
  --danger: #d92d20;
  --shadow: 0 24px 50px rgba(47, 74, 180, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(920px 440px at 96% -12%, rgba(63, 103, 245, 0.18), transparent 58%),
    radial-gradient(760px 420px at -12% -6%, rgba(63, 103, 245, 0.12), transparent 56%),
    var(--bg);
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: Outfit, "Segoe UI", sans-serif; font-weight: 600; letter-spacing: -0.045em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
input:focus-visible { outline: none; }
::placeholder { color: #96a3c4; }
::selection { background: #d5e0ff; }
[hidden] { display: none !important; }

.page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: block;
  height: 36px;
  width: auto;
}

.pill {
  border: 1px solid rgb(63 103 245);
  background: rgb(63 103 245);
  border-radius: 999px;
  padding: 8px 12px;
  color: #f3f6fd;
  font-size: 13px;
  font-weight: 600;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin: 34px 0 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-cycle {
  position: relative;
  height: 1.15em;
  overflow: hidden;
}

.eyebrow-cycle span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.eyebrow-cycle span.is-on {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow-cycle span.is-out {
  opacity: 0;
  transform: translateY(-110%);
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow-cycle span { transition: none; }
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.96;
  max-width: none;
}

h1 .free { color: #3F67F5; }

.lede {
  max-width: 38rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.steps { position: relative; margin-bottom: 28px; }

.track {
  position: absolute;
  top: 31px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: #d5def5;
  z-index: 0;
}

.track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red-hot);
}

.steps[data-major="2"] .track span { width: 50%; }
.steps[data-major="3"] .track span { width: 100%; }

.steps ol {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 28px;
}

.steps strong { font-size: 15px; font-weight: 600; }
.steps small { color: var(--muted); font-size: 13px; }

.steps li.is-active .num {
  border-color: var(--red);
  background: var(--red);
  color: white;
  box-shadow: 0 10px 24px rgba(63, 103, 245, 0.32);
}

.steps li.is-active strong { color: var(--red); }

.steps li.is-done .num {
  border-color: #24368f;
  background: #24368f;
  color: transparent;
  font-size: 0;
}

.steps li.is-done .num::after {
  content: "✓";
  color: white;
  font-family: Outfit, sans-serif;
  font-size: 22px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--paper);
  border: 1px solid rgba(18, 24, 58, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px 26px 20px;
}

form { margin: 0; }

[data-view]::before {
  content: "";
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 16px;
  border-radius: 99px;
  background: var(--red-hot);
}

[data-view="done"]::before,
[data-view="building"]::before { display: none; }

.build-lottie {
  display: block;
  width: min(100%, 280px);
  height: 220px;
  margin: 18px auto 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.02;
}

.note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.reference { margin-top: 12px; }

.substeps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.substeps i {
  width: 36px;
  height: 1px;
  background: var(--line);
}

.substeps .is-on { color: var(--ink); }
.substeps .is-done { color: var(--good); }

.fields {
  display: grid;
  gap: 14px;
  margin: 20px 0 18px;
}

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(63, 103, 245, 0.16);
}

.select-wrap { position: relative; }

.select-btn {
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  text-align: left;
  cursor: pointer;
}

.select-btn.is-placeholder span { color: #96a3c4; }

.select-btn:focus,
.select-btn:focus-visible { outline: none; }

.select-btn::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap.is-open .select-btn::after {
  transform: translateY(-20%) rotate(225deg);
}

.select-menu {
  position: absolute;
  z-index: 6;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 0;
  border-radius: 14px;
  background: white;
  box-shadow: 0 16px 40px rgba(47, 74, 180, 0.14);
}

.select-menu li {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.select-menu li:hover,
.select-menu li.is-on { background: #eef2ff; }

.field.is-error .input-wrap,
.field.is-error .otp input,
.field.is-error .select-btn {
  border-color: var(--danger);
}

.prefix {
  color: var(--muted);
  font-weight: 700;
}

.input-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.err {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.err:empty { display: none; }

.btn {
  position: relative;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--red);
  color: white;
  font-weight: 650;
}

.btn:hover { background: #2a4fe0; }
.btn:active { transform: translateY(1px); }
.btn:disabled:not(.is-busy) { opacity: 0.55; cursor: not-allowed; }

.btn.accent { background: var(--red); }
.btn.accent:hover { background: #2a4fe0; }

.btn.secondary {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.btn.resend { margin: 10px 0 0; }

.btn.secondary:hover { background: #eef2ff; }

.btn.is-busy { color: transparent; }

.btn.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.text-btn {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-btn:hover { color: var(--ink); }

.fine {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.fine:empty { display: none; }

.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.otp input {
  width: 100%;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  font-size: 24px;
  text-align: center;
}

.otp input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(63, 103, 245, 0.16);
}

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 18px;
}

.demo-row p { color: var(--muted); font-size: 13px; }

.chip-btn {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.chip-btn:hover { border-color: var(--ink); }
.chip-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 10px;
}

.method {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 700;
}

.method.is-on {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.method-hint {
  min-height: 2.7em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.summary {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.summary li,
.total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e4eaf8;
}

.summary span,
.total span { color: var(--muted); }

.total {
  align-items: baseline;
  margin-bottom: 18px;
  border-bottom: 0;
}

.total strong {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.who {
  margin: 14px 0 4px;
  font-size: 15px;
}

.who span { color: var(--muted); }

.preview-note {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef2ff;
  color: var(--muted);
  font-size: 13px;
}

.cred {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e4eaf8;
}

.cred div { min-width: 0; }
.cred span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.cred strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
}

.copy {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.copy:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.cred-actions { margin-top: 18px; }

.check {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
}

.side { display: grid; gap: 16px; }

.side .video-card {
  display: block;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: none;
  box-shadow: none;
}

.side .video-card iframe {
  display: block;
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 10px;
}

.docs {
  padding: 22px 18px 12px;
  border: 1px solid rgba(18, 24, 58, 0.08);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(47, 74, 180, 0.06);
}

.docs h2 { margin: 0 0 12px 8px; font-size: 36px; }

.docs ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 6px;
  padding: 10px;
  border-radius: 16px;
}

.docs li.is-on { background: #eef2ff; }

.docs .n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e7edff;
  font-size: 13px;
  font-weight: 700;
}

.docs li.is-on .n {
  background: var(--red);
  color: white;
}

.docs h3 { margin: 0; font-family: Outfit, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.docs p { margin-top: 2px; color: var(--muted); font-size: 14px; }

.site-tools {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-tools.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-tools.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-tools.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: flex;
  gap: 14px;
}

.site-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover { color: var(--red); }

.band {
  margin-top: 72px;
  scroll-margin-top: 20px;
}

.band-lead {
  max-width: 36rem;
  margin: 10px 0 22px;
  font-size: 17px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-grid li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(18, 24, 58, 0.08);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(47, 74, 180, 0.06);
}

.stars {
  display: flex;
  gap: 3px;
}

.stars img {
  width: 16px;
  height: 16px;
}

.review-grid blockquote {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.review-grid footer {
  display: grid;
  margin-top: auto;
}

.review-grid footer span {
  color: var(--muted);
  font-size: 13px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-grid.apps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-grid li {
  margin: 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(18, 24, 58, 0.08);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(47, 74, 180, 0.06);
}

.topic-grid h3 {
  margin: 0 0 6px;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.topic-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid rgba(18, 24, 58, 0.08);
  border-radius: 18px;
  background: var(--paper);
  padding: 0 18px;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
}

.faq-list details[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat;
}

.faq-list details[open] {
  background: #f7f9ff;
  box-shadow: 0 10px 28px rgba(47, 74, 180, 0.06);
}

.faq-list details p {
  max-width: 68ch;
  margin: 0;
  padding-bottom: 16px;
  color: var(--muted);
}

.site-foot {
  margin-top: 48px;
  border-top: 1px solid #d1dbff;
  background: #f3f6fd;
  color: var(--ink);
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 10px 0;
}

.foot-logo {
  display: block;
  height: 22px;
  width: auto;
}

.site-foot .foot-by {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.site-foot a {
  color: #3f67f5;
  font-weight: 600;
  text-decoration: none;
}

.site-foot a:hover { text-decoration: underline; }

dialog {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

dialog::backdrop {
  background: rgba(22, 18, 14, 0.48);
  backdrop-filter: blur(6px);
}

.sheet { padding: 26px; }
dialog h3 { margin: 0 0 8px; font-size: 34px; line-height: 1; }
.sheet p + p { margin-top: 8px; color: var(--muted); }

.login-preview label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}

.login-preview input {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f7ff;
}

.url-line {
  margin: 0 0 14px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}

.dialog-actions {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .track span { transition: width 0.45s ease; }
  [data-view]:not([hidden]) { animation: rise 0.45s ease; }
  .check { animation: pop 0.45s ease; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .topic-grid,
  .topic-grid.apps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .intro { flex-direction: column; align-items: flex-start; margin-top: 26px; }
  h1 { max-width: none; font-size: clamp(34px, 8.6vw, 44px); }
  .num { width: 48px; height: 48px; margin-bottom: 6px; font-size: 22px; }
  .track { top: 23px; }
  .steps strong { font-size: 13px; }
  .steps small { font-size: 12px; }
  .panel { padding: 20px 16px 14px; }
  .site { position: relative; z-index: 20; flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .site-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    min-width: 210px;
    padding: 8px;
    border: 1px solid rgba(18, 24, 58, 0.08);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 16px 40px rgba(47, 74, 180, 0.14);
  }
  .site-tools.is-open .site-menu { display: grid; gap: 4px; }
  .site-nav { flex-direction: column; gap: 2px; }
  .site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
  }
  .site-nav a:hover { background: #eef2ff; }
  .site-menu .pill { margin-top: 4px; text-align: center; }
  .foot-inner { flex-direction: column; gap: 8px; padding: 12px 0; }
  .band { margin-top: 48px; }
  .topic-grid,
  .topic-grid.apps { grid-template-columns: 1fr; }
  .review-grid blockquote { font-size: 20px; }
  .otp input { height: 52px; font-size: 20px; }
  .demo-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .methods { grid-template-columns: 1fr; }
  .method-hint { min-height: 0; }
}
