/* La página que se ve al abrir un enlace compartido (F4.5) y la portada del
   dominio. Mismos valores que la web de acción: DESIGN_SYSTEM.md ("Roce"),
   §2.2 color, §3 tipografía, §5 espaciado, §6 radios, §9.3 botones, §9.16
   pulsación y foco. Sin gradientes, sin cristal, sin cursivas y sin sombra en
   claro. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/auth/fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

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

:root {
  color-scheme: light dark;

  --surface: #EFEDE9;
  --surface-raised: #FBFAF8;
  --ink: #1B1719;
  --ink-muted: #6B6366;
  --line: #DED8D6;
  --accent: #7A2F4F;
  --on-accent: #FFF8FA;

  --font-title: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;

  --radius-card: 16px;
  --radius-control: 12px;

  --motion-micro: 160ms;
  /* Curves.easeOutCubic (§8). */
  --curve: cubic-bezier(0.33, 1, 0.68, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #171416;
    --surface-raised: #211D1F;
    --ink: #EDE8E6;
    --ink-muted: #9A9093;
    --line: #332C2F;
    --accent: #CDA2B2;
    --on-accent: #1A1114;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

.page {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.wordmark {
  margin: 0 0 var(--space-xl);
  font-family: var(--font-title);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.preview {
  display: block;
  width: 100%;
  margin: 0 auto var(--space-xl);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}

.body {
  margin: 0;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: var(--space-xl);
  padding: 0 var(--space-xl);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: transform var(--motion-micro) var(--curve),
    box-shadow var(--motion-micro) var(--curve);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  box-shadow: inset 0 0 0 100vmax color-mix(in srgb, var(--ink) 4%, transparent);
}

.btn:active {
  box-shadow: inset 0 0 0 100vmax color-mix(in srgb, var(--ink) 8%, transparent);
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

/* La portada del dominio mientras la app no está publicada: el logo, el
   nombre y una espera. Sin botón, porque todavía no hay a dónde ir. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.hero__logo {
  width: 120px;
  height: 120px;
}

.hero__name {
  margin: 0;
  font-family: var(--font-title);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* `labelSmall` de §3: Figtree 11, 600, con su espaciado entre letras. */
.hero__soon {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
