/* ============================================================
   EvaluationAI — Mastercard design layer
   Source: mastercard/DESIGN.md (getdesign "mastercard")
   Cream canvas, ink pill CTAs, 40px stadium, circular portraits,
   signal orange accents, floating nav pill, ink footer.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Sofia+Sans:wght@400;450;500;600;700;800&display=swap");

:root {
  --canvas: #f3f0ee;
  --lifted: #fcfbfa;
  --white: #ffffff;
  --bone: #f4f4f4;
  --ink: #141413;
  --charcoal: #262627;
  --slate: #696969;
  --granite: #555555;
  --signal: #cf4500;
  --signal-light: #f37338;
  --clay: #9a3a0a;
  --link: #3860be;
  --dust: #d1cdc7;

  --r-sm: 6px;
  --r-btn: 20px;
  --r-stad: 40px;
  --r-pill: 999px;

  --shadow-nav: rgba(0, 0, 0, 0.04) 0px 4px 24px 0px;
  --shadow-card: rgba(0, 0, 0, 0.08) 0px 24px 48px 0px;

  --font: "Sofia Sans", "MarkForMC", Inter, system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Type ---------- */
.h1 { font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -1.28px; margin: 0; }
.h2 { font-size: 36px; font-weight: 500; line-height: 1.2; letter-spacing: -0.72px; margin: 0; }
.h3 { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.48px; margin: 0; }
.lead { font-size: 20px; font-weight: 450; line-height: 1.45; color: var(--charcoal); }
.body { font-size: 16px; font-weight: 450; line-height: 1.4; color: var(--charcoal); }
.small { font-size: 14px; font-weight: 450; color: var(--slate); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.56px;
  text-transform: uppercase; color: var(--ink);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal-light); }
.muted { color: var(--slate); }

/* Ghost watermark headline */
.ghost {
  font-size: 120px; font-weight: 500; letter-spacing: -2.4px; line-height: 0.9;
  color: #e3ddd4; margin: 0; pointer-events: none;
}

/* ---------- Layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.bg-canvas { background: var(--canvas); }
.bg-lifted { background: var(--lifted); }
.bg-ink { background: var(--ink); color: var(--white); }
.grid { display: grid; gap: 32px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
.mt-lg { margin-top: 32px; }
.mt-xl { margin-top: 48px; }
.stack > * + * { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 16px; font-weight: 500; letter-spacing: -0.32px;
  padding: 14px 24px; border-radius: var(--r-btn); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-secondary { background: var(--white); color: var(--ink); }
.btn-secondary:hover { background: var(--lifted); }
.btn-signal { background: var(--signal); color: #fff; border-color: var(--signal); border-radius: 24px; }
.btn-lg { font-size: 18px; padding: 16px 32px; }

/* ---------- Floating nav pill ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 24px 0 8px; background: linear-gradient(var(--canvas) 65%, rgba(243,240,238,0)); }
.nav {
  max-width: 1180px; margin: 0 auto;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(12px);
  border-radius: var(--r-pill); box-shadow: var(--shadow-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 12px 28px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.36px; }
.brand .mark { position: relative; width: 24px; height: 24px; border-radius: 8px; background: var(--signal); }
.brand .mark::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.6px 2.6px 0; transform: rotate(45deg); }
.nav-links { display: flex; gap: 28px; font-size: 16px; font-weight: 500; letter-spacing: -0.32px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--signal); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-search { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--canvas); display: grid; place-items: center; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 0; }
.hero-media {
  border-radius: var(--r-stad); overflow: hidden; box-shadow: var(--shadow-card);
  background: #2b2b2b; aspect-ratio: 16 / 9; position: relative;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .chip {
  position: absolute; left: 28px; bottom: 28px;
  background: rgba(20,20,19,0.72); color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--r-pill);
}

/* ---------- Circular portraits ---------- */
.portraits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; }
.portrait { text-align: center; position: relative; }
.portrait .circle {
  width: 280px; height: 280px; border-radius: 50%; overflow: hidden; margin: 0 auto;
  box-shadow: var(--shadow-card); background: var(--bone);
}
.portrait .circle img { width: 100%; height: 100%; object-fit: cover; }
.portrait .satellite {
  position: absolute; right: 8%; top: 62%;
  width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-size: 20px; box-shadow: var(--shadow-nav); text-decoration: none;
}
.portrait .eyebrow { margin-top: 20px; }
.portrait .h3 { margin-top: 8px; }
.orbit { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--lifted); border-radius: var(--r-stad); padding: 32px;
}
.card.white { background: #fff; }
.card.ink { background: var(--ink); color: #fff; }
.card.green-tint { background: #f7e7dc; }
.card .h3 { margin-bottom: 8px; }
.price { font-size: 44px; font-weight: 500; letter-spacing: -0.9px; }
.price small { font-size: 16px; font-weight: 450; color: var(--slate); }
.plan { border: 1.5px solid var(--dust); border-radius: var(--r-stad); padding: 32px; background: var(--lifted); }
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan.featured .small, .plan.featured .muted { color: #cfcbc6; }
ul.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
ul.ticks li { position: relative; padding-left: 26px; margin: 8px 0; font-size: 15px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--signal-light); }

/* ---------- Table ---------- */
table.mc { width: 100%; border-collapse: collapse; }
table.mc th, table.mc td { text-align: left; padding: 16px; border-bottom: 1px solid var(--dust); font-size: 15px; }
table.mc th { font-size: 12px; font-weight: 700; letter-spacing: 0.56px; text-transform: uppercase; color: var(--slate); }

/* ---------- Footer ---------- */
footer.mc { background: var(--ink); color: #fff; padding: 96px 0 48px; }
footer.mc .h2 { color: #fff; margin-bottom: 48px; }
footer.mc .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
footer.mc h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.56px; text-transform: uppercase; color: #9a9a97; margin: 0 0 12px; }
footer.mc a { display: block; color: #e6e3df; text-decoration: none; font-size: 14px; font-weight: 450; line-height: 2; }
footer.mc a:hover { color: var(--signal-light); }
footer.mc .bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.2); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: #b7b4b0; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .h1 { font-size: 48px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .portraits { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .ghost { font-size: 80px; }
}
@media (max-width: 767px) {
  .container { padding: 0 24px; }
  .h1 { font-size: 40px; letter-spacing: -0.8px; }
  .h2 { font-size: 28px; }
  .section { padding: 56px 0; }
  .nav-links { display: none; }
  .portraits { grid-template-columns: 1fr; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .portrait .circle { width: 220px; height: 220px; }
  .ghost { font-size: 56px; }
  footer.mc .cols { grid-template-columns: 1fr 1fr; }
  footer.mc .bottom { flex-direction: column; }
}
