:root {
  color-scheme: light dark;
  --bg: #f4f5f2;
  --bg-strong: #e8ece7;
  --ink: #101416;
  --ink-soft: #2f3438;
  --muted: #60666c;
  --accent: #0a6d6a;
  --accent-strong: #0c4b45;
  --signal: #c79a2a;
  --card: #f9faf7;
  --border: rgba(16, 20, 22, 0.12);
  --shadow: 0 18px 50px rgba(16, 20, 22, 0.08);
  --pill-bg: rgba(255, 255, 255, 0.6);
  --step-number: rgba(16, 20, 22, 0.08);
  --progress-bg: #0a6d6a;
  --progress-text: #f7fbfa;
  --progress-border: rgba(10, 109, 106, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1113;
    --bg-strong: #151a1d;
    --ink: #f2f4f6;
    --ink-soft: #c7cdd2;
    --muted: #9aa4ab;
    --accent: #57c2bb;
    --accent-strong: #35a099;
    --signal: #e4c05a;
    --card: #14181b;
    --border: rgba(242, 244, 246, 0.12);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --pill-bg: rgba(20, 24, 27, 0.7);
    --step-number: rgba(242, 244, 246, 0.12);
    --progress-bg: #57c2bb;
    --progress-text: #0b1113;
    --progress-border: rgba(87, 194, 187, 0.55);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f2;
  --bg-strong: #e8ece7;
  --ink: #101416;
  --ink-soft: #2f3438;
  --muted: #60666c;
  --accent: #0a6d6a;
  --accent-strong: #0c4b45;
  --signal: #c79a2a;
  --card: #f9faf7;
  --border: rgba(16, 20, 22, 0.12);
  --shadow: 0 18px 50px rgba(16, 20, 22, 0.08);
  --pill-bg: rgba(255, 255, 255, 0.6);
  --step-number: rgba(16, 20, 22, 0.08);
  --progress-bg: #0a6d6a;
  --progress-text: #f7fbfa;
  --progress-border: rgba(10, 109, 106, 0.35);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1113;
  --bg-strong: #151a1d;
  --ink: #f2f4f6;
  --ink-soft: #c7cdd2;
  --muted: #9aa4ab;
  --accent: #57c2bb;
  --accent-strong: #35a099;
  --signal: #e4c05a;
  --card: #14181b;
  --border: rgba(242, 244, 246, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --pill-bg: rgba(20, 24, 27, 0.7);
  --step-number: rgba(242, 244, 246, 0.12);
  --progress-bg: #57c2bb;
  --progress-text: #0b1113;
  --progress-border: rgba(87, 194, 187, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -30vh -20vw;
  z-index: -2;
  background:
    radial-gradient(40% 40% at 20% 20%, rgba(10, 109, 106, 0.22), transparent 65%),
    radial-gradient(35% 35% at 85% 20%, rgba(199, 154, 42, 0.18), transparent 70%),
    radial-gradient(40% 40% at 70% 80%, rgba(12, 75, 69, 0.18), transparent 70%),
    radial-gradient(50% 45% at 10% 80%, rgba(47, 52, 56, 0.12), transparent 70%);
  filter: blur(8px) saturate(150%);
  opacity: 1;
  animation: drift 11s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
}

body::after {
  inset: -15vh -15vw;
  opacity: 0.85;
  filter: blur(12px) saturate(155%);
  background:
    repeating-linear-gradient(
      115deg,
      rgba(10, 109, 106, 0.22) 0,
      rgba(10, 109, 106, 0.22) 2px,
      transparent 2px,
      transparent 16px
    ),
    radial-gradient(30% 30% at 75% 35%, rgba(199, 154, 42, 0.32), transparent 70%),
    radial-gradient(35% 35% at 30% 70%, rgba(12, 75, 69, 0.32), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate-reverse, wave 4.5s linear infinite;
  background-size: 220px 220px, 100% 100%, 100% 100%;
}

@keyframes drift {
  0% {
    transform: translate3d(-5%, -4%, 0) scale(1.05);
  }
  50% {
    transform: translate3d(4%, 5%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(5.5%, -4%, 0) scale(1.06);
  }
}

@keyframes wave {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 420px 300px, 0 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  left: 24px;
  top: 24px;
}

.hero {
  padding: 72px 5vw 48px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(10, 109, 106, 0.08), rgba(199, 154, 42, 0.08));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--muted);
}

.theme-control {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.theme-control label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.theme-control select {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 10px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 13px;
  cursor: pointer;
}

h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 22px;
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
}

.hero-points li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-nav a {
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--pill-bg);
}

.hero-nav a.is-active {
  border-color: rgba(10, 109, 106, 0.45);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(10, 109, 106, 0.25);
}

main {
  padding: 0 5vw 88px;
}

.section-head {
  max-width: 1100px;
  margin: 0 auto 26px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
}

.steps-grid {
  list-style: none;
  display: grid;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.step-card::before {
  content: attr(data-step);
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 700;
  color: var(--step-number);
  line-height: 1;
  pointer-events: none;
}

.step-card h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  margin-bottom: 8px;
}

.step-card.is-complete {
  border-color: rgba(10, 109, 106, 0.35);
  box-shadow: 0 18px 50px rgba(10, 109, 106, 0.18);
  background: linear-gradient(135deg, rgba(10, 109, 106, 0.08), rgba(199, 154, 42, 0.08));
}

:root[data-theme="light"] .step-card {
  background: linear-gradient(135deg, rgba(10, 109, 106, 0.08), rgba(199, 154, 42, 0.08));
  border-color: transparent;
}

:root[data-theme="light"] .step-card.is-complete {
  background: var(--card);
  border-color: rgba(10, 109, 106, 0.35);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .step-card {
    background: linear-gradient(135deg, rgba(10, 109, 106, 0.08), rgba(199, 154, 42, 0.08));
    border-color: transparent;
  }

  :root:not([data-theme]) .step-card.is-complete {
    background: var(--card);
    border-color: rgba(10, 109, 106, 0.35);
  }
}

.step-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  cursor: pointer;
}

.step-check input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--accent-strong);
  background: transparent;
  display: inline-grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.step-check input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s ease;
}

.step-check input:checked {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}

.step-check input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.step-check span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.command {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 14px;
  color: var(--accent-strong);
  background: rgba(10, 109, 106, 0.08);
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.summary {
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 760px;
}

.params {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.params div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
}

.params dt {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 13px;
  color: var(--accent-strong);
  margin: 0;
}

.params dd {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.required {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.search-link {
  display: inline;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: underline;
}

.notes,
.faq,
.next {
  margin-top: 60px;
}

.notes-list {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  display: grid;
  gap: 12px;
}

.notes-list li {
  background: var(--bg-strong);
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

.faq-grid,
.next-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.faq-grid article,
.next-grid article {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 18px;
}

.faq-grid h3,
.next-grid h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.faq-grid p,
.next-grid p {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 36px 5vw 60px;
  text-align: center;
  color: var(--muted);
}

.site-footer a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-strong);
}

.progress-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--progress-bg);
  color: var(--progress-text);
  border: 1px solid var(--progress-border);
  font-weight: 700;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  box-shadow: 0 14px 30px rgba(10, 109, 106, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 20;
}

.progress-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(10, 109, 106, 0.35);
}

.progress-widget.pulse {
  animation: pulse 0.4s ease;
}

.progress-widget.complete-pulse {
  animation: completePulse 0.7s ease;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes completePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 14px 30px rgba(10, 109, 106, 0.3);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 22px 44px rgba(10, 109, 106, 0.45);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 14px 30px rgba(10, 109, 106, 0.3);
  }
}

.progress-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 14, 0.5);
  display: grid;
  place-items: center;
  z-index: 30;
}

.progress-modal[hidden] {
  display: none;
}

.progress-card {
  width: min(560px, 90vw);
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.progress-card h3 {
  margin-bottom: 12px;
}

.progress-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.progress-list li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.progress-list .empty {
  color: var(--muted);
}

.progress-reset {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 720px) {
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-inner {
    padding: 28px;
  }

  .step-card {
    padding: 22px;
  }

  .command {
    font-size: 13px;
  }
}
