/* ============================================================
   CASE STUDY (replaces the old Excel→Dashboard mockup section)
   White background, soft gradient. Red/gray for "before",
   emerald for "after". Centered single card with 3 metric strip.
   ============================================================ */

.case-study .section-head { max-width: 760px; }
.case-study .section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 14px 0 14px;
  color: var(--ink);
}
.case-study .section-head p {
  color: var(--ink-2);
  font-size: 16px;
}

/* The main side-by-side card */
.case-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 56px -24px rgba(15,23,42,.18), 0 4px 12px -2px rgba(15,23,42,.05);
  max-width: 920px;
  margin: 48px auto 56px;
  overflow: hidden;
}
.case-side { padding: 36px 38px; }
.case-before { background: linear-gradient(180deg, #fcfafa 0%, #ffffff 100%); }
.case-after  { background: linear-gradient(180deg, #f6fdf9 0%, #ffffff 100%); }
.case-divider { background: var(--line); }

.case-side-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  line-height: 1;
}
.case-side-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
}
.case-before .case-side-tag { background: #fef2f2; color: #b91c1c; }
.case-before .case-side-tag::before { background: #ef4444; }
.case-after  .case-side-tag { background: var(--emerald-50); color: var(--emerald-600); }
.case-after  .case-side-tag::before { background: var(--emerald); }

.case-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-side-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.case-side-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 9px;
}
.case-before .case-side-list li::before { background: #cbd5e1; }
.case-after  .case-side-list li::before { background: var(--emerald); }
.case-after  .case-side-list li b {
  color: var(--emerald-600);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Highlight metrics strip */
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--line);
}
.case-metric {
  text-align: center;
  padding: 24px 16px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}
.case-metric:last-child { border-right: none; }
.case-metric-num {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--emerald-600);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.case-metric-unit {
  font-size: 18px;
  font-weight: 700;
  color: var(--emerald-600);
  margin-left: 5px;
  letter-spacing: -0.01em;
}
.case-metric-label {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  font-weight: 500;
}

/* Footer note */
.case-foot {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 28px auto 0;
  max-width: 720px;
  letter-spacing: 0;
}

@media (max-width: 880px) {
  .case-card {
    grid-template-columns: 1fr;
    margin: 32px 0 32px;
    max-width: none;
  }
  .case-divider { height: 1px; width: 100%; }
  .case-side { padding: 26px 22px; }
  .case-side-tag { margin-bottom: 16px; }
  .case-side-list li { font-size: 14px; }

  .case-metrics {
    grid-template-columns: 1fr;
    border-top: none;
  }
  .case-metric {
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 20px 12px 18px;
  }
  .case-metric-num { font-size: 32px; }
  .case-metric-unit { font-size: 16px; }
  .case-foot { font-size: 12px; padding: 0 16px; }
}

/* ============== TRANSFORMATION SECTION (v10) ============== */

/* Section is Thai-only; hide in EN mode */
body[data-lang="en"] #transformation { display: none; }

.transformation {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #f4f5f9 100%);
}

.transformation .section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 14px 0 16px;
  color: var(--ink);
}
.transformation .section-head p {
  color: var(--ink-2);
  font-size: 16.5px;
}

/* ----- Grid ----- */
.t-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 48px;
}

.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-width: 0;
}
.t-before { background: #fcfcfb; }

.t-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.t-card-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
}
.t-tag-before { background: #fee2e2; color: #b91c1c; }
.t-tag-before::before { background: #dc2626; }
.t-tag-after  { background: var(--emerald-50); color: var(--emerald-600); }
.t-tag-after::before  { background: var(--emerald); }

/* ----- Excel mock ----- */
.excel {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
.excel::-webkit-scrollbar { height: 4px; }
.excel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.excel-titlebar {
  display: flex; align-items: center; gap: 9px;
  background: #1e6e3a;
  color: white;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.excel-dot {
  width: 16px; height: 16px;
  border-radius: 3px;
  background: white;
  display: grid; place-items: center;
  color: #1e6e3a; font-weight: 700;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  line-height: 1;
}
.excel-dot::before { content: "X"; }

.excel-toolbar {
  display: flex; align-items: center; gap: 10px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  padding: 5px 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #4b5563;
}
.excel-fx { font-style: italic; color: #9ca3af; }

.excel-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', 'Noto Sans Thai', ui-monospace, monospace;
  font-size: 12px;
  background: white;
}
.excel-table th, .excel-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 9px;
  text-align: left;
  font-weight: 400;
  color: #1f2937;
  white-space: nowrap;
}
.excel-table .excel-cols th {
  background: #f3f4f6;
  font-size: 10.5px;
  color: #6b7280;
  text-align: center;
  padding: 3px 6px;
  font-weight: 500;
}
.excel-table .excel-head th {
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
  font-size: 12px;
}
.excel-table tbody th {
  background: #f3f4f6;
  font-size: 10.5px;
  color: #6b7280;
  text-align: center;
  width: 26px;
  font-weight: 500;
}
.excel-table .err {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 500;
}
.excel-table .dup td:not(:first-child) { background: #fef9c3; }
.excel-table .dup .err { background: #fee2e2; }

.t-before.in .glow {
  animation: t-error-glow 1.6s ease-out 0.4s 1;
}
@keyframes t-error-glow {
  0%   { box-shadow: inset 0 0 0 0 rgba(220,38,38,0); }
  35%  { box-shadow: inset 0 0 0 2px rgba(220,38,38,.55); background: #fecaca; }
  100% { box-shadow: inset 0 0 0 0 rgba(220,38,38,0); }
}

/* Pain / benefit lists */
.t-points {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.t-points li { font-size: 14.5px; line-height: 1.5; }
.t-bad li  { color: #7f1d1d; }
.t-good li { color: var(--emerald-600); font-weight: 500; }

/* ----- Arrow ----- */
.t-arrow {
  display: grid;
  place-items: center;
}
.t-arrow-orb {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(30,58,138,.55), 0 4px 10px -2px rgba(30,58,138,.35);
  animation: t-pulse-arrow 2.4s ease-in-out infinite;
}
@keyframes t-pulse-arrow {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); box-shadow: 0 14px 30px -8px rgba(30,58,138,.65), 0 6px 14px -2px rgba(30,58,138,.40); }
}

/* ----- Dashboard mock ----- */
.dash {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  overflow: hidden;
  min-width: 0;
}
.dash-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
}
.dash-top h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.dash-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--emerald-600);
  background: var(--emerald-50);
  padding: 4px 10px;
  border-radius: 999px;
}
.dash-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: t-live-pulse 1.6s ease-in-out infinite;
}
@keyframes t-live-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.dash-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-2);
}
.dash-stat {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--line-2);
}
.dash-stat:last-child { border-right: none; }
.dash-stat span {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.dash-stat b {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.dash-stat b.ok { color: var(--emerald-600); }
.dash-stat b.muted { color: var(--ink-3); }

.dash-chart {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px;
  padding: 18px;
  height: 120px;
  border-bottom: 1px solid var(--line-2);
}
.dash-chart .bar {
  flex: 1;
  height: 0;
  background: linear-gradient(180deg, #34d399 0%, var(--emerald) 60%, var(--emerald-600) 100%);
  border-radius: 4px 4px 0 0;
  transition: height .9s cubic-bezier(.22,1,.36,1);
}
.t-after.in .dash-chart .bar { height: var(--h); }
.t-after.in .dash-chart .bar:nth-child(1){transition-delay:.05s}
.t-after.in .dash-chart .bar:nth-child(2){transition-delay:.13s}
.t-after.in .dash-chart .bar:nth-child(3){transition-delay:.21s}
.t-after.in .dash-chart .bar:nth-child(4){transition-delay:.29s}
.t-after.in .dash-chart .bar:nth-child(5){transition-delay:.37s}
.t-after.in .dash-chart .bar:nth-child(6){transition-delay:.45s}

.dash-pay {
  list-style: none;
  margin: 0; padding: 0;
}
.dash-pay li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}
.dash-pay li:last-child { border-bottom: none; }
.dp-name { color: var(--ink); font-weight: 500; }
.dp-amt  { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.dp-badge {
  font-size: 11.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}
.dp-badge.ok   { background: var(--emerald-50); color: var(--emerald-600); }
.dp-badge.auto { background: #eef4ff; color: var(--navy); }

.t-impact {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  padding: 13px 14px;
  background: linear-gradient(135deg, #eef4ff 0%, var(--emerald-50) 100%);
  border-radius: var(--radius);
  border: 1px solid #dbeafe;
}

/* ----- Card captions ----- */
.t-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #f8f9fb;
  border: 1px solid var(--line-2);
}
.t-caption-bad  { color: var(--ink-3); }
.t-caption-good {
  color: var(--navy);
  font-weight: 500;
  background: #eef4ff;
  border-color: #dbeafe;
}

/* Slightly slower fade on the right card so it feels calm and arrives last */
.t-after.reveal { transition-delay: 0.2s; }

/* ----- Refinements to existing .ba-* (Solution) section ----- */
.ba-outcome {
  margin: 4px 0 0;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  color: var(--navy);
  background: linear-gradient(135deg, #eef4ff 0%, var(--emerald-50) 100%);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  letter-spacing: -0.005em;
}

.btn .btn-sub {
  font-weight: 500;
  font-size: 12.5px;
  opacity: .85;
  margin-left: 4px;
}
@media (max-width: 880px) {
  .btn .btn-sub {
    display: block;
    margin: 4px 0 0;
    font-size: 12px;
  }
}

/* ============================================================
   FEATURES SECTION — light enhancements
   - Stagger fade-in on .reveal cards
   - Cards become flex columns so .ftag stays at bottom (visual
     alignment between cards that have mockups and cards that don't)
   - Two highlighted cards (LINE + QR) get small UI mockups
   - Subtle one-time pulse on LINE icon, soft scan line on QR
   ============================================================ */

.features-grid .feature-card {
  display: flex;
  flex-direction: column;
}
.features-grid .feature-card .ftag {
  margin-top: auto;
  align-self: flex-start;
}

/* Stagger the reveal as the row enters viewport */
.features-grid .reveal:nth-child(1) { transition-delay: 0s; }
.features-grid .reveal:nth-child(2) { transition-delay: .08s; }
.features-grid .reveal:nth-child(3) { transition-delay: .16s; }
.features-grid .reveal:nth-child(4) { transition-delay: .24s; }
.features-grid .reveal:nth-child(5) { transition-delay: .32s; }
.features-grid .reveal:nth-child(6) { transition-delay: .40s; }

/* Hover lift already exists in styles.css — we just deepen it slightly */
.feature-card { will-change: transform; }
.feature-card:hover { box-shadow: 0 16px 40px -16px rgba(15,23,42,.18), 0 4px 12px -4px rgba(15,23,42,.06); }

/* Shared mockup container */
.feat-mock { margin: 14px 0 16px; }

/* ----- LINE notification bubble ----- */
.line-bubble {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  position: relative;
}
.line-bubble-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.line-avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--line-color);
  display: grid; place-items: center;
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
  line-height: 1;
}
.line-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.line-time {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--ink-3);
}
.line-bubble-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.line-line-1 b {
  color: var(--navy);
  font-weight: 700;
}
.line-line-2 {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* LINE icon: gentle one-time pulse when card enters viewport */
.feat-line.in .feature-icon {
  animation: feat-line-pulse 1.4s ease-out 1 both;
}
@keyframes feat-line-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(6,199,85,.12); }
  60%  { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(6,199,85,0); }
  100% { transform: scale(1); }
}

/* LINE bubble: single pop-in like a notification just arrived */
.feat-line .line-bubble { transform-origin: 8px 100%; }
.feat-line.in .line-bubble {
  animation: feat-line-pop .55s cubic-bezier(.34, 1.56, .64, 1) .35s 1 both;
}
@keyframes feat-line-pop {
  0%   { transform: scale(.78) translateY(6px); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1)    translateY(0);  opacity: 1; }
}

/* ----- QR payment card ----- */
.qr-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.qr-vis {
  width: 64px; height: 64px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--line-2);
}
.qr-vis svg { display: block; width: 100%; height: 100%; }
.qr-vis::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  top: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--emerald) 50%, transparent);
  box-shadow: 0 0 8px rgba(16,185,129,.55);
  animation: feat-qr-scan 3.4s ease-in-out infinite;
}
@keyframes feat-qr-scan {
  0%   { top: 4px;             opacity: 0; }
  10%  { opacity: 1; }
  50%  { top: calc(100% - 4px); opacity: 1; }
  60%  { opacity: 0; }
  100% { top: 4px;             opacity: 0; }
}
.qr-info {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.qr-pp {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.qr-amt {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.qr-amt-cur, .qr-amt-num { font: inherit; color: inherit; }
.qr-amt-num { display: inline-block; min-width: 4ch; }
.qr-cap {
  font-size: 11.5px;
  color: var(--ink-3);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .feat-line.in .feature-icon { animation: none; }
  .feat-line.in .line-bubble  { animation: none; }
  .qr-vis::after { animation: none; opacity: 0; }
}

/* ----- Micro trust line under each highlighted mockup ----- */
.feat-trust {
  margin: 4px 0 0;
  padding: 0;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0;
}
.feat-trust::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

/* ----- Per-card outcome line ----- */
.feat-outcome {
  margin: -2px 0 10px !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-600);
  letter-spacing: -0.005em;
  line-height: 1.4;
}

/* ----- Bottom outcomes block ----- */
.features-outcomes {
  margin-top: 40px;
  padding: 26px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.features-outcomes-title {
  margin: 0 0 18px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: center;
}
.features-outcomes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features-outcomes-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 500;
  line-height: 1.45;
}
.features-outcomes-list li b {
  color: var(--ink);
  font-weight: 700;
}
.features-outcomes-list .oc-arrow {
  color: var(--emerald-600);
  font-weight: 700;
  margin: 0 2px;
}
.features-outcomes-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--emerald-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 880px) {
  .features-outcomes { padding: 22px 20px; margin-top: 28px; }
  .features-outcomes-title { font-size: 15.5px; margin-bottom: 14px; }
  .features-outcomes-list { grid-template-columns: 1fr; gap: 10px; }
  .feat-outcome { font-size: 12.5px; }
}

/* ----- Primary highlight on QR card ----- */
.feature-card.feat-primary {
  background: white;
  border: 1.5px solid var(--emerald);
  transform: scale(1.025);
  transform-origin: center center;
  box-shadow:
    0 14px 32px -12px rgba(16,185,129,.30),
    0 4px 10px -2px rgba(15,23,42,.05);
  z-index: 1;
}
.feature-card.feat-primary:hover {
  transform: scale(1.025) translateY(-6px);
  box-shadow:
    0 22px 44px -14px rgba(16,185,129,.35),
    0 8px 18px -4px rgba(15,23,42,.10);
}
.feature-card.feat-primary .feature-icon {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.feat-primary-label {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  background: var(--emerald);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 8px -1px rgba(16,185,129,.45);
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 880px) {
  .feature-card.feat-primary { transform: none; }
  .feature-card.feat-primary:hover { transform: translateY(-6px); }
  .feat-primary-label {
    position: static;
    align-self: flex-start;
    margin-bottom: 10px;
  }
}

/* ============================================================
   IMPACT SECTION — money-impact line + primary highlight
   (the section uses a dark navy background)
   ============================================================ */

.impact-money {
  margin: 8px 0 0 !important;
  font-size: 13.5px;
  font-weight: 600;
  color: #6ee7b7;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.impact-card.impact-primary {
  position: relative;
  z-index: 1;
  background: rgba(16, 185, 129, .08);
  border: 1.5px solid rgba(110, 231, 183, .55);
  transform: scale(1.04);
  transform-origin: center center;
  box-shadow:
    0 24px 56px -12px rgba(16, 185, 129, .35),
    0 8px 18px -4px rgba(15, 23, 42, .35),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}

.impact-primary-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -2px rgba(16, 185, 129, .55), 0 2px 6px rgba(15, 23, 42, .25);
  line-height: 1;
}

@media (max-width: 880px) {
  .impact-card.impact-primary { transform: none; }
  .impact-primary-label { top: -10px; font-size: 10px; padding: 4px 10px; }
}

/* ----- Subtle urgency line between result bar and trust line ----- */
.features-urgency {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #c2410c;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.features-urgency::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  flex-shrink: 0;
}

/* ----- Trust line below the outcomes block ----- */
.features-trust {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: 0;
}
.features-trust::before {
  content: "·";
  margin-right: 8px;
  color: var(--ink-3);
  opacity: .6;
}
.features-trust::after {
  content: "·";
  margin-left: 8px;
  color: var(--ink-3);
  opacity: .6;
}

/* ----- CTA ----- */
.t-cta {
  display: flex; justify-content: center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.t-cta .btn { padding: 14px 26px; font-size: 15px; }
.t-cta .btn { flex-wrap: wrap; row-gap: 2px; }
.t-cta-sub {
  font-weight: 500;
  font-size: 12.5px;
  opacity: .82;
  margin-left: 4px;
  flex-basis: auto;
}

/* ----- Responsive ----- */
@media (max-width: 880px) {
  .transformation { padding: 64px 0; }
  .t-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
  }
  .t-arrow { padding: 4px 0; }
  .t-arrow-orb { transform: rotate(90deg); width: 48px; height: 48px; }
  .t-arrow-orb svg { width: 22px; height: 22px; }
  @keyframes t-pulse-arrow {
    0%,100% { transform: rotate(90deg) scale(1); }
    50%     { transform: rotate(90deg) scale(1.08); }
  }
  .t-micro-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .t-micro-bad, .t-micro-good { grid-column: 1; }
  .t-card { padding: 20px; }
  .dash-stat { padding: 11px 10px; }
  .dash-stat b { font-size: 17px; }
  .dash-stat span { font-size: 10.5px; }
  .excel-table th, .excel-table td { padding: 5px 7px; font-size: 11px; }
  .dash-top { padding: 12px 14px; flex-wrap: wrap; gap: 6px; }
  .dash-pay li {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name amt" "badge badge";
    gap: 4px 10px;
    padding: 10px 14px;
  }
  .dash-pay .dp-name { grid-area: name; }
  .dash-pay .dp-amt  { grid-area: amt; }
  .dash-pay .dp-badge {
    grid-area: badge;
    justify-self: start;
    margin-top: 2px;
  }
  .dash-chart { padding: 14px; height: 96px; gap: 6px; }
  .t-cta { flex-direction: column; align-items: stretch; padding: 0 18px; }
  .t-cta .btn {
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    padding: 12px 16px;
    font-size: 14px;
  }
  .t-cta-sub {
    flex-basis: 100%;
    text-align: center;
    margin: 4px 0 0;
    font-size: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .t-arrow-orb,
  .dash-live i { animation: none; }
  .dash-chart .bar { transition: none; }
  .t-before.in .glow { animation: none; }
}

/* ============================================================
   REVENUE LOSS CALCULATOR
   ============================================================ */

.revenue-calculator {
  isolation: isolate;
  overflow: hidden;
  padding: 108px 0;
  background:
    radial-gradient(70% 55% at 18% 6%, rgba(16, 185, 129, .18), transparent 62%),
    radial-gradient(60% 50% at 88% 18%, rgba(14, 165, 233, .09), transparent 64%),
    linear-gradient(180deg, #ecfdf5 0%, #ffffff 56%, #f8fafc 100%);
}

.revenue-calculator::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(16, 185, 129, .1), transparent 32%, rgba(255, 255, 255, .55) 56%, transparent 80%),
    linear-gradient(180deg, rgba(255, 255, 255, .52), rgba(255, 255, 255, 0));
  background-size: 140% 140%, 100% 100%;
  animation: rcBackgroundDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes rcBackgroundDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); background-position: 0% 0%, 50% 50%; }
  to { transform: translate3d(2%, 1%, 0) scale(1.03); background-position: 100% 26%, 50% 50%; }
}

.rc-container {
  max-width: 1120px;
}

.rc-head {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.rc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(16, 185, 129, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--emerald-600);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 26px -20px rgba(16, 185, 129, .65), inset 0 1px 0 rgba(255, 255, 255, .86);
}

.rc-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, .13);
}

.rc-head h2 {
  margin: 18px 0 14px;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
  text-wrap: pretty;
}

.rc-head p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1.65;
}

.rc-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .78fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .54));
  box-shadow:
    0 34px 90px -42px rgba(15, 23, 42, .28),
    0 16px 34px -24px rgba(16, 185, 129, .5),
    inset 0 1px 0 rgba(255, 255, 255, .88);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.rc-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(16,185,129,.07), rgba(255,255,255,.18));
}

.rc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, .22);
  box-shadow:
    0 44px 105px -44px rgba(15, 23, 42, .34),
    0 20px 42px -28px rgba(16, 185, 129, .65),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.rc-inputs {
  display: grid;
  gap: 24px;
  padding: 8px 4px 8px 8px;
}

.rc-field {
  display: grid;
  gap: 10px;
}

.rc-field label,
.rc-label-row label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.rc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rc-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--emerald-600);
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.rc-number-input,
.rc-mini-number {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.rc-number-input {
  padding: 0 16px;
}

.rc-mini-number {
  min-height: 44px;
  padding: 0 10px;
  text-align: right;
}

.rc-number-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.rc-number-input:focus,
.rc-mini-number:focus {
  border-color: rgba(16, 185, 129, .62);
  background: white;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .14), 0 12px 26px -20px rgba(16, 185, 129, .6);
}

.rc-number-input:hover,
.rc-mini-number:hover {
  border-color: rgba(16, 185, 129, .38);
}

.rc-number-input::-webkit-outer-spin-button,
.rc-number-input::-webkit-inner-spin-button,
.rc-mini-number::-webkit-outer-spin-button,
.rc-mini-number::-webkit-inner-spin-button {
  margin: 0;
}

.rc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.rc-chips button {
  border: 1px solid rgba(16, 185, 129, .2);
  border-radius: 999px;
  background: rgba(236, 253, 245, .72);
  color: #047857;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}

.rc-chips button:hover,
.rc-chips button.is-active {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, .46);
  background: white;
  color: var(--emerald-600);
  box-shadow: 0 10px 22px -16px rgba(16, 185, 129, .75), inset 0 1px 0 rgba(255,255,255,.9);
}

.rc-slider-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 14px;
  align-items: center;
}

.rc-mini-number-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.rc-range {
  --range-progress: 50%;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald) var(--range-progress), #dbe7df var(--range-progress));
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background .18s ease;
}

.rc-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 4px solid white;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 10px 24px -8px rgba(16, 185, 129, .8), 0 0 0 1px rgba(5, 150, 105, .22);
  -webkit-appearance: none;
  appearance: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.rc-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 4px solid white;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 10px 24px -8px rgba(16, 185, 129, .8), 0 0 0 1px rgba(5, 150, 105, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.rc-range:hover::-webkit-slider-thumb,
.rc-range:focus::-webkit-slider-thumb {
  transform: scale(1.08);
  box-shadow: 0 12px 28px -8px rgba(16, 185, 129, .9), 0 0 0 7px rgba(16, 185, 129, .12);
}

.rc-range:hover::-moz-range-thumb,
.rc-range:focus::-moz-range-thumb {
  transform: scale(1.08);
  box-shadow: 0 12px 28px -8px rgba(16, 185, 129, .9), 0 0 0 7px rgba(16, 185, 129, .12);
}

.rc-scale {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.rc-result {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, .22);
  border-radius: 24px;
  padding: 34px;
  background:
    linear-gradient(155deg, rgba(4, 120, 87, .92) 0%, rgba(6, 95, 70, .9) 48%, rgba(15, 23, 42, .92) 100%);
  color: white;
  box-shadow:
    0 28px 70px -34px rgba(6, 95, 70, .9),
    inset 0 1px 0 rgba(255,255,255,.16);
  transition: box-shadow .24s ease, transform .24s ease;
}

.rc-result::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.18), rgba(255,255,255,0) 36%),
    radial-gradient(80% 70% at 12% 0%, rgba(167, 243, 208, .24), transparent 60%);
  pointer-events: none;
}

.rc-result > * {
  position: relative;
  z-index: 1;
}

.rc-result.is-updating {
  animation: rcResultGlow .62s ease;
}

@keyframes rcResultGlow {
  0% {
    box-shadow:
      0 28px 70px -34px rgba(6, 95, 70, .9),
      inset 0 1px 0 rgba(255,255,255,.16);
  }
  48% {
    box-shadow:
      0 34px 90px -30px rgba(16, 185, 129, .95),
      0 0 0 7px rgba(16, 185, 129, .12),
      inset 0 1px 0 rgba(255,255,255,.22);
  }
  100% {
    box-shadow:
      0 28px 70px -34px rgba(6, 95, 70, .9),
      inset 0 1px 0 rgba(255,255,255,.16);
  }
}

.rc-result-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
}

.rc-main-number {
  min-height: 70px;
  color: white;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 50px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

.rc-period {
  display: inline-block;
  margin-left: 2px;
  font-size: .46em;
  font-weight: 800;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
}

.rc-yearly {
  margin-top: 10px;
  color: #bbf7d0;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.rc-impact {
  max-width: 390px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  line-height: 1.65;
}

.rc-warning {
  margin: 14px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(248, 113, 113, .28);
  border-radius: 14px;
  background: rgba(127, 29, 29, .24);
  color: #fecaca;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.45;
}

.rc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 13px;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.rc-btn:hover {
  transform: scale(1.03);
}

.rc-btn-primary {
  background: var(--emerald);
  color: white;
  box-shadow: 0 16px 36px -18px rgba(16, 185, 129, .92), inset 0 1px 0 rgba(255,255,255,.22);
}

.rc-btn-primary:hover {
  background: var(--emerald-600);
  box-shadow: 0 20px 44px -18px rgba(16, 185, 129, 1), inset 0 1px 0 rgba(255,255,255,.25);
}

.rc-btn-secondary {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .86);
}

.rc-btn-secondary:hover {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .13);
  color: white;
  box-shadow: 0 16px 34px -24px rgba(0, 0, 0, .75);
}

.rc-disclaimer {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .revenue-calculator { padding: 88px 0; }
  .rc-head h2 { font-size: 44px; }
  .rc-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .rc-result {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .revenue-calculator { padding: 72px 0; }
  .rc-head { margin-bottom: 30px; }
  .rc-head h2 {
    font-size: 34px;
  }
  .rc-head p {
    font-size: 16px;
  }
  .rc-card {
    padding: 18px;
    border-radius: 22px;
  }
  .rc-card::before {
    border-radius: 21px;
  }
  .rc-inputs {
    gap: 22px;
    padding: 2px;
  }
  .rc-label-row {
    align-items: flex-start;
  }
  .rc-slider-combo {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rc-mini-number-wrap {
    width: 132px;
    justify-self: end;
  }
  .rc-result {
    border-radius: 18px;
    padding: 26px 22px;
  }
  .rc-main-number {
    min-height: 52px;
    font-size: 36px;
  }
  .rc-yearly {
    font-size: 19px;
  }
  .rc-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .rc-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .revenue-calculator::before,
  .rc-result.is-updating {
    animation: none;
  }
  .rc-card,
  .rc-btn,
  .rc-range,
  .rc-range::-webkit-slider-thumb,
  .rc-range::-moz-range-thumb {
    transition: none;
  }
}

/* ============================================================
   POST-CALCULATOR CONVERSION SECTIONS
   ============================================================ */

html {
  scroll-behavior: smooth;
}

.nav-links {
  gap: 16px;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 13.6px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--emerald-600);
}

.post-container {
  max-width: 1120px;
}

.post-free-analysis,
.post-social-proof,
.post-why,
.post-about,
.post-final-cta {
  padding: 80px 0;
}

.post-free-analysis {
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #ecfdf5 46%, #ffffff 100%);
}

.post-free-analysis::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 50% 10%, rgba(16, 185, 129, .12), transparent 66%),
    linear-gradient(115deg, rgba(16, 185, 129, .07), transparent 38%, rgba(255,255,255,.58) 62%, transparent 86%);
  background-size: 130% 130%, 140% 140%;
  animation: postGradientMove 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes postGradientMove {
  from { background-position: 0% 0%, 0% 50%; }
  to { background-position: 100% 22%, 100% 50%; }
}

.post-bridge-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  gap: 48px;
  align-items: center;
}

.post-bridge-copy,
.post-bridge-visual,
.post-section-head,
.post-about-card,
.post-final-inner {
  position: relative;
  z-index: 1;
}

.post-pill,
.post-kicker,
.post-final-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.post-pill {
  padding: 7px 14px;
  border: 1px solid rgba(16, 185, 129, .22);
  background: rgba(255,255,255,.78);
  color: var(--emerald-600);
  box-shadow: 0 14px 30px -24px rgba(16, 185, 129, .72), inset 0 1px 0 rgba(255,255,255,.9);
}

.post-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, .13);
}

.post-bridge-copy h2,
.post-section-head h2,
.post-final-inner h2 {
  margin: 16px 0 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.post-bridge-copy h2 {
  max-width: 700px;
  font-size: 48px;
}

.post-bridge-copy h2 b,
.post-final-inner h2 span span,
.post-proof-card p,
.post-mini-metrics b {
  background: linear-gradient(90deg, var(--emerald-600), #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.post-bridge-copy p {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.7;
}

.post-check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.post-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
}

.post-check-list svg,
.post-final-trust svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--emerald-600);
}

.post-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.post-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
}

.post-btn:hover {
  transform: scale(1.05);
}

.post-btn-primary {
  border: 1px solid rgba(16,185,129,.3);
  background: var(--emerald);
  color: white;
  box-shadow: 0 18px 38px -20px rgba(5, 150, 105, .92), inset 0 1px 0 rgba(255,255,255,.22);
}

.post-btn-primary:hover {
  background: var(--emerald-600);
  box-shadow: 0 22px 50px -20px rgba(5, 150, 105, 1), inset 0 1px 0 rgba(255,255,255,.26);
}

.post-btn-secondary {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.post-btn-secondary:hover {
  border-color: rgba(134,239,172,.4);
  background: rgba(255,255,255,.13);
  color: white;
  box-shadow: 0 18px 44px -30px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.16);
}

.post-cta-note {
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
}

.post-urgency-line {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(194, 65, 12, .16);
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 13px;
  font-weight: 850;
}

.post-bridge-visual {
  display: grid;
  place-items: center;
}

.post-upload-card {
  position: relative;
  width: min(100%, 420px);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  padding: 26px;
  box-shadow: 0 28px 70px -42px rgba(15,23,42,.34), 0 22px 42px -34px rgba(16,185,129,.72), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .3s ease, box-shadow .3s ease;
}

.post-upload-card:hover {
  transform: scale(1.05);
  box-shadow: 0 34px 84px -42px rgba(15,23,42,.4), 0 26px 54px -34px rgba(16,185,129,.86), inset 0 1px 0 rgba(255,255,255,.9);
}

.post-upload-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--emerald-50);
  color: var(--emerald-600);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.post-upload-icon svg {
  width: 30px;
  height: 30px;
}

.post-secure-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(30,58,138,.12);
  border-radius: 999px;
  background: rgba(248,250,252,.9);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 12px 26px -22px rgba(30,58,138,.5);
}

.post-secure-badge svg {
  width: 14px;
  height: 14px;
  color: var(--emerald-600);
}

.post-upload-card h3 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.post-upload-card p {
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.6;
}

.post-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px dashed rgba(16,185,129,.35);
  border-radius: 16px;
  background: rgba(236,253,245,.64);
  color: var(--ink-2);
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.post-file-row b {
  color: var(--emerald-600);
}

.post-mini-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.post-mini-metrics span {
  padding: 12px 10px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: white;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.post-mini-metrics b {
  display: block;
  margin-bottom: 2px;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.post-social-proof {
  background: white;
}

.post-section-head {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.post-kicker {
  color: var(--emerald-600);
}

.post-section-head h2 {
  font-size: 40px;
}

.post-section-head p {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.7;
}

.post-proof-grid,
.post-why-grid,
.post-customer-grid {
  display: grid;
  gap: 20px;
}

.post-proof-grid,
.post-customer-grid {
  grid-template-columns: repeat(3, 1fr);
}

.post-customer-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -18px 0 28px;
}

.post-customer-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 13px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
}

.post-customer-tabs button:hover,
.post-customer-tabs button.is-active {
  transform: translateY(-1px);
  border-color: rgba(16,185,129,.28);
  background: var(--emerald-50);
  color: var(--emerald-600);
  box-shadow: 0 14px 28px -24px rgba(16,185,129,.6);
}

.post-proof-card,
.post-why-card,
.post-customer-card {
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 50px -36px rgba(15,23,42,.36);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.post-proof-card {
  padding: 32px;
  text-align: center;
}

.post-proof-card:hover,
.post-why-card:hover,
.post-customer-card:hover {
  transform: scale(1.05);
  border-color: rgba(16,185,129,.26);
  box-shadow: 0 26px 70px -38px rgba(16,185,129,.55), 0 14px 34px -26px rgba(15,23,42,.28);
}

.post-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
  color: var(--emerald-600);
  box-shadow: inset 0 0 0 1px rgba(16,185,129,.14);
}

.post-icon svg {
  width: 28px;
  height: 28px;
}

.post-proof-card h3 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.post-proof-card p {
  margin: 6px 0 0;
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.post-customer-card {
  padding: 24px;
}

.post-customer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.post-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
  color: var(--emerald-600);
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(16,185,129,.15);
}

.post-logo-placeholder {
  display: grid;
  place-items: center;
  width: 78px;
  height: 54px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(248,250,252,.94), rgba(241,245,249,.82));
  color: #94a3b8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.post-logo-placeholder span {
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.post-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

.post-status.is-live {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.post-status.is-pilot {
  background: rgba(30,58,138,.08);
  color: var(--navy);
}

.post-customer-card h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.post-customer-card dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.post-customer-card dl div {
  display: grid;
  gap: 3px;
  padding-top: 11px;
  border-top: 1px solid var(--line-2);
}

.post-customer-card dt {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 800;
}

.post-customer-card dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.post-customer-card.is-filtered-out {
  display: none;
}

.post-result-row {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(16,185,129,.18);
  border-radius: 16px;
  background: rgba(236,253,245,.62);
}

.post-result-row span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.35;
}

.post-result-row b {
  color: var(--emerald-600);
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-weight: 900;
  white-space: nowrap;
}

.post-proof-note {
  margin: 22px 0 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 650;
}

.post-about {
  overflow: hidden;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background:
    radial-gradient(56% 78% at 88% 8%, rgba(16, 185, 129, .12), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.post-about-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 34px;
  align-items: center;
  border: 1px solid rgba(226,232,240,.92);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  padding: 38px;
  box-shadow: 0 28px 78px -52px rgba(15,23,42,.38), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.post-about-copy h2 {
  margin: 14px 0 0;
  max-width: 620px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.15;
}

.post-about-copy p {
  margin: 16px 0 0;
  max-width: 620px;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.post-about-grid {
  display: grid;
  gap: 12px;
}

.post-about-point {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(226,232,240,.92);
  border-radius: 18px;
  background: white;
  padding: 18px;
  box-shadow: 0 16px 44px -36px rgba(15,23,42,.34);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.post-about-point:hover {
  transform: translateY(-2px);
  border-color: rgba(16,185,129,.26);
  box-shadow: 0 24px 56px -38px rgba(16,185,129,.5), 0 12px 30px -26px rgba(15,23,42,.28);
}

.post-about-point b {
  color: var(--emerald-600);
  font-size: 15px;
  font-weight: 900;
}

.post-about-point span {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.55;
}

.post-why {
  background: #f8fafc;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.post-why-grid {
  grid-template-columns: repeat(4, 1fr);
}

.post-why-card {
  padding: 26px;
}

.post-why-card .post-icon {
  margin: 0;
}

.post-why-card h3 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.post-why-card p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.post-why-card p b {
  color: var(--emerald-600);
  font-weight: 850;
}

.post-final-cta {
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 52%, #064e3b 100%);
  color: white;
  text-align: center;
}

.post-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(16,185,129,.2), transparent 66%),
    linear-gradient(120deg, rgba(255,255,255,.06), transparent 32%, rgba(16,185,129,.08) 70%, transparent);
  background-size: 130% 130%;
  animation: postFinalShift 13s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes postFinalShift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 28%; }
}

.post-final-inner {
  max-width: 840px;
  margin: 0 auto;
}

.post-final-pill {
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #bbf7d0;
}

.post-final-inner h2 {
  color: white;
  font-size: 54px;
}

.post-final-inner h2 span span {
  -webkit-text-fill-color: transparent;
}

.post-final-inner p {
  max-width: 640px;
  margin: 22px auto 0;
  color: rgba(255,255,255,.75);
  font-size: 18px;
  line-height: 1.75;
}

.post-final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.post-final-btn {
  margin-top: 0;
}

.post-final-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
  color: rgba(255,255,255,.7);
  font-size: 13.5px;
  font-weight: 700;
}

.post-final-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.post-final-trust svg {
  margin-top: 0;
  color: #86efac;
}

.post-final-urgency {
  margin: 22px 0 0;
  color: #bbf7d0;
  font-size: 14px;
  font-weight: 900;
}

.mobile-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  display: none;
  grid-template-columns: 1.15fr .85fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(226,232,240,.85);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 24px 70px -32px rgba(15,23,42,.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-sticky-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 13px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 900;
}

.mobile-sticky-cta a:first-child {
  background: var(--emerald);
  color: white;
  box-shadow: 0 14px 28px -18px rgba(5,150,105,.9);
}

.mobile-sticky-cta a:last-child {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

@media (max-width: 980px) {
  .post-bridge-card {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .post-about-card {
    grid-template-columns: 1fr;
  }
  .post-bridge-copy h2,
  .post-final-inner h2 {
    font-size: 42px;
  }
  .post-proof-grid,
  .post-why-grid,
  .post-customer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .post-free-analysis,
  .post-social-proof,
  .post-why,
  .post-about,
  .post-final-cta {
    padding: 64px 0;
  }
  .post-bridge-copy h2,
  .post-section-head h2,
  .post-about-copy h2,
  .post-final-inner h2 {
    font-size: 32px;
  }
  .post-bridge-copy p,
  .post-final-inner p {
    font-size: 16px;
  }
  .post-proof-grid,
  .post-why-grid,
  .post-customer-grid,
  .post-mini-metrics {
    grid-template-columns: 1fr;
  }
  .post-proof-card,
  .post-why-card,
  .post-about-card,
  .post-upload-card {
    border-radius: 20px;
  }
  .post-about-card {
    padding: 24px;
  }
  .post-cta-row,
  .post-final-trust,
  .post-final-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .post-btn {
    width: 100%;
  }
  .post-cta-note {
    text-align: center;
  }
  .mobile-sticky-cta {
    display: grid;
  }
  footer {
    padding-bottom: 112px;
  }
}

/* ============================================================
   MOTION SYSTEM — calm conversion micro-interactions
   ============================================================ */

:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: .48s;
  --motion-med: .68s;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--motion-med) var(--motion-ease),
    transform var(--motion-med) var(--motion-ease),
    box-shadow var(--motion-fast) ease,
    border-color var(--motion-fast) ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.hero .eyebrow,
.hero .hero-h,
.hero .hero-sub,
.hero .cta-row,
.hero .trust-row {
  opacity: 0;
  transform: translateY(18px);
  animation: motionHeroIn .72s var(--motion-ease) forwards;
}

.hero .eyebrow { animation-delay: .02s; }
.hero .hero-h { animation-delay: .12s; }
.hero .hero-sub { animation-delay: .27s; }
.hero .cta-row { animation-delay: .42s; }
.hero .trust-row { animation-delay: .54s; }

@keyframes motionHeroIn {
  to { opacity: 1; transform: translateY(0); }
}

body[data-hero="combo"] .phone.floating-mockup {
  animation: phoneFloatCombo 4s ease-in-out infinite alternate;
}

body[data-hero="line"] .phone.floating-mockup {
  animation: phoneFloatLine 4s ease-in-out infinite alternate;
}

@keyframes phoneFloatCombo {
  from { transform: rotate(-4deg) translateY(-6px); }
  to { transform: rotate(-4deg) translateY(6px); }
}

@keyframes phoneFloatLine {
  from { transform: translateX(-50%) translateY(-6px) rotate(0); }
  to { transform: translateX(-50%) translateY(6px) rotate(0); }
}

.float-card .val {
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
}

.pcard-min.focus.in {
  animation: problemFocusGlow .92s ease-out .18s 1;
}

@keyframes problemFocusGlow {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 8px 24px -16px rgba(15,23,42,.12); }
  42% { box-shadow: 0 0 0 7px rgba(239, 68, 68, .09), 0 22px 44px -30px rgba(185, 28, 28, .34); border-color: rgba(248, 113, 113, .32); }
  100% { box-shadow: 0 8px 24px -16px rgba(15,23,42,.12); }
}

.ba-before.in .excel-row.err,
.ba-before.in .excel-row .excel-strike {
  animation: errorSoftPulse .78s ease-out .3s 1;
}

@keyframes errorSoftPulse {
  0% { box-shadow: inset 0 0 0 0 rgba(239, 68, 68, 0); }
  45% { box-shadow: inset 0 0 0 2px rgba(239, 68, 68, .28); background-color: rgba(254, 226, 226, .9); }
  100% { box-shadow: inset 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ba-arrow.ba-arrow-pulse {
  animation: motionArrowPulse 2.5s ease-in-out infinite;
}

@keyframes motionArrowPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.ba-after.in .mini-row {
  opacity: 0;
  transform: translateX(-10px);
  animation: paidStatusSlide .5s var(--motion-ease) forwards;
}

.ba-after.in .mini-row:nth-child(1) { animation-delay: .18s; }
.ba-after.in .mini-row:nth-child(2) { animation-delay: .28s; }
.ba-after.in .mini-row:nth-child(3) { animation-delay: .38s; }

@keyframes paidStatusSlide {
  to { opacity: 1; transform: translateX(0); }
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px -34px rgba(15,23,42,.28), 0 14px 30px -26px rgba(16,185,129,.3);
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
}

.feature-icon {
  transition: transform .24s var(--motion-ease);
}

.feat-line.in .line-bubble {
  transform-origin: top left;
  animation: lineBubblePop .52s var(--motion-ease) .22s both;
}

.feat-line.in .line-avatar {
  animation: lineDotPulse .72s ease-out .46s 1;
}

@keyframes lineBubblePop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lineDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .36); }
  100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.impact::before {
  background-size: 120% 120%, 120% 120%;
  animation: impactGradientDrift 16s ease-in-out infinite alternate;
}

@keyframes impactGradientDrift {
  from { background-position: 0% 0%, 50% 50%; }
  to { background-position: 100% 20%, 30% 80%; }
}

.impact-card.impact-primary.in {
  animation: impactPrimaryGlow .8s ease-out .18s 1;
}

.impact-card.impact-primary.reveal {
  transform: translateY(24px) scale(1.04);
}

.impact-card.impact-primary.reveal.in {
  transform: translateY(0) scale(1.04);
}

.impact-card.impact-primary.in .impact-primary-label {
  animation: impactLabelIn .48s var(--motion-ease) .08s both;
}

@keyframes impactPrimaryGlow {
  0% { box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 0 rgba(16,185,129,0); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 0 0 7px rgba(16,185,129,.1), 0 24px 60px -42px rgba(16,185,129,.8); }
  100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 0 rgba(16,185,129,0); }
}

@keyframes impactLabelIn {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.rc-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rc-live-badge,
.rc-high-loss-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.2;
}

.rc-live-badge {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.1);
  color: #bbf7d0;
}

.pulse-badge {
  animation: badgeBreath 2.8s ease-in-out infinite;
}

@keyframes badgeBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(187,247,208,0); }
  50% { box-shadow: 0 0 0 6px rgba(187,247,208,.08); }
}

.rc-high-loss-badge {
  border: 1px solid rgba(252, 165, 165, .24);
  background: rgba(127, 29, 29, .26);
  color: #fecaca;
}

.rc-high-loss-badge.is-visible {
  animation: highLossIn .42s var(--motion-ease) both;
}

@keyframes highLossIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.rc-warning.is-warning-flash {
  animation: warningSoftFlash .68s ease-out 1;
}

@keyframes warningSoftFlash {
  0% { background: rgba(127, 29, 29, .24); }
  45% { background: rgba(153, 27, 27, .38); box-shadow: 0 0 0 5px rgba(248, 113, 113, .08); }
  100% { background: rgba(127, 29, 29, .24); }
}

.case-card.in .case-before {
  animation: caseSideIn .56s var(--motion-ease) .05s both;
}

.case-card.in .case-after {
  animation: caseSideIn .56s var(--motion-ease) .22s both;
}

.case-divider {
  position: relative;
}

.case-divider::after {
  content: "→";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: white;
  color: var(--emerald-600);
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-weight: 900;
  box-shadow: 0 14px 28px -20px rgba(15,23,42,.35), inset 0 0 0 1px rgba(16,185,129,.14);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.92);
}

.case-card.in .case-divider::after {
  animation: caseArrowIn .5s var(--motion-ease) .36s forwards;
}

@keyframes caseSideIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes caseArrowIn {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.case-side-list b,
.case-metric-num {
  color: var(--emerald-600);
}

.post-bridge-card.in .post-file-row {
  animation: fileSlideIn .52s var(--motion-ease) .18s both;
}

.post-progress-line {
  overflow: hidden;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(16,185,129,.1);
}

.post-progress-line span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), #14b8a6);
  transform: scaleX(0);
  transform-origin: left;
}

.post-bridge-card.in .post-progress-line span {
  animation: uploadProgress .72s var(--motion-ease) .4s forwards;
}

.post-bridge-card.in .post-file-row b {
  opacity: 0;
  animation: pdfBadgeIn .38s var(--motion-ease) 1.02s forwards;
}

@keyframes fileSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes uploadProgress {
  to { transform: scaleX(1); }
}

@keyframes pdfBadgeIn {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

.animated-cta-button {
  overflow: hidden;
}

.animated-cta-button > span:last-child {
  display: inline-block;
  transition: transform .24s var(--motion-ease);
}

.animated-cta-button:hover > span:last-child {
  transform: translateX(4px);
}

.post-final-btn.post-btn-primary {
  animation: finalCtaGlow 4s ease-in-out infinite;
}

@keyframes finalCtaGlow {
  0%, 100% { box-shadow: 0 18px 38px -20px rgba(5, 150, 105, .92), inset 0 1px 0 rgba(255,255,255,.22); }
  50% { box-shadow: 0 24px 52px -22px rgba(16,185,129,1), 0 0 0 6px rgba(16,185,129,.09), inset 0 1px 0 rgba(255,255,255,.25); }
}

.post-final-inner.in .post-final-trust > span {
  opacity: 0;
  transform: translateY(10px);
  animation: trustBulletIn .5s var(--motion-ease) forwards;
}

.post-final-inner.in .post-final-trust > span:nth-child(1) { animation-delay: .22s; }
.post-final-inner.in .post-final-trust > span:nth-child(2) { animation-delay: .32s; }
.post-final-inner.in .post-final-trust > span:nth-child(3) { animation-delay: .42s; }

.post-final-inner.in .post-final-urgency {
  opacity: 0;
  animation: urgencyFadeIn .58s var(--motion-ease) .58s forwards;
}

@keyframes trustBulletIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes urgencyFadeIn {
  to { opacity: 1; }
}

@media (max-width: 980px) {
  .ba-arrow.ba-arrow-pulse {
    animation: none;
  }
}

@media (max-width: 720px) {
  body[data-hero] .phone.floating-mockup,
  .pulse-badge,
  .post-final-btn.post-btn-primary {
    animation: none;
  }

  .reveal {
    transform: translateY(14px);
    transition-duration: .48s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .post-free-analysis::before,
  .post-final-cta::before,
  .impact::before,
  .qr-vis::after {
    animation: none;
  }
  .post-btn,
  .post-upload-card,
  .post-proof-card,
  .post-why-card,
  .feature-card,
  .feature-icon,
  .rc-card,
  .rc-btn {
    transition: none;
  }
}

/* ============================================================
   NAV CONTAINER — match Tailwind .container behavior
   features.html loads Tailwind CDN ซึ่ง override max-width ของ
   .container ตาม breakpoints (แต่ไม่แตะ padding) ทำให้ nav
   กว้างกว่า — replicate เฉพาะ nav เพื่อให้ section อื่นยังเดิม
   ============================================================ */
.nav .container { max-width: 100%; }
@media (min-width: 640px)  { .nav .container { max-width: 640px; } }
@media (min-width: 768px)  { .nav .container { max-width: 768px; } }
@media (min-width: 1024px) { .nav .container { max-width: 1024px; } }
@media (min-width: 1280px) { .nav .container { max-width: 1280px; } }
@media (min-width: 1536px) { .nav .container { max-width: 1536px; } }

/* ============================================================
   DARK / LIGHT MODE
   ============================================================ */
:root {
  color-scheme: light;
  --hero-bg: linear-gradient(180deg, #ecfdf5 0%, #ffffff 60%, #fafaf9 100%);
  --card-bg: #ffffff;
  --card-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --nav-bg: rgba(250, 250, 249, 0.85);
  --overlay-bg: #ffffff;
  --bottom-bar-bg: rgba(255, 255, 255, 0.96);
  --bottom-bar-border: rgba(15, 23, 42, 0.08);
  --timeline-bg: rgba(255, 255, 255, 0.7);
  --timeline-dot-bg: rgba(255, 255, 255, 0.9);
  --timeline-dot-border: rgba(15, 23, 42, 0.12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  /* softer dark — not pitch black, with slight blue tint */
  --bg: #0f172a;
  --bg-elevated: #131c30;
  --surface: #1a2336;
  --surface-2: #1e2942;
  --ink: #e6edf6;
  --ink-2: #a3b3c7;
  --ink-3: #7a8aa3;
  --line: #2a3550;
  --line-2: #232e46;
  --warn: #fda4af;
  --warn-bg: rgba(244, 63, 94, 0.16);
  --emerald-50: rgba(16, 185, 129, 0.14);
  --hero-bg:
    radial-gradient(60% 50% at 78% 18%, rgba(16, 185, 129, 0.20), transparent 65%),
    radial-gradient(50% 45% at 12% 32%, rgba(56, 189, 248, 0.10), transparent 60%),
    linear-gradient(180deg, #0f1d2e 0%, #0f172a 70%, #0d1424 100%);
  --card-bg: linear-gradient(160deg, rgba(30, 41, 66, 0.85) 0%, rgba(20, 28, 48, 0.95) 100%);
  --card-bg-solid: #1a2336;
  --card-shadow:
    0 24px 60px -22px rgba(0, 0, 0, 0.55),
    0 4px 14px -2px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --nav-bg: rgba(15, 23, 42, 0.78);
  --overlay-bg: #1a2336;
  --bottom-bar-bg: rgba(19, 28, 48, 0.94);
  --bottom-bar-border: rgba(255, 255, 255, 0.07);
  --timeline-bg: rgba(26, 35, 54, 0.75);
  --timeline-dot-bg: rgba(15, 23, 42, 0.88);
  --timeline-dot-border: rgba(255, 255, 255, 0.14);
}

/* Body — subtle ambient glow so it never feels flat */
html[data-theme="dark"] body {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(16, 185, 129, 0.06), transparent 55%),
    radial-gradient(80% 50% at 100% 100%, rgba(56, 189, 248, 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
}

/* Nav */
html[data-theme="dark"] .nav { background: var(--nav-bg); border-bottom-color: var(--line); }
html[data-theme="dark"] .nav-links a { color: var(--ink-2); }
html[data-theme="dark"] .nav-links a:hover { color: #ffffff; }
html[data-theme="dark"] .brand { color: var(--ink); }
html[data-theme="dark"] .brand-sub { color: var(--ink-3); }

/* Hero — same gradient style as light, just darker base */
html[data-theme="dark"] .hero,
html[data-theme="dark"] header.hero {
  background: var(--hero-bg);
}

/* Section backgrounds — alternating subtle gradients for visual rhythm */
html[data-theme="dark"] .problem-bg {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(244, 63, 94, 0.08), transparent 60%),
    var(--bg);
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .features-bg {
  background:
    radial-gradient(70% 50% at 80% 10%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(56, 189, 248, 0.06), transparent 65%),
    var(--bg);
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .revenue-calculator {
  background:
    radial-gradient(70% 55% at 18% 6%, rgba(16, 185, 129, 0.18), transparent 62%),
    radial-gradient(60% 50% at 88% 18%, rgba(14, 165, 233, 0.10), transparent 64%),
    linear-gradient(180deg, #102331 0%, #0f172a 56%, #0d1424 100%);
}
html[data-theme="dark"] .revenue-calculator::before {
  background:
    linear-gradient(115deg, rgba(16, 185, 129, 0.12), transparent 32%, rgba(56, 189, 248, 0.05) 56%, transparent 80%);
  opacity: 0.85;
}
html[data-theme="dark"] .case-study {
  background:
    radial-gradient(65% 40% at 50% 0%, rgba(16, 185, 129, 0.08), transparent 60%),
    var(--bg);
}
html[data-theme="dark"] .post-why,
html[data-theme="dark"] .post-social-proof,
html[data-theme="dark"] .post-about {
  background:
    radial-gradient(60% 40% at 80% 100%, rgba(56, 189, 248, 0.06), transparent 60%),
    var(--bg);
}
html[data-theme="dark"] .post-free-analysis {
  background:
    radial-gradient(70% 50% at 20% 0%, rgba(16, 185, 129, 0.14), transparent 60%),
    var(--bg);
}
html[data-theme="dark"] .post-final-cta {
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(16, 185, 129, 0.18), transparent 65%),
    radial-gradient(50% 40% at 90% 0%, rgba(56, 189, 248, 0.08), transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #0a1020 100%);
}
html[data-theme="dark"] .trust-bg {
  background: var(--bg);
  border-top-color: var(--line);
}
html[data-theme="dark"] .impact { /* already dark navy — keep but smooth borders */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] h1, html[data-theme="dark"] h2,
html[data-theme="dark"] h3, html[data-theme="dark"] h4,
html[data-theme="dark"] p, html[data-theme="dark"] li { color: inherit; }
html[data-theme="dark"] .section-head h2 { color: var(--ink); }
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .case-side h3,
html[data-theme="dark"] .ba-title { color: var(--ink-2); }

/* Generic cards / surfaces */
html[data-theme="dark"] .case-card,
html[data-theme="dark"] .post-bridge-card,
html[data-theme="dark"] .post-proof-card,
html[data-theme="dark"] .post-why-card,
html[data-theme="dark"] .post-about-card,
html[data-theme="dark"] .post-customer-card,
html[data-theme="dark"] .post-upload-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .extra-card,
html[data-theme="dark"] .users-card,
html[data-theme="dark"] .impact-card,
html[data-theme="dark"] .problem-card {
  background: var(--card-bg);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--card-shadow);
}
html[data-theme="dark"] .problem-card {
  background:
    linear-gradient(160deg, rgba(40, 30, 50, 0.8) 0%, rgba(20, 28, 48, 0.95) 100%);
}
html[data-theme="dark"] .problem-icon {
  background: var(--warn-bg);
  color: var(--warn);
}
html[data-theme="dark"] .problem-card h3 { color: var(--ink); }
html[data-theme="dark"] .problem-card p { color: var(--ink-2); }
html[data-theme="dark"] .problem-card .stat { color: var(--warn); }

/* Calculator card */
html[data-theme="dark"] .rc-card {
  background: linear-gradient(145deg, rgba(30, 41, 66, 0.85), rgba(20, 28, 48, 0.92));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 34px 90px -42px rgba(0, 0, 0, 0.6),
    0 16px 34px -24px rgba(16, 185, 129, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .rc-card::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(16,185,129,0.06), rgba(255,255,255,0.02));
}
html[data-theme="dark"] .rc-result {
  background: linear-gradient(145deg, rgba(20, 35, 50, 0.85), rgba(15, 28, 42, 0.95));
  color: var(--ink);
}
html[data-theme="dark"] .rc-result-kicker { color: var(--ink-3); }
html[data-theme="dark"] input[type="range"] {
  background: var(--line);
}
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="text"] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] [data-households] { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
html[data-theme="dark"] [data-households]:hover,
html[data-theme="dark"] [data-households].is-active { background: var(--emerald-50); color: #34d399; border-color: var(--emerald); }

/* Before/after & case mockup */
html[data-theme="dark"] .ba-before,
html[data-theme="dark"] .case-before {
  background: linear-gradient(180deg, #1a1a26 0%, #131826 100%);
  border-color: var(--line);
}
html[data-theme="dark"] .ba-after,
html[data-theme="dark"] .case-after {
  background: linear-gradient(180deg, #0f1f1a 0%, #131826 100%);
  border-color: var(--line);
}
html[data-theme="dark"] .case-divider { background: var(--line); }
html[data-theme="dark"] .case-card { background: var(--card-bg); }

/* Excel mockup (the spreadsheet) */
html[data-theme="dark"] .excel,
html[data-theme="dark"] .excel-table,
html[data-theme="dark"] .excel-head,
html[data-theme="dark"] .excel-foot { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
html[data-theme="dark"] .excel-table th,
html[data-theme="dark"] .excel-table td { border-color: var(--line); }
html[data-theme="dark"] .excel-table tbody th { background: var(--surface-2); color: var(--ink); }
html[data-theme="dark"] .excel-foot span { background: var(--surface-2); border-color: var(--line); color: var(--ink-3); }
html[data-theme="dark"] .excel-foot span.active { background: var(--surface); color: var(--ink); }

/* LINE bubble mockup */
html[data-theme="dark"] .line-bubble { background: var(--card-bg-solid); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .line-bubble-body { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .line-bubble .qr { background: var(--surface-2); }
html[data-theme="dark"] .line-bubble .qr-text b,
html[data-theme="dark"] .line-bubble .biller { color: var(--ink); }
html[data-theme="dark"] .line-bubble .qr-text span,
html[data-theme="dark"] .line-bubble .amt { color: var(--ink-2); }

/* Dashboard mockup */
html[data-theme="dark"] .dash { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--card-shadow); }
html[data-theme="dark"] .dash-row { border-color: var(--line); color: var(--ink-2); }
html[data-theme="dark"] .dash-row.over .st { background: var(--warn-bg); color: var(--warn); }
html[data-theme="dark"] .dash-period { background: var(--surface-2); }
html[data-theme="dark"] .dash-period .on { background: var(--ink); color: var(--bg); }
html[data-theme="dark"] .dash-body { color: var(--ink); }

/* Section tags / pills */
html[data-theme="dark"] .section-tag { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
html[data-theme="dark"] .section-tag.warn { background: var(--warn-bg); color: var(--warn); }
html[data-theme="dark"] .eyebrow { background: var(--surface); color: var(--ink-2); border-color: var(--line); }

/* Footer powered-by — fix logo placeholder bg */
html[data-theme="dark"] .footer-powered-logo { background: rgba(255, 255, 255, 0.06); }

/* ==== features.html (features-page.css) overrides for dark mode ==== */
html[data-theme="dark"] .feature-pill {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-2);
}
html[data-theme="dark"] .feature-pill:hover,
html[data-theme="dark"] .feature-pill.is-active {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.42);
  color: #34d399;
  box-shadow: 0 14px 28px -22px rgba(16, 185, 129, 0.45);
}
html[data-theme="dark"] .feature-section {
  background: var(--bg);
}
html[data-theme="dark"] .feature-section.bg-white,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .extra-card,
html[data-theme="dark"] .meter-card,
html[data-theme="dark"] .meter-stepper,
html[data-theme="dark"] .meter-result,
html[data-theme="dark"] .report-card,
html[data-theme="dark"] .hub-card,
html[data-theme="dark"] .integration-card,
html[data-theme="dark"] .receipt,
html[data-theme="dark"] .counter-card,
html[data-theme="dark"] .counter-row,
html[data-theme="dark"] .reports-card,
html[data-theme="dark"] .extra-card-more {
  background: var(--card-bg) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
  box-shadow: var(--card-shadow) !important;
}
html[data-theme="dark"] .feature-card h3,
html[data-theme="dark"] .feature-card h4,
html[data-theme="dark"] .feature-kicker { color: var(--ink); }
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .feature-section p { color: var(--ink-2); }
html[data-theme="dark"] .feature-card .feat-outcome,
html[data-theme="dark"] .feature-section .feat-outcome { color: #34d399; }
html[data-theme="dark"] .feature-card .ftag { background: rgba(255, 255, 255, 0.05); color: var(--ink-3); border-color: var(--line); }

/* Anchor-as-feature-card (the LINE link card) — no underline, inherit color */
a.feature-card { text-decoration: none; color: inherit; cursor: pointer; }
a.feature-card:hover { text-decoration: none; }

/* hub-card (section 06 integrations) — 1 card per row + match feature-card gray bg + softer shadow */
#feature-integrations .hub-grid {
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
  gap: 20px;
}
#feature-integrations .hub-card {
  background-color: var(--bg);
  background-image: none;
  border-color: var(--line);
  box-shadow: none;
}
#feature-integrations .hub-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
html[data-theme="dark"] #feature-integrations .hub-card:hover {
  box-shadow: 0 16px 36px -22px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] #feature-integrations .hub-card {
  background-color: transparent !important;
  background-image: linear-gradient(160deg, rgba(30, 41, 66, 0.85) 0%, rgba(20, 28, 48, 0.95) 100%) !important;
  border-color: #2a3550 !important;
}

/* Keep .feat-primary emerald border + glow in dark mode */
html[data-theme="dark"] .feature-card.feat-primary {
  border-color: rgba(16, 185, 129, 0.42) !important;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.08) 0%, rgba(20, 28, 48, 0.95) 60%, rgba(20, 28, 48, 0.95) 100%) !important;
  box-shadow:
    0 28px 70px -34px rgba(16, 185, 129, 0.45),
    0 12px 28px -18px rgba(16, 185, 129, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .feat-primary-label {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -8px rgba(16, 185, 129, 0.6);
}
html[data-theme="dark"] .hero-orb {
  background:
    radial-gradient(42rem 30rem at 78% 18%, rgba(16, 185, 129, 0.22), transparent 64%),
    radial-gradient(30rem 24rem at 12% 32%, rgba(56, 189, 248, 0.10), transparent 62%);
}

/* Tailwind utility overrides */
html[data-theme="dark"] .bg-slate-200 { background-color: var(--line) !important; }
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800 { color: var(--ink) !important; }
html[data-theme="dark"] .text-slate-400,
html[data-theme="dark"] .text-slate-300 { color: var(--ink-3) !important; }
html[data-theme="dark"] .border-emerald-100,
html[data-theme="dark"] .border-slate-100 { border-color: var(--line-2) !important; }
html[data-theme="dark"] .bg-white\/75,
html[data-theme="dark"] .bg-white\/80,
html[data-theme="dark"] .bg-white\/90 { background-color: rgba(26, 35, 54, 0.75) !important; }
html[data-theme="dark"] .shadow-soft { box-shadow: var(--card-shadow) !important; }

/* Misc text in features.html that may be dark on dark */
html[data-theme="dark"] .text-emerald-700,
html[data-theme="dark"] .text-emerald-600 { color: #34d399 !important; }
html[data-theme="dark"] .text-emerald-200 { color: #6ee7b7 !important; }

/* ============================================================
   DARK MODE — overrides for v6/v7/v9 (higher-specificity rules)
   These need !important because v6 uses `#problem.problem-bg`
   and v7/v9 stack hardcoded white/light backgrounds.
   ============================================================ */

/* Re-tint accent-red in dark mode for the focus card and warnings */
html[data-theme="dark"] {
  --accent-red: #fb7185;
  --accent-red-soft: rgba(244, 63, 94, 0.32);
  --accent-red-bg: rgba(244, 63, 94, 0.10);
  --good: #34d399;
  --good-soft: rgba(16, 185, 129, 0.32);
  --good-bg: rgba(16, 185, 129, 0.12);
  --sol-blue: #60a5fa;
  --sol-green: #34d399;
  --sol-green-soft: rgba(16, 185, 129, 0.32);
  --sol-green-bg: rgba(16, 185, 129, 0.10);
}

/* v6 — Problem section */
html[data-theme="dark"] #problem.problem-bg,
html[data-theme="dark"] .problem-bg {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(244, 63, 94, 0.07), transparent 60%),
    var(--bg) !important;
}
html[data-theme="dark"] .problem-flow-min {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .problem-flow-min .pfm-arrow { color: var(--ink-3); }
html[data-theme="dark"] .pcard-min {
  background: linear-gradient(160deg, rgba(30, 41, 66, 0.85) 0%, rgba(20, 28, 48, 0.95) 100%) !important;
  border-color: var(--line) !important;
  color: var(--ink);
}
html[data-theme="dark"] .pcard-min:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .pcard-min h3 { color: var(--ink); }
html[data-theme="dark"] .pcard-min p,
html[data-theme="dark"] .pcm-cap { color: var(--ink-2); }
html[data-theme="dark"] .pcm-num { color: var(--ink-3); }
html[data-theme="dark"] .pcm-stat { border-top-color: var(--line); }
html[data-theme="dark"] .pcard-min.focus {
  background: linear-gradient(180deg, rgba(40, 25, 30, 0.9) 0%, rgba(244, 63, 94, 0.18) 100%) !important;
  border-color: var(--accent-red-soft) !important;
  box-shadow: 0 18px 48px -24px rgba(244, 63, 94, 0.32), 0 4px 12px -6px rgba(0, 0, 0, 0.4);
}

/* v7 — Solution section */
html[data-theme="dark"] .solution.sol-min { background: var(--bg) !important; }
html[data-theme="dark"] .sol-flow {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .sol-flow .sf-step { color: var(--ink-2); }
html[data-theme="dark"] .sol-flow .sf-step-bad { color: var(--ink-3); }
html[data-theme="dark"] .sol-flow .sf-arrow { color: var(--ink-3); }
html[data-theme="dark"] .sol-card {
  background: linear-gradient(160deg, rgba(30, 41, 66, 0.85) 0%, rgba(20, 28, 48, 0.95) 100%) !important;
  border-color: var(--line) !important;
  color: var(--ink);
}
html[data-theme="dark"] .sol-card:hover { border-color: rgba(255, 255, 255, 0.12) !important; }
html[data-theme="dark"] .sol-card h3 { color: var(--ink); }
html[data-theme="dark"] .sol-card p { color: var(--ink-2); }
html[data-theme="dark"] .sol-num { color: var(--ink-3); }
html[data-theme="dark"] .sol-result {
  background: linear-gradient(180deg, rgba(20, 35, 50, 0.85) 0%, rgba(16, 185, 129, 0.12) 100%) !important;
  border-color: var(--sol-green-soft) !important;
  box-shadow: 0 14px 38px -22px rgba(5, 150, 105, 0.32), 0 2px 6px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .sr-list li { color: var(--ink-2); }
html[data-theme="dark"] .sr-list li b { color: var(--ink); }
html[data-theme="dark"] .sr-check {
  background: var(--surface) !important;
  border-color: var(--sol-green-soft) !important;
  color: var(--sol-green);
}

/* v9 — Before/After section */
html[data-theme="dark"] .ba-card {
  background: linear-gradient(160deg, rgba(30, 41, 66, 0.85) 0%, rgba(20, 28, 48, 0.95) 100%) !important;
  border-color: var(--line) !important;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .ba-card.ba-before {
  background: linear-gradient(160deg, rgba(35, 40, 55, 0.85) 0%, rgba(20, 28, 48, 0.95) 100%) !important;
}
html[data-theme="dark"] .ba-card.ba-after {
  border-color: var(--good-soft) !important;
  box-shadow: 0 14px 38px -22px rgba(5, 150, 105, 0.32), 0 2px 6px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .ba-label {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--ink-3);
}
html[data-theme="dark"] .ba-after .ba-label {
  background: var(--good-bg) !important;
  border-color: var(--good-soft) !important;
  color: var(--good);
}
html[data-theme="dark"] .ba-title { color: var(--ink-2); }
html[data-theme="dark"] .ba-arrow.ba-arrow-pulse {
  background: var(--surface) !important;
  border-color: var(--good-soft) !important;
  color: var(--good);
  box-shadow: 0 6px 20px -8px rgba(5, 150, 105, 0.4);
}
html[data-theme="dark"] .ba-caption {
  background: var(--surface-2) !important;
  border-left-color: var(--ink-3) !important;
  color: var(--ink-2);
}
html[data-theme="dark"] .ba-caption.ba-caption-good {
  background: var(--good-bg) !important;
  border-left-color: var(--good) !important;
  color: var(--ink);
}
html[data-theme="dark"] .ba-issues .iss { color: #fda4af; }
html[data-theme="dark"] .ba-issues .iss::before { background: #fb7185; }
html[data-theme="dark"] .ba-benefits .ben { color: var(--good); }
html[data-theme="dark"] .ba-benefits .ben svg {
  background: var(--good-bg);
  border-color: var(--good-soft);
}
html[data-theme="dark"] .mini-dash .mini-row .st-track {
  background: rgba(251, 191, 36, 0.16) !important;
  color: #fcd34d !important;
  border-color: rgba(251, 191, 36, 0.32) !important;
}

/* Tailwind overrides used in features.html */
html[data-theme="dark"] .bg-white { background-color: var(--card-bg) !important; }
html[data-theme="dark"] .bg-slate-50 { background-color: var(--bg) !important; }
html[data-theme="dark"] .bg-slate-100 { background-color: var(--line-2) !important; }
html[data-theme="dark"] .bg-emerald-50 { background-color: rgba(16, 185, 129, 0.12) !important; }
html[data-theme="dark"] .text-ink { color: var(--ink) !important; }
html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-slate-700 { color: var(--ink-2) !important; }
html[data-theme="dark"] .text-money2 { color: #34d399 !important; }
html[data-theme="dark"] .border-slate-200 { border-color: var(--line) !important; }
html[data-theme="dark"] .border-emerald-200 { border-color: rgba(16, 185, 129, 0.4) !important; }
html[data-theme="dark"] .from-emerald-50 { --tw-gradient-from: #042f24 var(--tw-gradient-from-position) !important; --tw-gradient-to: rgba(4, 47, 36, 0) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
html[data-theme="dark"] .via-white { --tw-gradient-via-position: 50% !important; --tw-gradient-via: var(--bg) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to) !important; }
html[data-theme="dark"] .to-slate-50 { --tw-gradient-to: var(--bg) !important; }

/* Buttons */
html[data-theme="dark"] .btn,
html[data-theme="dark"] .post-btn-secondary,
html[data-theme="dark"] .rc-btn-secondary {
  color: var(--ink);
}
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .post-btn-primary,
html[data-theme="dark"] .rc-btn-primary { color: #ffffff; }

/* Mobile bottom bar */
html[data-theme="dark"] .mobile-bottom-bar {
  background: var(--bottom-bar-bg);
  border-top-color: var(--bottom-bar-border);
}
html[data-theme="dark"] .mbb-item { color: var(--ink-2); }
html[data-theme="dark"] .mbb-item:hover,
html[data-theme="dark"] .mbb-item:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile menu overlay */
html[data-theme="dark"] .mmo-panel { background: var(--overlay-bg); color: var(--ink); }
html[data-theme="dark"] .mmo-list a { color: var(--ink); }
html[data-theme="dark"] .mmo-list a:hover { background: var(--line-2); color: #ffffff; }
html[data-theme="dark"] .mmo-close { background: var(--line-2); color: var(--ink-2); }
html[data-theme="dark"] .mmo-close:hover { background: var(--line); color: #ffffff; }

/* Scroll timeline */
html[data-theme="dark"] .st-list {
  background: var(--timeline-bg);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .st-list::before {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.06) 100%);
}
html[data-theme="dark"] .st-dot {
  background: var(--timeline-dot-bg);
  border-color: var(--timeline-dot-border);
  color: var(--ink-2);
}
html[data-theme="dark"] .st-dot:hover,
html[data-theme="dark"] .st-dot:focus-visible {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald);
  color: #34d399;
}
html[data-theme="dark"] .st-tooltip { background: #0a0e1a; }
html[data-theme="dark"] .st-tooltip::after { border-left-color: #0a0e1a; }

/* Footer powered-by stays dark — but tighten contrast */
html[data-theme="dark"] .footer-powered { border-top-color: rgba(255, 255, 255, 0.08); }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink-2);
  cursor: pointer;
  margin: 0 6px 0 0;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--ink);
  border-color: var(--ink-3);
  outline: none;
  transform: scale(1.05);
}
.theme-icon {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.32, 0.72, 0.21, 1);
}
.theme-icon-sun { opacity: 1; }
.theme-icon-moon { opacity: 0; transform: translate(-50%, -50%) scale(0.7) rotate(-30deg); }
html[data-theme="dark"] .theme-icon-sun { opacity: 0; transform: translate(-50%, -50%) scale(0.7) rotate(30deg); }
html[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
html[data-theme="dark"] .theme-toggle { background: var(--card-bg); border-color: var(--line); color: var(--ink-2); }

@media (max-width: 720px) {
  .theme-toggle { width: 36px; height: 36px; }
  .theme-icon { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle, .theme-icon { transition: none; }
}

/* ============================================================
   RIGHT-SIDE SCROLL TIMELINE INDICATOR
   ============================================================ */
.scroll-timeline {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  pointer-events: none;
  display: block;
}
.st-list {
  list-style: none;
  margin: 0;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  box-shadow: 0 10px 30px -16px rgba(15, 23, 42, 0.18);
}
/* Vertical track behind dots */
.st-list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  bottom: 16px;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg,
    rgba(15, 23, 42, 0.06) 0%,
    rgba(15, 23, 42, 0.10) 50%,
    rgba(15, 23, 42, 0.06) 100%);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.st-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  color: var(--ink-3);
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0.21, 1),
              background 0.22s ease,
              border-color 0.22s ease,
              color 0.22s ease,
              box-shadow 0.22s ease;
  cursor: pointer;
}
.st-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.22s ease;
}
.st-dot:hover,
.st-dot:focus-visible {
  background: var(--emerald-50);
  border-color: var(--emerald);
  color: var(--emerald-600);
  transform: scale(1.08);
  outline: none;
}
.st-item.is-active .st-dot {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  border-color: var(--emerald-600);
  color: #ffffff;
  transform: scale(1.18);
  box-shadow: 0 8px 18px -8px rgba(5, 150, 105, 0.7),
              0 0 0 4px rgba(16, 185, 129, 0.12);
}
.st-item.is-active .st-icon {
  transform: scale(1.05);
}
.st-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 6px 10px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.4);
}
.st-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--ink);
}
.st-item:hover .st-tooltip,
.st-item:focus-within .st-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobile/tablet adjustments — smaller, sit above the bottom bar */
@media (max-width: 980px) {
  .scroll-timeline {
    right: 10px;
    top: auto;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }
  .st-list { gap: 6px; padding: 6px 4px; }
  .st-dot { width: 26px; height: 26px; }
  .st-icon { width: 12px; height: 12px; }
}

@media (max-width: 480px) {
  .scroll-timeline { right: 6px; }
  .st-dot { width: 22px; height: 22px; border-width: 1.5px; }
  .st-icon { width: 11px; height: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-dot,
  .st-icon,
  .st-tooltip { transition: none; }
}

/* ============================================================
   MOBILE/TABLET BOTTOM BAR + FULL-SCREEN MENU OVERLAY
   ============================================================ */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  grid-template-columns: 1fr 1fr 1.1fr;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  gap: 4px;
  box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, 0.16);
}
.mbb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px 6px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 12px;
  min-height: 56px;
  transition: color 0.18s ease, background 0.18s ease;
}
.mbb-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.mbb-label {
  letter-spacing: 0;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.1;
}
.mbb-item:hover,
.mbb-item:focus-visible {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
  outline: none;
}
.mbb-item-cta {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px -14px rgba(5, 150, 105, 0.85);
}
.mbb-item-cta:hover,
.mbb-item-cta:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald) 100%);
}

@media (max-width: 980px) {
  .mobile-bottom-bar { display: grid; }
  body { padding-bottom: 78px; }
  /* avoid double-padding from existing footer rule */
  .mobile-sticky-cta { display: none !important; }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.mobile-menu-overlay[hidden] { display: none; }
.mmo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: mmoFade 0.22s ease-out;
}
.mmo-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -24px 60px -16px rgba(15, 23, 42, 0.32);
  animation: mmoSlideUp 0.32s cubic-bezier(0.32, 0.72, 0.21, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
@keyframes mmoFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mmoSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.mmo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.mmo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.mmo-brand .brand-mark {
  width: 68px;
  height: 30px;
}
.mmo-brand .brand-name { font-size: 16px; }
.mmo-close {
  border: none;
  background: var(--line-2);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
}
.mmo-close:hover {
  background: var(--line);
  color: var(--ink);
}
.mmo-close svg {
  width: 18px;
  height: 18px;
}
.mmo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}
.mmo-list a {
  display: flex;
  align-items: center;
  padding: 14px 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.16s ease, color 0.16s ease;
}
.mmo-list a:hover,
.mmo-list a:focus-visible {
  background: var(--line-2);
  color: var(--navy);
  outline: none;
}
.mmo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 14px 28px -16px rgba(5, 150, 105, 0.7);
  margin-top: 6px;
}
.mmo-cta:hover { color: #ffffff; }

body.mmo-open {
  overflow: hidden;
  touch-action: none;
}

/* ============================================================
   FOOTER POWERED-BY (Compattana)
   ============================================================ */
.footer-powered {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
}
.footer-powered-logo {
  height: 32px;
  width: auto;
  opacity: 0.95;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 8px;
  object-fit: contain;
}
.footer-powered-logo[src=""],
.footer-powered-logo:not([src]) {
  display: inline-block;
  width: 60px;
}
.footer-powered-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-powered-text strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  margin: 0 2px;
}
.footer-powered-th {
  opacity: 0.65;
}

/* ============== SKIP LINK + FAQ (SEO/AIO patch) ============== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 9999;
  background: #10b981;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.6);
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* FAQ section */
.post-faq {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-1, #ffffff) 0%, var(--bg-2, #f8fafc) 100%);
}
[data-theme="dark"] .post-faq {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}
.post-faq-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.post-faq-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.post-faq-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}
.post-faq-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink-1, #0f172a);
}
[data-theme="dark"] .post-faq-title {
  color: #f1f5f9;
}
.post-faq-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2, #475569);
  margin: 0;
}
[data-theme="dark"] .post-faq-sub {
  color: #cbd5e1;
}
.post-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.post-faq-item[open] {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 36px -22px rgba(16, 185, 129, 0.4);
}
[data-theme="dark"] .post-faq-item {
  background: #111a2e;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .post-faq-item[open] {
  border-color: rgba(52, 211, 153, 0.55);
}
.post-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-1, #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.post-faq-q::-webkit-details-marker { display: none; }
[data-theme="dark"] .post-faq-q {
  color: #f1f5f9;
}
.post-faq-q::after {
  content: "+";
  font-size: 26px;
  font-weight: 400;
  color: #10b981;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}
.post-faq-item[open] .post-faq-q::after {
  transform: rotate(45deg);
}
.post-faq-a {
  padding: 0 28px 24px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-2, #475569);
}
[data-theme="dark"] .post-faq-a {
  color: #cbd5e1;
}
.post-faq-a strong {
  color: var(--ink-1, #0f172a);
  font-weight: 700;
}
[data-theme="dark"] .post-faq-a strong {
  color: #f1f5f9;
}
@media (max-width: 600px) {
  .post-faq { padding: 56px 0; }
  .post-faq-q { padding: 18px 20px; font-size: 16px; }
  .post-faq-a { padding: 0 20px 20px; font-size: 15px; }
}
