/* =====================================================
   PLANY · BASE — reset, fuentes offline, logo, marco
   ===================================================== */

/* ---------- FUENTES (todas embebidas, sin CDN) ---------- */
@font-face {
  font-family: 'Cabinet Grotesk'; font-style: normal; font-weight: 500;
  src: url('../fonts/CabinetGrotesk-Medium.woff2') format('woff2'); font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk'; font-style: normal; font-weight: 700;
  src: url('../fonts/CabinetGrotesk-Bold.woff2') format('woff2'); font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk'; font-style: normal; font-weight: 800;
  src: url('../fonts/CabinetGrotesk-Extrabold.woff2') format('woff2'); font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk'; font-style: normal; font-weight: 900;
  src: url('../fonts/CabinetGrotesk-Black.woff2') format('woff2'); font-display: swap;
}

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-style: normal;
  src: url('../fonts/PlusJakartaSans-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-style: normal;
  src: url('../fonts/PlusJakartaSans-500.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-style: normal;
  src: url('../fonts/PlusJakartaSans-600.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-style: normal;
  src: url('../fonts/PlusJakartaSans-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-style: normal;
  src: url('../fonts/PlusJakartaSans-800.woff2') format('woff2'); font-display: swap; }

@font-face { font-family: 'DM Mono'; font-weight: 400; font-style: normal;
  src: url('../fonts/DMMono-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Mono'; font-weight: 500; font-style: normal;
  src: url('../fonts/DMMono-500.woff2') format('woff2'); font-display: swap; }

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--carbon);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea { font-family: inherit; }
::selection { background: var(--naranja); color: #fff; }

/* =====================================================
   LOGO · plany  (línea = <span> con background, NO svg)
   ===================================================== */
.plany-logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  color: var(--carbon);
  user-select: none;
}
.plany-logo .pl-y { color: var(--naranja); }
.plany-logo .pl-line {
  display: inline-block;
  width: 0.95em;
  height: 0.14em;
  background: var(--naranja);
  align-self: baseline;
  transform: translateY(0.08em);
  border-radius: 1px;
}
/* sobre fondo oscuro: "plan" en crema, "y" + línea naranja */
.plany-logo.on-dark { color: var(--crema); }
.plany-logo.on-dark .pl-y { color: var(--naranja); }
.plany-logo.on-dark .pl-line { background: var(--naranja); }
/* sobre naranja/gradiente */
.plany-logo.on-orange { color: #fff; }
.plany-logo.on-orange .pl-y { color: #fff; }
.plany-logo.on-orange .pl-line { background: #fff; }

/* =====================================================
   MARCO DE CELULAR
   - Desktop: bezel centrado, se ve como app
   - Mobile real: ocupa toda la pantalla, sin marco
   ===================================================== */
body {
  background: #e9e6e1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* fondo ambiental en desktop */
@media (min-width: 460px) {
  body {
    background:
      radial-gradient(circle at 20% 15%, rgba(255,107,53,0.10), transparent 40%),
      radial-gradient(circle at 85% 80%, rgba(255,61,127,0.10), transparent 42%),
      #ECE8E2;
    padding: 28px 0;
  }
}

.device {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--crema);
  overflow: hidden;
}
/* bezel sólo en pantallas grandes */
@media (min-width: 460px) {
  .device {
    width: var(--screen-w);
    height: var(--screen-h);
    max-height: calc(100dvh - 56px);
    border-radius: 52px;
    border: 12px solid #0c0c14;
    box-shadow: var(--sh-lg), 0 0 0 2px #2a2a3a inset;
  }
  /* notch */
  .device::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 138px; height: 26px;
    background: #0c0c14;
    border-radius: 0 0 18px 18px;
    z-index: 60;
  }
}

/* =====================================================
   SISTEMA DE PANTALLAS
   ===================================================== */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.screen.is-active { display: flex; animation: screen-in 0.25s cubic-bezier(.22,.61,.36,1); }
@keyframes screen-in {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
/* navegación "hacia atrás": desliza desde la izquierda */
.screen.is-active.nav-back { animation: screen-back 0.25s cubic-bezier(.22,.61,.36,1); }
@keyframes screen-back {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
.screen__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.screen__scroll::-webkit-scrollbar { width: 0; }

/* tema oscuro / claro por pantalla */
.screen.theme-dark { background: var(--dark-bg); color: var(--dark-text); }
.screen.theme-light { background: var(--crema); color: var(--carbon); }

/* ---------- STATUS BAR (9:41) ---------- */
.statusbar {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  z-index: 20;
}
@media (min-width: 460px) { .statusbar { padding-top: 6px; } }
.statusbar .sb-icons { display: flex; align-items: center; gap: 6px; }
.statusbar .sb-icons svg { display: block; }
.theme-dark .statusbar { color: var(--crema); }
.theme-light .statusbar { color: var(--carbon); }

/* En celular real (sin marco): ocultar la barra falsa para no duplicar
   la del sistema. Se respeta el notch con safe-area. En escritorio
   (con marco de celular) la barra se mantiene. */
@media (max-width: 459.98px) {
  .statusbar { display: none; }
  .screen { padding-top: env(safe-area-inset-top, 0px); }
}

/* =====================================================
   LIVE = app real → fuera la simulación de teléfono (barra falsa 9:41/batería,
   bezel y notch). Vale a cualquier tamaño; el demo conserva el mockup para el pitch.
   ===================================================== */
.mode-live .statusbar { display: none !important; }
.mode-live .screen { padding-top: env(safe-area-inset-top, 0px); }
@media (min-width: 460px) {
  .mode-live .device {
    width: var(--screen-w);
    height: 100dvh;
    max-height: 100dvh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .mode-live .device::before { display: none; }   /* sin notch */
}

/* ---------- helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--naranja);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
