/* ===================================
   Font Face Declarations
   =================================== */

/* Inter Regular (400) */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
}

/* Inter Medium (500) */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/inter-v20-latin-500.woff2') format('woff2');
}

/* Inter SemiBold (600) */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
}

/* DM Sans Regular (400) */
@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
}

/* DM Sans Italic (400) */
@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/dm-sans-v17-latin-italic.woff2') format('woff2');
}

/* DM Sans Medium (500) */
@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/dm-sans-v17-latin-500.woff2') format('woff2');
}

/* DM Sans Medium Italic (500) */
@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 500;
  src: url('/fonts/dm-sans-v17-latin-500italic.woff2') format('woff2');
}

/* DM Sans SemiBold (600) */
@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/dm-sans-v17-latin-600.woff2') format('woff2');
}

/* DM Sans Bold (700) */
@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/dm-sans-v17-latin-700.woff2') format('woff2');
}

/* ===================================
   CSS Variables (Design Tokens)
   =================================== */
:root {
  /* Warm, refined cream palette */
  --background: hsl(40, 33%, 96%);
  --foreground: hsl(20, 14%, 12%);

  --card: hsl(40, 40%, 98%);
  --card-foreground: hsl(20, 14%, 12%);

  --primary: hsl(20, 14%, 12%);
  --primary-foreground: hsl(40, 33%, 96%);

  --secondary: hsl(40, 20%, 92%);
  --secondary-foreground: hsl(20, 14%, 12%);

  --muted: hsl(40, 20%, 92%);
  --muted-foreground: hsl(20, 10%, 45%);

  --accent: hsl(142, 55%, 85%);
  --accent-foreground: hsl(142, 55%, 25%);

  --highlight: hsl(45, 93%, 80%);
  --highlight-foreground: hsl(45, 93%, 25%);

  --border: hsl(40, 20%, 88%);

  --success: hsl(142, 55%, 42%);
  --success-foreground: hsl(0, 0%, 100%);

  --warning: hsl(45, 93%, 55%);
  --warning-foreground: hsl(20, 14%, 12%);

  --radius: 1rem;

  /* Font families */
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "DM Sans", system-ui, sans-serif;
}

/* ===================================
   Base Styles
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

.italic {
  font-style: italic;
}

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

.bg-highlight {
  background-color: var(--highlight);
}

.bg-accent {
  background-color: var(--accent);
}

.bg-secondary {
  background-color: var(--secondary);
}

/* ===================================
   Components: Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn--secondary:hover {
  background-color: hsl(40, 20%, 88%);
}

.btn--ghost {
  background-color: transparent;
  color: var(--muted-foreground);
}

.btn--ghost:hover {
  color: var(--foreground);
}

.btn--rounded {
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
}

.btn--full {
  width: 100%;
}

/* ===================================
   Components: Pill Badge
   =================================== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===================================
   Components: Signup Form
   =================================== */
.signup-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem;
  background-color: var(--card);
  border-radius: 9999px;
  border: 1px solid var(--border);
}

.signup-form__input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
}

.signup-form__input::placeholder {
  color: var(--muted-foreground);
}

/* ===================================
   Header
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(247, 244, 240, 0.8);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .header__inner {
    height: 5rem;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .header__logo {
    font-size: 1.5rem;
  }
}

.header__logo-img {
  height: 2rem;
  width: auto;
}

@media (min-width: 1024px) {
  .header__logo-img {
    height: 2.5rem;
  }
}

.header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }
}

.header__link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.header__link:hover {
  color: var(--foreground);
}

.header__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .header__actions {
    display: flex;
  }
}

.header__menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
}

.header__menu-btn:hover {
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .header__menu-btn {
    display: none;
  }
}

.header__menu-icon--close {
  display: none;
}

.header--open .header__menu-icon--open {
  display: none;
}

.header--open .header__menu-icon--close {
  display: block;
}

.header__mobile-menu {
  display: none;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.header--open .header__mobile-menu {
  display: block;
}

@media (min-width: 1024px) {
  .header__mobile-menu {
    display: none !important;
  }
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.header__mobile-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.75rem 0;
  transition: color 0.2s ease;
}

.header__mobile-link:hover {
  color: var(--foreground);
}

.header__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Header Dropdown Styles */
.header__dropdown {
  position: relative;
}

.header__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.header__dropdown-trigger:hover {
  color: var(--foreground);
}

.header__dropdown-icon {
  transition: transform 0.2s ease;
}

.header__dropdown:hover .header__dropdown-icon {
  transform: rotate(180deg);
}

/* Mega Menu Styles */
.header__mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 340px;
  margin-top: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(10px);
  z-index: 100;
  overflow: hidden;
}

.header__mega-menu--with-sidebar {
  min-width: 680px;
  display: flex;
}

.header__dropdown:hover .header__mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header__mega-menu-main {
  flex: 1;
  padding: 1.25rem;
}

.header__mega-menu--with-sidebar .header__mega-menu-main {
  padding-right: 0;
}

.header__mega-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Mega Menu Item */
.header__mega-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.header__mega-item:hover {
  background-color: hsl(210, 40%, 96%);
}

.header__mega-item:hover .header__mega-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

.header__mega-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.header__mega-item-icon--blue {
  background: linear-gradient(135deg, hsl(210, 100%, 96%) 0%, hsl(210, 100%, 92%) 100%);
  color: hsl(210, 100%, 45%);
}

.header__mega-item-icon--green {
  background: linear-gradient(135deg, hsl(142, 76%, 94%) 0%, hsl(142, 76%, 88%) 100%);
  color: hsl(142, 76%, 36%);
}

.header__mega-item-icon--purple {
  background: linear-gradient(135deg, hsl(262, 83%, 96%) 0%, hsl(262, 83%, 90%) 100%);
  color: hsl(262, 83%, 58%);
}

.header__mega-item-icon--orange {
  background: linear-gradient(135deg, hsl(25, 95%, 94%) 0%, hsl(25, 95%, 88%) 100%);
  color: hsl(25, 95%, 53%);
}

.header__mega-item-icon--teal {
  background: linear-gradient(135deg, hsl(173, 80%, 94%) 0%, hsl(173, 80%, 88%) 100%);
  color: hsl(173, 80%, 36%);
}

.header__mega-item-icon--gold {
  background: linear-gradient(135deg, hsl(38, 80%, 94%) 0%, hsl(38, 80%, 88%) 100%);
  color: hsl(38, 80%, 45%);
}

.header__mega-item-icon--grey {
  background: linear-gradient(135deg, hsl(0, 0%, 94%) 0%, hsl(0, 0%, 88%) 100%);
  color: hsl(0, 0%, 40%);
}

.header__mega-item-icon--black {
  background: linear-gradient(135deg, hsl(0, 0%, 90%) 0%, hsl(0, 0%, 82%) 100%);
  color: hsl(0, 0%, 15%);
}

.header__mega-item-content {
  flex: 1;
  min-width: 0;
}

.header__mega-item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}

.header__mega-item-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.header__mega-item-arrow {
  color: hsl(38, 80%, 50%);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

/* Mega Menu Sidebar */
.header__mega-menu-sidebar {
  width: 240px;
  background: linear-gradient(180deg, hsl(38, 60%, 97%) 0%, hsl(38, 40%, 95%) 100%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.header__mega-featured-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, hsl(38, 80%, 50%) 0%, hsl(38, 60%, 40%) 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.header__mega-featured-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.header__mega-featured-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.header__mega-featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(38, 80%, 45%);
  transition: color 0.15s ease;
}

.header__mega-featured-btn:hover {
  color: hsl(38, 80%, 35%);
}

/* Wide Mega Menu with Columns */
.header__mega-menu--wide {
  min-width: 820px;
  display: flex;
}

.header__mega-menu--wide .header__mega-menu-sidebar {
  width: 220px;
}

.header__mega-menu-main--columns {
  padding: 1.5rem 1.75rem;
}

.header__mega-menu-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.25rem;
}

.header__mega-menu-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 0.25rem 2rem;
}

.header__mega-column {
  display: contents;
}

.header__mega-column-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.header__mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
  margin: 0 -0.625rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.header__mega-link--with-icon {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  margin: 0;
  min-height: 5.5rem;
}

.header__mega-link:hover {
  background-color: hsl(210, 40%, 96%);
  color: var(--foreground);
}

.header__mega-link:hover .header__mega-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.header__mega-link-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.header__mega-link-icon--blue {
  color: hsl(210, 100%, 50%);
}

.header__mega-link-icon--purple {
  color: hsl(262, 83%, 58%);
}

.header__mega-link-icon--green {
  color: hsl(142, 76%, 36%);
}

.header__mega-link-icon--orange {
  color: hsl(25, 95%, 53%);
}

.header__mega-link-icon--teal {
  color: hsl(173, 80%, 36%);
}

.header__mega-link-icon--red {
  color: hsl(0, 72%, 51%);
}

.header__mega-link-icon--gold {
  color: hsl(38, 80%, 50%);
}

.header__mega-link-content {
  flex: 1;
  min-width: 0;
}

.header__mega-link-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}

.header__mega-link-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.header__mega-link-arrow {
  color: hsl(38, 80%, 50%);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Mega Menu Footer */
.header__mega-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.header__mega-footer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
}

.header__mega-footer-badge svg {
  color: hsl(142, 76%, 40%);
  flex-shrink: 0;
}

.header__mega-footer-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(38, 80%, 50%);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.header__mega-footer-link:hover {
  color: hsl(38, 80%, 40%);
}

/* Mobile Accordion Styles */
.header__mobile-accordion {
  border-bottom: 1px solid var(--border);
}

.header__mobile-accordion:last-of-type {
  border-bottom: none;
}

.header__mobile-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.header__mobile-accordion-trigger:hover {
  color: var(--foreground);
}

.header__mobile-accordion-icon {
  transition: transform 0.2s ease;
}

.header__mobile-accordion.is-open .header__mobile-accordion-icon {
  transform: rotate(180deg);
}

.header__mobile-accordion-content {
  display: none;
  padding-bottom: 0.75rem;
}

.header__mobile-accordion.is-open .header__mobile-accordion-content {
  display: block;
}

.header__mobile-sublink {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.header__mobile-sublink:hover {
  color: var(--foreground);
}

.header__mobile-subheading {
  display: block;
  padding: 0.75rem 0 0.375rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header__mobile-subheading:first-child {
  padding-top: 0;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
}

@media (min-width: 1024px) {
  .hero {
    padding: 11rem 0 8rem;
  }
}

.hero__badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero__content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero__title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 4.5rem;
  }
}

.hero__description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.75;
}

@media (min-width: 1024px) {
  .hero__description {
    font-size: 1.25rem;
  }
}

.hero__signup {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.hero__note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .hero__stats {
    gap: 0;
  }
}

.stat {
  text-align: center;
}

@media (min-width: 1024px) {
  .stat {
    padding: 0 3rem;
    border-right: 1px solid var(--border);
  }
  
  .stat:last-child {
    border-right: none;
  }
}

.stat__value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

@media (min-width: 1024px) {
  .stat__value {
    font-size: 1.875rem;
  }
}

.stat__label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero__cards {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Upload Card */
.upload-card {
  position: relative;
  background-color: var(--card);
  border-radius: 1.5rem;
  border: 2px dashed var(--border);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (min-width: 1024px) {
  .upload-card {
    padding: 2.5rem;
  }
}

.upload-card:hover {
  border-color: rgba(32, 28, 24, 0.3);
}

.upload-card--dragging {
  border-color: var(--foreground);
  background-color: var(--secondary);
}

.upload-card__input {
  display: none;
}

.upload-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  background-color: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--highlight-foreground);
}

.upload-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.upload-card__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.upload-card__hint {
  font-size: 0.75rem;
}

.upload-feedback {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.upload-feedback--loading {
  background-color: var(--highlight);
  color: var(--highlight-foreground);
}

.upload-feedback--success {
  background-color: #10b981;
  color: white;
}

.upload-feedback--error {
  background-color: #ef4444;
  color: white;
}

/* Preview Card */
.preview-card {
  position: relative;
  background-color: var(--card);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  padding: 2rem;
}

@media (min-width: 1024px) {
  .preview-card {
    padding: 2.5rem;
  }
}

.preview-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

.preview-card__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.preview-card__info {
  flex: 1;
}

.preview-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.preview-card__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Score Circle */
.score-circle {
  position: relative;
  width: 5rem;
  height: 5rem;
}

.score-circle__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle__bg {
  fill: none;
  stroke: var(--muted);
  stroke-width: 6;
}

.score-circle__progress {
  fill: none;
  stroke: var(--success);
  stroke-width: 6;
  stroke-dasharray: 264;
  stroke-dashoffset: 63;
  stroke-linecap: round;
}

.score-circle__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
}

/* Progress Bars */
.progress-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-bar__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.progress-bar__label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.progress-bar__value {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}

.progress-bar__track {
  height: 0.375rem;
  background-color: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.progress-bar__fill--success {
  background-color: var(--success);
}

.progress-bar__fill--highlight {
  background-color: var(--highlight);
}

.progress-bar__fill--accent {
  background-color: var(--accent);
}

/* ===================================
   Features Section
   =================================== */
.features {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .features {
    padding: 8rem 0;
  }
}

.features__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .features__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.features__header-left {
  max-width: 36rem;
}

.features__header-left .pill-badge {
  margin-bottom: 1rem;
}

.features__title {
  font-size: 2.25rem;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .features__title {
    font-size: 3rem;
  }
}

.features__subtitle {
  color: var(--muted-foreground);
  max-width: 28rem;
}

@media (min-width: 1024px) {
  .features__subtitle {
    text-align: right;
  }
}

.features__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature-card {
  background-color: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

@media (min-width: 1024px) {
  .feature-card {
    border-radius: 1.5rem;
    padding: 2rem;
  }
}

.feature-card:hover {
  border-color: rgba(32, 28, 24, 0.2);
}

.feature-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--foreground);
}

.feature-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  .feature-card__title {
    font-size: 1.25rem;
  }
}

.feature-card__description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===================================
   Section Headers (Reusable)
   =================================== */
.section-header {
  margin-bottom: 4rem;
}

.section-header--center {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.section-header .pill-badge {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  color: var(--muted-foreground);
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
  padding: 5rem 0;
  background-color: rgba(234, 230, 223, 0.5);
}

@media (min-width: 1024px) {
  .how-it-works {
    padding: 8rem 0;
  }
}

.steps {
  display: grid;
  gap: 2rem;
  max-width: 70rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.step {
  position: relative;
  text-align: center;
}

.step__line {
  display: none;
}

@media (min-width: 768px) {
  .step__line {
    display: block;
    position: absolute;
    top: 2.5rem;
    left: 60%;
    width: 80%;
    height: 1px;
    border-top: 1px dashed var(--border);
  }
}

.step__icon {
  position: relative;
  z-index: 10;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background-color: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--highlight-foreground);
}

.step__number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.step__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.step__description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 20rem;
  margin: 0 auto;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .testimonials {
    padding: 8rem 0;
  }
}

.testimonials__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto 4rem;
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.testimonial-card {
  background-color: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .testimonial-card {
    border-radius: 1.5rem;
    padding: 2rem;
  }
}

.testimonial-card__rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

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

.testimonial-card__content {
  color: var(--foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__name {
  font-weight: 500;
  color: var(--foreground);
  font-size: 0.875rem;
}

.testimonial-card__role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.testimonials__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .testimonials__footer {
    flex-direction: row;
  }
}

.avatar-stack {
  display: flex;
}

.avatar-stack__img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--background);
  object-fit: cover;
  margin-left: -0.75rem;
}

.avatar-stack__img:first-child {
  margin-left: 0;
}

.avatar-stack__count {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--background);
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-left: -0.75rem;
}

.testimonials__stat {
  text-align: center;
}

@media (min-width: 640px) {
  .testimonials__stat {
    text-align: left;
  }
}

.testimonials__stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foreground);
}

.testimonials__stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===================================
   Pricing Section
   =================================== */
.pricing {
  padding: 5rem 0;
  background-color: rgba(234, 230, 223, 0.5);
}

@media (min-width: 1024px) {
  .pricing {
    padding: 8rem 0;
  }
}

.pricing__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 70rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pricing-card {
  position: relative;
  background-color: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

@media (min-width: 1024px) {
  .pricing-card {
    border-radius: 1.5rem;
    padding: 2rem;
  }
}

.pricing-card:hover {
  border-color: rgba(32, 28, 24, 0.3);
}

.pricing-card--popular {
  border-color: var(--foreground);
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background-color: var(--foreground);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: 1.5rem;
}

.pricing-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.pricing-card__amount {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--foreground);
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-card__description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-icon {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pricing-card__feature span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===================================
   CTA Section
   =================================== */
.cta {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .cta {
    padding: 8rem 0;
  }
}

.cta__content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-size: 2.25rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .cta__title {
    font-size: 3rem;
  }
}

.cta__description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.cta__signup {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}

.cta__note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ===================================
   Footer
   =================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem;
  }
}

.footer__brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer__brand {
    grid-column: span 1;
  }
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--foreground);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 20rem;
}

.footer__column {
  display: flex;
  flex-direction: column;
}

.footer__heading {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--foreground);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact Section */
.footer__contact {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer__contact-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.footer__contact-link a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Social Links */
.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted-foreground);
  background-color: var(--secondary);
  transition: all 0.2s ease;
}

.footer__social-link:hover {
  color: var(--foreground);
  background-color: var(--accent);
  transform: translateY(-2px);
}

.footer__social-icon {
  width: 18px;
  height: 18px;
}

.footer__copyright-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__copyright-link:hover {
  color: var(--primary);
}

/* ================================
   Legal Pages Styles
   ================================ */

/* Legal Hero Section */
.legal-hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--background) 100%);
  border-bottom: 1px solid var(--border);
}

.legal-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.2;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb__item {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--muted-foreground);
}

.breadcrumb__item--active {
  color: var(--foreground);
  font-weight: 500;
}

.breadcrumb__link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--primary);
}

/* Legal Content */
.legal-content {
  padding: 3rem 0 5rem;
}

.legal-content__wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content__wrapper p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--foreground);
  font-size: 1rem;
}

.legal-notice {
  background-color: var(--secondary);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 2rem !important;
  font-size: 0.875rem;
  line-height: 1.6;
  border-radius: 4px;
}

.legal-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.legal-divider {
  height: 1px;
  background-color: var(--border);
  margin: 3rem 0;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.legal-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.8;
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.legal-subtext {
  font-style: italic;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-top: -0.5rem !important;
}

.legal-link {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: var(--primary-hover);
}

.contact-info {
  background-color: var(--secondary);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
}

.contact-info strong {
  font-weight: 600;
  color: var(--foreground);
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
  .legal-hero {
    padding: 3rem 0 1.5rem;
  }

  .legal-hero__title {
    font-size: 1.75rem;
  }

  .legal-content {
    padding: 2rem 0 3rem;
  }

  .legal-heading {
    font-size: 1.25rem;
  }

  .legal-notice,
  .contact-info {
    padding: 1rem;
  }
}

/* ===================================
   Blog Page Styles
   =================================== */

/* Blog Hero */
.blog-hero {
  padding: 7rem 1.25rem 2.5rem;
  text-align: center;
  background: var(--background);
}

@media (min-width: 640px) {
  .blog-hero {
    padding: 7rem 2rem 2.5rem;
  }
}

@media (min-width: 768px) {
  .blog-hero {
    padding: 7rem 3rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .blog-hero {
    padding: 7rem 4rem 2.5rem;
  }
}

.blog-hero__breadcrumb {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.blog-hero__title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.blog-hero__subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.blog-hero__search {
  max-width: 480px;
  margin: 0 auto;
}

.blog-hero__search-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  text-align: left;
}

/* Blog Search Box */
.blog-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search-box:focus-within {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px hsla(45, 93%, 80%, 0.25);
}

.blog-search-box__icon {
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.blog-search-box__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--foreground);
  outline: none;
}

.blog-search-box__input::placeholder {
  color: var(--muted-foreground);
}

/* Blog Section */
.blog-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .blog-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.blog-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.blog-section__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.blog-section__link {
  font-size: 0.8rem;
  color: var(--highlight-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

.blog-section__link:hover {
  color: var(--foreground);
}

.blog-section__more {
  margin-top: 1.25rem;
  text-align: left;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  gap: 1.25rem;
}

.blog-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .blog-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Blog Card */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.blog-card__img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card__img img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.7;
}

.blog-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.blog-card__date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.blog-card__excerpt {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--highlight-foreground);
  transition: color 0.2s ease;
}

.blog-card__link:hover {
  color: var(--foreground);
}

/* Blog Category Pills */
.blog-categories {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1rem 0;
}

.blog-categories__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.blog-pill {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.blog-pill:hover {
  border-color: var(--highlight);
  color: var(--foreground);
}

.blog-pill--active {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--highlight-foreground);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .blog-hero__title {
    font-size: 1.75rem;
  }

  .blog-hero__subtitle {
    font-size: 0.9rem;
  }

  .blog-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .blog-card__img {
    height: 120px;
  }
}

/* ===================================
   Single Blog Post Styles
   =================================== */

.blog-post {
  padding: 5rem 0 4rem;
}

.blog-post__breadcrumb {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.blog-post__breadcrumb a {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.blog-post__breadcrumb a:hover {
  color: var(--foreground);
}

.blog-post__header {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
}

.blog-post__category {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--highlight-foreground);
  background: var(--highlight);
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-post__title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.blog-post__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.blog-post__meta-separator {
  color: var(--border);
}

.blog-post__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-post__tag {
  color: var(--highlight-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

.blog-post__tag:hover {
  color: var(--foreground);
}

.blog-post__description {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.blog-post__image {
  max-width: 880px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.blog-post__image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post__content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--foreground);
}

.blog-post__content h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 3rem 0 1.25rem;
  color: var(--foreground);
}

.blog-post__content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--foreground);
}

.blog-post__content p {
  margin-bottom: 1.5rem;
}

.blog-post__content ul,
.blog-post__content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.blog-post__content li {
  margin-bottom: 0.75rem;
  list-style: disc;
}

.blog-post__content ol li {
  list-style: decimal;
}

.blog-post__content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--highlight);
  background: var(--card);
  font-style: italic;
  color: var(--foreground);
}

.blog-post__content code {
  padding: 0.2rem 0.4rem;
  background: var(--secondary);
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Monaco', 'Courier New', monospace;
}

.blog-post__content pre {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--secondary);
  border-radius: 8px;
  overflow-x: auto;
}

.blog-post__content pre code {
  padding: 0;
  background: transparent;
}

.blog-post__content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
}

.blog-post__content strong {
  font-weight: 600;
  color: var(--foreground);
}

.blog-post__content a {
  color: var(--highlight-foreground);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.blog-post__content a:hover {
  color: var(--foreground);
}

.blog-post__footer {
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.blog-post__cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.blog-post__cta h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.blog-post__cta p {
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

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

.blog-post__share p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.blog-post__share-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-post__share-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.blog-post__share-btn:hover {
  border-color: var(--highlight);
  color: var(--foreground);
  background: var(--highlight);
}

.blog-post__related {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.blog-post__related h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--foreground);
}

/* ===================================
   Blog Post Table of Contents
   =================================== */

.blog-post__wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.blog-post__toc {
  position: relative;
}

.blog-post__toc-container {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-post__toc-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.blog-post__toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

/* TOC Item container */
.blog-post__toc-item {
  display: flex;
  flex-direction: column;
}

.blog-post__toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.blog-post__toc-link:hover {
  color: var(--foreground);
  background: var(--secondary);
}

.blog-post__toc-link.is-active {
  color: var(--highlight-foreground);
  background: var(--highlight);
  border-left-color: var(--highlight-foreground);
  font-weight: 500;
}

/* Collapsible H3 children container */
.blog-post__toc-children {
  display: none;
  flex-direction: column;
  gap: 0.125rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

/* Show children when parent item is expanded */
.blog-post__toc-item.is-expanded .blog-post__toc-children {
  display: flex;
  max-height: 500px;
}

.blog-post__toc-link--h3 {
  padding-left: 1.5rem;
  font-size: 0.8125rem;
}

/* Visual indicator for expandable items */
.blog-post__toc-item--has-children > .blog-post__toc-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.5rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.blog-post__toc-item--has-children.is-expanded > .blog-post__toc-link::after {
  transform: rotate(180deg);
}

/* TOC Pitch Section */
.blog-post__toc-pitch {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.blog-post__toc-pitch-headline {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

.blog-post__toc-pitch-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.blog-post__toc-pitch-benefits li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.blog-post__toc-pitch-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--highlight-foreground);
  font-weight: 600;
}

.blog-post__toc-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}

/* Adjust content column when TOC is present */
.blog-post__wrapper .blog-post__content {
  max-width: none;
  margin: 0;
}

/* Adjust layout when no TOC is present */
.blog-post__wrapper--no-toc {
  grid-template-columns: 1fr;
}

.blog-post__wrapper--no-toc .blog-post__content {
  max-width: 720px;
  margin: 0 auto;
}

/* Responsive adjustments for blog posts */
@media (max-width: 768px) {
  .blog-post {
    padding: 4rem 0 3rem;
  }

  .blog-post__title {
    font-size: 1.75rem;
  }

  .blog-post__content {
    font-size: 1rem;
  }

  .blog-post__content h2 {
    font-size: 1.5rem;
  }

  .blog-post__content h3 {
    font-size: 1.25rem;
  }

  .blog-post__cta {
    padding: 1.5rem;
  }
}

/* TOC responsive adjustments */
@media (max-width: 1024px) {
  .blog-post__wrapper {
    grid-template-columns: 1fr;
  }

  .blog-post__toc {
    display: none;
  }

  .blog-post__wrapper .blog-post__content {
    max-width: 720px;
    margin: 0 auto;
  }
}


