/* components.css — buttons, cards, nav, forms, testimonials, table, FAQ, product */

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 36px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast);
  position: relative;
  overflow: hidden;
}

/* Lime primary button */
.btn--lime {
  background: var(--brand-secondary);
  color: var(--text-primary);
}

.btn--lime:hover {
  background: #d9ff26;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 255, 0, 0.35);
}

/* Violet primary button */
.btn--violet {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

.btn--violet:hover {
  background: #4e22a0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Ghost button */
.btn--ghost {
  background: transparent;
  color: var(--text-inverse);
  border: 2px solid rgba(232, 224, 240, 0.4);
}

.btn--ghost:hover {
  border-color: var(--text-inverse);
  transform: translateY(-1px);
}

/* Full-width block button */
.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Large variant */
.btn--lg {
  font-size: var(--text-body);
  padding: 22px 48px;
  letter-spacing: 0.06em;
}

/* Button shine on hover — pseudo-element sweep */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: 120% 0;
  transition: background-position 0.5s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after {
  background-position: -20% 0;
}

/* ── HERO HEADING ───────────────────────────────────────────── */
.hero-h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-h1 em {
  font-style: normal;
  color: var(--brand-primary);
  display: block;
}

.hero-deck {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 1.4vw, 1.0625rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: var(--space-8);
  letter-spacing: 0;
}

/* ── ARTICLE HEADINGS ───────────────────────────────────────── */
.article-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin: var(--space-12) 0 var(--space-5);
  position: relative;
}

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

.article-h2--lime {
  color: var(--brand-secondary);
}

.article-h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: var(--space-8) 0 var(--space-4);
}

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

/* Section title with ruled line */
.section-title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

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

/* ── BODY TEXT ──────────────────────────────────────────────── */
.prose p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.78;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.prose p:last-child { margin-bottom: 0; }

.prose strong { font-weight: 700; }

.prose em.highlight {
  background: rgba(61, 26, 124, 0.08);
  padding: 1px 3px;
  font-style: normal;
}

/* ── PULL QUOTE ─────────────────────────────────────────────── */
.pull-quote {
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: var(--surface-inverse);
  margin: var(--space-8) 0;
}

.pull-quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-secondary);
  position: absolute;
  top: -0.1em;
  left: var(--space-4);
  pointer-events: none;
  opacity: 0.6;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-inverse);
  position: relative;
  z-index: 1;
  margin: 0;
  padding-top: var(--space-4);
}

.pull-quote cite {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 224, 240, 0.5);
  margin-top: var(--space-4);
}

/* ── AUTHOR BOX ─────────────────────────────────────────────── */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  padding: var(--space-5);
  margin: var(--space-8) 0;
}

.author-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--brand-primary);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info { flex: 1; }

.author-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.author-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.article-meta {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: var(--space-2);
  letter-spacing: 0.04em;
}

/* ── CALLOUT BOXES ──────────────────────────────────────────── */
.callout {
  padding: var(--space-6);
  margin: var(--space-6) 0;
  position: relative;
  border-left: 4px solid var(--border-strong);
  background: var(--surface-raised);
}

.callout--green {
  border-left-color: #1a7c3d;
  background: var(--verdict-green-bg);
}

.callout--warn {
  border-left-color: #c97c00;
  background: var(--verdict-warn-bg);
}

.callout--inverse {
  border-left-color: var(--brand-secondary);
  background: rgba(200, 255, 0, 0.06);
}

.callout p {
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}

.callout p:last-child { margin-bottom: 0; }

/* ── BRIDGE TEXT ────────────────────────────────────────────── */
.bridge {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-light);
  font-style: italic;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-5);
  margin-bottom: 0;
  margin-top: var(--space-6);
}

/* ── FEATURE LIST ───────────────────────────────────────────── */
.flist {
  list-style: none;
  margin: var(--space-5) 0 var(--space-6);
  padding: 0;
}

.flist li {
  padding: var(--space-4) 0 var(--space-4) 32px;
  position: relative;
  font-size: var(--text-body);
  font-family: var(--font-body);
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.6;
}

.flist li:last-child { border-bottom: none; }

.flist li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: var(--space-4);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ── EXPERT BOX ─────────────────────────────────────────────── */
.expert-box {
  background: var(--surface-inverse);
  padding: var(--space-8);
  margin-top: var(--space-8);
  border-left: 4px solid var(--brand-secondary);
}

.exp-label {
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin-bottom: var(--space-5);
}

.exp-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.exp-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
}

.exp-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-inverse);
}

.exp-cred {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: rgba(232, 224, 240, 0.6);
  margin-top: 3px;
}

.expert-box p {
  font-size: var(--text-sm);
  font-family: var(--font-display);
  color: rgba(232, 224, 240, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.expert-box p:last-child { margin-bottom: 0; }

/* ── COMPARISON TABLE ───────────────────────────────────────── */
.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
}

.comp-table thead th {
  padding: 14px 16px 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(232, 224, 240, 0.15);
  color: rgba(232, 224, 240, 0.6);
}

.comp-table thead th:first-child {
  text-align: left;
  width: 32%;
  font-weight: 400;
  color: rgba(232, 224, 240, 0.35);
}

.comp-table thead th.h-diet { color: #d4b87c; }
.comp-table thead th.h-fast { color: #a0a8e8; }
.comp-table thead th.h-juice {
  color: var(--brand-secondary);
  border-bottom-color: var(--brand-secondary);
}

.comp-table tbody tr td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(232, 224, 240, 0.08);
  vertical-align: middle;
  line-height: 1.4;
  color: rgba(232, 224, 240, 0.6);
}

.comp-table tbody tr td:first-child {
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: rgba(232, 224, 240, 0.5);
  text-align: left;
}

.comp-table tbody tr td:not(:first-child) { text-align: center; }

.comp-table td.j {
  color: var(--brand-secondary) !important;
}

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

.comp-table tr.winner-row td {
  font-weight: 700 !important;
}

.comp-table tfoot td {
  background: rgba(200, 255, 0, 0.08);
  padding: 12px 16px;
  font-size: var(--text-xs);
  color: var(--brand-secondary);
  font-weight: 600;
  text-align: center;
  border-top: 2px solid var(--brand-secondary);
  letter-spacing: 0.04em;
}

.comp-table tfoot td:first-child { text-align: left; }

.y  { color: var(--brand-secondary) !important; font-weight: 700; }
.n  { color: #ff7070 !important; }
.m  { color: #ffcc66 !important; }

/* ── REVIEW CARDS ───────────────────────────────────────────── */
.review-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  padding: var(--space-8) var(--space-6) var(--space-6);
  margin-bottom: var(--space-5);
  position: relative;
}

.review-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--border-subtle);
  position: absolute;
  top: var(--space-2);
  left: var(--space-4);
}

.review-body {
  font-size: var(--text-sm);
  font-family: var(--font-body);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  position: relative;
  z-index: 1;
  color: var(--text-primary);
}

.review-foot {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  letter-spacing: 0.04em;
}

.rname {
  font-weight: 700;
  color: var(--text-primary);
}

/* ── MINI REVIEW GRID ───────────────────────────────────────── */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.mini-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  padding: var(--space-4);
}

.mini-card p {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  line-height: 1.55;
  margin: var(--space-3) 0 var(--space-2);
  color: var(--text-secondary);
}

.mini-foot {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-light);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .mini-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ACCORDION ──────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-5) 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-trigger {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h4);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  user-select: none;
  color: var(--text-primary);
  transition: color var(--dur-fast);
}

.faq-trigger:hover { color: var(--brand-primary); }

.faq-icon {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--brand-primary);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--dur-med) var(--ease-out);
  width: 24px;
  text-align: center;
  line-height: 1;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s var(--ease-out), padding 0.3s;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-answer p {
  padding: var(--space-4) 0;
}

/* ── PRODUCT BOX ────────────────────────────────────────────── */
.product-box {
  background: var(--surface-raised);
  border: 2px solid var(--brand-primary);
  padding: var(--space-8);
  box-shadow: 0 0 0 6px rgba(61, 26, 124, 0.06);
}

.pb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.pb-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}

.pb-sub {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-1);
  letter-spacing: 0.04em;
}

.pb-note {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-align: center;
  margin-top: var(--space-4);
  letter-spacing: 0.04em;
}

/* ── CTA SECTION INTERNALS ──────────────────────────────────── */
.cta-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  display: block;
  margin-bottom: var(--space-4);
}

.cta-h {
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-inverse);
  margin-bottom: var(--space-5);
}

.cta-body {
  font-family: var(--font-display);
  font-size: var(--text-body);
  color: rgba(232, 224, 240, 0.75);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto var(--space-8);
}

.cta-price-box {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  display: inline-block;
  min-width: 260px;
  border-left: 4px solid var(--brand-secondary);
}

.cta-trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: rgba(232, 224, 240, 0.55);
}

.cta-trust-list li::before {
  content: '✓  ';
  color: var(--brand-secondary);
  font-weight: 700;
}

.cta-sub {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: rgba(232, 224, 240, 0.45);
  margin-top: var(--space-4);
}

/* ── VIDEO WRAPPER ──────────────────────────────────────────── */
.video-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
}

.video-wrap--contained {
  max-height: 380px;
  overflow: hidden;
}

.video-wrap--contained video {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ── AUTHOR SIGN-OFF ────────────────────────────────────────── */
.author-signoff {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  margin: var(--space-8) 0;
}

.author-signoff-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.author-signoff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-signoff-body { font-family: var(--font-display); }

.author-signoff-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.author-signoff-title {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.5;
}

.author-signoff-disclosure {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: var(--space-3);
  font-style: italic;
  line-height: 1.6;
}

/* ── NUDGE BOX ──────────────────────────────────────────────── */
.nudge-box {
  background: var(--surface-inverse);
  padding: var(--space-6);
  border-left: 4px solid var(--brand-secondary);
}

.nudge-box p {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: rgba(232, 224, 240, 0.8);
  margin-bottom: var(--space-4);
  line-height: 1.65;
}

.nudge-box p:last-of-type { margin-bottom: var(--space-5); }

/* ── IMAGE IN ARTICLE FLOW ──────────────────────────────────── */
.article-img {
  width: 100%;
  margin: var(--space-6) 0;
}

.article-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-img--tall img { height: 400px; }

/* Apply duotone treatment to article images */
.article-img .img-frame { height: 320px; }

/* ── FOOTNOTE ───────────────────────────────────────────────── */
.footnote {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: var(--space-3);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* ── DISCLAIMER ─────────────────────────────────────────────── */
.disclaimer {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: rgba(232, 224, 240, 0.3);
  line-height: 1.65;
  max-width: 680px;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(232, 224, 240, 0.1);
  margin-top: var(--space-8);
}
