/* ImpSave — the whole product is one field. Everything on this sheet exists
   to make that field feel worth trusting: a dark stage that pulls the eye to
   it, a glass console around it, and a body of calm white sections after.
   No web fonts, no framework; the system stack is what makes it feel native. */

/* ------------------------------------------------------------ tokens ---- */
:root {
  --ink: #100e26;
  --ink-2: #151238;
  --carbon: #1d1d1f;
  --graphite: #424245;
  --steel: #6e6e73;
  --silver: #86868b;
  --mist: #d2d2d7;
  --cloud: #e8e8ed;
  --frost: #f5f5f7;
  --white: #fff;

  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-glow: #2997ff;
  --green: #30d158;
  --amber: #ffd60a;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;

  --shell: 880px;
  --shell-wide: 1180px;
  --nav-h: 52px;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 980px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.3, 0.64, 1);
  --fast: 160ms;
  --slow: 420ms;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--carbon);
  background: var(--frost);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

svg {
  display: block;
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  background: var(--white);
  color: var(--carbon);
  border-radius: var(--r-sm);
  z-index: 100;
}

:focus-visible {
  outline: 2px solid var(--blue-glow);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.shell--wide {
  max-width: var(--shell-wide);
}

/* ----------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    background-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    opacity var(--fast) var(--ease);
}

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

.btn--primary {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

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

.btn--quiet {
  background: var(--frost);
  color: var(--carbon);
}

.btn--quiet:hover {
  background: var(--cloud);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn--ghost:hover {
  background: rgba(0, 113, 227, 0.06);
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn[disabled] {
  cursor: default;
}

/* --------------------------------------------------------------- nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    background-color 320ms var(--ease),
    border-color 320ms var(--ease),
    color 320ms var(--ease);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 26px;
  height: 26px;
}

.brand__save {
  color: var(--blue);
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__links a {
  display: inline-block;
  padding: 7px 12px;
  white-space: nowrap;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
  transition:
    background-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.nav__links a:hover {
  color: var(--carbon);
  background: rgba(0, 0, 0, 0.05);
}

/* Over the stage the bar is glass on ink, and only appears once the page
   moves — at the top the stage owns the whole viewport. */
.has-stage .nav {
  color: var(--white);
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.has-stage .nav.is-stuck {
  background: rgba(16, 14, 38, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.has-stage .nav .brand__save {
  color: var(--blue-glow);
}

.has-stage .nav__links a {
  color: rgba(255, 255, 255, 0.72);
}

.has-stage .nav__links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ------------------------------------------------------------- stage ---- */
.stage {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 104px;
  color: var(--white);
  background: linear-gradient(180deg, #0a0918 0%, var(--ink-2) 58%, #17134a 100%);
  isolation: isolate;
}

.stage--compact {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 88px;
}

.sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.75;
}

.star--a {
  animation: twinkle 4s ease-in-out infinite;
}

.star--b {
  animation: twinkle 5.5s ease-in-out 1.2s infinite;
}

.star--c {
  animation: twinkle 7s ease-in-out 2.6s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.9;
  }
}

.stage__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52% 44% at 50% 38%, rgba(41, 151, 255, 0.26), transparent 70%),
    radial-gradient(38% 34% at 68% 62%, rgba(139, 125, 255, 0.2), transparent 70%),
    radial-gradient(60% 30% at 50% 100%, rgba(41, 151, 255, 0.14), transparent 70%);
}

.stage__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stage__mascot {
  width: 176px;
  margin-bottom: 22px;
  filter: drop-shadow(0 26px 34px rgba(41, 151, 255, 0.28));
  animation: hover 6s ease-in-out infinite;
}

.stage__mascot--sm {
  width: 132px;
  margin-bottom: 18px;
}

@keyframes hover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.stage__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 9px;
  margin-bottom: 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 500;
}

.stage__tag svg {
  width: 18px;
  height: 18px;
  fill: var(--accent, #fff);
}

.stage__tag[data-slug="x"] svg {
  fill: var(--white);
}

.stage__title {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.032em;
  max-width: 22ch;
  text-wrap: balance;
}

.stage__sub {
  margin-top: 18px;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.66);
  text-wrap: pretty;
}

.assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.assure li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.assure svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

/* ----------------------------------------------------------- console ---- */
.console {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin-top: 40px;
  padding: 12px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.7),
    0 18px 40px -20px rgba(41, 151, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-align: left;
  transition:
    box-shadow var(--slow) var(--ease),
    border-color var(--slow) var(--ease);
}

.console.is-focus {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.7),
    0 24px 60px -20px rgba(41, 151, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* A highlight that travels the console edge while the field is focused or
   busy: a sharp band masked to the border, and a blurred copy behind the
   console that reads as light spilling out. The console itself must not
   form a stacking context (no backdrop-filter) for the halo to sit behind. */
.console__ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 170deg,
    rgba(41, 151, 255, 1) 250deg,
    rgba(139, 125, 255, 1) 300deg,
    transparent 360deg
  );
  pointer-events: none;
  padding: 2px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--slow) var(--ease);
}

.console__halo {
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 170deg,
    rgba(41, 151, 255, 0.9) 250deg,
    rgba(139, 125, 255, 0.9) 300deg,
    transparent 360deg
  );
  filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--slow) var(--ease);
}

.console.is-focus .console__ring,
.console.is-busy .console__ring {
  opacity: 1;
  animation: orbit 3.2s linear infinite;
}

.console.is-focus .console__halo,
.console.is-busy .console__halo {
  opacity: 0.5;
  animation: orbit 3.2s linear infinite;
}

.console.is-busy .console__ring,
.console.is-busy .console__halo {
  animation-duration: 1.4s;
}

@keyframes orbit {
  to {
    --angle: 360deg;
  }
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 8px 8px 8px 18px;
  border-radius: 18px;
  background: var(--white);
  color: var(--carbon);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 0 0 0 rgba(255, 69, 58, 0);
  transition: box-shadow var(--fast) var(--ease);
}

.field.is-invalid {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 0 0 2px rgba(255, 69, 58, 0.85);
}

.field__icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--silver);
  transition: color var(--fast) var(--ease);
}

.field__icon svg {
  width: 100%;
  height: 100%;
}

.console.is-detected .field__icon {
  color: var(--accent, var(--blue));
}

.console.is-detected[data-slug="x"] .field__icon {
  color: var(--carbon);
}

.field__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
}

.field__input::placeholder {
  color: var(--silver);
}

.field__clear {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cloud);
  color: var(--steel);
  display: grid;
  place-items: center;
  transition:
    background-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.field__clear[hidden] {
  display: none;
}

.field__clear svg {
  width: 12px;
  height: 12px;
}

.field__clear:hover {
  background: var(--mist);
  color: var(--carbon);
}

.field__actions {
  flex: none;
  display: flex;
  gap: 6px;
}

.field .btn {
  height: 48px;
  border-radius: 13px;
}

.field .btn--primary {
  position: relative;
  padding: 0 24px;
  box-shadow: 0 8px 20px -8px rgba(0, 113, 227, 0.7);
}

.btn__spinner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}

.btn__label {
  transition: opacity var(--fast) var(--ease);
}

.btn.is-busy .btn__spinner {
  opacity: 1;
  animation: spin 0.7s linear infinite;
}

.btn.is-busy .btn__label {
  opacity: 0;
}

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

.console__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 12px 8px 2px;
}

.detect {
  display: flex;
  flex: none;
  gap: 2px;
  white-space: nowrap;
}

.detect__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  transition:
    color 260ms var(--ease),
    background-color 260ms var(--ease),
    opacity 260ms var(--ease),
    transform 260ms var(--spring);
}

.detect__glyph {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: fill 260ms var(--ease);
}

.detect.is-dim .detect__item:not(.is-on) {
  opacity: 0.45;
}

.detect__item.is-on {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.detect__item.is-on .detect__glyph {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
}

.detect__item[data-slug="x"].is-on .detect__glyph {
  fill: var(--white);
  filter: none;
}

.console__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transition: color 260ms var(--ease);
}

.console__status-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition:
    background-color 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

.console__status.is-ok {
  color: rgba(255, 255, 255, 0.86);
}

.console__status.is-ok .console__status-dot {
  background: var(--green);
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.8);
}

.console__status.is-warn {
  color: rgba(255, 214, 10, 0.9);
}

.console__status.is-warn .console__status-dot {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 214, 10, 0.7);
}

.console__status.is-busy .console__status-dot {
  background: var(--blue-glow);
  box-shadow: 0 0 10px rgba(41, 151, 255, 0.8);
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.console__error {
  display: none;
  margin: 12px 8px 2px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.25);
  color: #ffb4ab;
  font-size: 14px;
  line-height: 1.4;
}

.console__error.is-visible {
  display: block;
  animation: rise var(--slow) var(--ease) both;
}

/* ------------------------------------------------------------- panel ---- */
.panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.panel[hidden] {
  display: none;
}

.panel--enter {
  animation: rise var(--slow) var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel__hint {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.panel .btn--quiet {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.panel .btn--quiet:hover {
  background: rgba(255, 255, 255, 0.16);
}

.result__head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.result__thumb {
  flex: none;
  width: 124px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
}

.result__meta {
  min-width: 0;
}

.result__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.result__source {
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.qualities {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.quality {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-align: left;
  transition:
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}

.quality:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.quality:active {
  transform: none;
}

.quality__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.quality__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.quality__label {
  font-size: 15px;
  font-weight: 600;
}

.quality__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.quality__right {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.6);
}

.quality__right svg {
  color: rgba(255, 255, 255, 0.35);
  transition:
    transform var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.quality:hover .quality__right svg {
  color: var(--white);
  transform: translateY(2px);
}

.badge {
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.progress {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 4px;
}

.progress__ring {
  flex: none;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}

.progress__track,
.progress__value {
  fill: none;
  stroke-width: 3.5;
}

.progress__track {
  stroke: rgba(255, 255, 255, 0.12);
}

.progress__value {
  stroke: var(--blue-glow);
  stroke-linecap: round;
  transition: stroke-dashoffset 600ms var(--ease);
}

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

.progress__text strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.progress__text span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.done__check {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 0 24px rgba(48, 209, 88, 0.45);
  animation: pop var(--slow) var(--spring) both;
}

@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

.done__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.done__text strong {
  font-size: 17px;
  font-weight: 600;
}

.done__text span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.done__actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.done__secondary {
  display: inline-flex;
  gap: 4px;
}

.alert {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.25);
  color: #ffb4ab;
  font-size: 14px;
  line-height: 1.45;
}

.panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

/* ------------------------------------------------------------ mascot ---- */
.mascot {
  width: 100%;
  height: auto;
  overflow: visible;
}

.mascot__helmet,
.mascot__flaps path {
  fill: var(--white);
  stroke: var(--ink);
  stroke-linejoin: round;
}

.mascot__badge {
  fill: var(--ink);
}

.mascot__waves {
  stroke: rgba(255, 255, 255, 0.72);
  transition: stroke var(--slow) var(--ease);
}

.mascot__glint {
  opacity: 0;
  animation: glint 7s var(--ease) infinite;
}

@keyframes glint {
  0%,
  60% {
    transform: translateX(-300px);
    opacity: 0;
  }
  68% {
    opacity: 0.16;
  }
  82%,
  100% {
    transform: translateX(600px);
    opacity: 0;
  }
}

.mascot__arrows {
  transform-origin: 0 0;
  transition:
    transform var(--slow) var(--spring),
    opacity var(--fast) var(--ease);
}

.mascot__check,
.mascot__bang {
  opacity: 0;
  transform: scale(0.7);
  transform-origin: 0 0;
  transition:
    opacity var(--fast) var(--ease),
    transform var(--slow) var(--spring);
}

.mascot__check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 480ms var(--ease) 80ms;
}

.mascot--working .mascot__arrows {
  animation: spin 1.15s linear infinite;
}

.mascot--working .mascot__wave:nth-child(1),
.mascot--working .mascot__wave:nth-child(4) {
  animation: signal 1.2s ease-in-out infinite;
}

.mascot--working .mascot__wave:nth-child(2),
.mascot--working .mascot__wave:nth-child(5) {
  animation: signal 1.2s ease-in-out 0.2s infinite;
}

.mascot--working .mascot__wave:nth-child(3),
.mascot--working .mascot__wave:nth-child(6) {
  animation: signal 1.2s ease-in-out 0.4s infinite;
}

@keyframes signal {
  0%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

.mascot--done .mascot__arrows,
.mascot--error .mascot__arrows {
  opacity: 0;
  transform: scale(0.6);
}

.mascot--done .mascot__check {
  opacity: 1;
  transform: none;
}

.mascot--done .mascot__check path {
  stroke-dashoffset: 0;
}

.mascot--error .mascot__bang {
  opacity: 1;
  transform: none;
}

.mascot--error .mascot__waves {
  stroke: rgba(255, 214, 10, 0.9);
}

/* ---------------------------------------------------------- sections ---- */
.section {
  padding: 108px 0;
}

.section--tint {
  background: var(--white);
  --card-bg: var(--frost);
}

.section--first {
  padding-top: calc(var(--nav-h) + 88px);
}

.section__head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__head h2,
.h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section__head p {
  margin-top: 14px;
  font-size: 19px;
  color: var(--steel);
  text-wrap: pretty;
}

.section__cta {
  margin-top: 48px;
  text-align: center;
}

.section__cta--left {
  text-align: left;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card-bg, var(--white));
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.035);
}

.step__art {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #f5f5f7, #ebebf0);
}

.step__body {
  padding: 24px 28px 30px;
}

.step__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.step h3 {
  margin: 8px 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--steel);
}

.mini-field {
  width: 100%;
  max-width: 300px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--white);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 12px 30px -10px rgba(0, 0, 0, 0.14);
  font-size: 14px;
  color: var(--carbon);
}

.mini-field__icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cloud);
}

.mini-field__caret {
  width: 1.5px;
  height: 18px;
  background: var(--blue);
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.mini-list {
  width: 100%;
  max-width: 300px;
  display: grid;
  gap: 6px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--white);
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mini-row b {
  font-weight: 600;
}

.mini-row i,
.mini-row s {
  font-style: normal;
  text-decoration: none;
  color: var(--silver);
}

.mini-row s {
  margin-left: auto;
}

.mini-row em {
  font-style: normal;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
}

.mini-row.is-on {
  box-shadow:
    0 0 0 1.5px var(--blue),
    0 10px 24px -10px rgba(0, 113, 227, 0.4);
}

.mini-done {
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--white);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 12px 30px -10px rgba(0, 0, 0, 0.14);
}

.mini-done__check {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
}

.mini-done__check::after {
  content: "";
  width: 7px;
  height: 12px;
  margin-top: -3px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.mini-done__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-done__text b {
  font-size: 14px;
  font-weight: 600;
}

.mini-done__text i {
  font-style: normal;
  font-size: 12px;
  color: var(--silver);
}

.mini-done__btn {
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}

/* platform cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card-bg, var(--white));
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.2);
}

.card__glyph {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent, var(--carbon));
  color: var(--white);
  box-shadow: 0 10px 20px -10px var(--accent, rgba(0, 0, 0, 0.3));
}

.card__glyph svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  color: var(--steel);
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
}

.card__more svg {
  width: 12px;
  height: 12px;
  transition: transform var(--fast) var(--ease);
}

.card:hover .card__more svg {
  transform: translateX(3px);
}

/* trust */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust__item {
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: var(--card-bg, var(--white));
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.trust__figure {
  display: block;
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--carbon), #4a4670);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust__item strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trust__item span:last-child {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: var(--steel);
}

/* faq */
.faq {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cloud)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 2.5v7M2.5 6h7' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transition: transform 260ms var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-width: 660px;
  padding: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
}

/* prose */
.prose h1 {
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.prose h2 {
  margin: 44px 0 12px;
}

.prose > h2:first-child {
  margin-top: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--graphite);
}

.prose .lede {
  margin-top: 18px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--steel);
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul:not(.pills) {
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
  color: var(--graphite);
}

.prose ul:not(.pills) li {
  margin-top: 6px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pills li {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 500;
}

/* ------------------------------------------------------------ footer ---- */
.footer {
  padding: 64px 0 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer .brand {
  color: var(--white);
}

.footer .brand__save {
  color: var(--blue-glow);
}

.footer__brand p {
  max-width: 320px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.footer h4 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
}

.footer li {
  margin-top: 9px;
  font-size: 14px;
}

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

.footer__note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* -------------------------------------------------------- responsive ---- */
@media (max-width: 1024px) {
  .steps,
  .grid,
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .console__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .console__status {
    padding: 0 6px;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .shell {
    padding: 0 20px;
  }

  .nav__links a {
    padding: 7px 9px;
    font-size: 13px;
  }

  .stage {
    padding: calc(var(--nav-h) + 44px) 0 72px;
  }

  .stage--compact {
    padding-bottom: 64px;
  }

  .stage__mascot {
    width: 132px;
    margin-bottom: 18px;
  }

  .stage__mascot--sm {
    width: 110px;
  }

  .stage__sub {
    font-size: 17px;
  }

  .console {
    margin-top: 30px;
    padding: 8px;
    border-radius: 24px;
  }

  .field {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .field__icon {
    margin-left: 8px;
  }

  .field__input {
    flex: 1 1 0;
    height: 44px;
    font-size: 16px;
  }

  .field__clear {
    margin-right: 6px;
  }

  .field__actions {
    flex: 1 0 100%;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
  }

  .field .btn {
    height: 48px;
    padding: 0;
  }

  .console__foot {
    padding: 12px 4px 4px;
  }

  .detect {
    justify-content: space-between;
    gap: 0;
  }

  .detect__item {
    padding: 0 8px;
  }

  .detect__name {
    display: none;
  }

  .detect__item.is-on .detect__name {
    display: inline;
  }

  .panel {
    padding: 12px;
    border-radius: 16px;
  }

  .result__thumb {
    width: 96px;
    height: 60px;
  }

  .quality {
    padding: 10px 12px;
  }

  .quality__note {
    flex-basis: 100%;
  }

  .done__actions {
    margin-left: 0;
    flex-basis: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .section--first {
    padding-top: calc(var(--nav-h) + 56px);
  }

  .section__head {
    margin-bottom: 36px;
  }

  .section__head p {
    font-size: 17px;
  }

  .steps,
  .grid,
  .trust {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step__art {
    height: 160px;
  }

  .step__body {
    padding: 20px 22px 26px;
  }

  .card,
  .trust__item {
    padding: 24px;
  }

  .faq__item summary {
    padding: 18px 0;
    font-size: 17px;
  }

  .footer {
    padding: 48px 0 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__note {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 430px) {
  .brand__name {
    font-size: 17px;
  }

  .nav__links a {
    padding: 7px 7px;
  }

  .nav__links li:last-child {
    display: none;
  }

  .assure {
    gap: 6px 16px;
  }
}

/* ---------------------------------------------------- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .console.is-focus .console__ring,
  .console.is-busy .console__ring {
    animation: none;
    opacity: 0.8;
  }
}
