/* =========================================================
   FinCo CRM — Base styles and type scale
   Type classes are named after the Figma text styles
   (e.g. Figma "Display/52 Bold" → .t-display-52).
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-primary);
  background: var(--color-surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol {
  margin: 0;
}

ul[role="list"], ol[role="list"] {
  padding: 0;
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

/* The hidden attribute always wins, even over components that set display: flex */
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Content container: 1200 px on desktop, with side gutters on tablet and mobile */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Page section: vertical rhythm shared by homepage sections
   (Figma: mobile 72 / 80, desktop 120 / 136) */
.section {
  padding-block: var(--space-72) 80px;
}
@media (min-width: 1024px) {
  .section { padding-block: 120px 136px; }
}

/* Shown on tablet and desktop (≥ 768), e.g. sections pending a decision */
@media (max-width: 767px) {
  .is-tablet-up { display: none !important; }
}

/* Shown on desktop only (≥ 1280), e.g. sections pending a decision */
@media (max-width: 1279px) {
  .is-desktop-only { display: none !important; }
}

/* ---------------------------------------------------------
   Type scale (Figma text styles)
   Letter spacing is the em equivalent of the Figma percentage values.
   --------------------------------------------------------- */
.t-hero-64       { font-size: 64px; line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.t-display-52    { font-size: 52px; line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }
.t-display-40    { font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.t-title-28      { font-size: 28px; line-height: 1.2;  font-weight: 700; letter-spacing: -0.015em; }
.t-heading-22    { font-size: 22px; line-height: 1.3;  font-weight: 600; letter-spacing: -0.01em; }
.t-subheading-18 { font-size: 18px; line-height: 1.4;  font-weight: 600; letter-spacing: -0.005em; }
.t-body-20       { font-size: 20px; line-height: 1.55; font-weight: 400; letter-spacing: -0.005em; }
.t-body-17       { font-size: 17px; line-height: 1.6;  font-weight: 400; letter-spacing: -0.003em; }
.t-body-15       { font-size: 15px; line-height: 1.55; font-weight: 400; letter-spacing: -0.002em; }
.t-body-13       { font-size: 13px; line-height: 1.5;  font-weight: 400; }
.t-label-17      { font-size: 17px; line-height: 1.3;  font-weight: 600; letter-spacing: -0.003em; }
.t-label-15      { font-size: 15px; line-height: 1.3;  font-weight: 600; letter-spacing: -0.002em; }
.t-label-13      { font-size: 13px; line-height: 1.3;  font-weight: 600; }
.t-caption-12    { font-size: 12px; line-height: 1.4;  font-weight: 500; }

/* Reduced motion: no animation, final state is shown */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
