/* Recovaly — Coming Soon
   Brand tokens mirror recova-mobile/src/constants/palette.ts */

:root {
  --green: #16A34A;
  --teal: #2DD4BF;
  --teal-deep: #0D9488;
  --grad: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);

  --bg: #FFFFFF;
  --bg-tint: #F6FBF9;
  --card: #FFFFFF;
  --ink: #0B132B;
  --text: #1F2937;
  --muted: #64748B;
  --line: #E2E8F0;
  --mint: #E5FFEC;
  --glow: rgba(45, 212, 191, 0.22);
  --shadow: 0 24px 60px -24px rgba(11, 19, 43, 0.25);
  --shadow-sm: 0 6px 20px -8px rgba(11, 19, 43, 0.15);

  --phone-bg: #FAFCFC;
  --phone-frame: #0B132B;

  --radius: 20px;
  --gutter: 16px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07110F;
    --bg-tint: #0B1916;
    --card: #0F1F1B;
    --ink: #F1F5F9;
    --text: #CBD5E1;
    --muted: #94A3B8;
    --line: #1E2F2B;
    --mint: #0F2A20;
    --glow: rgba(45, 212, 191, 0.14);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 6px 20px -8px rgba(0, 0, 0, 0.6);
    --phone-bg: #0C1714;
    --phone-frame: #1E2F2B;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

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

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 28px; } }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 24px;
  border: 0; border-radius: 14px;
  font: 700 15px/1 var(--font);
  color: #fff; text-decoration: none; white-space: nowrap;
  background: var(--grad);
  box-shadow: 0 10px 24px -10px rgba(22, 163, 74, 0.7);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 30px -10px rgba(22, 163, 74, 0.75); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.btn--small { --h: 42px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); filter: none; }
.btn--light { background: #fff; color: #0B132B; box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }

.btn__spinner {
  display: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.is-loading .btn__label { visibility: hidden; }
.is-loading .btn__spinner { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 34px; height: 34px; }
.brand__logo--sm { width: 28px; height: 28px; }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 112px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--mint); color: var(--green);
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--teal); } }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: currentColor; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.hero__title {
  margin-top: 22px;
  font-size: clamp(40px, 7.2vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__lede { margin-top: 20px; max-width: 540px; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); }

/* ---------- Waitlist ---------- */
.waitlist { margin-top: 32px; max-width: 520px; }
.waitlist__field {
  display: flex; gap: 8px; padding: 6px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.waitlist__field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .14); }
.waitlist input {
  flex: 1; min-width: 0; height: 54px; padding: 0 14px;
  border: 0; outline: 0; background: transparent;
  font: 500 16px var(--font); color: var(--ink);
}
.waitlist input::placeholder { color: var(--muted); opacity: .8; }
.waitlist__msg { min-height: 0; margin-top: 10px; font-size: 14px; font-weight: 600; }
.waitlist__msg:empty { display: none; }
.waitlist__msg.is-error { color: #DC2626; }
.waitlist__msg.is-success { color: var(--green); }
.waitlist__note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.waitlist.is-done .waitlist__field,
.waitlist.is-done .waitlist__note { display: none; }

@media (max-width: 479px) {
  .waitlist__field { flex-direction: column; padding: 8px; }
  .waitlist .btn { width: 100%; }
  .waitlist input { height: 48px; }
}

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 28px 0 0; padding: 0; list-style: none;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg {
  width: 20px; height: 20px; padding: 3px; border-radius: 50%;
  color: #fff; background: var(--grad);
}

/* ---------- Phone mockup ---------- */
.hero__visual {
  position: relative; display: grid; place-items: center;
  min-height: 560px;
}
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(22, 168, 90, .22);
}
.orbit--outer { width: 520px; height: 520px; animation: turn 60s linear infinite; }
.orbit--inner { width: 380px; height: 380px; border-style: dashed; animation: turn 40s linear infinite reverse; }
.orbit--outer::before {
  content: ''; position: absolute; top: 50%; left: -5px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 14px var(--teal);
}
@keyframes turn { to { transform: rotate(360deg); } }

.phone {
  position: relative; z-index: 1;
  width: 290px; height: 590px; padding: 12px;
  border-radius: 48px; background: var(--phone-frame);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone__notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 26px; border-radius: 20px; background: #000; z-index: 2;
}
.screen {
  height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--phone-bg);
  display: flex; flex-direction: column;
}
.screen__top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 26px 0; height: 44px;
  font-size: 13px; font-weight: 700; color: #fff; position: relative; z-index: 1;
}
.screen__icons { display: inline-flex; gap: 3px; }
.screen__icons i { width: 4px; height: 9px; border-radius: 1px; background: #fff; opacity: .9; }
.screen__icons i:nth-child(1) { height: 5px; margin-top: 4px; }
.screen__icons i:nth-child(2) { height: 7px; margin-top: 2px; }

.screen__head {
  margin-top: -44px; padding: 64px 22px 22px;
  background: var(--grad); color: #fff;
  border-radius: 0 0 28px 28px;
}
.screen__label { font-size: 12px; font-weight: 600; opacity: .85; }
.screen__total {
  margin-top: 2px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.scan { margin-top: 14px; }
.scan__bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.28); overflow: hidden; }
.scan__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; transition: width .6s ease; }
.scan__text { margin-top: 8px; font-size: 11.5px; font-weight: 600; opacity: .9; }

.found { list-style: none; margin: 0; padding: 16px 14px; display: grid; gap: 10px; }
.found li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 11px 12px; border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.found li.is-in { opacity: 1; transform: none; }
.found b { display: block; font-size: 13px; color: var(--ink); line-height: 1.2; }
.found small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.found em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
}
.tile--bank { background: #E1F5EE; color: #0F6E56; }
.tile--save { background: #E5FDF9; color: #0D9488; }
.tile--inv  { background: #EEF2FF; color: #4F46E5; }
.tile--old  { background: #FEF3C7; color: #B45309; }

.float {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float b { color: var(--green); font-weight: 800; }
.float__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.float--a { top: 20%; right: calc(50% - 250px); }
.float--b { bottom: 5%; left: calc(50% - 240px); animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

@media (max-width: 959px) {
  .hero { padding-bottom: 16px; }
  .hero__visual { min-height: 0; padding: 30px 0; }
  .orbit--outer { width: 440px; height: 440px; }
  .orbit--inner { width: 330px; height: 330px; }
}
@media (max-width: 479px) {
  .phone { transform: scale(.9); margin: -30px 0; }
  .float--a { right: 0; top: 4%; }
  .float--b { left: 0; bottom: 4%; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.kicker {
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}
.section__title {
  margin-top: 12px; max-width: 640px;
  font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.035em;
  text-wrap: balance;
}

.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; gap: 18px;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; padding: 28px;
  border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line);
}
.step__num {
  display: inline-block; font-size: 14px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-top: 18px; font-size: 20px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--muted); }

.features { margin-top: 48px; display: grid; gap: 18px; }
@media (min-width: 800px) {
  .features { grid-template-columns: repeat(5, 1fr); }
  .feature { grid-column: span 2; }
  .feature--wide { grid-column: span 3; }
}
.feature {
  padding: 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad);
}
.feature__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { margin-top: 22px; font-size: 20px; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--muted); max-width: 460px; }

/* ---------- Band ---------- */
.band {
  display: flex; flex-direction: column; gap: 28px; align-items: flex-start;
  padding: 48px 40px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(45,212,191,.45), transparent 60%),
    linear-gradient(135deg, #0B1F3A 0%, #0F3B33 100%);
  color: #CFE9E2;
}
.band h2 { color: #fff; font-size: clamp(26px, 3.8vw, 38px); font-weight: 800; letter-spacing: -0.03em; max-width: 640px; text-wrap: balance; }
.band p { margin-top: 12px; max-width: 600px; }
@media (min-width: 800px) {
  .band { flex-direction: row; align-items: center; justify-content: space-between; padding: 56px; }
}
@media (max-width: 639px) {
  .section { padding: 64px 0; }
  .band { padding: 32px 22px; }
}

/* ---------- Footer ---------- */
.footer { padding: 36px 0 48px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer__note { font-size: 14px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .found li { opacity: 1; transform: none; }
}
