:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --text: #162033;
  --muted: #657086;
  --line: #dbe5f1;
  --primary: #1769e0;
  --primary-dark: #0c4fb5;
  --cyan: #16a5b8;
  --green: #2eaf7d;
  --shadow: 0 18px 44px rgba(21, 44, 77, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.68;
}

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

img {
  display: block;
  max-width: 100%;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.32;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand em {
  display: block;
  font-style: normal;
}

.brand strong {
  overflow: hidden;
  max-width: 210px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand em {
  color: var(--muted);
  font-size: 12px;
}

.nav-toggle {
  display: inline-grid;
  gap: 5px;
  place-content: center;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.main-nav {
  position: absolute;
  top: 64px;
  left: 12px;
  right: 12px;
  display: none;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.main-nav.is-open {
  display: grid;
}

.main-nav a {
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav .nav-cta {
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
}

.main-nav .nav-cta:hover {
  color: #fff;
  background: var(--primary-dark);
}

.hero {
  overflow: hidden;
  padding: 48px 18px 30px;
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.1), rgba(22, 165, 184, 0.08)),
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.hero-inner,
.journey-overview,
.section,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 780px;
  margin-bottom: 14px;
  color: #33425d;
  font-size: 18px;
}

.hero-note {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--muted);
}

.hero-actions,
.modal-actions {
  display: grid;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--text);
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(23, 105, 224, 0.26);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary);
  background: #fff;
  border-color: rgba(23, 105, 224, 0.28);
}

.button.ghost {
  background: #fff;
  border-color: var(--line);
}

.button.wide {
  width: 100%;
  margin-top: 8px;
}

.journey-overview {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.journey-purchase {
  min-width: 0;
}

.journey-title {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin-bottom: 12px;
}

.journey-title span,
.journey-next span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.journey-title strong {
  font-size: 16px;
}

.journey-title small {
  width: 100%;
  color: var(--muted);
}

.flow-strip {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-strip a {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px 12px;
  background: #f8fbff;
  border: 1px solid #e2ebf6;
  border-radius: var(--radius);
  font-weight: 800;
}

.flow-strip a:hover {
  color: var(--primary);
  border-color: rgba(23, 105, 224, 0.35);
}

.flow-strip span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--primary-dark);
  background: #e7f1ff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.journey-next {
  display: grid;
  align-content: center;
  min-height: 118px;
  padding: 18px;
  color: #fff;
  background: #184f91;
  border-radius: var(--radius);
}

.journey-next span,
.journey-next small {
  color: #cfe6ff;
}

.journey-next strong {
  margin: 4px 0;
  font-size: 18px;
}

.journey-next small {
  font-size: 13px;
}

.journey-next:hover {
  background: #123f76;
}

.section {
  padding: 52px 0 0;
  scroll-margin-top: 82px;
}

.phase-intro {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  padding-top: 46px;
  padding-bottom: 8px;
}

.phase-intro > div {
  max-width: 760px;
}

.phase-intro h2 {
  margin-bottom: 8px;
}

.phase-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.phase-count {
  flex: 0 0 auto;
  color: #aac4e5;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.section-head.compact {
  display: block;
}

.section-head.compact p {
  margin: 8px 0 0;
  color: var(--muted);
}

.step-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-weight: 900;
}

.content-grid {
  display: grid;
  gap: 18px;
}

.step-card,
.screenshot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(21, 44, 77, 0.08);
}

.step-card {
  padding: 20px;
}

.step-card p {
  margin-bottom: 12px;
  color: #34425d;
}

.accent .step-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.screenshot-card {
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  background: #eef3f9;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 10px;
  height: 10px;
  background: #b8c6d8;
  border-radius: 50%;
}

.window-bar span:first-child {
  background: #ff6b5f;
}

.window-bar span:nth-child(2) {
  background: #f4be4f;
}

.window-bar span:nth-child(3) {
  background: #5acb76;
}

.screenshot-card img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #eef4fb;
}

.desktop-frame img {
  aspect-ratio: 16 / 10;
}

.phone-frame {
  padding-top: 18px;
  background: #f6f9fd;
}

.phone-shell {
  width: min(270px, 78%);
  margin: 0 auto;
  padding: 12px;
  background: #111827;
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.18);
}

.phone-shell img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
}

.screenshot-card figcaption {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.handoff-banner {
  margin-top: 64px;
  padding: 34px 0;
  background: #e8f3f1;
  border-top: 1px solid #c9e3dd;
  border-bottom: 1px solid #c9e3dd;
}

.handoff-inner {
  display: grid;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.handoff-copy {
  max-width: 760px;
}

.handoff-copy .eyebrow {
  color: #17765c;
}

.handoff-copy h2 {
  margin-bottom: 8px;
}

.handoff-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.handoff-inner .button {
  justify-self: start;
}

.invite-guide-section {
  padding-top: 38px;
}

.invite-guide-head {
  max-width: 820px;
  margin: 0 auto 20px;
  text-align: center;
}

.invite-guide-head .eyebrow {
  margin: 0 0 8px;
}

.invite-guide-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.invite-admin-link {
  margin-top: 16px;
}

.invite-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.invite-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(21, 44, 77, 0.07);
}

.invite-step > span {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.invite-step strong {
  font-size: 15px;
}

.invite-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.invite-guide-card {
  overflow: hidden;
  width: min(100%, 760px);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.invite-guide-card a,
.invite-guide-card img {
  display: block;
  width: 100%;
}

.invite-guide-card img {
  height: auto;
  background: #fff;
}

.invite-guide-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
  text-align: center;
}

.guide-details {
  overflow: hidden;
  width: min(100%, 860px);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(21, 44, 77, 0.08);
}

.guide-details summary {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

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

.guide-details summary strong,
.guide-details summary small {
  display: block;
}

.guide-details summary strong {
  font-size: 16px;
}

.guide-details summary small {
  margin-top: 3px;
  color: var(--muted);
}

.summary-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--primary);
  background: #e9f2ff;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.guide-details[open] .summary-icon {
  transform: rotate(45deg);
}

.guide-details .invite-guide-card {
  width: 100%;
  margin: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.action-band {
  margin-top: 64px;
  padding: 42px 0;
  color: #fff;
  background: #162f52;
}

.action-band-inner {
  display: grid;
  gap: 22px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.action-band .eyebrow {
  color: #71d4bd;
}

.action-band-copy {
  max-width: 720px;
}

.action-band-copy h2 {
  margin-bottom: 8px;
}

.action-band-copy p:last-child {
  margin-bottom: 0;
  color: #c8d6e9;
}

.action-band-actions {
  display: grid;
  gap: 10px;
}

.action-band .button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.resource-links a {
  color: #d9e8fa;
  font-size: 14px;
  font-weight: 800;
}

.resource-links a:hover {
  color: #fff;
}

.site-footer {
  display: grid;
  gap: 16px;
  padding: 28px 0 34px;
  color: var(--muted);
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: var(--text);
}

.footer-brand span {
  margin-top: 2px;
  font-size: 13px;
}

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

.site-footer a {
  color: var(--primary);
  font-weight: 800;
}

.footer-copyright {
  margin: 0;
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 25, 46, 0.54);
}

.modal-panel {
  position: relative;
  width: min(460px, 100%);
  padding: 22px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin-bottom: 10px;
  font-size: 21px;
}

.modal-panel p {
  color: var(--muted);
}

@media (min-width: 360px) and (max-width: 719px) {
  .flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-strip a {
    gap: 6px;
    padding: 8px;
  }
}

@media (min-width: 720px) {
  .brand strong {
    max-width: none;
  }

  .hero {
    padding: 64px 0 34px;
  }

  h1 {
    max-width: 920px;
    font-size: 48px;
  }

  .hero-actions,
  .modal-actions {
    display: flex;
    align-items: center;
  }

  .flow-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .content-grid {
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    gap: 28px;
    align-items: center;
  }

  .content-grid.reverse {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  }

  .content-grid.reverse .step-card {
    order: 2;
  }

  .content-grid.reverse .screenshot-card {
    order: 1;
  }

  .screenshot-card img {
    max-height: 430px;
  }

  .phone-frame {
    padding: 18px 0 0;
  }

  .phone-shell {
    width: min(230px, 58%);
  }

  .phone-shell img {
    max-height: 430px;
  }

  .handoff-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .invite-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .invite-step {
    align-content: start;
    min-height: 138px;
  }

  .action-band-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .footer-copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    gap: 2px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .main-nav a {
    padding: 9px 10px;
  }

  .main-nav .nav-cta {
    margin-left: 6px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .journey-overview {
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: stretch;
  }

  .journey-next {
    min-height: 100%;
  }

  .action-band-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .resource-links {
    grid-column: 1 / -1;
  }

  .hero {
    padding: 58px 0 32px;
  }

  .section {
    padding-top: 52px;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .step-card {
    padding: 28px;
  }

  .content-grid {
    gap: 36px;
  }

  .screenshot-card img {
    max-height: 400px;
  }

  #agent .screenshot-card img,
  #purchase .screenshot-card img {
    max-height: 360px;
  }

  #login .screenshot-card,
  #verify .screenshot-card {
    width: min(100%, 520px);
    justify-self: center;
  }

  #login .step-card,
  #verify .step-card {
    max-width: 440px;
  }

  #login .step-card {
    justify-self: start;
  }

  #verify .step-card {
    justify-self: end;
  }

  .phone-shell {
    width: 220px;
  }
}

@media (min-width: 1280px) {
  .header-inner,
  .hero-inner,
  .journey-overview,
  .section,
  .site-footer,
  .handoff-inner,
  .action-band-inner {
    width: min(1180px, calc(100% - 80px));
  }
}
