/**
 * Planet Computers — site-wide type scale and title utilities.
 * Loaded after tailwind.css; Tailwind utilities still win (higher specificity).
 */
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  /* Type scale (aligns with Tailwind rem values) */
  --pc-text-xs: 0.75rem;
  --pc-text-sm: 0.875rem;
  --pc-text-base: 1rem;
  --pc-text-lg: 1.125rem;
  --pc-text-xl: 1.25rem;
  --pc-text-2xl: 1.5rem;
  --pc-text-3xl: 1.875rem;
  /* Brand (shared with legacy sell/trade pages) */
  --pc-midnight: #0f172a;
  --pc-slate: #334155;
  --pc-sunset: #e16e1b;
  --pc-gold: #fbbf24;
  --pc-cream: #f1f5f9;
  --pc-cyan: #38bdf8;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--pc-text-base);
  line-height: 1.5;
  font-weight: 400;
}

/* Base headings: subtle defaults; prefer .pc-hero-title / .pc-section-title for marketing */
h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 1.15rem + 2vw, 2.25rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.5rem);
}
h3 {
  font-size: var(--pc-text-xl);
}
h4 {
  font-size: var(--pc-text-lg);
}

/* Primary marketing title — use on one H1 per page */
.pc-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 0.65rem + 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: inherit;
}

/* Section headings (repeat or secondary H2s) */
.pc-section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 0.9rem + 1.1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: inherit;
}

.pc-lead {
  font-size: var(--pc-text-lg);
  line-height: 1.6;
}

.pc-kicker {
  font-size: var(--pc-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Gradient accent word (e.g. sell page) with solid fallback */
.pc-text-gradient {
  background: linear-gradient(135deg, var(--pc-sunset), var(--pc-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--pc-gold);
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .pc-text-gradient {
    -webkit-text-fill-color: #fbbf24;
    color: #fbbf24;
    background: none;
  }
}
