/* =========================================================================
   Miro Design System — Tokens
   Color, type, spacing, radius, shadow primitives + semantic styles.
   Fonts: Inter (display + body) — per user override.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* ---------- Brand / Primary ---------- */
  --color-near-black: #1c1c1e;          /* primary text */
  --color-white: #ffffff;               /* primary surface */
  --color-blue-450: #5b76fe;            /* primary interactive */
  --color-actionable-pressed: #2a41b6;  /* pressed interactive */

  /* ---------- Pastel accents — light surfaces ---------- */
  --color-coral-light: #ffc6c6;
  --color-rose-light: #ffd8f4;
  --color-teal-light: #c3faf5;
  --color-orange-light: #ffe6cd;
  --color-yellow-light: #fff3c4;        /* implied complement to dark */
  --color-moss-light: #d6efe7;          /* implied complement to dark */
  --color-pink-light: #fde0f0;
  --color-red-light: #fbd4d4;
  --color-dark-red: #e3c5c5;            /* muted red */

  /* ---------- Pastel accents — dark surfaces / text on light ---------- */
  --color-coral-dark: #600000;
  --color-teal-dark: #187574;
  --color-yellow-dark: #746019;
  --color-moss-dark: #187574;

  /* ---------- Semantic ---------- */
  --color-success: #00b473;             /* success / positive */

  /* ---------- Neutrals ---------- */
  --color-slate: #555a6a;               /* secondary text */
  --color-input-placeholder: #a5a8b5;
  --color-border: #c7cad5;              /* button + input borders */
  --color-border-soft: #e9eaef;         /* input border */
  --color-ring: rgb(224, 226, 232);     /* shadow-as-border */
  --color-surface-muted: #f6f7f9;       /* subtle background */

  /* ---------- Foreground / Background semantics ---------- */
  --fg-1: var(--color-near-black);      /* primary text */
  --fg-2: var(--color-slate);           /* secondary text */
  --fg-3: var(--color-input-placeholder);/* tertiary / placeholder */
  --bg-1: var(--color-white);           /* canvas */
  --bg-2: var(--color-surface-muted);   /* panel */

  /* ---------- Typography — families ---------- */
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* ---------- OpenType feature settings ---------- */
  --feat-display: "blwf", "cv03", "cv04", "cv09", "cv11";
  --feat-body: "liga" 0, "ss01", "ss04", "ss05";

  /* ---------- Typography — sizes ---------- */
  --text-hero: 56px;
  --text-section: 48px;
  --text-card-title: 24px;
  --text-subhead: 22px;
  --text-feature: 18px;
  --text-body: 18px;
  --text-body-std: 16px;
  --text-button: 17.5px;
  --text-caption: 14px;
  --text-small: 12px;
  --text-micro: 10.5px;

  /* ---------- Spacing scale (1–24px base) ---------- */
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-120: 120px;

  /* ---------- Radius ---------- */
  --radius-button: 8px;
  --radius-input: 8px;
  --radius-card: 12px;
  --radius-card-lg: 24px;
  --radius-panel: 24px;
  --radius-container: 40px;
  --radius-container-lg: 50px;
  --radius-pill: 9999px;
  --radius-circle: 50%;

  /* ---------- Borders / Rings ---------- */
  --border-1: 1px solid var(--color-border);
  --border-soft: 1px solid var(--color-border-soft);
  --ring-shadow: rgb(224, 226, 232) 0 0 0 1px;

  /* ---------- Shadows (minimal — Miro avoids heavy elevation) ---------- */
  --shadow-ring: 0 0 0 1px var(--color-ring);
  --shadow-circle: 0 1px 2px rgba(28, 28, 30, 0.06), 0 4px 12px rgba(28, 28, 30, 0.08);
  --shadow-pop: 0 8px 24px rgba(28, 28, 30, 0.10);

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* ---------- Breakpoints (reference; use in @media) ---------- */
  --bp-xs: 425px;
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 896px;
  --bp-xl: 1024px;
  --bp-2xl: 1200px;
  --bp-3xl: 1280px;
  --bp-4xl: 1366px;
  --bp-5xl: 1700px;
  --bp-6xl: 1920px;
}

/* =========================================================================
   Semantic typography classes — apply directly to elements.
   ========================================================================= */

html, body {
  font-family: var(--font-body);
  font-feature-settings: var(--feat-body);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.t-hero,
h1.t-hero {
  font-family: var(--font-display);
  font-feature-settings: var(--feat-display);
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.68px;
  color: var(--fg-1);
}

.t-section,
h2.t-section {
  font-family: var(--font-display);
  font-feature-settings: var(--feat-display);
  font-size: var(--text-section);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.44px;
  color: var(--fg-1);
}

.t-card-title,
h3.t-card-title {
  font-family: var(--font-display);
  font-feature-settings: var(--feat-display);
  font-size: var(--text-card-title);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.72px;
  color: var(--fg-1);
}

.t-subhead {
  font-family: var(--font-body);
  font-feature-settings: var(--feat-body);
  font-size: var(--text-subhead);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.44px;
  color: var(--fg-1);
}

.t-feature {
  font-family: var(--font-display);
  font-feature-settings: var(--feat-display);
  font-size: var(--text-feature);
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg-1);
}

.t-body {
  font-family: var(--font-body);
  font-feature-settings: var(--feat-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg-1);
}

.t-body-std {
  font-family: var(--font-body);
  font-feature-settings: var(--feat-body);
  font-size: var(--text-body-std);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.16px;
  color: var(--fg-1);
}

.t-button {
  font-family: var(--font-display);
  font-feature-settings: var(--feat-display);
  font-size: var(--text-button);
  font-weight: 700;
  line-height: 1.29;
  letter-spacing: 0.175px;
}

.t-caption {
  font-family: var(--font-display);
  font-feature-settings: var(--feat-display);
  font-size: var(--text-caption);
  font-weight: 400;
  line-height: 1.71;
  color: var(--fg-2);
}

.t-small {
  font-family: var(--font-display);
  font-feature-settings: var(--feat-display);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.36px;
  color: var(--fg-2);
}

.t-micro {
  font-family: var(--font-display);
  font-feature-settings: var(--feat-display);
  font-size: var(--text-micro);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fg-2);
}

/* =========================================================================
   Component primitives — drop-in classes
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 7px 12px;
  border-radius: var(--radius-button);
  font-family: var(--font-display);
  font-feature-settings: var(--feat-display);
  font-size: var(--text-button);
  font-weight: 700;
  line-height: 1.29;
  letter-spacing: 0.175px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
  user-select: none;
}

.btn-primary {
  background: var(--color-blue-450);
  color: var(--color-white);
  border: 1px solid var(--color-blue-450);
}
.btn-primary:hover { background: #4a64ec; border-color: #4a64ec; }
.btn-primary:active { background: var(--color-actionable-pressed); border-color: var(--color-actionable-pressed); }

.btn-outline {
  background: transparent;
  color: var(--fg-1);
  border: 1px solid var(--color-border);
}
.btn-outline:hover { background: var(--bg-2); }
.btn-outline:active { background: #eef0f4; }

.btn-circle {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-circle);
  background: var(--color-white);
  border: 0;
  box-shadow: var(--shadow-circle);
}

.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-feature-settings: var(--feat-body);
  font-size: var(--text-body-std);
  color: var(--fg-1);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.input::placeholder { color: var(--color-input-placeholder); }
.input:focus {
  border-color: var(--color-blue-450);
  box-shadow: 0 0 0 3px rgba(91, 118, 254, 0.18);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ring);
  padding: var(--space-24);
}

.card-pastel { /* parent sets background to a pastel light */
  border-radius: var(--radius-card-lg);
  padding: var(--space-32);
}

.panel {
  background: var(--color-white);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-ring);
  padding: var(--space-32);
}
