@font-face {
  font-family: "Kiwi Soda";
  src: url("/fonts/KiwiSoda.ttf") format("truetype");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --chantilly: #f8bacf;
  --flesh-coral: #ffc29e;
  --mauve: #d4a8ff;
  --ink: #3f3046;
  --muted: #76647b;
  --paper: #fff9fc;
  --cream: #fff1f6;
  --line: rgba(63, 48, 70, 0.14);
  --shadow: 0 18px 50px rgba(106, 72, 118, 0.16);
  --font-playful: "Kiwi Soda", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-ui: Inter, ui-rounded, "SF Pro Rounded", "SF Pro Display", system-ui, sans-serif;
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 86% 3%, rgba(212, 168, 255, 0.58), transparent 29rem),
    radial-gradient(circle at 6% 36%, rgba(255, 194, 158, 0.42), transparent 25rem),
    var(--cream);
  color: var(--ink);
}
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }

.recovery-shell {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom));
}
.recovery-brand { display:flex; align-items:center; justify-content:space-between; margin-bottom:30px; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.04em; }
.recovery-brand a { color:var(--ink); font-family:var(--font-playful); font-size:29px; font-weight:400; line-height:1; text-decoration:none; }
.recovery-card { padding:22px; border:1px solid rgba(255,255,255,.78); border-radius:30px; background:rgba(255,249,252,.88); box-shadow:var(--shadow); backdrop-filter:blur(18px); }
.eyebrow { margin:0 0 8px; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
h1 { max-width:390px; margin:0; font-family:var(--font-playful); font-size:clamp(31px,8vw,42px); font-synthesis:none; font-weight:400; line-height:1.04; }
.intro { margin:12px 0 20px; color:var(--muted); line-height:1.5; }
.steps { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.steps li { display:flex; min-height:68px; align-items:center; gap:12px; padding:9px 14px 9px 9px; border:1px solid var(--line); border-radius:20px; background:rgba(255,249,252,.78); }
.steps li > span { display:grid; width:48px; height:48px; flex:0 0 48px; border-radius:50%; background:var(--flesh-coral); font-weight:800; place-items:center; }
.steps li:nth-child(2) > span { background:var(--mauve); }
.steps li:nth-child(3) > span { background:var(--chantilly); }
.steps strong, .steps small { display:block; }
.steps small { margin-top:3px; color:var(--muted); font-size:12px; line-height:1.35; }
.recovery-status { min-height:50px; margin:18px 0 10px; padding:12px 14px; border-radius:16px; background:rgba(212,168,255,.22); font-size:13px; font-weight:800; line-height:1.4; }
.recovery-status[data-state="success"] { background:rgba(212,168,255,.32); }
.recovery-status[data-state="error"] { background:rgba(255,173,173,.38); }
progress { width:100%; height:10px; margin-bottom:12px; accent-color:var(--ink); }
button { width:100%; min-height:52px; border-radius:16px; font-weight:800; cursor:pointer; }
.primary-action { display:flex; align-items:center; justify-content:center; padding:0 18px; border:0; background:var(--ink); color:var(--paper); box-shadow:0 10px 24px rgba(63,48,70,.22); }
.primary-action:active { transform:scale(.99); }
.secondary-action { margin-top:9px; padding:0 16px; border:1px solid var(--line); background:var(--paper); }
button:disabled { cursor:wait; opacity:.42; }
.notice { padding:4px 0; }
.notice h1 { font-size:32px; }
.notice p { color:var(--muted); line-height:1.55; }

@media (min-width:800px) {
  .recovery-shell { width:min(100%,1040px); padding-inline:32px; }
  .recovery-brand { padding-inline:4px; }
  .recovery-card { padding:34px; }
  .update-layout { display:grid; grid-template-columns:minmax(0,.88fr) minmax(380px,1.12fr); align-items:start; gap:52px; }
  .update-intro { position:sticky; top:34px; padding:14px 6px 0 2px; }
  .update-intro h1 { max-width:430px; font-size:52px; }
  .update-intro .intro { max-width:410px; margin-top:18px; font-size:16px; }
  .update-workflow { min-width:0; }
  .steps li { padding-right:18px; }
}

@media (max-width:350px) {
  .recovery-card { padding:18px; border-radius:26px; }
  .recovery-brand { margin-bottom:22px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition:none !important; }
}
