/* Elvanta Design System — colors + type tokens
 * Substitution notice: Inter stands in for figmaSans, JetBrains Mono for figmaMono.
 * If real Elvanta typefaces become available, replace the @import below with
 * @font-face blocks pointing at fonts/*.woff2 and the rest of the file works as-is.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ─── Brand & Accent ───────────────────────────────────────── */
  --color-primary: #000000;
  --color-on-primary: #FFFFFF;
  --color-accent-magenta: #E1278B;

  /* ─── Surface ──────────────────────────────────────────────── */
  --color-canvas: #FFFFFF;
  --color-inverse-canvas: #000000;
  --color-surface-soft: #F5F5F4;
  --color-hairline: #E6E6E4;
  --color-hairline-soft: #EFEFEC;

  /* Pastel color blocks — section-scale surfaces */
  --color-block-lime:   #D7F26B;
  --color-block-lilac:  #D9CBF8;
  --color-block-cream:  #F4EBDC;
  --color-block-mint:   #C9EBD6;
  --color-block-pink:   #F8C9DA;
  --color-block-coral:  #F5A28E;
  --color-block-navy:   #14143C;

  /* ─── Text ─────────────────────────────────────────────────── */
  --color-ink: #000000;
  --color-inverse-ink: #FFFFFF;
  --color-on-inverse-soft: rgba(255, 255, 255, 0.16);

  /* ─── Semantic ─────────────────────────────────────────────── */
  --color-semantic-success: #1F8A5B;
  --color-overlay-scrim: rgba(0, 0, 0, 0.6);

  /* ─── Type Family ──────────────────────────────────────────── */
  --font-sans: 'Inter', 'figmaSans Fallback', 'SF Pro Display', system-ui, helvetica, sans-serif;
  --font-mono: 'JetBrains Mono', 'figmaMono Fallback', 'SF Mono', menlo, monospace;

  /* ─── Type Roles ───────────────────────────────────────────── */
  --type-display-xl-size: 86px;
  --type-display-xl-weight: 340;
  --type-display-xl-lh: 1.00;
  --type-display-xl-tracking: -1.72px;

  --type-display-lg-size: 64px;
  --type-display-lg-weight: 340;
  --type-display-lg-lh: 1.10;
  --type-display-lg-tracking: -0.96px;

  --type-headline-size: 26px;
  --type-headline-weight: 540;
  --type-headline-lh: 1.35;
  --type-headline-tracking: -0.26px;

  --type-subhead-size: 26px;
  --type-subhead-weight: 340;
  --type-subhead-lh: 1.35;
  --type-subhead-tracking: -0.26px;

  --type-card-title-size: 24px;
  --type-card-title-weight: 700;
  --type-card-title-lh: 1.45;
  --type-card-title-tracking: 0;

  --type-body-lg-size: 20px;
  --type-body-lg-weight: 330;
  --type-body-lg-lh: 1.40;
  --type-body-lg-tracking: -0.14px;

  --type-body-size: 18px;
  --type-body-weight: 320;
  --type-body-lh: 1.45;
  --type-body-tracking: -0.26px;

  --type-body-sm-size: 16px;
  --type-body-sm-weight: 330;
  --type-body-sm-lh: 1.45;
  --type-body-sm-tracking: -0.14px;

  --type-link-size: 20px;
  --type-link-weight: 480;
  --type-link-lh: 1.40;
  --type-link-tracking: -0.10px;

  --type-button-size: 20px;
  --type-button-weight: 480;
  --type-button-lh: 1.40;
  --type-button-tracking: -0.10px;

  --type-eyebrow-size: 18px;
  --type-eyebrow-weight: 400;
  --type-eyebrow-lh: 1.30;
  --type-eyebrow-tracking: 0.54px;

  --type-caption-size: 12px;
  --type-caption-weight: 400;
  --type-caption-lh: 1.00;
  --type-caption-tracking: 0.60px;

  /* ─── Spacing ──────────────────────────────────────────────── */
  --space-hair: 1px;
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;

  /* ─── Radii ────────────────────────────────────────────────── */
  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 50px;
  --radius-full: 9999px;

  /* ─── Elevation ────────────────────────────────────────────── */
  --elev-0: none;
  --elev-1: inset 0 0 0 1px var(--color-hairline);
  --elev-2: 0 4px 16px rgba(0, 0, 0, 0.06);
  --elev-3: 0 16px 48px rgba(0, 0, 0, 0.18);

  /* ─── Layout ───────────────────────────────────────────────── */
  --content-max: 1280px;
  --nav-height: 56px;
  --marquee-height: 36px;
}

/* ─── Semantic / Element Defaults ────────────────────────────── */

html, body {
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-lh);
  letter-spacing: var(--type-body-tracking);
  margin: 0;
}

h1, .display-xl {
  font-family: var(--font-sans);
  font-size: var(--type-display-xl-size);
  font-weight: var(--type-display-xl-weight);
  line-height: var(--type-display-xl-lh);
  letter-spacing: var(--type-display-xl-tracking);
  margin: 0;
}

h2, .display-lg {
  font-family: var(--font-sans);
  font-size: var(--type-display-lg-size);
  font-weight: var(--type-display-lg-weight);
  line-height: var(--type-display-lg-lh);
  letter-spacing: var(--type-display-lg-tracking);
  margin: 0;
}

h3, .headline {
  font-family: var(--font-sans);
  font-size: var(--type-headline-size);
  font-weight: var(--type-headline-weight);
  line-height: var(--type-headline-lh);
  letter-spacing: var(--type-headline-tracking);
  margin: 0;
}

.subhead {
  font-family: var(--font-sans);
  font-size: var(--type-subhead-size);
  font-weight: var(--type-subhead-weight);
  line-height: var(--type-subhead-lh);
  letter-spacing: var(--type-subhead-tracking);
}

.card-title {
  font-family: var(--font-sans);
  font-size: var(--type-card-title-size);
  font-weight: var(--type-card-title-weight);
  line-height: var(--type-card-title-lh);
}

.body-lg { font-size: var(--type-body-lg-size); font-weight: var(--type-body-lg-weight); line-height: var(--type-body-lg-lh); letter-spacing: var(--type-body-lg-tracking); }
.body    { font-size: var(--type-body-size);    font-weight: var(--type-body-weight);    line-height: var(--type-body-lh);    letter-spacing: var(--type-body-tracking); }
.body-sm { font-size: var(--type-body-sm-size); font-weight: var(--type-body-sm-weight); line-height: var(--type-body-sm-lh); letter-spacing: var(--type-body-sm-tracking); }

a, .link {
  color: var(--color-ink);
  font-weight: var(--type-link-weight);
  letter-spacing: var(--type-link-tracking);
  text-decoration: none;
  text-underline-offset: 4px;
}
a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  line-height: var(--type-eyebrow-lh);
  letter-spacing: var(--type-eyebrow-tracking);
  text-transform: uppercase;
}

.caption {
  font-family: var(--font-mono);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-lh);
  letter-spacing: var(--type-caption-tracking);
  text-transform: uppercase;
}

/* ─── Pill buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--type-button-size);
  font-weight: var(--type-button-weight);
  line-height: var(--type-button-lh);
  letter-spacing: var(--type-button-tracking);
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  padding: 10px 20px;
  transition: transform 120ms ease-out;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-primary    { background: var(--color-primary);  color: var(--color-on-primary); }
.btn-secondary  { background: var(--color-canvas);   color: var(--color-ink); padding: 8px 18px 10px; }
.btn-magenta    { background: var(--color-accent-magenta); color: var(--color-on-primary); padding: 10px 18px; }
.btn-tertiary   { background: transparent; color: var(--color-ink); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-full); }

.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-full);
  background: var(--color-surface-soft); color: var(--color-ink);
}
.btn-icon-inverse {
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-full);
  background: var(--color-on-inverse-soft); color: var(--color-inverse-ink);
}

/* ─── Color block sections ───────────────────────────────────── */
.color-block {
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  color: var(--color-ink);
}
.color-block--lime  { background: var(--color-block-lime); }
.color-block--lilac { background: var(--color-block-lilac); }
.color-block--cream { background: var(--color-block-cream); }
.color-block--mint  { background: var(--color-block-mint); }
.color-block--pink  { background: var(--color-block-pink); }
.color-block--coral { background: var(--color-block-coral); }
.color-block--navy  { background: var(--color-block-navy); color: var(--color-inverse-ink); }

/* ─── Inputs ─────────────────────────────────────────────────── */
.input {
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
}
.input:focus { box-shadow: 0 0 0 3px rgba(0,0,0,0.12); }

/* ─── Cards ──────────────────────────────────────────────────── */
.card-pricing {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.card-template {
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
