:root {
  --violet: #6b4eff;
  --violet-deep: #4a2fd6;
  --teal: #12b3a2;
  --teal-deep: #0b8576;
  --ink: #161a3a;
  --muted: #5d6385;
  --paper: #ffffff;
  --bg1: #e6e1ff;
  --bg2: #d9f6f1;
  --line: #e4e3f3;
  --radius: 20px;
  --shadow: 0 22px 46px -22px rgba(40, 30, 120, .42);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(18, 179, 162, .30), transparent 60%),
    radial-gradient(1000px 620px at 5% 5%, rgba(107, 78, 255, .28), transparent 55%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

v-icon { width: 1em; height: 1em; }

a { color: var(--violet-deep); }

code { font-family: var(--mono); font-size: .92em; }

/* floating background icons */
.bg-icons { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-icons v-icon {
  position: absolute;
  opacity: .16;
  animation: float var(--duration) ease-in-out var(--delay) infinite alternate;
}

@keyframes float {
  from { transform: translate(0, 0) rotate(var(--rotate)); }
  to { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rotate) * -1)); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-icons v-icon { animation: none; transform: rotate(var(--rotate)); }
}

.shell { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 0 22px; }

/* header */
header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 6px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo .mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  display: grid; place-items: center;
  box-shadow: 0 10px 22px -8px rgba(107, 78, 255, .6);
}
/* The logo drawing, shown in white through a mask so the file itself stays untouched. */
.logo .mark-logo {
  width: 24px; height: 29px; background: #fff;
  -webkit-mask: url(/img/logo.svg) center / contain no-repeat;
  mask: url(/img/logo.svg) center / contain no-repeat;
}
.logo .name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 23px; color: var(--ink); }
header nav a {
  color: var(--violet-deep); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 9px 16px; border-radius: 999px; background: rgba(107, 78, 255, .12); transition: background .15s;
}
header nav a:hover { background: rgba(107, 78, 255, .22); }

/* hero */
.hero { padding: 56px 0 40px; text-align: center; }
.hero h1 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.03; margin: 0 auto 18px; letter-spacing: -.015em; max-width: 14ch;
}
.hero .accent { color: var(--violet-deep); }
.hero p { color: #343a63; font-size: 17px; line-height: 1.6; margin: 0 auto; max-width: 52ch; }

/* get started card */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 20px;
}
.card-top { height: 7px; background: linear-gradient(90deg, var(--violet), var(--teal)); }
.card-inner { padding: 26px 28px 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }

.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(107, 78, 255, .12); color: var(--violet-deep);
  font-weight: 800; display: grid; place-items: center;
}
.step-body { flex: 1; min-width: 0; }
.step h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: 20px; margin: 4px 0 10px; }

.code {
  display: flex; align-items: center; gap: 10px;
  background: #f4f3fc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.code code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--ink); }

.copy, .icon-button {
  border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px; font: inherit; line-height: 1;
}
.copy { font-size: 17px; }
.copy:hover, .copy.done { color: var(--teal-deep); }

.preview { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin: 18px 0 8px; font-size: 30px; color: var(--violet-deep); }
.preview v-icon:nth-child(even) { color: var(--teal-deep); }
.icon-button { font-size: 30px; color: var(--ink); }
.icon-button:hover { color: var(--violet); }
.icon-button:disabled { cursor: default; color: var(--violet); }

.hint { color: var(--muted); font-size: 14.5px; margin: 0; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 0; }
.fact {
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  backdrop-filter: blur(6px);
}
.fact v-icon { font-size: 22px; color: var(--teal-deep); }
.fact h3 { font-family: "Bricolage Grotesque", sans-serif; font-size: 17px; margin: 10px 0 6px; }
.fact p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 40px 0 34px; color: var(--muted); font-size: 14px;
}

@media (max-width: 720px) {
  .hero { padding: 36px 0 28px; }
  .card-inner { padding: 22px 18px 22px; }

  /* Number and heading on one line, the rest of the step below at full width. */
  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
  .step-body { display: contents; }
  .step-body > * { grid-column: 1 / -1; }
  .step-body > h2 { grid-column: 2; margin: 0; }
  .preview { margin: 4px 0 0; gap: 10px; justify-content: space-between; }
  .facts { grid-template-columns: 1fr; }
}
