/* Consumer Coach - Typography System - 2026 */

/* ===========================================
   HEADINGS
   =========================================== */

h1,
.h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--dark);
}

h2,
.h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--dark);
}

h3,
.h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  color: var(--dark);
}

h4,
.h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--dark);
}

h5,
.h5 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--dark);
}

h6,
.h6 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--dark);
}

/* Gradient Text */
.text-gradient {
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Heading with highlight */
.heading-highlight {
  display: inline;
}

.heading-highlight .highlight {
  color: var(--primary);
  position: relative;
}

.heading-highlight .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: var(--color-primary-200);
  z-index: -1;
  border-radius: var(--radius-sm);
}

/* ===========================================
   BODY TEXT
   =========================================== */

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.small {
  font-size: var(--text-sm);
}

.tiny {
  font-size: var(--text-xs);
}

/* Text Colors */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  color: var(--color-text-light);
}

.text-white {
  color: var(--color-text-inverse);
}

.text-success {
  color: var(--color-success);
}

.text-warning {
  color: var(--color-warning);
}

.text-danger {
  color: var(--color-danger);
}

.text-info {
  color: var(--color-info);
}

/* ===========================================
   LINKS
   =========================================== */

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible {
  outline: 3px solid var(--color-primary-300);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-underline:hover {
  text-decoration-color: var(--primary);
}

/* ===========================================
   LISTS
   =========================================== */

ul,
ol {
  margin: 0 0 var(--space-4) var(--space-6);
}

ul ul,
ol ul,
ul ol,
ol ol {
  margin-bottom: 0;
}

li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.list-none {
  list-style: none;
  margin-left: 0;
}

.list-disc {
  list-style: disc;
}

.list-decimal {
  list-style: decimal;
}

.list-inside {
  list-style-position: inside;
  margin-left: 0;
}

/* Styled List */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.styled-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.styled-list li:last-child {
  margin-bottom: 0;
}

/* Check List */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
}

.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
}

/* ===========================================
   BLOCKQUOTE
   =========================================== */

blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  padding-left: var(--space-8);
  border-left: 4px solid var(--primary);
  background: var(--bg-light);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
}

/* ===========================================
   CODE
   =========================================== */

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-gray-100);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-primary-700);
}

pre {
  background: var(--dark);
  color: var(--color-text-inverse);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-4) 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-gray-200);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-300);
  box-shadow: 0 2px 0 var(--color-gray-300);
}

/* ===========================================
   TEXT UTILITIES
   =========================================== */

/* Alignment */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

/* Transform */
.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

.normal-case {
  text-transform: none;
}

/* Weight */
.font-thin {
  font-weight: var(--font-thin);
}

.font-light {
  font-weight: var(--font-light);
}

.font-normal {
  font-weight: var(--font-normal);
}

.font-medium {
  font-weight: var(--font-medium);
}

.font-semibold {
  font-weight: var(--font-semibold);
}

.font-bold {
  font-weight: var(--font-bold);
}

.font-extrabold {
  font-weight: var(--font-extrabold);
}

/* Letter Spacing */
.tracking-tight {
  letter-spacing: var(--tracking-tight);
}

.tracking-normal {
  letter-spacing: var(--tracking-normal);
}

.tracking-wide {
  letter-spacing: var(--tracking-wide);
}

.tracking-wider {
  letter-spacing: var(--tracking-wider);
}

/* Line Height */
.leading-none {
  line-height: var(--leading-none);
}

.leading-tight {
  line-height: var(--leading-tight);
}

.leading-snug {
  line-height: var(--leading-snug);
}

.leading-normal {
  line-height: var(--leading-normal);
}

.leading-relaxed {
  line-height: var(--leading-relaxed);
}

.leading-loose {
  line-height: var(--leading-loose);
}

/* Text Wrap */
.whitespace-normal {
  white-space: normal;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.whitespace-pre {
  white-space: pre;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.text-wrap {
  text-wrap: wrap;
}

.text-nowrap {
  text-wrap: nowrap;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Overflow */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================================
   RESPONSIVE TYPOGRAPHY
   =========================================== */

/* Mobile first scaling */
@media (min-width: 640px) {
  h1,
  .h1 {
    font-size: var(--text-6xl);
  }

  h2,
  .h2 {
    font-size: var(--text-4xl);
  }

  h3,
  .h3 {
    font-size: var(--text-3xl);
  }

  .lead {
    font-size: var(--text-2xl);
  }
}

@media (min-width: 1024px) {
  h1,
  .h1 {
    font-size: var(--text-7xl);
  }

  h2,
  .h2 {
    font-size: var(--text-5xl);
  }

  h3,
  .h3 {
    font-size: var(--text-4xl);
  }

  h4,
  .h4 {
    font-size: var(--text-3xl);
  }

  .lead {
    font-size: var(--text-2xl);
  }
}

/* Hero Typography */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--dark);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}