/* ──────────────────────────────────────
   1. Design Tokens
   ────────────────────────────────────── */
:root {
  --bg: #faf7f2;
  --ink: #1a1a1a;
  --muted: #666666;
  --paper: #ffffff;

  --coral: #e07a5f;
  --sky: #81b29a;
  --mint: #6d9e87;
  --sunshine: #f2cc8f;
  --lavender: #f2cc8f;

  --coral-soft: rgba(224, 122, 95, 0.12);
  --sky-soft: rgba(129, 178, 154, 0.14);
  --mint-soft: rgba(129, 178, 154, 0.2);
  --sunshine-soft: rgba(242, 204, 143, 0.2);

  --stroke: #e5e0d8;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.08);

  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --container-max: 820px;

	  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
		  --font-display: "Fraunces", ui-serif, Georgia, serif;

		  /* Typography scale */
		  --text-2xs: 0.875rem; /* 14 */
		  --text-xs: 0.9375rem; /* 15 */
		  --text-sm: 1rem; /* 16 */
		  --text-sm-plus: 1.0625rem; /* 17 */
		  --text-base: clamp(1.125rem, 1.06rem + 0.24vw, 1.25rem); /* 18-20 */
		  --text-base-plus: 1.25rem; /* 20 */
		  --text-md: clamp(1.25rem, 1.16rem + 0.38vw, 1.4375rem); /* 20-23 */
  --text-title-xs: 1.4375rem; /* 23 */
  --text-title-sm: 1.625rem; /* 26 */
  --text-title-sm-plus: 1.75rem; /* 28 */
  --text-lg: clamp(1.875rem, 1.52rem + 1.02vw, 2.5rem); /* 30-40 */
  --text-xl: clamp(2rem, 1.6rem + 1.95vw, 3.25rem); /* 32-52 */
  --text-display-xl: 3.125rem; /* 50 */
  --text-display-2xl: 4.25rem; /* 68 */
  --text-hero-mobile: 2.02rem; /* 32.3 (15% smaller) */
  --text-hero: clamp(2.25rem, 1.57rem + 2.59vw, 3.61rem); /* 35.7-57.8 (15% smaller) */

  --lh-tight: 1.08;
  --lh-heading: 1.2;
  --lh-body: 1.6;
}

/* ──────────────────────────────────────
   2. Reset & Base
   ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

/* Sane modern defaults for document text hierarchy */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
  font-size: 1em;
  line-height: var(--lh-body);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.link {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link:hover {
  color: var(--coral);
}

/* ──────────────────────────────────────
   3. Background
   ────────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg__blob {
  position: absolute;
  width: 56rem;
  height: 56rem;
  filter: blur(60px);
  opacity: 0.3;
  transform: translateZ(0);
}

.bg__blob--a {
  background: radial-gradient(circle at 30% 30%, var(--coral), transparent 60%),
              radial-gradient(circle at 70% 40%, var(--sunshine), transparent 50%);
  top: -24rem;
  left: -16rem;
}

.bg__blob--b {
  background: radial-gradient(circle at 60% 40%, var(--sky), transparent 55%),
              radial-gradient(circle at 30% 70%, var(--mint), transparent 55%);
  bottom: -28rem;
  right: -20rem;
}

.bg__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 26, 26, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 20%, transparent 70%);
}

/* ──────────────────────────────────────
   4. Header
   ────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(250, 247, 242, 0.86);
  border-bottom: 1px solid var(--stroke);
}

.top__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
}

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

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid #d4cfc7;
  background:
    radial-gradient(circle at 35% 30%, var(--coral), transparent 60%),
    radial-gradient(circle at 65% 70%, var(--sky), transparent 55%),
    radial-gradient(circle at 50% 50%, var(--mint), transparent 60%);
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.18);
}

.brand__name {
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: -0.02em;
}

/* ──────────────────────────────────────
   5. Progress Bar
   ────────────────────────────────────── */
.progress {
  max-width: 480px;
  margin: 0 auto 30px;
  padding: 22px 20px 0;
  display: none;
}

.progress.is-visible {
  display: block;
}

.progress__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 68px;
}

.progress__step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  gap: 0;
  padding: 0;
  border-radius: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: all 300ms ease;
}

.progress__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  background: rgba(26, 26, 26, 0.06);
  color: var(--muted);
  transition: all 300ms ease;
}

.progress__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  color: var(--ink);
}

.progress__step.is-active .progress__dot {
  background: var(--coral);
  color: white;
  box-shadow: 0 4px 16px rgba(224, 122, 95, 0.3);
}

.progress__step.is-active .progress__label {
  opacity: 1;
  visibility: visible;
}

.progress__step.is-complete .progress__dot {
  background: var(--mint);
  color: var(--ink);
}

.progress__step.is-complete .progress__dot::after {
  content: none;
}

/* Connector lines between steps */
.progress__step + .progress__step::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  height: 2px;
  background: rgba(26, 26, 26, 0.1);
  border-radius: 2px;
  transition: background 300ms ease;
}

.progress__step.is-complete + .progress__step::before,
.progress__step.is-active + .progress__step::before {
  /* leave as-is for now; the completed connector color comes from .is-complete */
}

.progress__step.is-complete + .progress__step.is-complete::before,
.progress__step.is-complete + .progress__step.is-active::before {
  background: var(--mint);
}

/* ──────────────────────────────────────
   6. Steps (show/hide)
   ────────────────────────────────────── */
.main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 24px 48px;
  min-height: calc(100vh - 120px);
}

.step {
  display: none;
}

.step.is-active {
  display: block;
  animation: fadeInUp 400ms ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ──────────────────────────────────────
   7. Landing Page
   ────────────────────────────────────── */
.landing {
  padding-top: 8px;
}

/* CloudClaw-inspired pre-onboarding layout */
.landing--cc {
  display: flex;
  flex-direction: column;
}

.cc-hero {
  padding-top: 0;
}

.cc-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title title"
    "visual left";
  gap: 28px 40px;
  align-items: start;
}

.cc-hero__title {
  grid-area: title;
  max-width: none;
}

.cc-hero__left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 26px;
  max-width: 560px;
}

.cc-hero__left {
  /* Keep the content block visually centered against the mock chat on desktop. */
  align-self: center;
}

.cc-hero__subtitle {
  max-width: 560px;
}

.cc-hero__subtitle p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.55;
}

.cc-hero__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.45;
}

.cc-hero__bullets li {
  position: relative;
  padding-left: 38px;
}

.cc-hero__bullets li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1;
}

.cc-hero__bullets li + li {
  margin-top: 8px;
}

.cc-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cc-hero__micro {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.cc-hero__cta .btn--jumbo {
  margin-top: 0;
  align-self: flex-start;
}

.cc-hero__visual {
  grid-area: visual;
  justify-self: center;
  align-self: center;
}

.cc-hero__heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
}

.cc-hero__highlight {
  color: var(--coral);
}

.cc-mockup {
  width: clamp(260px, 34vw, 340px);
  border-radius: 22px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: #eaf2fb;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Telegram-ish wallpaper */
.cc-mockup--telegram::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(66, 165, 245, 0.14), transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(126, 87, 194, 0.10), transparent 58%),
    radial-gradient(circle at 30% 90%, rgba(38, 166, 154, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  opacity: 1;
  pointer-events: none;
}

.cc-mockup--telegram::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.40) 1px, rgba(255, 255, 255, 0) 1.8px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.cc-mockup--telegram > * {
  position: relative;
  z-index: 1;
}

.tg-chrome {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(26, 26, 26, 0.10);
  backdrop-filter: blur(10px);
}

.tg-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  color: rgba(26, 26, 26, 0.78);
  font-size: var(--text-2xs);
  font-weight: 700;
}

.tg-statusbar__icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(26, 26, 26, 0.78);
}

.tg-statusbar__icon {
  display: block;
  flex: 0 0 auto;
}

.tg-statusbar__icon--signal {
  width: 16px;
  height: 16px;
}

.tg-statusbar__network {
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-left: 1px;
}

.tg-statusbar__icon--battery {
  width: 18px;
  height: 18px;
}

.tg-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 10px;
  color: rgba(26, 26, 26, 0.88);
}

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

.tg-navbar__back {
  flex: 0 0 auto;
  opacity: 0.7;
}

.tg-navbar__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background-color: #fff;
  background-image: url("/images/openclaw_icon.png");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid rgba(26, 26, 26, 0.1);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
}

.tg-navbar__title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.tg-navbar__name {
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16ch;
}

.tg-navbar__right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(26, 26, 26, 0.55);
}

.cc-mockup__conversation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  overflow: visible;
  padding: 14px 14px 10px;
}

.cc-message {
  padding: 11px 13px;
  border-radius: 18px;
  font-size: var(--text-sm);
  line-height: 1.4;
  max-width: 92%;
  width: fit-content;
}

.cc-message--assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(26, 26, 26, 0.92);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-bottom-left-radius: 8px;
}

.cc-message--user {
  align-self: flex-end;
  background: #2aabee;
  color: #fff;
  box-shadow: 0 14px 28px rgba(42, 171, 238, 0.20);
  border-bottom-right-radius: 8px;
}

.tg-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(26, 26, 26, 0.10);
}

.tg-composer__plus {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(42, 171, 238, 0.10);
  color: rgba(42, 171, 238, 0.9);
  font-weight: 900;
  font-size: var(--text-sm);
  line-height: 1;
  flex: 0 0 auto;
}

.tg-composer__field {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.05);
  color: rgba(26, 26, 26, 0.45);
  font-size: var(--text-2xs);
  font-weight: 700;
}

.tg-composer__send {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2aabee;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 14px 28px rgba(42, 171, 238, 0.20);
}

.cc-contrast {
  margin-top: 48px;
  border-radius: 26px;
  background: #1c1c1e;
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}

.cc-contrast p {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
}

.cc-contrast strong {
  color: var(--sunshine);
}

.cc-audience-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cc-audience-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.cc-audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 122, 95, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.cc-audience-card__icon {
  font-size: var(--text-display-xl);
  line-height: 1;
  margin-bottom: 14px;
}

.cc-audience-card h3 {
  margin: 0;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
}

.cc-audience-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--text-sm-plus);
  line-height: 1.45;
}

.cc-feature-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cc-feature-card {
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.76);
  padding: 24px 22px;
}

.cc-feature-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: #fff; /* Lucide strokes use `currentColor` */
  line-height: 1;
  margin-bottom: 12px;
  border: 1px solid rgba(224, 122, 95, 0.35);
}

.cc-feature-card__icon svg {
  display: block;
}

.cc-feature-card__head .cc-feature-card__icon {
  margin-bottom: 0;
}

.cc-feature-card__icon--coral,
.cc-feature-card__icon--sky,
.cc-feature-card__icon--sun,
.cc-feature-card__icon--mint {
  /* Keep variants for semantic grouping; style is unified above. */
}

.cc-feature-card h3 {
  margin: 0;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
}

.cc-feature-card p {
  margin: 9px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* Flow steps (4-step visual) */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 32px;
  position: relative;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.flow-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--text-title-xs);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.flow-step__num--coral { background: var(--coral); box-shadow: 0 4px 16px rgba(224, 122, 95, 0.3); }
.flow-step__num--sky { background: var(--sky); box-shadow: 0 4px 16px rgba(129, 178, 154, 0.3); }
.flow-step__num--lavender { background: var(--lavender); box-shadow: 0 4px 16px rgba(242, 204, 143, 0.35); }
.flow-step__num--mint { background: var(--mint); box-shadow: 0 4px 16px rgba(129, 178, 154, 0.3); }

/* Connector line between steps */
.flow-step__connector {
  display: none;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: linear-gradient(90deg, var(--stroke), var(--stroke));
  z-index: 0;
}

.flow-step:nth-child(1)::after {
  background: linear-gradient(90deg, rgba(224, 122, 95, 0.35), rgba(129, 178, 154, 0.35));
}

.flow-step:nth-child(2)::after {
  background: linear-gradient(90deg, rgba(129, 178, 154, 0.35), rgba(242, 204, 143, 0.35));
}

.flow-step:nth-child(3)::after {
  background: linear-gradient(90deg, rgba(242, 204, 143, 0.35), rgba(129, 178, 154, 0.35));
}

.flow-step__title {
  margin: 0 0 4px;
  font-size: var(--text-sm-plus);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.flow-step__desc {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.45;
  max-width: 20ch;
}

.flow-step__thumb-btn {
  margin-top: 14px;
  width: min(100%, 190px);
  padding: 6px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.flow-step__thumb-btn:hover {
  transform: translateY(-1px);
  border-color: var(--sky);
  box-shadow: var(--shadow);
}

.flow-step__thumb-btn:focus-visible {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-soft);
}

.flow-step__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.install-shot-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.install-shot-modal[hidden] {
  display: none !important;
}

.install-shot-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(14, 12, 10, 0.7);
  cursor: pointer;
}

.install-shot-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 40px));
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 14px 14px 10px;
}

.install-shot-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.install-shot-modal__close:hover,
.install-shot-modal__close:focus-visible {
  border-color: var(--sky);
  outline: none;
  box-shadow: 0 0 0 3px var(--sky-soft);
}

.install-shot-modal__img {
  width: 100%;
  max-height: min(80vh, 760px);
  border-radius: 10px;
  object-fit: contain;
  background: #121212;
}

.install-shot-modal__caption {
  margin: 9px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* Trust pills */
.landing__trust {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--stroke);
}

.trust-pill__icon {
  font-size: var(--text-sm-plus);
}

/* Landing sections (How it works, Easy to use, Security) */
.landing-section {
  margin-top: 56px;
  text-align: center;
}

.pricing-spotlight {
  margin: 24px auto 0;
  max-width: 520px;
  border: 2px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 30px 24px;
}

.pricing-spotlight__amount {
  margin: 0;
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  color: var(--ink);
}

.pricing-spotlight__currency {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-spotlight__number {
  font-family: var(--font-display);
  font-size: var(--text-display-2xl);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-spotlight__period {
  font-size: var(--text-title-xs);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}

.pricing-spotlight__note {
  margin: 12px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.pricing-spotlight__note--under-price {
  margin: 0 0 20px;
}

.pricing-server-stats {
  margin: 14px auto 18px;
  max-width: 520px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pricing-server-stats li {
  min-width: 130px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm-plus);
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pricing-server-stats__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pricing-server-stats__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-comfort-checks {
  margin: 0 auto 16px;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
}

.pricing-comfort-checks li {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--ink);
}

.pricing-comfort-checks__icon {
  margin-top: 1px;
  color: var(--mint);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.pricing-spotlight .btn--jumbo {
  margin-top: 22px;
}

.landing-section--use-cases {
  overflow: hidden;
}

.use-cases-marquee {
  --marquee-gap: 10px;
  margin-top: 24px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.use-cases-marquee::before,
.use-cases-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 1;
  pointer-events: none;
}

.use-cases-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgba(250, 247, 242, 0));
}

.use-cases-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgba(250, 247, 242, 0));
}

.use-cases-row {
  display: flex;
  gap: var(--marquee-gap);
  width: max-content;
  animation: use-cases-marquee 42s linear infinite;
  animation-play-state: running;
}

.use-cases-track {
  display: flex;
  gap: var(--marquee-gap);
  flex-shrink: 0;
  min-width: max-content;
}

.use-cases-row--reverse {
  animation-direction: reverse;
}

.use-cases-row:nth-child(2) {
  animation-duration: 47s;
}

.use-cases-row:nth-child(3) {
  animation-duration: 52s;
}

.use-cases-marquee:hover .use-cases-row,
.use-cases-marquee:focus-within .use-cases-row {
  animation-play-state: paused;
}

.use-case-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 12px;
  padding: 9px 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
}

.use-case-chip__icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}

.use-case-chip--gradient {
  background: linear-gradient(120deg, rgba(224, 122, 95, 0.14), rgba(129, 178, 154, 0.14));
}

.use-case-chip--bordered {
  border-width: 2px;
  background: rgba(255, 255, 255, 0.78);
}

.use-case-chip--muted {
  background: rgba(255, 255, 255, 0.58);
}

.use-case-chip--radial {
  background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.95), rgba(242, 204, 143, 0.22) 72%);
}

.use-case-chip--dashed {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.74);
}

@keyframes use-cases-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - (var(--marquee-gap) / 2)));
  }
}

/* Testimonials marquee */
.landing-section--testimonials {
  overflow: hidden;
}

.testimonials-marquee {
  --marquee-gap: 14px;
  margin-top: 24px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.testimonials-marquee::before,
.testimonials-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 1;
  pointer-events: none;
}

.testimonials-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgba(250, 247, 242, 0));
}

.testimonials-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgba(250, 247, 242, 0));
}

.testimonials-row {
  display: flex;
  gap: var(--marquee-gap);
  width: max-content;
  animation: testimonials-marquee 56s linear infinite;
  animation-play-state: running;
  will-change: transform;
}

.testimonials-row--reverse {
  animation-direction: reverse;
  animation-duration: 62s;
}

.testimonials-track {
  display: flex;
  gap: var(--marquee-gap);
  flex-shrink: 0;
  min-width: max-content;
}

.testimonials-marquee:hover .testimonials-row,
.testimonials-marquee:focus-within .testimonials-row {
  animation-play-state: paused;
}

.testimonial-card {
  width: clamp(240px, 60vw, 360px);
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  position: relative;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 15% 20%, rgba(242, 204, 143, 0.25), transparent 58%),
              radial-gradient(circle at 95% 10%, rgba(129, 178, 154, 0.18), transparent 55%);
  pointer-events: none;
  opacity: 0.85;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.testimonial-card__source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.testimonial-source__icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: var(--text-xs);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.testimonial-source__icon--discord {
  background: #5865f2;
}

.testimonial-source__icon--reddit {
  background: #ff4500;
}

.testimonial-source__icon--telegram {
  background: #26a5e4;
}

.testimonial-source__label {
  font-size: var(--text-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.testimonial-card__handle {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14ch;
}

.testimonial-card__stars {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #d3a75f;
  line-height: 1;
}

.testimonial-card__stars .stars__empty {
  color: rgba(102, 102, 102, 0.35);
}

.testimonial-card__quote {
  margin: 0;
  font-size: var(--text-2xs);
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

@keyframes testimonials-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - (var(--marquee-gap) / 2)));
  }
}

.landing-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  line-height: var(--lh-heading);
}

.landing-section__title--xl {
  font-size: var(--text-xl);
}

.landing-section__sub {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: var(--text-base);
  max-width: 50ch;
  line-height: var(--lh-body);
}

/* Explainer cards (How it works) */
.explainer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.explainer-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
}

.explainer-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.explainer-card__icon--sky {
  background: var(--sky-soft);
  color: var(--sky);
}

.explainer-card__icon--coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.explainer-card__icon--mint {
  background: var(--mint-soft);
  color: var(--mint);
}

.explainer-card__title {
  margin: 0 0 6px;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.explainer-card__text {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* Feature list (Easy to use) */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.feature-item__check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  color: var(--mint);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-item__body strong {
  font-size: var(--text-sm-plus);
  font-weight: 700;
  color: var(--ink);
}

.feature-item__body span {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* Security card */
.security-card {
  background: linear-gradient(135deg, rgba(224, 122, 95, 0.08), rgba(242, 204, 143, 0.12), rgba(129, 178, 154, 0.08));
  border: 1px solid #d4cfc7;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.security-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(242, 204, 143, 0.24);
  color: var(--lavender);
  margin: 0 auto 16px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.security-point {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}

.security-point strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}

.security-point span {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.5;
}

/* Bottom CTA */
.landing__bottom-cta {
  margin-top: 48px;
  text-align: center;
}

/* ──────────────────────────────────────
   8. Wizard Card (shared wrapper for steps 2-5)
   ────────────────────────────────────── */
.wizard-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.wizard-card--center {
  text-align: center;
}

.wizard-card__header {
  margin-bottom: 28px;
}

.wizard-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  line-height: var(--lh-heading);
}

.wizard-card__sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}

/* Onboarding surfaces: keep the same warm card language as the landing page */
.step[data-step="oauth"] .wizard-card,
.step[data-step="lobby"] .wizard-card,
.step[data-step="ready"] .wizard-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.step[data-step="oauth"] .wizard-card::before,
.step[data-step="lobby"] .wizard-card::before,
.step[data-step="ready"] .wizard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--sunshine), var(--sky));
}

/* ──────────────────────────────────────
   9. Payment / Pricing
   ────────────────────────────────────── */
.pricing-card {
  background: var(--paper);
  border: 2px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card__badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: white;
  background: linear-gradient(120deg, var(--coral), var(--sky));
  margin-bottom: 16px;
}

.pricing-card__amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}

.pricing-card__currency {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: 8px;
  color: var(--muted);
}

.pricing-card__number {
  font-family: var(--font-display);
  font-size: var(--text-display-2xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-card__period {
  font-size: var(--text-title-xs);
  font-weight: 600;
  color: var(--muted);
  align-self: flex-end;
  margin-bottom: 8px;
}

.pricing-card__note {
  margin: 0 0 20px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.pricing-card__fineprint {
  margin: 14px 0 0;
  font-size: var(--text-2xs);
  color: var(--muted);
}

.pricing-card__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm-plus);
  color: var(--ink);
}

.pricing-card__features li::before {
  content: "\2713";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--mint-soft);
  color: var(--mint);
  flex-shrink: 0;
}

.checkout-checklist {
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 0 0 18px;
  box-shadow: var(--shadow-sm);
}

.checkout-checklist__title {
  margin: 0 0 10px;
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: var(--lh-heading);
}

.checkout-checklist__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-checklist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: var(--text-sm-plus);
}

.checkout-checklist__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(26, 26, 26, 0.32);
  background: rgba(255, 255, 255, 0.9);
  color: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.checkout-checklist__box::before {
  content: "\2713";
  font-size: var(--text-2xs);
  font-weight: 800;
  line-height: 1;
}

.checkout-checklist__box:hover,
.checkout-checklist__box:focus-visible {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-soft);
  outline: none;
}

.checkout-checklist__item.is-checked .checkout-checklist__box {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: var(--mint);
}

.checkout-checklist__link {
  color: var(--coral);
  text-decoration: none;
}

.checkout-checklist__link:hover,
.checkout-checklist__link:focus-visible {
  color: var(--sky);
}

.checkout-checklist__hint {
  margin: 10px 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
}

[data-checkout-gated][hidden] {
  display: none !important;
}

/* Stripe embed wrapper (optional; only shown if configured) */
.pricing-embed__note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.checkout-embedded__mount {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 520px;
}

/* ──────────────────────────────────────
   10. API Key Flow
   ────────────────────────────────────── */
.api-key-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.claude-question {
  border: 0;
  padding: 0;
  margin: 0;
}

.claude-question__legend {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.claude-panel[data-visible-when="yes"] .instruction + .instruction {
  margin-top: 16px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-grid--tall .choice-card__ui {
  min-height: 320px;
  cursor: default;
}

.choice-card__ui--static {
  cursor: default;
}

.choice-card__ui--static:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.choice-card {
  display: block;
  position: relative;
}

.choice-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  inset: 0 auto auto 0;
}

.choice-card__ui {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px;
  min-height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  background: linear-gradient(180deg, rgba(250, 247, 242, 0.95), rgba(242, 204, 143, 0.12));
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.choice-card__title {
  font-size: var(--text-sm-plus);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.choice-card__desc {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.35;
}

.choice-card__input:focus-visible + .choice-card__ui {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-soft), 0 10px 24px rgba(0, 0, 0, 0.08);
}

.choice-card__input:checked + .choice-card__ui {
  border-color: rgba(129, 178, 154, 0.72);
  box-shadow: 0 0 0 4px var(--sky-soft), 0 10px 24px rgba(109, 158, 135, 0.2);
  background: linear-gradient(180deg, rgba(129, 178, 154, 0.16), rgba(255, 255, 255, 0.95));
}

.choice-card__ui:hover {
  transform: translateY(-1px);
  border-color: rgba(224, 122, 95, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(224, 122, 95, 0.1));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.claude-panel {
  display: none;
}

.claude-gate[data-claude-max="yes"] .claude-panel[data-visible-when="yes"],
.claude-gate[data-claude-max="no"] .claude-panel[data-visible-when="no"] {
  display: block;
}

.callout {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  padding: 18px 18px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
}

.callout--sunshine {
  background: linear-gradient(180deg, rgba(255, 203, 71, 0.18), rgba(255, 255, 255, 0.72));
  border-color: rgba(255, 203, 71, 0.35);
}

.callout__title {
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-size: var(--text-md);
}

.callout__text {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.callout__fineprint {
  margin: 10px 0 0;
  font-size: var(--text-2xs);
  color: var(--muted);
}

.instruction {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step[data-step="oauth"] .instruction {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  padding: 16px 16px;
}

.wizard-card .instruction + .instruction {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}

.step[data-step="oauth"] .wizard-card .instruction + .instruction {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.instruction__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--text-sm-plus);
  font-weight: 800;
  background: var(--sky-soft);
  color: var(--sky);
  flex-shrink: 0;
}

.instruction__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instruction__text {
  margin: 0;
  font-size: var(--text-base);
  color: var(--ink);
  line-height: var(--lh-body);
}

.instruction__hint {
  margin: -2px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.45;
}

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

/* ──────────────────────────────────────
   11. QR Code
   ────────────────────────────────────── */
.qr-container {
  margin: 8px auto 24px;
}

.qr-frame {
  --qr-padding: 12px;
  --qr-content-size: 228px;
  width: calc(var(--qr-content-size) + (var(--qr-padding) * 2));
  height: calc(var(--qr-content-size) + (var(--qr-padding) * 2));
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 3px solid var(--stroke);
  background: white;
  padding: var(--qr-padding);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.qr-frame__img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.qr-frame__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  border-radius: inherit;
  font-size: var(--text-sm);
  color: var(--muted);
}

.qr-frame__loading[hidden] {
  display: none;
}

.qr-help {
  margin-top: 4px;
  font-size: var(--text-sm-plus);
  color: var(--muted);
}

.qr-help p {
  margin: 0 0 12px;
}

.qr-help__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--text-xs);
}

/* ──────────────────────────────────────
   12. Lobby
   ────────────────────────────────────── */
.lobby__loading,
.lobby__error {
  display: none;
}

.lobby[data-lobby-state="loading"] .lobby__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 22px 18px;
}

.lobby[data-lobby-state="error"] .lobby__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(224, 122, 95, 0.28);
  border-radius: 18px;
  background: rgba(224, 122, 95, 0.08);
  padding: 20px 18px;
}

.ready-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative; /* anchors the confetti burst */
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px 18px;
}

.ready-screen__pending,
.ready-screen__success,
.ready-screen__error {
  width: 100%;
  display: none;
}

.ready-screen[data-ready-state="pending"] .ready-screen__pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
}

.ready-screen__pending-text {
  margin: 0;
}

.ready-screen[data-ready-state="success"] .ready-screen__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ready-screen[data-ready-state="error"] .ready-screen__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.ready-screen .wizard-card__title {
  font-weight: 700;
}

.ready-screen .wizard-card__title strong {
  font-weight: 900;
}

.lobby__progress-bar {
  width: 100%;
  max-width: 320px;
  height: 8px;
  border-radius: 8px;
  background: rgba(26, 26, 26, 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.lobby__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--coral), var(--sky), var(--mint));
  background-size: 200% 100%;
  animation: shimmer 2s ease infinite;
  transition: width 600ms ease;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Success celebration */
.success-mascot {
  margin: -6px 0 4px;
}

.lobby__ready {
  margin-top: -6px;
}

.success-mascot__img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(129, 178, 154, 0.2));
}

/* ──────────────────────────────────────
   13. Shared Components
   ────────────────────────────────────── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, opacity 150ms ease;
  position: relative;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Anchor buttons can't be disabled; use aria-disabled for link-as-button UX. */
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn.is-loading {
  /* Keep layout stable; spinner is inline next to text. */
  cursor: not-allowed;
}

.btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(26, 26, 26, 0.18);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  opacity: 0.9;
  flex: 0 0 auto;
  margin-right: 10px;
}

.btn--primary.is-loading::before {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.btn--primary {
  color: white;
  background: var(--coral);
  box-shadow: 0 10px 30px rgba(224, 122, 95, 0.28);
}

.btn--primary:hover:not(:disabled) {
  background: #c96b52;
  box-shadow: 0 12px 34px rgba(224, 122, 95, 0.32);
  transform: translateY(-1px);
}

.btn--secondary {
  color: var(--coral);
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(224, 122, 95, 0.45);
  box-shadow: 0 8px 20px rgba(224, 122, 95, 0.12);
}

.btn--secondary:hover:not(:disabled) {
  background: #fff;
  border-color: var(--coral);
  color: #c96b52;
  box-shadow: 0 10px 24px rgba(224, 122, 95, 0.18);
}

.btn--oauth-open {
  color: #fff;
  background: var(--coral);
  border: 0;
  box-shadow: 0 10px 30px rgba(224, 122, 95, 0.28);
}

.btn--oauth-open:hover:not(:disabled) {
  color: #fff;
  background: #c96b52;
  box-shadow: 0 12px 34px rgba(224, 122, 95, 0.32);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.85);
}

.btn--sm {
  padding: 8px 14px;
  font-size: var(--text-2xs);
}

.btn--jumbo {
  padding: 18px 40px;
  font-size: var(--text-md);
  margin-top: 32px;
}

.btn--full {
  width: 100%;
}

/* Form inputs */
.field__input {
  width: 100%;
  border-radius: 16px;
  border: 2px solid var(--stroke);
  background: var(--paper);
  padding: 14px 16px;
  font-size: var(--text-base);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.field__input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-soft);
}

.field__textarea {
  resize: vertical;
  min-height: 80px;
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: var(--text-sm);
}

.field-hint {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
  font-size: var(--text-xs);
  color: var(--muted);

  /* "Slide-down" hint. We avoid `[hidden]` so transitions can run. */
  max-height: 240px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 260ms ease,
    opacity 200ms ease,
    transform 200ms ease,
    margin-top 200ms ease,
    padding-top 200ms ease,
    padding-bottom 200ms ease,
    border-width 200ms ease;
}

.field-hint[aria-hidden="true"] {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  pointer-events: none;
}

.field-hint code {
  font-family: ui-monospace, "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: var(--text-2xs);
}

.field-hint--error {
  border-color: rgba(224, 122, 95, 0.45);
  background: rgba(224, 122, 95, 0.1);
  color: var(--ink);
}

/* Make the input look "error" when submit-time validation fails. */
.field__input[aria-invalid="true"] {
  border-color: rgba(224, 122, 95, 0.72);
  box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.16);
}

/* Status messages */
.step-status {
  margin: 16px 0 0;
  font-size: var(--text-sm);
  font-weight: 500;
  min-height: 20px;
}

.step-status p {
  margin: 0;
}

.step-status p + p {
  margin-top: 6px;
}

.step-status a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.step-status:empty {
  display: none;
}

.step-status.is-error {
  color: var(--coral);
}

.step-status.is-success {
  color: var(--mint);
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--stroke);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.spinner--lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ──────────────────────────────────────
   14. Footer
   ────────────────────────────────────── */
.foot {
  padding: 0 20px;
}

.foot__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  border-top: 1px solid var(--stroke);
  padding: 20px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand--foot .brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.brand--foot .brand__name {
  font-size: var(--text-sm-plus);
}

.foot__tag {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ──────────────────────────────────────
   15. Responsive
   ────────────────────────────────────── */
@media (max-width: 640px) {
  .main {
    padding: 16px 16px 40px;
  }

  .landing {
    padding-top: 14px;
  }

  .cc-hero__heading {
    font-size: calc(var(--text-hero) * 1.15);
  }

  .cc-hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "visual"
      "left";
    gap: 24px;
  }

  .cc-hero__title,
  .cc-hero__left,
  .cc-hero__subtitle,
  .cc-hero__cta {
    max-width: none;
    text-align: left;
  }

  .cc-hero__left,
  .cc-hero__cta {
    align-items: flex-start;
  }

  .cc-hero__subtitle p {
    font-size: var(--text-base-plus);
  }

  /* Mobile: keep bullet alignment consistent even when a bullet wraps to 2 lines. */
  .cc-hero__subtitle {
    width: 100%;
    text-align: left;
    align-self: flex-start;
  }

  .cc-hero__bullets {
    text-align: left;
  }

  .cc-hero__bullets li {
    padding-left: 0;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
  }

  .cc-hero__bullets li::before {
    position: static;
    flex: 0 0 24px;
    margin-top: 2px;
  }

  .cc-contrast {
    margin-top: 32px;
    padding: 30px 18px;
    border-radius: 20px;
  }

  .cc-audience-grid,
  .cc-feature-grid {
    grid-template-columns: 1fr;
  }

  .wizard-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }

  .flow-step:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 260px;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-card {
    padding: 28px 20px;
  }

  .progress__label {
    display: none !important;
  }

  .progress__track {
    gap: 44px;
  }

  .progress__step + .progress__step::before {
    width: 44px;
  }

  .qr-frame {
    --qr-padding: 10px;
    --qr-content-size: 200px;
  }

  .instruction {
    gap: 12px;
  }

  .instruction__num {
    width: 30px;
    height: 30px;
    font-size: var(--text-xs);
  }
}

@media (max-width: 380px) {
  .cc-hero__heading {
    font-size: calc(var(--text-hero) * 1.15);
  }

  .cc-contrast p {
    font-size: var(--text-title-sm-plus);
  }

  .btn--jumbo {
    padding: 16px 28px;
    font-size: var(--text-base);
  }
}

/* ──────────────────────────────────────
   16. Reduced Motion
   ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .step.is-active { animation: none; }
  .spinner { animation: spin 1.5s linear infinite; }
  .lobby__progress-fill { animation: none; }
  .use-cases-row { animation-duration: 80s; }
}
