/* styles.css — Sistema de design "Zenith" (atlético, preto + vermelho) */

:root {
  /* cores — podem ser sobrescritas via Tweaks (inline no #app-root) */
  --bg:        #0a0a0c;
  --bg-2:      #111114;
  --surface:   #161619;
  --surface-2: #1d1d22;
  --line:      #2a2a31;
  --line-2:    #38383f;
  --text:      #f4f3f1;
  --muted:     #8d8d96;
  --muted-2:   #5f5f68;
  --accent:    #ff2d2d;   /* vermelho energético */
  --accent-ink:#ffffff;   /* texto sobre acento */
  --accent-soft: rgba(255,45,45,0.14);
  --good:      #2fd07a;
  --glow:      drop-shadow(0 0 8px var(--accent-soft));
  --aura-play: running;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --ff-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ff-body: 'Barlow', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1a1f 0%, #0a0a0c 55%);
  color: var(--text);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- Stage: centraliza o telefone ---- */
#app-root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  gap: 40px;
}

/* ---- Phone frame ---- */
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  background: #000;
  border-radius: 54px;
  padding: 11px;
  box-shadow:
    0 0 0 2px #2a2a30,
    0 0 0 11px #050506,
    0 40px 90px -20px rgba(0,0,0,0.8);
  flex: none;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__island {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 122px; height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 50;
}

/* status bar */
.statusbar {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 34px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  z-index: 20;
}
.statusbar__right { display: flex; align-items: center; gap: 7px; }
.statusbar__right svg { display: block; }

/* scroll region */
.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen__pad { padding: 4px 22px 120px; }

/* ---- Typography helpers ---- */
.kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.display {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.h1 { font-family: var(--ff-display); font-weight: 800; font-size: 40px; line-height: 0.95; letter-spacing: -0.5px; text-transform: uppercase; }
.h2 { font-family: var(--ff-display); font-weight: 700; font-size: 26px; line-height: 1.0; letter-spacing: 0px; text-transform: uppercase; }
.lead { font-size: 16px; line-height: 1.45; color: var(--muted); }
.mono { font-family: var(--ff-mono); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--r-md);
  padding: 17px 22px;
  width: 100%;
  transition: transform .12s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.975); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { filter: brightness(1.08); }
.btn--ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface-2); }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* generic placeholder slot */
.slot {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 10px, transparent 10px 20px),
    var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

/* segmented progress dots row */
@keyframes popIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ringDraw { from { stroke-dashoffset: var(--dash); } }
@keyframes countPulse { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes barGrow { from { transform: scaleX(0); } }
@keyframes slideUp { from { transform: translateY(16px); } to { transform: none; } }
@keyframes fadeIn { from { transform: translateY(8px); } to { transform: none; } }
@keyframes glowPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

.fade-in { animation: fadeIn .35s ease; }
.slide-up { animation: slideUp .4s cubic-bezier(.2,.7,.3,1); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* ---- Range slider (zr) ---- */
input[type="range"].zr {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--surface-2); outline: none; margin: 0;
}
input[type="range"].zr::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  box-shadow: 0 0 0 5px var(--accent-soft);
}
input[type="range"].zr::-moz-range-thumb {
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* ---- Text / date fields ---- */
.zfield {
  width: 100%;
  background: var(--surface); color: var(--text);
  border: none; outline: none;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-family: var(--ff-body); font-size: 18px; font-weight: 600;
  color-scheme: dark;
  transition: box-shadow .15s;
}
.zfield::placeholder { color: var(--muted-2); font-weight: 500; }
.zfield:focus { box-shadow: inset 0 0 0 2px var(--accent); }
input[type="date"].zfield { font-family: var(--ff-mono); font-size: 16px; }
