/* FINDEUS — public site and sign-in.
 *
 * The dashboard is an instrument panel: dense, monospaced, every pixel doing
 * work. This is the opposite surface and follows the opposite rules — space,
 * scale, and one idea per screen.
 *
 * The reference is Apple's marketing pages, which is a specific and testable
 * thing rather than a vibe:
 *
 *   - Type does the work. Very large display weights (600, not 700) with tight
 *     negative tracking, set against generous line height at body size. No
 *     decorative fonts, no letterspaced small caps as ornament.
 *   - Two surfaces per theme, alternating. Light is #fff / #f5f5f7; dark is
 *     #000 / #0a0a0a. Sections switch between them so structure comes from
 *     value, not from borders.
 *   - Depth is translucency and blur, never drop shadows pretending to be
 *     elevation. The nav is frosted glass over content that scrolls beneath it.
 *   - Radii are large and consistent (18–28px) and buttons are full pills.
 *   - Motion is a single easing curve, always decelerating, always short.
 *     Nothing bounces. Nothing spins.
 *   - Colour is almost absent. One blue for action; green and red are reserved
 *     for money and appear nowhere on this page.
 *
 * Dark is the default because the app is, and a white flash on the way to a
 * black dashboard is the cheapest possible way to feel unfinished.
 */

:root {
  color-scheme: dark;

  --bg: #000;
  --bg-alt: #0a0a0b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(255, 255, 255, 0.18);

  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #6e6e73;

  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-quiet: rgba(10, 132, 255, 0.14);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 980px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* One curve for everything. Decelerating, never overshooting. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 52px;

  --max: 1080px;
  --max-wide: 1240px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #fff;
  --bg-alt: #f5f5f7;
  --surface: rgba(0, 0, 0, 0.035);
  --surface-2: rgba(0, 0, 0, 0.06);
  --hairline: rgba(0, 0, 0, 0.1);
  --hairline-strong: rgba(0, 0, 0, 0.16);

  --fg: #1d1d1f;
  --fg-2: #515154;
  --fg-3: #86868b;

  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-quiet: rgba(0, 113, 227, 0.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The nav is fixed, so an anchor jump would otherwise land under it. */
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font-family: inherit; font-size: inherit; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-wide { width: 100%; max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); }

.nav .wrap-wide { display: flex; align-items: center; gap: 28px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--fg);
}
.logo:hover { text-decoration: none; }
.logo svg { width: 19px; height: 19px; display: block; }

.nav-links { display: flex; gap: 26px; margin-left: 6px; }
.nav-links a {
  font-size: 13px;
  color: var(--fg-2);
  letter-spacing: 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

@media (max-width: 800px) { .nav-links { display: none; } }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease),
    border-color 0.22s var(--ease), opacity 0.22s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--hairline); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--hairline-strong); }

.btn-sm { height: 32px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  color: var(--accent);
}
.link-arrow::after { content: "›"; font-size: 19px; line-height: 1; transition: transform 0.22s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 88px;
  text-align: center;
  overflow: hidden;
}

/* A single soft light behind the wordmark. Not a gradient mesh, not a grid —
 * one source, low opacity, so the black stays black at the edges. */
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--accent) 26%, transparent) 0%,
    transparent 62%
  );
  filter: blur(50px);
  opacity: 0.55;
  pointer-events: none;
}
:root[data-theme="light"] .hero::before { opacity: 0.3; }

.hero > * { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 13px;
  margin-bottom: 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-2);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18);
}

.wordmark {
  font-size: clamp(52px, 12vw, 132px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 6px;
  background: linear-gradient(180deg, var(--fg) 24%, color-mix(in srgb, var(--fg) 64%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark-sub {
  font-size: clamp(13px, 2vw, 15px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 34px;
  padding-left: 0.42em; /* optical centring against the tracking */
}

h1.headline {
  font-size: clamp(30px, 5.4vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 auto 20px;
  max-width: 15ch;
}

.lede {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.48;
  letter-spacing: -0.012em;
  color: var(--fg-2);
  max-width: 60ch;
  margin: 0 auto 34px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note { font-size: 13px; color: var(--fg-3); }

/* -------------------------------------------------------------- sections */

section.band { padding: 100px 0; }
section.band.alt { background: var(--bg-alt); }

.section-head { max-width: 62ch; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.032em;
  margin: 0 0 16px;
}

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

.section-head p, .body-copy {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* ----------------------------------------------------------------- stats */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 28px 22px;
  text-align: center;
}
section.alt .stat { background: var(--bg-alt); }
.stat .n {
  display: block;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .k { display: block; font-size: 13px; color: var(--fg-3); margin-top: 6px; }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  background: var(--surface-2);
}
.card p { color: var(--fg-2); font-size: 15px; line-height: 1.55; margin: 0; }

.card .glyph {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-quiet);
  color: var(--accent);
  margin-bottom: 16px;
}
.card .glyph svg { width: 19px; height: 19px; }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--pill);
  border: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.tag.live { color: #30d158; border-color: rgba(48, 209, 88, 0.35); background: rgba(48, 209, 88, 0.1); }
.tag.soon { color: #ff9f0a; border-color: rgba(255, 159, 10, 0.32); background: rgba(255, 159, 10, 0.09); }

/* ------------------------------------------------------------ claim list */

.claims { list-style: none; margin: 0; padding: 0; }
.claims li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.claims li:last-child { border-bottom: 1px solid var(--hairline); }
.claims .mark {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--surface-2);
  color: var(--fg-2);
}
.claims h3 { margin-bottom: 5px; font-size: 17px; }
.claims p { margin: 0; font-size: 15px; color: var(--fg-2); line-height: 1.55; }

/* --------------------------------------------------------- device mockup */

.device {
  margin: 0 auto;
  max-width: 940px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 10px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
:root[data-theme="light"] .device { box-shadow: 0 40px 90px -35px rgba(0, 0, 0, 0.28); }

.device-screen {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
}
.device-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--hairline-strong);
}
.device-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
}
.device-body { padding: 18px; display: grid; gap: 12px; }
.device-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.device-cell {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: var(--surface);
  min-height: 66px;
}
.device-cell .k {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3);
}
.device-cell .v {
  font-family: var(--mono);
  font-size: 17px;
  margin-top: 5px;
  letter-spacing: -0.02em;
}
.device-chart {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 14px;
}
.device-chart svg { display: block; width: 100%; height: 128px; }
@media (max-width: 640px) {
  .device-row { grid-template-columns: repeat(2, 1fr); }
  .device { padding: 6px; }
}

/* --------------------------------------------------------------- roadmap */

.rail { border-top: 1px solid var(--hairline); }
.rail-row {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
.rail-row h3 { margin: 0; }
.rail-row .who { font-size: 14px; color: var(--fg-3); margin-top: 4px; }
.rail-row p { margin: 0; font-size: 15px; color: var(--fg-2); line-height: 1.55; }
@media (max-width: 720px) {
  .rail-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ------------------------------------------------------------------ auth */

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 780px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--accent) 22%, transparent) 0%,
    transparent 62%
  );
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}
:root[data-theme="light"] .auth-page::before { opacity: 0.24; }

.auth-card {
  position: relative;
  width: 100%;
  max-width: 424px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
}
.auth-card h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.auth-card .sub { font-size: 15px; color: var(--fg-2); margin: 0 0 28px; }

.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--fg);
  font-size: 16px; /* 16px or iOS zooms the page on focus */
  letter-spacing: -0.01em;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder { color: var(--fg-3); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-quiet);
}
.field .help { font-size: 12px; color: var(--fg-3); margin-top: 6px; }
.field input.code { font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }

.form-note {
  font-size: 13px;
  color: var(--fg-3);
  text-align: center;
  margin: 18px 0 0;
}

.alert {
  display: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.45;
}
.alert.show { display: block; }
.alert.bad {
  background: rgba(255, 69, 58, 0.11);
  border: 1px solid rgba(255, 69, 58, 0.3);
  color: #ff6961;
}
.alert.good {
  background: rgba(48, 209, 88, 0.11);
  border: 1px solid rgba(48, 209, 88, 0.3);
  color: #30d158;
}
.alert.info {
  background: var(--accent-quiet);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  color: var(--accent);
}

/* ---------------------------------------------------------------- footer */

footer.site {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 56px;
  background: var(--bg);
}
footer.site .cols {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--fg-3);
}
footer.site a { color: var(--fg-3); }
footer.site a:hover { color: var(--fg); text-decoration: none; }
footer.site .spacer { flex: 1; }
.disclaimer {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-3);
  max-width: 78ch;
}

/* ---------------------------------------------------------------- motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
