:root {
  --bg: #f8f9ff;
  --surface: #ffffff;
  --ink: #191c20;
  --muted: #5a5f6a;
  --line: #dfe3ec;
  --brand: #1c5db8;
  --brand-ink: #ffffff;
  --soft: #dbe6fb;
  --danger: #b3261e;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1a1d23;
    --ink: #e2e2e9;
    --muted: #a6abb6;
    --line: #2d313a;
    --brand: #a9c7ff;
    --brand-ink: #0b2d5e;
    --soft: #23304a;
    --danger: #ffb4ab;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }

.brand b { font-size: 22px; letter-spacing: -0.01em; }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--ink); }

.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px;
  align-items: center; padding: 40px 0 56px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none;
  font-weight: 600; border: 0; font-size: 16px; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.note { color: var(--muted); font-size: 14px; }

.phone {
  justify-self: center; width: min(320px, 80vw); aspect-ratio: 1080 / 2340;
  border-radius: 38px; padding: 10px; background: #0c0d10;
  box-shadow: 0 30px 60px -20px rgba(20, 40, 90, 0.35);
}
.phone picture, .phone img { display: block; width: 100%; height: 100%; border-radius: 30px; object-fit: cover; }

section { padding: 48px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 8px; }
section > .wrap > p.sub { color: var(--muted); margin: 0 0 28px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--soft); color: var(--brand); font-size: 20px;
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(s); width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700;
}

footer.site { padding: 34px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-right: 16px; }

/* Long-form pages */
.doc { padding: 24px 0 64px; }
.doc h1 { font-size: 38px; letter-spacing: -0.02em; margin: 10px 0 4px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 10px 0; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }

/* Delete / download page */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 18px 0; }
.panel h2 { margin-top: 0; font-size: 20px; }
input[type=email], input[type=text] {
  width: 100%; padding: 12px 14px; font-size: 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); margin: 6px 0 14px;
}
.msg { padding: 12px 14px; border-radius: 12px; background: var(--soft); margin: 12px 0; }
.msg.err { background: color-mix(in srgb, var(--danger) 16%, transparent); }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .grid { grid-template-columns: 1fr; }
  nav a.hide-sm { display: none; }
}
.badge {
  display: inline-block; padding: 12px 18px; border-radius: 999px;
  background: var(--soft); color: var(--ink); font-weight: 600; font-size: 15px;
}

/* ---- Microverse logo: a light moving behind it, shining through the gaps ---- */
.mv-logo {
  --h: 60px;
  position: relative; display: inline-grid; isolation: isolate;
}
.mv-logo > * { grid-area: 1 / 1; }
/* the logo itself stays sharp: no blur or glow on it */
.mv-logo img { position: relative; z-index: 2; height: var(--h); width: auto; display: block; }
/* the light source: a small bright core that drifts behind the emblem */
.mv-logo::before {
  content: ""; position: absolute; z-index: 0; inset: -10% 10% 25% 10%;
  background: radial-gradient(circle at 50% 45%, rgba(235, 250, 255, 1) 0 9%,
    rgba(110, 195, 255, 0.75) 20%, rgba(30, 120, 255, 0.22) 36%, transparent 52%);
  animation: mv-drift 7s ease-in-out infinite;
}
/* fine, crisp rays from the same light, turning slowly */
.mv-logo::after {
  content: ""; position: absolute; z-index: 1; inset: -70% -45% -30%;
  background: repeating-conic-gradient(from 0deg at 50% 40%,
    rgba(160, 215, 255, 0) 0deg 7deg, rgba(160, 215, 255, 0.55) 7.6deg, rgba(160, 215, 255, 0) 8.4deg 15deg);
  -webkit-mask: radial-gradient(closest-side at 50% 40%, #000 12%, rgba(0, 0, 0, 0.5) 30%, transparent 62%);
          mask: radial-gradient(closest-side at 50% 40%, #000 12%, rgba(0, 0, 0, 0.5) 30%, transparent 62%);
  animation: mv-spin 40s linear infinite, mv-flicker 7s ease-in-out infinite;
}
/* light streak across the chrome, clipped to the letters */
.mv-shine {
  position: relative; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.9) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%;
  -webkit-mask: url(/img/microverse.webp) center / contain no-repeat;
          mask: url(/img/microverse.webp) center / contain no-repeat;
  animation: mv-sweep 7s ease-in-out infinite;
}
@keyframes mv-drift {
  0%, 100% { transform: translateX(-14%); opacity: 0.75; }
  50%      { transform: translateX(14%);  opacity: 1; }
}
@keyframes mv-flicker {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
@keyframes mv-spin { to { transform: rotate(360deg); } }
@keyframes mv-sweep {
  0%        { background-position: 100% 0; }
  55%, 100% { background-position: 0% 0; }
}
@media (prefers-color-scheme: light) {
  .mv-logo::before { background: radial-gradient(circle at 50% 45%, rgba(40, 130, 255, 0.85) 0 9%,
    rgba(28, 93, 184, 0.4) 20%, rgba(28, 93, 184, 0.1) 36%, transparent 52%); }
  .mv-logo::after { filter: hue-rotate(0deg) brightness(0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .mv-logo::before, .mv-logo::after, .mv-shine { animation: none; }
  .mv-shine { display: none; }
}
.brand .mv-logo { margin-right: 4px; }

/* ---- Home: "Stop losing things" heading ---- */
.hook { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; margin-bottom: 16px; }
.hook .w { display: inline-block; opacity: 0; transform: translateY(0.45em);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms); }
.hook.in .w { opacity: 1; transform: none; }
.hook .hl { color: var(--brand);
  background: linear-gradient(currentColor, currentColor) 0 92% / 0 0.09em no-repeat;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background-size 0.7s ease 0.9s; }
.hook.in .hl { background-size: 100% 0.09em; }
.hook-sub { font-size: 20px; }
.hook-sub .typed-line { display: block; min-height: 1.5em; color: var(--ink); font-weight: 600; font-size: 22px; }
.hook-sub .slot { color: var(--brand); }
.hook-sub .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px;
  vertical-align: -0.15em; background: var(--brand); animation: caret 1s steps(1) infinite; }
.hook-sub .typed-end { display: block; margin-top: 4px; }
@keyframes caret { 50% { opacity: 0; } }
