/* Colorim — Apresentação Institucional */

:root {
  --purple: #7c3aed;
  --purple-deep: #5b21b6;
  --purple-dark: #3b1380;
  --purple-light: #ede9fe;
  --coral: #f472b6;
  --amber: #f59e0b;
  --rose: #ef4444;
  --teal: #14b8a6;
  --blue: #0ea5e9;
  --green: #16a34a;

  --ink: #0f0a1e;
  --ink-soft: #2b1f44;
  --slate: #5b5570;
  --slate-light: #8b869c;
  --paper: #fbf9f4;
  --paper-warm: #f4efe4;
  --cream: #faf6ec;
  --border: #e8e1d1;

  --rainbow: linear-gradient(90deg, #ef4444 0%, #f59e0b 20%, #eab308 35%, #22c55e 55%, #0ea5e9 75%, #7c3aed 100%);
}

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

deck-stage, deck-stage > section {
  font-family: "Lexend", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

deck-stage > section {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  position: relative;
}

/* Type */
.serif { font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.sans { font-family: "Lexend", system-ui, sans-serif; }
.mono { font-family: "JetBrains Mono", monospace; }

.eyebrow {
  font-family: "Lexend", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
}

.slide-num {
  position: absolute;
  bottom: 48px;
  right: 64px;
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  color: var(--slate-light);
  letter-spacing: 0.1em;
  z-index: 10;
}

.slide-label {
  position: absolute;
  top: 48px;
  left: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}

.slide-label .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--purple);
}

.slide-brand {
  position: absolute;
  top: 48px;
  right: 64px;
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  color: var(--ink);
  font-style: italic;
  z-index: 10;
}

/* Rainbow text */
.rainbow-text {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Rainbow underline */
.rainbow-line {
  height: 8px;
  border-radius: 4px;
  background: var(--rainbow);
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: white;
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.pill.solid {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.pill.purple {
  background: var(--purple-light);
  color: var(--purple-deep);
  border-color: #ddd4fb;
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

/* Book style */
.book-cover {
  aspect-ratio: 3/4;
  border-radius: 6px 14px 14px 6px;
  overflow: hidden;
  box-shadow:
    -2px 0 0 rgba(0,0,0,0.08),
    0 20px 60px rgba(92, 45, 145, 0.25),
    0 8px 20px rgba(0,0,0,0.12);
  position: relative;
  background: #ddd;
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,0.25), transparent);
  z-index: 2;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Phone frame */
.phone-frame {
  width: 340px;
  height: 700px;
  background: #0f0a1e;
  border-radius: 44px;
  padding: 10px;
  position: relative;
  box-shadow:
    0 40px 80px rgba(15, 10, 30, 0.35),
    0 12px 24px rgba(0,0,0,0.15),
    inset 0 0 0 2px #2a1f4a;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: white;
  position: relative;
}

/* Browser window */
.browser {
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 30px 70px rgba(15,10,30,0.2), 0 10px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.browser-bar {
  background: #f5f2ea;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.browser-bar .dots {
  display: flex;
  gap: 7px;
}

.browser-bar .dot {
  width: 12px; height: 12px; border-radius: 50%;
}

.browser-bar .url {
  flex: 1;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--slate);
  margin-left: 12px;
  font-family: "JetBrains Mono", monospace;
}

/* Grain texture overlay */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Reveal — always visible (deck-stage handles slide visibility) */
.reveal { opacity: 1; transform: none; }

/* Rainbow italic text — ensure descenders get breathing room */
.rainbow-text {
  padding-bottom: 0.1em;
}

/* Floating shapes */
@keyframes float-a { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes float-b { 0%,100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-18px) rotate(7deg); } }
@keyframes float-c { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(10px) rotate(1deg); } }

.float-a { animation: float-a 6s ease-in-out infinite; }
.float-b { animation: float-b 7s ease-in-out infinite; }
.float-c { animation: float-c 8s ease-in-out infinite; }

/* Dashed connector */
.connector {
  stroke: var(--purple);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  fill: none;
  opacity: 0.5;
}

/* Sticker/tape */
.tape {
  position: absolute;
  background: rgba(244, 201, 58, 0.55);
  width: 90px;
  height: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
