/* CETverse — Delete account
   A quiet night-sky farewell page. Brand blues carried over from the app,
   coral reserved strictly for the destructive action. */

:root {
  --ink-950: #04071a;
  --ink-900: #070c24;
  --ink-800: #0b1538;
  --ink-700: #10204f;

  --blue: #3c64b1;
  --blue-400: #5b82d4;
  --blue-300: #8fb0ff;
  --sky: #03a9f4;

  --text: #eef2ff;
  --text-2: #b4c0e0;
  --text-3: #8593b8;

  --coral: #ff6b6b;
  --coral-600: #e04848;
  --mint: #34d399;
  --amber: #fbbf24;

  --card: rgba(12, 24, 70, 0.55);
  --card-2: rgba(255, 255, 255, 0.035);
  --line: rgba(160, 184, 255, 0.16);
  --line-2: rgba(160, 184, 255, 0.3);
  --input-bg: rgba(4, 7, 26, 0.55);

  --radius-xl: 28px;
  --radius: 18px;
  --radius-sm: 12px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* film grain over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

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

a {
  color: var(--blue-300);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

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

:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------------- */
/* Sky                                                                     */
/* ---------------------------------------------------------------------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1100px 760px at 82% -12%, rgba(60, 100, 177, 0.5), transparent 62%),
    radial-gradient(900px 640px at -12% 108%, rgba(3, 169, 244, 0.16), transparent 60%),
    radial-gradient(640px 460px at 58% 112%, rgba(255, 107, 107, 0.09), transparent 62%),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 45%, var(--ink-800) 100%);
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  inset: -320px;
  background-repeat: repeat;
  will-change: transform;
}

/* near stars: 320px tile */
.sky::before {
  opacity: 0.85;
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, #fff 60%, transparent 100%),
    radial-gradient(1.1px 1.1px at 140px 96px, rgba(255, 255, 255, 0.9) 60%, transparent 100%),
    radial-gradient(1.6px 1.6px at 250px 40px, rgba(191, 210, 255, 0.95) 60%, transparent 100%),
    radial-gradient(1px 1px at 300px 210px, rgba(255, 255, 255, 0.8) 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 80px 260px, rgba(255, 255, 255, 0.85) 60%, transparent 100%),
    radial-gradient(1.8px 1.8px at 190px 300px, rgba(143, 176, 255, 0.9) 60%, transparent 100%);
  background-size: 320px 320px;
  animation: drift-a 160s linear infinite;
}

/* far stars: 520px tile, dimmer, slower, opposite direction */
.sky::after {
  opacity: 0.45;
  background-image:
    radial-gradient(1px 1px at 60px 80px, #fff 60%, transparent 100%),
    radial-gradient(0.9px 0.9px at 200px 30px, rgba(255, 255, 255, 0.8) 60%, transparent 100%),
    radial-gradient(1px 1px at 380px 150px, rgba(255, 255, 255, 0.9) 60%, transparent 100%),
    radial-gradient(0.8px 0.8px at 470px 420px, rgba(255, 255, 255, 0.7) 60%, transparent 100%),
    radial-gradient(1.1px 1.1px at 120px 360px, rgba(191, 210, 255, 0.8) 60%, transparent 100%),
    radial-gradient(0.9px 0.9px at 300px 480px, rgba(255, 255, 255, 0.75) 60%, transparent 100%),
    radial-gradient(1px 1px at 20px 500px, rgba(255, 255, 255, 0.7) 60%, transparent 100%);
  background-size: 520px 520px;
  animation: drift-b 260s linear infinite;
}

@keyframes drift-a {
  to { transform: translate3d(-320px, -320px, 0); }
}

@keyframes drift-b {
  to { transform: translate3d(520px, -520px, 0); }
}

/* ---------------------------------------------------------------------- */
/* Top bar                                                                 */
/* ---------------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fade-down 0.7s var(--ease-out) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(3, 169, 244, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.brand-name {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--blue-300);
}

.topbar-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.topbar-link:hover {
  text-decoration: none;
  color: var(--text);
  border-color: var(--line-2);
  background: var(--card-2);
}

/* ---------------------------------------------------------------------- */
/* Layout                                                                  */
/* ---------------------------------------------------------------------- */

.layout {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "panel"
    "facts";
  gap: 36px;
}

.intro { grid-area: intro; }
.panel { grid-area: panel; }
.facts { grid-area: facts; }

@media (min-width: 960px) {
  .layout {
    padding-top: 64px;
    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 470px);
    grid-template-areas:
      "intro panel"
      "facts panel";
    column-gap: 72px;
    row-gap: 56px;
    align-items: start;
  }

  .panel {
    position: sticky;
    top: 28px;
  }
}

/* ---------------------------------------------------------------------- */
/* Intro                                                                   */
/* ---------------------------------------------------------------------- */

.intro > * {
  animation: rise 0.8s var(--ease-out) both;
}

.intro > :nth-child(1) { animation-delay: 0.05s; }
.intro > :nth-child(2) { animation-delay: 0.15s; }
.intro > :nth-child(3) { animation-delay: 0.28s; }
.intro > :nth-child(4) { animation-delay: 0.4s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(3, 169, 244, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 12ch;
  margin-bottom: 22px;
  font-variation-settings: "opsz" 144;
}

.headline em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(95deg, var(--blue-300), var(--sky) 60%, #b9e6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 34px;
}

.mini-steps {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.mini-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
  font-size: 14.5px;
}

.mini-steps b {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.mini-num {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--blue-300);
  background: var(--card-2);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------------- */
/* Panel card                                                              */
/* ---------------------------------------------------------------------- */

.panel-card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  overflow: hidden;
  animation: rise 0.9s var(--ease-out) 0.25s both;
}

.panel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 176, 255, 0.8), transparent);
}

@media (min-width: 600px) {
  .panel-card {
    padding: 32px 32px 30px;
  }
}

/* Stepper */

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.step-bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.step-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-400), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out), background 0.3s;
}

.step.is-active .step-bar::after,
.step.is-done .step-bar::after {
  transform: scaleX(1);
}

.step.is-done .step-bar::after {
  background: var(--mint);
}

.step-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.3s;
}

.step.is-active .step-label {
  color: var(--text);
}

.step.is-done .step-label {
  color: var(--mint);
}

/* Screens */

.screen {
  animation: screen-in 0.5s var(--ease-out) both;
}

.screen[hidden] {
  display: none;
}

.screen-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 48;
}

.screen-sub {
  font-size: 14.5px;
  color: var(--text-2);
  margin-bottom: 26px;
}

.screen-sub strong {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* Fields */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.field label b {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.field-error {
  font-size: 13px;
  color: var(--coral);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: rise 0.3s var(--ease-out) both;
}

.field-error::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.field-error[hidden] {
  display: none;
}

.tel {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--input-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tel:focus-within {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 4px rgba(91, 130, 212, 0.22);
}

.tel.is-invalid {
  border-color: var(--coral);
}

.tel-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  user-select: none;
}

.tel-flag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ff9933 0 33%, #f4f7ff 33% 66%, #138808 66%);
  color: #0d1b4e;
}

.tel input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 15px 14px;
}

.tel input::placeholder {
  color: var(--text-3);
  letter-spacing: 0.08em;
  font-weight: 400;
}

.text-input {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.text-input:focus {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 4px rgba(91, 130, 212, 0.22);
}

.confirm-input {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 600;
  text-align: center;
  font-size: 18px;
}

.confirm-input::placeholder {
  color: var(--text-3);
  font-weight: 400;
}

.confirm-input.is-match {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(224, 72, 72, 0.2);
}

/* OTP boxes */

.otp {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.otp-box {
  flex: 1 1 0;
  min-width: 0;
  height: 60px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  caret-color: var(--sky);
  background: var(--input-bg);
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  outline: 0;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-spring), background 0.2s;
}

.otp-box:focus {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 4px rgba(91, 130, 212, 0.22);
  transform: translateY(-2px);
}

.otp-box.is-filled {
  border-color: rgba(143, 176, 255, 0.6);
  background: rgba(60, 100, 177, 0.16);
}

.otp-box:disabled {
  opacity: 0.6;
}

.otp.is-error .otp-box {
  border-color: var(--coral);
  animation: shake 0.45s var(--ease-out);
}

.otp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}

.otp-timer {
  font-variant-numeric: tabular-nums;
}

.otp-timer.is-expired {
  color: var(--amber);
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 15px 22px;
  border-radius: var(--radius);
  border: 0;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s, opacity 0.2s, filter 0.2s, background 0.2s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: saturate(0.5);
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-400));
  box-shadow: 0 12px 30px rgba(60, 100, 177, 0.38);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 16px 36px rgba(60, 100, 177, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, var(--coral-600), var(--coral));
  box-shadow: 0 12px 30px rgba(224, 72, 72, 0.36);
}

.btn-danger:hover:not(:disabled) {
  box-shadow: 0 16px 36px rgba(224, 72, 72, 0.5);
}

.btn-secondary {
  background: var(--card-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-weight: 500;
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--card-2);
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
  filter: none;
}

.btn.is-loading .btn-label {
  visibility: hidden;
}

.btn.is-loading .btn-spinner {
  display: block;
  position: absolute;
}

.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--blue-300);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 4px;
}

.link-btn:hover:not(:disabled) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:disabled {
  color: var(--text-3);
  cursor: default;
}

.link-btn-center {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 14px;
  color: var(--text-2);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--card-2);
  color: var(--text);
}

.fineprint {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
  text-align: center;
}

/* Account card (confirm step) */

.account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card-2);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 8px 20px rgba(3, 169, 244, 0.25);
}

.account-body {
  min-width: 0;
  flex: 1;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-row strong {
  font-weight: 600;
  font-size: 15.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.plan-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 2px;
}

.remove-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-bottom: 22px;
}

.remove-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
}

.remove-list li::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    linear-gradient(var(--coral), var(--coral)) center/8px 1.5px no-repeat,
    linear-gradient(var(--coral), var(--coral)) center/1.5px 8px no-repeat,
    rgba(255, 107, 107, 0.14);
  transform: rotate(45deg);
}

@media (max-width: 420px) {
  .remove-list {
    grid-template-columns: 1fr;
  }
}

/* Deleting screen */

.deleting-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin: 8px 0 26px;
}

.deleting-head .screen-title {
  margin-bottom: 0;
}

.orbit {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
}

.orbit::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--blue-300) 40%, var(--blue) 100%);
  box-shadow: 0 0 30px rgba(91, 130, 212, 0.7);
  animation: breathe 1.8s ease-in-out infinite;
}

.orbit span {
  position: absolute;
  inset: 0;
  animation: spin 1.6s linear infinite;
}

.orbit span::before {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 14px var(--sky);
}

.checklist {
  display: grid;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.3s;
}

.checklist li::before {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  transition: background 0.3s, border-color 0.3s;
}

.checklist li.is-active {
  color: var(--text);
}

.checklist li.is-active::before {
  border-color: var(--blue-300);
  background: radial-gradient(circle, var(--blue-300) 0 3px, transparent 4px);
  animation: breathe 1.2s ease-in-out infinite;
}

.checklist li.is-done {
  color: var(--text-2);
}

.checklist li.is-done::before {
  border-color: var(--mint);
  background:
    linear-gradient(var(--mint), var(--mint)) 7px 10px/6px 1.5px no-repeat,
    linear-gradient(var(--mint), var(--mint)) 11px 5px/1.5px 8px no-repeat,
    rgba(52, 211, 153, 0.15);
  transform: rotate(45deg);
  animation: pop 0.35s var(--ease-spring);
}

.delete-error {
  margin-top: 26px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.3);
  animation: rise 0.4s var(--ease-out) both;
}

.delete-error[hidden] {
  display: none;
}

.delete-error p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
}

.delete-error-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.delete-error-actions .btn {
  flex: 1 1 120px;
  padding: 12px 16px;
  font-size: 14px;
}

/* Done screen */

.done-mark {
  display: grid;
  place-items: center;
  margin: 6px 0 20px;
}

.done-mark svg {
  overflow: visible;
}

.done-ring {
  fill: rgba(52, 211, 153, 0.08);
  stroke: var(--mint);
  stroke-width: 2;
  stroke-dasharray: 277;
  stroke-dashoffset: 277;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: draw 0.9s var(--ease-out) 0.1s forwards;
}

.done-check {
  fill: none;
  stroke: var(--mint);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.5s var(--ease-out) 0.8s forwards;
}

.done-title {
  text-align: center;
  outline: none;
}

.done-title + .screen-sub {
  text-align: center;
}

.done-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.done-meta > div {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  border: 1px solid var(--line);
  min-width: 0;
}

.done-meta dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.done-meta dd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
}

.done-meta dd code {
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.done-meta + .fineprint {
  margin-bottom: 20px;
}

@media (max-width: 420px) {
  .done-meta {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------- */
/* Facts                                                                   */
/* ---------------------------------------------------------------------- */

.facts {
  animation: rise 0.8s var(--ease-out) 0.5s both;
}

.facts-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  font-variation-settings: "opsz" 48;
}

.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-2);
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.fact[open] {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.05);
}

.fact summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.fact summary > span:nth-child(2) {
  flex: 1;
}

.fact-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(143, 176, 255, 0.1);
  position: relative;
}

.fact-icon::before,
.fact-icon::after {
  content: "";
  position: absolute;
}

.fact-icon-trash {
  background: rgba(255, 107, 107, 0.12);
}

.fact-icon-trash::before {
  left: 11px;
  top: 13px;
  width: 12px;
  height: 11px;
  border: 1.6px solid var(--coral);
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.fact-icon-trash::after {
  left: 9px;
  top: 10px;
  width: 16px;
  height: 1.6px;
  background: var(--coral);
  box-shadow: 0 -2px 0 -0.2px transparent;
}

.fact-icon-keep {
  background: rgba(52, 211, 153, 0.12);
}

.fact-icon-keep::before {
  left: 10px;
  top: 9px;
  width: 14px;
  height: 16px;
  border: 1.6px solid var(--mint);
  border-radius: 3px 3px 7px 7px;
}

.fact-icon-keep::after {
  left: 13px;
  top: 15px;
  width: 8px;
  height: 4px;
  border-left: 1.6px solid var(--mint);
  border-bottom: 1.6px solid var(--mint);
  transform: rotate(-45deg);
}

.fact-icon-clock {
  background: rgba(251, 191, 36, 0.12);
}

.fact-icon-clock::before {
  left: 9px;
  top: 9px;
  width: 16px;
  height: 16px;
  border: 1.6px solid var(--amber);
  border-radius: 50%;
}

.fact-icon-clock::after {
  left: 16px;
  top: 12px;
  width: 4px;
  height: 6px;
  border-left: 1.6px solid var(--amber);
  border-bottom: 1.6px solid var(--amber);
}

.fact-icon-help::before {
  left: 9px;
  top: 9px;
  width: 16px;
  height: 16px;
  border: 1.6px solid var(--blue-300);
  border-radius: 50%;
}

.fact-icon-help::after {
  content: "?";
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-300);
}

.fact-chevron {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-right: 1.6px solid var(--text-3);
  border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out);
  margin-right: 4px;
}

.fact[open] .fact-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

.fact-body {
  padding: 0 18px 18px 66px;
  font-size: 14px;
  color: var(--text-2);
  animation: rise 0.35s var(--ease-out) both;
}

.fact-body ul {
  display: grid;
  gap: 8px;
}

.fact-body li {
  position: relative;
  padding-left: 16px;
}

.fact-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-300);
}

.fact-body b {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 600px) {
  .fact-body {
    padding-left: 18px;
  }
}

/* ---------------------------------------------------------------------- */
/* Footer, toast, noscript                                                 */
/* ---------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 12.5px;
  color: var(--text-3);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.footer code {
  color: var(--text-2);
}

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  display: grid;
  gap: 8px;
  pointer-events: none;
  width: min(92vw, 420px);
}

.toast {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(238, 242, 255, 0.96);
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.35s var(--ease-spring) both;
}

.toast.is-leaving {
  animation: toast-out 0.25s ease-in forwards;
}

.noscript {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--text);
  font-size: 14px;
}

/* ---------------------------------------------------------------------- */
/* Keyframes                                                               */
/* ---------------------------------------------------------------------- */

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

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes screen-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(3, 169, 244, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(3, 169, 244, 0); }
  100% { box-shadow: 0 0 0 0 rgba(3, 169, 244, 0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.86); opacity: 0.75; }
}

@keyframes pop {
  0% { transform: rotate(45deg) scale(0.6); }
  100% { transform: rotate(45deg) scale(1); }
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .sky::before,
  .sky::after {
    animation: none;
  }

  .done-ring,
  .done-check {
    stroke-dashoffset: 0;
  }
}
