/* ============================================================
   PunchyPass — Colors & Type Tokens
   Source of truth: codebase src/styles/theme.css + BRAND.md.
   The product is dark-first; tokens reflect that.
   ============================================================ */

/* ---------- WEBFONTS ---------- */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---------- COLORS ---------- */

  /* Brand */
  --brand-violet:        #6d28d9;   /* Logo / SVG only */
  --brand-violet-700:    #5b21b6;
  --brand-violet-300:    #a78bfa;

  /* Primary (UI accent — indigo) */
  --color-primary:       #6366f1;
  --color-primary-dark:  #4f46e5;   /* hover */
  --color-primary-soft:  rgb(99 102 241 / 0.10);
  --color-primary-ring:  rgb(99 102 241 / 0.32);

  /* Secondary (accent / "Próximamente" / badges) */
  --color-secondary:     #ec4899;

  /* Surfaces (dark-first) */
  --color-bg:            #0f172a;   /* base canvas */
  --color-surface:       #1e293b;   /* cards / panels */
  --color-surface-hover: #334155;
  --color-border:        #334155;

  /* Text */
  --color-text:           #f1f5f9;  /* fg-1 */
  --color-text-secondary: #94a3b8;  /* fg-2 / placeholders */

  /* Status */
  --color-success: #10b981;
  --color-error:   #ef4444;
  --color-warning: #fb923c;
  --color-danger:  #f87171;

  /* Semantic aliases used across the system */
  --fg-1: var(--color-text);
  --fg-2: var(--color-text-secondary);
  --fg-on-primary: #ffffff;
  --bg-1: var(--color-bg);
  --bg-2: var(--color-surface);
  --bg-3: var(--color-surface-hover);

  /* Welcome / hero gradient (dark navy depth) */
  --gradient-welcome: linear-gradient(135deg, #0f172a 0%, #1a1f3a 50%, #0f172a 100%);
  --gradient-glow:    radial-gradient(circle, rgb(99 102 241 / 0.10) 0%, transparent 70%);

  /* ---------- TYPE ---------- */

  /* System font stack — used for product UI in the live codebase. */
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
                 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
                 'Helvetica Neue', sans-serif;

  /* Brand display + body face per PDF brand doc (Carola Schmid).
     Now that real Montserrat ships in /fonts, this is the default sans. */
  --font-sans: 'Montserrat', var(--font-system);
  --font-display-brand: 'Montserrat', var(--font-system);

  --font-mono: 'Source Code Pro', Menlo, Monaco, Consolas, 'Courier New', monospace;

  /* Type scale (rem) */
  --text-h1:        1.75rem;   /* 28 */
  --text-h2:        1.5rem;    /* 24 */
  --text-h3:        1.25rem;   /* 20 */
  --text-body:      1rem;      /* 16 */
  --text-body-sm:   0.9375rem; /* 15 */
  --text-supporting:0.875rem;  /* 14 */
  --text-label:     0.75rem;   /* 12 */

  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;

  --leading-tight: 1.3;
  --leading-body:  1.6;

  /* ---------- SPACING ---------- */
  --spacing-xs:  0.25rem;
  --spacing-sm:  0.5rem;
  --spacing-md:  1rem;
  --spacing-lg:  1.5rem;
  --spacing-xl:  2rem;
  --spacing-2xl: 3rem;

  /* ---------- RADIUS ---------- */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;

  /* ---------- SHADOWS (calibrated for dark bg) ---------- */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.18);
  --shadow-md:  0 4px 12px -2px rgb(0 0 0 / 0.22);
  --shadow-lg:  0 12px 24px -6px rgb(0 0 0 / 0.28);
  --shadow-xl:  0 20px 40px -10px rgb(0 0 0 / 0.34);
  --shadow-2xl: 0 32px 64px -16px rgb(0 0 0 / 0.42);

  /* Hero / welcome card (signature elevation) */
  --shadow-welcome: 0 20px 60px rgba(0, 0, 0, 0.30);

  /* Focus ring */
  --focus-ring: 0 0 0 3px var(--color-primary-ring);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-base: 0.20s;
  --duration-slow: 0.30s;
}

/* ============================================================
   Semantic element styles — minimal, opt-in via class .pp-doc
   ============================================================ */

.pp-doc {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pp-doc h1, .pp-h1 {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--fg-1);
}

.pp-doc h2, .pp-h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--fg-1);
}

.pp-doc h3, .pp-h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  color: var(--fg-1);
}

.pp-doc p, .pp-body {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--fg-1);
}

.pp-supporting {
  font-size: var(--text-supporting);
  color: var(--fg-2);
  opacity: 0.9;
}

.pp-label {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.pp-doc code, .pp-code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgb(255 255 255 / 0.06);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

.pp-wordmark {
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}
