/* =====================================================================
   yourselfie — landing page (em breve)
   Refinado a partir de _brand/Em Breve.html
   ===================================================================== */

:root {
  --bg: #0B0B0F;
  --surface: #16161D;
  --surface-2: #1F1F28;
  --border: rgba(255,255,255,0.08);
  --text: #F5F5F7;
  --muted: #9A9AA8;
  --subtle: #6A6A78;
  --primary: #D4FF3D;
  --error: #FF4D5E;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(ellipse 800px 600px at 75% 30%, rgba(212,255,61,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(212,255,61,0.03) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.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;
}

/* ===================================================== LAYOUT */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 56px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 32px;
}

/* ===================================================== HEADER */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
}
.brand-mark {
  font-family: var(--display); font-weight: 700;
  font-size: 26px; letter-spacing: -0.04em; line-height: 1;
  color: var(--primary); display: inline-block;
}
.wm-i { position: relative; display: inline-block; letter-spacing: 0; }
.wm-dot {
  position: absolute; left: auto; right: -0.18em; top: -0.32em;
  width: 0.18em; height: 0.18em; border-radius: 22%; background: var(--primary);
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase;
}
.status-pill .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(212,255,61,0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,255,61,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(212,255,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,255,61,0); }
}

/* ===================================================== HERO */
main {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 40px 0 80px;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.04em; line-height: 0.95;
  margin: 0 0 32px;
}
.hero h1 .lime { color: var(--primary); }
.hero .lede {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.45; letter-spacing: -0.015em;
  color: var(--text); margin: 0 0 48px; max-width: 480px;
}
.hero .lede .muted { color: var(--muted); }

/* ===================================================== EMAIL FORM */
form {
  display: flex; gap: 10px;
  max-width: 460px;
  padding: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color .15s, background .15s;
}
form:focus-within {
  border-color: rgba(212,255,61,0.4);
  background: rgba(255,255,255,0.06);
}
form.error { border-color: var(--error); }
form input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0; outline: 0;
  padding: 14px 20px;
  color: var(--text);
  caret-color: var(--primary);
  font-family: var(--body); font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
}
form input::placeholder { color: var(--subtle); }
form input:focus,
form input:focus-visible { outline: 0; box-shadow: none; }

/* Chrome/Safari autofill — remove o amarelo e mantem o tema escuro */
form input:-webkit-autofill,
form input:-webkit-autofill:hover,
form input:-webkit-autofill:focus,
form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.02) inset;
  caret-color: var(--primary);
  transition: background-color 99999s ease-in-out 0s;
}
form button {
  background: var(--primary);
  color: var(--bg);
  border: 0; cursor: pointer;
  padding: 14px 28px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform .12s, box-shadow .12s, opacity .12s;
}
form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,255,61,0.25);
}
form button:active { transform: translateY(0); }
form button:disabled { opacity: 0.55; cursor: progress; transform: none; box-shadow: none; }
form button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.form-note {
  margin-top: 14px;
  font-family: var(--mono); font-size: 11px;
  color: var(--subtle); letter-spacing: 0.14em; text-transform: uppercase;
}

.thanks {
  display: none;
  margin-top: 16px;
  padding: 16px 24px;
  background: rgba(212,255,61,0.1);
  border: 1px solid rgba(212,255,61,0.3);
  border-radius: 999px;
  max-width: 460px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  color: var(--primary);
}
.thanks.show { display: inline-block; }
form.hide { display: none; }

.error-msg {
  display: none;
  margin-top: 12px;
  font-family: var(--body); font-size: 13px;
  color: var(--error);
  max-width: 460px;
}
.error-msg.show { display: block; }

/* ===================================================== PHONE MOCKUP */
.phone-stage {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.phone {
  width: 320px;
  height: 660px;
  border-radius: 56px;
  background: #16161D;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08) inset,
    0 0 0 8px #0e0e13,
    0 0 0 9.5px rgba(255,255,255,0.04),
    0 30px 80px rgba(0,0,0,0.6),
    0 8px 24px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  transform: rotate(-2deg);
}
.phone::before {
  /* Dynamic Island */
  content: '';
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 32px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.phone-screen {
  position: absolute; inset: 0;
  border-radius: 50px;
  overflow: hidden;
  background: #0B0B0F;
}

.app { width: 100%; height: 100%; position: relative; background: #0B0B0F; overflow: hidden; }

.feed-stack { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.feed-slide {
  position: absolute; inset: 0;
  animation: feed-cycle 10s linear infinite;
  will-change: transform;
}
.feed-slide.s2 { animation-delay: -5s; }
.feed-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

@keyframes feed-cycle {
  0%     { transform: translateY(0); }
  47%    { transform: translateY(0); }
  50%    { transform: translateY(-100%); }
  50.01% { transform: translateY(100%); }
  97%    { transform: translateY(100%); }
  100%   { transform: translateY(0); }
}

/* All chrome (status bar, timer, watermark, info, nav) sit above slides */
.status-bar, .progress-row, .post-watermark, .post-info, .bottom-nav { z-index: 5; }

/* Progress bar (5s timer) */
.progress-row {
  position: absolute;
  top: 64px; left: 16px; right: 16px;
  height: 3px;
  background: rgba(255,255,255,0.16);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0;
  animation: progress 5s linear infinite;
}
@keyframes progress {
  0%   { width: 0; }
  100% { width: 100%; }
}

/* Status bar (time + battery) */
.status-bar {
  position: absolute;
  top: 18px; left: 28px; right: 28px;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff;
  font-family: -apple-system, system-ui, sans-serif;
  font-weight: 600; font-size: 14px;
}
.battery { display: inline-flex; align-items: center; gap: 5px; }
.battery .signal { display: flex; gap: 2px; align-items: flex-end; }
.battery .signal span { width: 3px; background: #fff; border-radius: 1px; }
.battery .signal span:nth-child(1) { height: 4px; }
.battery .signal span:nth-child(2) { height: 6px; }
.battery .signal span:nth-child(3) { height: 8px; }
.battery .signal span:nth-child(4) { height: 10px; }
.battery .b-icon {
  width: 22px; height: 11px;
  border: 1.4px solid rgba(255,255,255,0.9);
  border-radius: 3px;
  position: relative;
}
.battery .b-icon::after {
  content: ''; position: absolute;
  right: -3px; top: 50%; transform: translateY(-50%);
  width: 1.5px; height: 4px;
  background: rgba(255,255,255,0.9);
  border-radius: 0 1px 1px 0;
}
.battery .b-icon::before {
  content: ''; position: absolute;
  top: 1px; left: 1px; bottom: 1px;
  width: 72%;
  background: #fff;
  border-radius: 1px;
}

/* User info inside each slide */
.post-info {
  position: absolute;
  left: 0; right: 0; bottom: 78px;
  padding: 100px 22px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
}
.post-info .user {
  font-family: var(--display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em; color: #fff;
}
.post-info .ig {
  margin-top: 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.post-info .ig .arrow { color: var(--primary); font-size: 13px; }

/* watermark wordmark in corner */
.post-watermark {
  position: absolute;
  top: 80px; right: 18px;
  font-family: var(--display); font-weight: 700;
  font-size: 11px; letter-spacing: -0.02em;
  color: rgba(255,255,255,0.55);
  display: inline-block;
}

/* Bottom navigation */
.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 78px;
  background: rgba(11,11,15,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px 14px;
  z-index: 6;
}
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
}
.bottom-nav .nav-item.active { color: var(--primary); }
.bottom-nav .camera-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-18px);
  box-shadow:
    0 0 0 6px rgba(11,11,15,0.92),
    0 0 30px rgba(212,255,61,0.4),
    0 8px 20px rgba(0,0,0,0.4);
}

/* Decorative orbits behind the phone */
.orbit {
  position: absolute;
  width: 520px; height: 520px;
  border: 1px dashed rgba(212,255,61,0.12);
  border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}
.orbit-2 {
  position: absolute;
  width: 700px; height: 700px;
  border: 1px dashed rgba(212,255,61,0.06);
  border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* ===================================================== STATS STRIP */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: -40px;
}
.stat .num {
  font-family: var(--display); font-weight: 700;
  font-size: 56px; letter-spacing: -0.03em; line-height: 1;
  color: var(--primary);
}
.stat .label {
  margin-top: 12px;
  font-family: var(--body); font-size: 15px;
  color: var(--muted); line-height: 1.5;
}

/* ===================================================== FOOTER */
footer {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
footer .left {
  font-family: var(--mono); font-size: 11px;
  color: var(--subtle); letter-spacing: 0.18em; text-transform: uppercase;
}
footer .socials { display: flex; gap: 24px; }
footer .socials a {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transition: color .15s;
}
footer .socials a:hover { color: var(--primary); }
footer .socials a:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 2px; }

/* ===================================================== RESPONSIVE */
@media (max-width: 920px) {
  .page { padding: 24px 24px 40px; gap: 24px; }
  main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 12px 0 40px;
  }
  .hero .lede { margin-bottom: 28px; }
  .phone-stage { order: 2; }
  .hero { order: 1; }
  .phone { transform: rotate(-2deg) scale(0.85); }
  .orbit { width: 420px; height: 420px; }
  .orbit-2 { width: 560px; height: 560px; }
  .stats { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; margin-top: 0; }
  .stat .num { font-size: 44px; }
}
@media (max-width: 520px) {
  .page { padding: 20px 18px 32px; }
  form { flex-direction: column; gap: 6px; padding: 8px; border-radius: 24px; }
  form button { width: 100%; }
  .thanks { border-radius: 24px; text-align: center; }
  footer { flex-direction: column; align-items: flex-start; }
  .phone { transform: rotate(-2deg) scale(0.78); margin: -40px 0; }
  .orbit { width: 340px; height: 340px; }
  .orbit-2 { width: 440px; height: 440px; }
}
@media (max-width: 360px) {
  .phone { transform: rotate(-2deg) scale(0.72); margin: -60px 0; }
}

/* ===================================================== A11Y: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feed-slide, .feed-slide.s2 { animation: none; }
  .feed-slide.s2 { display: none; }
  .progress-bar { animation: none; width: 30%; }
  .pulse { animation: none; }
  .status-pill .pulse { box-shadow: 0 0 0 4px rgba(212,255,61,0.15); }
  .phone { transform: rotate(-2deg); }
  form button { transition: none; }
  form button:hover { transform: none; }
}
