/* Tokens and base pieces shared by the screen (/) and the phone (/m). The values are
   cople's own (maqueta/b.html): anthracite and white, Cople Black for display, Figtree
   for running text. Light only: the maqueta has no dark mode. Fonts and logo are served
   from this folder, no CDN. */

@font-face {
  font-family: "Cople";
  src: url("fonts/Cople-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --anthracite: #232d34;
  --deep: #11181d;
  --paper: #ffffff;
  --soft: #f2f3f4;
  --line: #dde1e4;
  --muted: #5b6670;
  --err: #b42318;
  --err-bg: #fbeaea;
  --err-text: #8e1b12;
  --display: "Cople", "Figtree", system-ui, sans-serif;
  --text-font: "Figtree", system-ui, sans-serif;
  --r-btn: 9px;
  --r-card: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--soft);
  color: var(--anthracite);
  font: 400 17px/1.5 var(--text-font);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

/* Buttons: the maqueta's .btn, a solid anthracite pill-free box, and .ghost. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 22px;
  border: 2px solid var(--anthracite);
  border-radius: var(--r-btn);
  background: var(--anthracite);
  color: #ffffff;
  font: 900 20px/1.1 var(--display);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.button:hover,
.button:focus-visible {
  background: var(--deep);
  border-color: var(--deep);
}

.button:focus-visible {
  outline: 3px solid var(--anthracite);
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.55;
  cursor: default;
}

.button.ghost {
  background: transparent;
  color: var(--anthracite);
}

.button.ghost:hover {
  background: var(--anthracite);
  color: #ffffff;
}

.button.wa {
  background: #25d366;
  border-color: #25d366;
  color: #06240f;
}

/* Tags: the maqueta's uppercase label. REAL is filled, SIMULADO is outlined. */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border: 2px solid var(--anthracite);
  border-radius: 6px;
  color: var(--anthracite);
  font: 700 12px/1.2 var(--text-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.tag.real {
  background: var(--anthracite);
  color: #ffffff;
}

.tag.sim {
  background: transparent;
}

.notice {
  margin: 0;
  padding: 10px 14px;
  border-left: 4px solid var(--err);
  border-radius: 8px;
  background: var(--err-bg);
  color: var(--err-text);
  font-weight: 600;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(35, 45, 52, 0.6);
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--paper);
  color: var(--anthracite);
}

.login-card input {
  min-height: 56px;
  padding: 0 14px;
  border: 2px solid var(--anthracite);
  border-radius: var(--r-btn);
  background: var(--paper);
  color: var(--anthracite);
  font: inherit;
  font-size: 22px;
}

.login-card input:focus {
  outline: 3px solid var(--line);
  outline-offset: 0;
}

/* The WhatsApp-style bubble keeps WhatsApp's own greens: it imitates that app. */
.wa-bubble {
  max-width: 90%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #d9fdd3;
  color: #111b21;
  white-space: pre-line;
}

/* Links between the presentation, the panel and the recorder. */
.back-links { width: 100%; font-size: 15px; margin-top: 6px; }
.back-links a, .back-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.back-link { color: #fff; font-size: 15px; }
@media (max-width: 700px) { .header-actions { align-items: stretch; width: 100%; } }
