/* Catcher web — design tokens layered on top of Tailwind CDN.
   Identidad visual emparejada con la app Flutter:
   primario azul #4285F4, secundario ámbar #FFA726, radios 12–16px,
   font weights fuertes, glows de color en componentes destacados. */

:root {
  /* Surfaces (dark) — base bluish-black para que matchee el splash de la app */
  --catcher-bg:          #0a0f1a;
  --catcher-bg-2:        #0d1421;
  --catcher-surface:     #131b2b;
  --catcher-surface-2:   #1a2438;
  --catcher-surface-3:   #233052;
  --catcher-border:      #243352;
  --catcher-border-strong:#2e4470;

  /* Text */
  --catcher-text:        #e8eef9;
  --catcher-text-muted:  #94a3bd;
  --catcher-text-dim:    #5b6a85;

  /* Brand */
  --catcher-primary:       #4285F4;
  --catcher-primary-hover: #1f6fe3;
  --catcher-primary-soft:  rgba(66, 133, 244, 0.12);
  --catcher-primary-ring:  rgba(66, 133, 244, 0.28);
  --catcher-primary-light: #64B5F6;

  --catcher-secondary:      #FFA726;
  --catcher-secondary-soft: rgba(255, 167, 38, 0.14);

  /* Semantic */
  --catcher-success: #4CAF50;
  --catcher-warning: #FFC107;
  --catcher-danger:  #F44336;
  --catcher-info:    #64B5F6;

  /* Radii */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-pill: 999px;
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--catcher-bg);
  color: var(--catcher-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
               Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.005em;
}

h1, h2, h3, .heading { font-weight: 800; letter-spacing: -0.02em; }
strong { font-weight: 700; }

/* ─── Brand mark ──────────────────────────────────────────────────────── */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--catcher-text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #5a9bff 0%, #2f6fe6 55%, #1d54c2 100%);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow:
    0 6px 18px -6px rgba(66, 133, 244, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.18);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent 50%);
  pointer-events: none;
}
.brand-mark.--sm { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }
.brand-name { font-weight: 700; letter-spacing: -0.01em; }

/* ─── Hero backdrop ────────────────────────────────────────────────────── */
.hero-bg {
  position: relative;
  background:
    radial-gradient(65% 50% at 12% 0%,  rgba(66,133,244,0.18), transparent 60%),
    radial-gradient(55% 45% at 92% 8%,  rgba(255,167,38,0.10), transparent 60%),
    radial-gradient(80% 60% at 50% 100%, rgba(100,181,246,0.07), transparent 65%),
    var(--catcher-bg);
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ─── Card ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--catcher-surface);
  border: 1px solid var(--catcher-border);
  border-radius: var(--r-lg);
  position: relative;
}
.card-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) ,
              var(--catcher-surface);
  border: 1px solid var(--catcher-border);
  border-radius: var(--r-lg);
}
.card-accent {
  border-color: rgba(66,133,244,0.35);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(66,133,244,0.10), transparent 55%),
    var(--catcher-surface);
}
.card-warn {
  border-color: rgba(255,167,38,0.35);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,167,38,0.10), transparent 55%),
    var(--catcher-surface);
}

/* Glow utility */
.glow-primary { box-shadow: 0 18px 60px -28px rgba(66,133,244,0.55), 0 0 0 1px rgba(66,133,244,0.15); }
.glow-amber   { box-shadow: 0 18px 60px -28px rgba(255,167,38,0.45), 0 0 0 1px rgba(255,167,38,0.15); }

/* Pill / chip */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--catcher-surface-2);
  border: 1px solid var(--catcher-border);
  color: var(--catcher-text-muted);
  font-size: 12px;
  font-weight: 500;
}
.pill.--primary  { background: var(--catcher-primary-soft);   border-color: rgba(66,133,244,0.35);  color: var(--catcher-primary-light); }
.pill.--amber    { background: var(--catcher-secondary-soft); border-color: rgba(255,167,38,0.35);  color: var(--catcher-secondary); }
.pill.--success  { background: rgba(76,175,80,0.12);          border-color: rgba(76,175,80,0.35);   color: #81c784; }

/* Status dot (mirrors app health-status semantics) */
.status-dot {
  width: 8px; height: 8px; border-radius: 999px; display: inline-block;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}
.status-dot.--ok    { background: var(--catcher-success); box-shadow: 0 0 0 4px rgba(76,175,80,0.18); }
.status-dot.--watch { background: var(--catcher-secondary); box-shadow: 0 0 0 4px rgba(255,167,38,0.20); }
.status-dot.--warn  { background: var(--catcher-warning); box-shadow: 0 0 0 4px rgba(255,193,7,0.20); }
.status-dot.--err   { background: var(--catcher-danger);  box-shadow: 0 0 0 4px rgba(244,67,54,0.20); }

/* Gradient text accent */
.text-gradient {
  background: linear-gradient(120deg, #ffffff 0%, #cfe1ff 40%, #4285F4 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Inputs ───────────────────────────────────────────────────────────── */
input[type=email],
input[type=password],
input[type=text],
input[type=number],
textarea {
  background: var(--catcher-surface-2);
  border: 1px solid var(--catcher-border);
  color: var(--catcher-text);
  border-radius: var(--r-md);
  padding: 11px 13px;
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
input::placeholder, textarea::placeholder { color: var(--catcher-text-dim); }
input:hover, textarea:hover { border-color: var(--catcher-border-strong); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--catcher-primary);
  box-shadow: 0 0 0 3px var(--catcher-primary-ring);
  background: var(--catcher-surface);
}
input[type=checkbox] { accent-color: var(--catcher-primary); }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(180deg, #4f93f7 0%, #2f74e4 100%);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 140ms ease, filter 140ms ease;
  width: 100%;
  box-shadow:
    0 10px 22px -10px rgba(66,133,244,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18);
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: progress; filter: grayscale(0.2); }

.btn-secondary {
  background: var(--catcher-surface-2);
  color: var(--catcher-text);
  border: 1px solid var(--catcher-border);
  padding: 12px 18px;
  border-radius: var(--r-md);
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.btn-secondary:hover {
  background: var(--catcher-surface-3);
  border-color: var(--catcher-border-strong);
}
.btn-secondary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--catcher-text-muted);
  border: 1px solid transparent;
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.btn-ghost:hover { background: var(--catcher-surface-2); color: var(--catcher-text); }

/* ─── Links ────────────────────────────────────────────────────────────── */
a { color: var(--catcher-primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Mock phone (hero) ────────────────────────────────────────────────── */
.phone-shell {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 21.5;
  margin: 0 auto;
  border-radius: 42px;
  background: linear-gradient(160deg, #1c2436 0%, #0d1421 60%);
  padding: 10px;
  border: 1px solid var(--catcher-border-strong);
  box-shadow:
    0 60px 120px -40px rgba(66,133,244,0.30),
    0 30px 70px -30px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 33px;
  background: #0b1119;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* In-screen mini components for the app dashboard mock */
.app-icon-btn {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-card {
  background: #141b28;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 11px 13px;
}
.app-card-title {
  font-size: 11.5px; font-weight: 700; color: #fff; letter-spacing: -0.01em;
}
.app-mini-icon {
  width: 22px; height: 22px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.35);
}
.app-bottom-nav {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 54px;
  background: rgba(11,17,25,0.95);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: flex-end; justify-content: space-around;
  padding: 6px 8px 8px;
}
.app-nav-item {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.45);
  font-size: 8.5px; font-weight: 500;
  flex: 1;
}
.app-nav-fab {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f93f7 0%, #2f74e4 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -4px rgba(66,133,244,0.7), inset 0 1px 0 rgba(255,255,255,0.22);
}
.app-coach-fab {
  position: absolute;
  right: 10px; bottom: 62px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #64B5F6 0%, #1f6fe3 100%);
  border: 2px solid rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(66,133,244,0.55);
  z-index: 5;
}
.app-coach-fab img { width: 100%; height: 100%; object-fit: cover; }

/* App ring (overall progress visual) */
.ring {
  --p: 72;
  width: 64px; height: 64px;
  border-radius: 50%;
  background:
    conic-gradient(var(--ring-color, var(--catcher-primary)) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
  display: inline-grid;
  place-items: center;
  position: relative;
}
.ring::after {
  content: "";
  position: absolute; inset: 6px;
  background: var(--catcher-surface);
  border-radius: 50%;
}
.ring > span {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 13px;
  color: var(--catcher-text);
}

/* ─── Prose (legal pages) ──────────────────────────────────────────────── */
.prose-legal { max-width: 760px; margin: 0 auto; line-height: 1.7; color: #d1d9e8; }
.prose-legal h1 { font-size: 2.1rem; font-weight: 800; color: #fff; margin: 0 0 .6rem; letter-spacing: -0.02em; }
.prose-legal h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 2.2rem 0 .6rem; letter-spacing: -0.01em; }
.prose-legal h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 1.6rem 0 .35rem; }
.prose-legal p, .prose-legal li { font-size: 15.5px; }
.prose-legal ul { padding-left: 1.25rem; list-style: disc; }
.prose-legal ol { padding-left: 1.25rem; list-style: decimal; }
.prose-legal strong { color: #fff; }
.prose-legal a { color: var(--catcher-primary-light); }
.prose-legal .muted { color: var(--catcher-text-muted); font-size: 14px; }

/* ─── Notifications ────────────────────────────────────────────────────── */
.error-box {
  background: rgba(244, 67, 54, 0.10);
  border: 1px solid rgba(244, 67, 54, 0.30);
  color: #fca5a5;
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 14px;
}
.info-box {
  background: var(--catcher-primary-soft);
  border: 1px solid rgba(66,133,244,0.30);
  color: var(--catcher-primary-light);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 14px;
}

/* ─── Scrollbar ────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #25324a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #3a4a6a; }

/* ─── Selection ────────────────────────────────────────────────────────── */
::selection { background: rgba(66,133,244,0.35); color: #fff; }

/* ─── Utility ──────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--catcher-border) 30%, var(--catcher-border) 70%, transparent);
}

/* Animated subtle float for hero mock */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float-soft { animation: float-y 7s ease-in-out infinite; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .float-soft { animation: none; }
  * { transition: none !important; }
}
