:root {
  --bg: #121316;
  --surface: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ececef;
  --muted: #a8a8b3;
  --accent: #8b9cff;
  --accent-2: #5eead4;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60rem 40rem at 10% -10%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(50rem 40rem at 110% 30%, rgba(20, 184, 166, 0.16), transparent 60%),
    radial-gradient(50rem 40rem at -10% 100%, rgba(168, 85, 247, 0.14), transparent 60%),
    linear-gradient(180deg, #17181c 0%, var(--bg) 100%);
  background-attachment: fixed;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
}

/* Header */
.hero {
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff 0%, #c7cdff 60%, #a5f3e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

strong {
  font-weight: 650;
  color: #fff;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.callout {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-left-width: 4px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
}

.callout p {
  margin: 0;
}

.callout .callout-title {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fcd34d;
}

.intro {
  margin-bottom: 3rem;
}

.intro p,
.intro ul {
  margin: 0 0 1rem;
}

.intro ul {
  padding-left: 1.25rem;
}

.intro li + li {
  margin-top: 0.25rem;
}

.note {
  margin-bottom: 0 !important;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 10px 10px 0;
  background: rgba(94, 234, 212, 0.07);
  font-size: 0.9375rem;
  color: #d4d4dc;
}

/* Example SMS */
.sms {
  position: relative;
  margin: 0 0 1.25rem;
  max-width: 22rem;
}

.sms-tag {
  position: absolute;
  top: -0.6rem;
  right: 0.75rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #3a3b42;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Parts */
section + section {
  margin-top: 3.5rem;
}

.part {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.part-num {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(20, 184, 166, 0.35));
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e6e8ff;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps--continued {
  counter-reset: step 9;
}

.step {
  counter-increment: step;
  position: relative;
  padding-left: 4.5rem;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #0f766e);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.step > p {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
}

.step--done {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.06);
}

/* Screenshots */
.shot-link {
  display: block;
  margin-top: 1rem;
  border-radius: 12px;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.shot--icon {
  width: 4rem;
  margin-top: 1rem;
  border: 0;
  box-shadow: none;
}

.shot--phone { max-width: 16rem; }
.shot--wide  { max-width: 21rem; }
.shot--tall  { max-width: 19rem; }
.shot--desktop { max-width: 26rem; }

/* Footer */
.footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 30rem) {
  .page {
    padding-top: 2.5rem;
  }

  .card {
    padding: 1.25rem;
  }

  .step {
    padding-left: 1.25rem;
    padding-top: 4rem;
  }

  .step::before {
    top: 1.25rem;
    left: 1.25rem;
  }
}
