/* =============================================================
   MATCHSCREEN.APP — Brand Foundations
   Tokens for the parent product brand: ink/paper neutrals with a
   single warm coral accent. Used on the matchscreen.app marketing
   site. Intentionally restrained so client-club screenshots can
   carry their own palette without conflict.
   ============================================================= */

/* ───────── Fonts ─────────
   Bricolage Grotesque (Google) — display / playful headlines
   DM Sans (Google)             — body / UI
   JetBrains Mono (Google)      — numerals & mono accents
*/
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

/* ───────── Tokens ───────── */
:root {
  /* Ink — near-black to muted body */
  --ink:        #14110F;
  --ink-soft:   #3B3631;
  --ink-mute:   #6B635B;

  /* Paper — warm off-white surface */
  --paper:      #FBF8F3;
  --paper-2:    #F4EFE6;
  --card:       #FFFFFF;

  /* Accent — warm coral, used sparingly (CTAs, USP highlight, live dot) */
  --accent:     #FF6B5B;
  --accent-hot: #FF8576;
  --accent-ink: #B83A2C;

  /* Lines */
  --mist:            rgba(20, 17, 15, 0.06);
  --hairline:        rgba(20, 17, 15, 0.10);
  --hairline-strong: rgba(20, 17, 15, 0.18);

  /* Radii */
  --r-sm:   10px;
  --r-md:   18px;
  --r-lg:   26px;
  --r-xl:   36px;
  --r-pill: 999px;

  /* Shadows — light, soft */
  --shadow-soft:   0 1px 0 rgba(20,17,15,.04), 0 14px 30px -20px rgba(20,17,15,.18);
  --shadow-card:   0 1px 0 rgba(20,17,15,.04), 0 24px 52px -28px rgba(20,17,15,.22);
  --shadow-screen: 0 1px 0 rgba(20,17,15,.05), 0 60px 80px -42px rgba(20,17,15,.35), 0 30px 60px -32px rgba(20,17,15,.22);

  /* Type families */
  --font-sans:    "DM Sans", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-display: "Bricolage Grotesque", "DM Sans", sans-serif;

  /* Motion — strong, intentional easings (Emil-style) */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ───────── Base ───────── */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ───────── Texture: dotted grid + tiny grain ───────── */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(20,17,15,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  opacity: 0.55;
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0 0.06  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.06'/></svg>");
  mix-blend-mode: multiply;
  pointer-events: none; opacity: .5; z-index: 0;
}

main, header, footer, section { position: relative; z-index: 1; }

/* ───────── Type utilities ───────── */
.t-display { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 0.98; }
.t-mono    { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.t-eyebrow {
  font-family: var(--font-mono); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 11px; color: var(--ink-mute);
}

/* ───────── Surfaces ───────── */
.surface-ink {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.surface-ink::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 380px at 100% 0%, rgba(255,107,91,0.18), transparent 60%),
    radial-gradient(700px 320px at 0% 100%, rgba(255,107,91,0.08), transparent 60%);
  pointer-events: none;
}

.surface-accent {
  background: var(--accent); color: #fff;
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.surface-accent::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

/* ───────── CTA button ───────── */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans); font-weight: 600; font-size: 14.5px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); cursor: pointer;
  box-shadow: 0 8px 22px -16px rgba(20,17,15,.5);
  transition:
    transform 220ms var(--ease-out),
    background 220ms var(--ease-out),
    box-shadow 280ms var(--ease-out),
    border-color 220ms var(--ease-out),
    color 220ms var(--ease-out);
}
.cta:hover  { background: #000; transform: translateY(-1px); box-shadow: 0 14px 28px -18px rgba(20,17,15,.55); }
.cta:active { transform: scale(0.985); }
.cta--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.cta--accent:hover { background: var(--accent-hot); border-color: var(--accent-hot); }
.cta--ghost {
  background: transparent; color: var(--ink); border-color: var(--hairline-strong);
  box-shadow: none;
}
.cta--ghost:hover { background: rgba(20,17,15,0.04); border-color: var(--ink); }
.cta--lg { padding: 16px 28px; font-size: 15.5px; }

/* ───────── Pulse (live indicators, accent dot) ───────── */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,91,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255,107,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,91,0); }
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,107,91,0.6);
  animation: pulse 1.8s var(--ease-out) infinite;
}

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
