:root {
  --text: #1b1523;
  --text-muted: #665f70;
  --bg: #faf9fc;
  --surface: #ffffff;
  --border: #e6e1ee;
  --accent: #7e14ff;
  --accent-hover: #6b0fe0;
  --accent-soft: #ede6ff;
  --ok: #15803d;
  --ok-soft: #e3f5e9;
  --warn: #b45309;
  --warn-soft: #fdf0dd;

  font: 16px/1.55 system-ui, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(250, 249, 252, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero__inner {
  max-width: 720px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* How it works */

.how {
  padding: 3rem 0 4rem;
}

.section-sub {
  color: var(--text-muted);
  margin-top: -0.25rem;
}

.perspective-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem;
  background: var(--surface);
  margin: 1rem 0 2rem;
}

.perspective-toggle__btn {
  border: none;
  background: transparent;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.perspective-toggle__btn.is-active {
  background: var(--accent);
  color: #fff;
}

.explainer {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.explainer__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.explainer__step-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.explainer__step-btn:hover {
  background: var(--accent-soft);
}

.explainer__step-btn.is-active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
  border-color: var(--accent-soft);
}

.explainer__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.explainer__step-btn.is-active .explainer__step-num {
  background: var(--accent);
  color: #fff;
}

.explainer__stage {
  display: flex;
  justify-content: center;
}

/* Phone mock */

.phone-frame {
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 20px 40px -24px rgba(30, 15, 60, 0.35);
  overflow: hidden;
}

.phone-frame__bar {
  background: #229ed9;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
}

.chat {
  min-height: 220px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #eef4f8;
}

.chat__bubble {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.chat__bubble--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat__bubble--user {
  align-self: flex-end;
  background: #d3ecff;
  border-bottom-right-radius: 4px;
}

.chat__bubble--tapped {
  align-self: flex-end;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.chat__pay-btn {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

/* The payment web page, shown in the demo as a card rather than a chat bubble. */
.chat__page {
  align-self: stretch;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Dashboard mock */

.dash-frame {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 20px 40px -24px rgba(30, 15, 60, 0.35);
  overflow: hidden;
}

.dash-frame__bar {
  background: var(--text);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
}

.dash {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dash__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.dash__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.dash__price {
  color: var(--text-muted);
  font-weight: 600;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge--pending {
  background: var(--border);
  color: var(--text-muted);
}

/* Feature grid */

.features {
  padding: 1rem 0 4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}

.feature-card h3 {
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Closing */

.closing {
  background: var(--text);
  color: #fff;
  padding: 3.5rem 0;
}

.closing__inner {
  text-align: center;
}

.closing h2 {
  color: #fff;
}

.closing .btn--primary {
  margin-top: 0.75rem;
}

.closing__login {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Guides — the home page's entry cards */

.guides {
  padding: 0 0 4rem;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.guide-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  border-color: var(--accent);
}

.guide-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.guide-card__cta {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Guides — the guide pages themselves */

.guide {
  padding: 3rem 0 4rem;
}

.guide__inner {
  max-width: 720px;
}

.guide__lede {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.guide__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}

.guide__box > :last-child {
  margin-bottom: 0;
}

.guide__box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.guide__inner > h2 {
  margin-top: 2.5rem;
}

.guide-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 2rem 0;
}

.guide-steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 2.5rem;
  border-left: 2px solid var(--border);
  margin-left: 1rem;
}

.guide-steps > li:last-child {
  border-left-color: transparent;
}

.guide-steps > li::before {
  content: counter(step);
  position: absolute;
  left: -1.05rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.guide-steps h2 {
  font-size: 1.2rem;
  margin: 0.2rem 0 0.6rem;
}

.guide-steps ol,
.guide-steps ul {
  padding-left: 1.2rem;
}

.guide-steps li li {
  margin-bottom: 0.35rem;
}

/* "You should now see…" — also the checkpoint a user-test facilitator watches for. */
.expect,
.note {
  border-radius: 0 8px 8px 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
}

.expect {
  background: var(--ok-soft);
  border-left: 3px solid var(--ok);
}

.note {
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
}

.expect > :last-child,
.note > :last-child {
  margin-bottom: 0;
}

.ui {
  font-weight: 600;
}

.guide code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

/* A bot reply, quoted verbatim. */
.bot-says {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 0.6rem 0.85rem;
  margin: 0.5rem 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 2rem;
}

.guide-table th,
.guide-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.guide-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 720px) {
  .explainer {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 0.9rem;
  }

  /* Phone width: keep the two buttons, drop the text links — the guides are
     still one tap away in the footer and the home page's guide cards. */
  .site-nav a:not(.btn) {
    display: none;
  }

  .site-nav {
    gap: 0.5rem;
  }

  .site-nav .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }

  .site-header__inner {
    padding: 0.75rem 1rem;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Smallest phones: brand + one button is all that fits. Log in stays in the
   footer (and the home page's closing section). */
@media (max-width: 380px) {
  .site-nav .btn--ghost {
    display: none;
  }
}
