/* ============================================
   LESSONLOOP FEATURE PAGE — Shared CSS
   Used across all 15 feature pages
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Base / Typography --- */
.feature-page {
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  color: hsl(var(--foreground));
}

.feature-page h1,
.feature-page h2,
.feature-page h3,
.feature-page h4 {
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* --- Section Tag (pill label) --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: hsl(var(--teal) / 0.1);
  color: hsl(var(--teal));
  border: 1px solid hsl(var(--teal) / 0.2);
}

.section-tag-coral {
  background: hsl(var(--coral) / 0.1);
  color: hsl(var(--coral));
  border-color: hsl(var(--coral) / 0.2);
}

.section-tag.coral { color: hsl(var(--coral)); }
.section-tag.teal { color: hsl(var(--teal-light)); }

.section-tag-violet {
  background: hsla(263, 70%, 58%, 0.1);
  color: hsl(var(--violet));
  border-color: hsla(263, 70%, 58%, 0.2);
}

.section-tag-light {
  background: hsl(var(--background) / 0.15);
  color: hsl(var(--background));
  border-color: hsl(var(--background) / 0.25);
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
  background: hsl(var(--ink));
  color: hsl(var(--background));
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, hsl(var(--teal) / 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsl(var(--coral) / 0.1) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: hsl(var(--teal) / 0.15);
  color: hsl(var(--teal-light));
  border: 1px solid hsl(var(--teal) / 0.25);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: hsl(var(--background));
}

.hero h1 span {
  background: linear-gradient(135deg, hsl(var(--teal-light)), hsl(var(--teal)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: hsla(0, 0%, 100%, 0.6);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Browser Frame (screenshot mockup) --- */
.browser-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.15);
  background: hsl(var(--ink-light));
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 80px -20px hsl(var(--teal) / 0.15);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: hsl(var(--ink-dark));
  border-bottom: 1px solid hsl(var(--border) / 0.1);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: hsl(var(--destructive) / 0.7); }
.browser-dots span:nth-child(2) { background: hsl(var(--warning) / 0.7); }
.browser-dots span:nth-child(3) { background: hsl(var(--success) / 0.7); }

.browser-url {
  flex: 1;
  display: flex;
  justify-content: center;
}

.browser-url span {
  background: hsl(var(--ink));
  border-radius: 0.5rem;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===========================================
   METRICS SECTION
   =========================================== */
.metrics {
  position: relative;
  padding: 5rem 0;
  background: hsl(var(--background));
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: hsl(var(--background) / 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border) / 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric:hover {
  border-color: hsl(var(--teal) / 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.metric .value {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, hsl(var(--teal)), hsl(var(--teal-dark)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.metric .label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

/* ===========================================
   PROBLEM SECTION
   =========================================== */
.problem {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: hsl(var(--muted) / 0.3);
}

.problem-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.problem-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.problem-header p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(210, 15%, 90%, 0.5);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 4px 12px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.problem-card:hover {
  border-color: hsl(var(--coral) / 0.3);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 0 40px -12px hsl(var(--coral) / 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-4px);
}

.problem-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--coral)) 0%, hsl(var(--coral-dark)) 100%);
  box-shadow: 0 4px 12px hsl(var(--coral) / 0.25);
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.problem-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.problem-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

/* ===========================================
   SOLUTION SECTION
   =========================================== */
.solution {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: hsl(var(--background));
}

.solution-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.solution-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.solution-header p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(210, 15%, 90%, 0.5);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 4px 12px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, hsl(var(--teal)), hsl(var(--teal-dark)));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: hsla(167, 72%, 43%, 0.25);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.05),
    0 0 40px -12px hsla(167, 72%, 43%, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.7);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:nth-child(even)::before {
  background: linear-gradient(90deg, hsl(var(--coral)), hsl(var(--coral-dark)));
}

.feature-card:nth-child(even):hover {
  border-color: hsla(12, 76%, 61%, 0.25);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.05),
    0 0 40px -12px hsla(12, 76%, 61%, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  background: linear-gradient(135deg, hsl(var(--teal)), hsl(var(--teal-dark)));
  box-shadow: 0 4px 12px hsla(167, 72%, 43%, 0.25);
}

.feature-icon.teal {
  background: linear-gradient(135deg, hsl(var(--teal)), hsl(var(--teal-dark)));
  box-shadow: 0 4px 12px hsla(167, 72%, 43%, 0.25);
}

.feature-icon.coral {
  background: linear-gradient(135deg, hsl(var(--coral)), hsl(var(--coral-dark)));
  box-shadow: 0 4px 12px hsla(12, 76%, 61%, 0.25);
}

.feature-icon.violet {
  background: linear-gradient(135deg, hsl(var(--violet)), hsl(263, 70%, 45%));
  box-shadow: 0 4px 12px hsla(263, 70%, 58%, 0.25);
}

.feature-icon.emerald {
  background: linear-gradient(135deg, hsl(var(--emerald)), hsl(160, 84%, 30%));
  box-shadow: 0 4px 12px hsla(160, 84%, 39%, 0.25);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

/* ===========================================
   DETAIL SECTION (deep-dive with table)
   =========================================== */
.detail {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: hsl(var(--muted) / 0.3);
}

.detail-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.detail-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.detail-header p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.detail-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.detail-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.detail-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.detail-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.detail-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.detail-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: hsl(var(--teal));
  font-weight: 700;
}

/* --- Access / Comparison Table --- */
.access-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--background));
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.03);
}

.access-table thead {
  background: hsl(var(--ink));
  color: hsl(var(--background));
}

.access-table th {
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.access-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.access-table tbody tr:last-child td {
  border-bottom: none;
}

.access-table tbody tr:hover {
  background: hsl(var(--teal) / 0.04);
}

.access-table .check {
  color: hsl(var(--teal));
  font-weight: 700;
}

.access-table .cross {
  color: hsl(var(--muted-foreground));
  opacity: 0.4;
}

/* ===========================================
   STEPS SECTION
   =========================================== */
.steps {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: hsl(var(--ink));
  color: hsl(var(--background));
}

.steps-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.steps-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: hsl(var(--background));
}

.steps-header p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step-counter;
}

.step {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  border-radius: 1rem;
  background: hsl(var(--background) / 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--background) / 0.1);
  counter-increment: step-counter;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover {
  background: hsl(var(--background) / 0.1);
  border-color: hsl(var(--teal) / 0.3);
  transform: translateY(-4px);
}

.step-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--teal-light));
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--teal)) 0%, hsl(var(--teal-dark)) 100%);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px hsl(var(--teal) / 0.3);
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: hsl(var(--background));
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsla(0, 0%, 100%, 0.55);
}

/* ===========================================
   RELATED FEATURES SECTION
   =========================================== */
.related {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: hsl(var(--background));
}

.related-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.related-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 1rem;
  background: hsl(var(--background) / 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-card:hover {
  border-color: hsl(var(--teal) / 0.3);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 0 40px -12px hsl(var(--teal) / 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-4px);
}

.related-card .related-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--teal)) 0%, hsl(var(--teal-dark)) 100%);
  box-shadow: 0 4px 12px hsl(var(--teal) / 0.25);
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.related-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.related-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  flex: 1;
}

.related-card .related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--teal));
  transition: gap 0.3s ease;
}

.related-card:hover .related-link {
  gap: 0.625rem;
}

/* ===========================================
   FAQ SECTION
   =========================================== */
.faq {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: hsl(var(--muted) / 0.3);
}

.faq-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.faq-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 1rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border) / 0.5);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: hsl(var(--teal) / 0.3);
}

.faq-item summary,
.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 1rem;
  color: hsl(var(--muted-foreground));
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon,
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: hsl(var(--ink));
  color: hsl(var(--background));
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, hsl(var(--teal) / 0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  color: hsl(var(--background));
}

.cta h2 span {
  background: linear-gradient(135deg, hsl(var(--teal-light)), hsl(var(--teal)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta p,
.cta-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: hsla(0, 0%, 100%, 0.5);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Detail Link --- */
.detail-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--teal));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-link:hover { text-decoration: underline; }

/* --- Accent Text Variants --- */
.problem-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
  text-align: center;
}

.problem-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.muted { color: hsla(0, 0%, 100%, 0.4); }

.accent { color: hsl(var(--coral)); }
.accent-violet { color: hsl(var(--violet)); }
.accent-teal { color: hsl(var(--teal-light)); }

/* ===========================================
   BUTTONS
   =========================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, hsl(var(--teal)) 0%, hsl(var(--teal-dark)) 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow:
    0 4px 14px hsl(var(--teal) / 0.3),
    inset 0 1px 0 hsl(var(--teal-light) / 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px hsl(var(--teal) / 0.35),
    inset 0 1px 0 hsl(var(--teal-light) / 0.3);
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  background: hsl(var(--ink));
  color: hsl(var(--background));
  border: 1px solid hsl(var(--border) / 0.2);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  border-color: hsl(var(--teal) / 0.4);
  background: hsl(var(--teal) / 0.05);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  background: hsl(var(--background) / 0.1);
  color: hsl(var(--background));
  border: 1px solid hsl(var(--background) / 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost:hover {
  background: hsl(var(--background) / 0.2);
  transform: translateY(-2px);
}

/* ===========================================
   SECTION TRANSITIONS (fade edges)
   =========================================== */
.fade-to-dark {
  position: relative;
}

.fade-to-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, hsl(var(--ink)));
  pointer-events: none;
  z-index: 2;
}

.fade-to-light {
  position: relative;
}

.fade-to-light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, hsl(var(--background)));
  pointer-events: none;
  z-index: 2;
}

/* ===========================================
   SCROLL REVEAL ANIMATIONS
   =========================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.is-visible,
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --- Stagger Delays --- */
.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 80ms; }
.stagger-3 { transition-delay: 160ms; }
.stagger-4 { transition-delay: 240ms; }
.stagger-5 { transition-delay: 320ms; }
.stagger-6 { transition-delay: 400ms; }
.stagger-7 { transition-delay: 480ms; }
.stagger-8 { transition-delay: 560ms; }
.stagger-9 { transition-delay: 640ms; }

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid,
  .feature-grid,
  .related-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 3.5rem;
  }

  .hero::before,
  .hero::after {
    width: 300px;
    height: 300px;
  }

  .metrics,
  .problem,
  .solution,
  .detail,
  .steps,
  .related,
  .faq,
  .cta {
    padding: 4rem 0;
  }

  .metrics-grid,
  .problem-grid,
  .feature-grid,
  .related-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .metric .value {
    font-size: 2rem;
  }

  .cta::before {
    width: 400px;
    height: 400px;
  }

  /* Disable hover transforms on touch devices */
  .problem-card:hover,
  .feature-card:hover,
  .related-card:hover,
  .metric:hover,
  .step:hover {
    transform: none;
  }

  .access-table {
    font-size: 0.875rem;
  }

  .access-table th,
  .access-table td {
    padding: 0.75rem 0.75rem;
  }
}

/* --- Small mobile (≤480px) --- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-primary-dark,
  .btn-secondary,
  .btn-ghost {
    justify-content: center;
    width: 100%;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .problem-header h2,
  .solution-header h2,
  .detail-header h2,
  .steps-header h2,
  .related-header h2,
  .faq-header h2,
  .cta h2 {
    font-size: 1.5rem;
  }

  /* Horizontal scroll for table on very small screens */
  .access-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
  }

  .access-table {
    min-width: 500px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .problem-card,
  .feature-card,
  .related-card,
  .metric,
  .step,
  .btn-primary,
  .btn-primary-dark,
  .btn-secondary,
  .btn-ghost {
    transition: none;
  }

  .problem-card:hover,
  .feature-card:hover,
  .related-card:hover,
  .metric:hover,
  .step:hover,
  .btn-primary:hover,
  .btn-primary-dark:hover,
  .btn-secondary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}
