/* Component-specific styles for AdeFfix landing */

/* Nav */
.nav-link { color: var(--text-2); transition: color .15s; }
.nav-link:hover { color: var(--text); }

/* Hero dashboard */
.hero-dash { transition: transform .3s ease; }
.hero-tab {
  appearance: none; background: transparent; border: 0;
  padding: 12px 14px;
  font-family: var(--ff-text); font-size: 13px; color: var(--text-3);
  cursor: pointer; position: relative;
  transition: color .15s;
  white-space: nowrap;
}
.hero-tab:hover { color: var(--text-2); }
.hero-tab[data-active="true"] { color: var(--text); }
.hero-tab-underline {
  position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* Pane fade — visible by default; no entrance animation (preview iframes stall keyframes) */
.pane-fade { opacity: 1; }

/* Chart line + area — visible by default; decorative animation only */
.chart-line-anim, .chart-area-anim { opacity: 1; }

.kpi-tile { background: var(--bg-2); border-color: var(--border-soft); }

/* Keyword rows */
.kw-row {
  display: grid;
  grid-template-columns: 1fr 100px 36px 60px 50px;
  align-items: center; gap: 12px;
  padding: 8px 4px;
  border-top: 1px solid var(--border-soft);
}
.kw-row:first-child { border-top: 0; }
.kw-text { font-family: var(--ff-mono); font-size: 12px; color: var(--text); }
.kw-bar {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklch, var(--accent), transparent 70%));
  width: var(--w, 0);
  transition: width 1s cubic-bezier(.2,.7,.2,1);
}

/* Creative cards (small in hero) */
.creative-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
}
.creative-img {
  aspect-ratio: 4 / 5;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
}

/* Source bar */
.src-bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--bg-2);
  overflow: hidden;
}
.src-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}

/* Integration row */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Problem section */
.pain-card {
  position: relative;
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}
.pain-card:hover { transform: translateY(-2px); border-color: var(--border); }
.pain-tag {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  background: oklch(0.72 0.18 25 / 0.12);
  color: oklch(0.78 0.16 25);
  font-size: 10.5px;
  border: 1px solid oklch(0.72 0.18 25 / 0.2);
}
.persona-card .pain-tag {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent), transparent 75%);
}

/* Features grid */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 32px 28px 28px;
  position: relative;
  transition: background .2s ease;
  min-height: 230px;
  display: flex; flex-direction: column;
}
.feature-card:hover { background: var(--bg-1); }
.feature-card:hover .feature-chev { color: var(--accent); transform: translate(2px, -2px); }
.feature-num {
  font-size: 11px; color: var(--text-3); margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.feature-chev {
  position: absolute; top: 24px; right: 24px;
  color: var(--text-4);
  transition: color .2s, transform .2s;
}

/* Product preview shell */
.preview-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.preview-side {
  display: flex; flex-direction: column;
  gap: 4px;
  position: sticky; top: 100px;
}
.preview-side-item {
  appearance: none; border: 1px solid transparent;
  background: transparent;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
  padding: 16px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: background .15s, border-color .15s;
}
.preview-side-item:hover { background: var(--bg-1); }
.preview-side-item[data-active="true"] {
  background: var(--bg-1);
  border-color: var(--border);
}
.preview-side-item[data-active="true"] .preview-side-num { color: var(--accent); }
.preview-side-item[data-active="true"] .preview-side-arr { color: var(--accent); }
.preview-side-num {
  font-size: 11px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.preview-side-arr { color: var(--text-4); transition: color .15s; }

.preview-main { min-width: 0; }
.preview-window {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 30px 80px -30px oklch(0 0 0 / 0.5);
}
.preview-window-bar {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-soft);
}
.preview-window-bar > :nth-child(2) { justify-self: center; }
.preview-window-body {
  padding: 24px;
  min-height: 540px;
}

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  font-weight: 400;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.data-table tr:hover td { background: var(--bg-2); }
.data-table tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }

/* Filter chip */
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  font-size: 11.5px; color: var(--text-2);
  font-family: var(--ff-mono);
}
.filter-chip[data-active] { background: var(--accent-glow); color: var(--accent); border-color: color-mix(in oklch, var(--accent), transparent 75%); }

/* Margin / kw bars */
.margin-cell { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.margin-bar { flex: 1; height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.margin-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 1s ease; }
.kw-cell { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.kw-cell-bar { height: 3px; background: var(--bg-2); border-radius: 2px; overflow: hidden; }
.kw-cell-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 1s ease; }

/* Comparison table — replicates the real product UI */
.cmp-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}
[data-theme="dark"] .cmp-card {
  background: var(--surface-solid);
  border-color: var(--border);
}
.cmp-title {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--ff-text);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid #F1F5F9;
}
[data-theme="dark"] .cmp-title { border-bottom-color: var(--border-soft); }
.cmp-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}
.cmp-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-family: var(--ff-text);
  font-variant-numeric: tabular-nums;
}
.cmp-table th {
  text-align: left;
  font-weight: 400;
  font-size: 12px;
  color: #94A3B8;
  padding: 12px 14px;
  border-bottom: 1px solid #F1F5F9;
  white-space: nowrap;
  vertical-align: middle;
}
[data-theme="dark"] .cmp-table th {
  color: var(--text-3);
  border-bottom-color: var(--border-soft);
}
.cmp-table th i {
  display: inline-block;
  vertical-align: middle;
  margin-left: 3px;
  position: relative;
  top: -1px;
}
.cmp-table td {
  font-size: 13px;
  padding: 14px 14px;
  border-bottom: 1px solid #F1F5F9;
  color: #1F2937;
  white-space: nowrap;
}
[data-theme="dark"] .cmp-table td {
  color: var(--text);
  border-bottom-color: var(--border-soft);
}
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-total td {
  border-top: 1px solid #E5E7EB;
  font-weight: 600;
}
[data-theme="dark"] .cmp-total td { border-top-color: var(--border); }
.cmp-table tbody tr:hover td { background: #FAFBFC; }
[data-theme="dark"] .cmp-table tbody tr:hover td { background: var(--bg-1); }

.ch-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* Meta ADS analysis table */
.meta-camp-table th { padding-bottom: 14px; }
.meta-camp-table td { padding: 16px 14px; }
.meta-caret {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  color: #94A3B8;
  font-size: 12px;
  border-radius: 4px;
  transition: transform 0.15s;
}
.meta-caret-open {
  color: #1F2937;
  transform: rotate(0deg);
}
.meta-camp-row:hover td { background: #FAFBFC; }
.meta-camp-open td { background: #FFF7ED; }
[data-theme="dark"] .meta-camp-open td { background: oklch(0.30 0.06 50 / 0.18); }

.meta-detail-row td {
  padding: 0 !important;
  background: #FFFBEB;
  border-bottom: 1px solid #FED7AA;
}
[data-theme="dark"] .meta-detail-row td {
  background: oklch(0.24 0.04 50 / 0.2);
  border-bottom-color: oklch(0.45 0.12 50 / 0.3);
}
.meta-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  padding: 14px 14px 18px;
}
.meta-subtable {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  padding: 10px 12px 4px;
}
[data-theme="dark"] .meta-subtable {
  background: var(--bg-1);
  border-color: var(--border-soft);
}
.meta-subtable-head {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 2px 10px;
  border-bottom: 1px solid #F1F5F9;
}
[data-theme="dark"] .meta-subtable-head { border-bottom-color: var(--border-soft); }
.meta-subtable-ico { font-size: 13px; }
.meta-subtable-title { font-size: 13px; font-weight: 500; color: var(--text); }
.meta-subtable table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.meta-subtable th {
  font-size: 10.5px;
  font-weight: 400;
  color: #94A3B8;
  padding: 8px 6px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
[data-theme="dark"] .meta-subtable th { color: var(--text-3); }
.meta-subtable td {
  font-size: 12px;
  padding: 8px 6px;
  border-bottom: 1px solid #F8FAFC;
  white-space: nowrap;
}
[data-theme="dark"] .meta-subtable td { border-bottom-color: var(--border-soft); }
.meta-subtable tr:last-child td { border-bottom: 0; }
.meta-subtable tr:hover td { background: transparent; }

/* Google ADS keywords */
.kw-search-bar { padding: 12px 14px 0; }
.kw-term-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  gap: 16px;
}
[data-theme="dark"] .kw-term-head { border-bottom-color: var(--border-soft); }
.kw-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px;
}
.kw-status-added { color: #16A34A; }
.kw-status-added .kw-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16A34A;
  display: inline-block;
}
.kw-status-excluded {
  color: #475569;
  background: #E2E8F0;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
}
[data-theme="dark"] .kw-status-excluded {
  color: var(--text-2);
  background: var(--bg-2);
}

/* Real-screen cards (using user-provided screenshots) */
.screen-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 12px 32px -12px rgba(15, 23, 42, 0.18);
}
[data-theme="dark"] .screen-card {
  background: #FFFFFF;
  border-color: var(--border);
}
.screen-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Placeholder card for views without a screenshot yet */
.screen-card-placeholder {
  background: linear-gradient(135deg, #FFFFFF, #F0F9FF 60%, #EFF6FF);
  border-style: dashed;
  border-color: #BFDBFE;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px;
  text-align: center;
}
[data-theme="dark"] .screen-card-placeholder {
  background: linear-gradient(135deg, var(--bg-1), oklch(0.24 0.04 258 / 0.6));
  border-color: var(--border);
}
.screen-ph-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: 640px;
}
.screen-ph-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.screen-ph-title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.screen-ph-text {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}
.screen-ph-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
  padding: 24px 32px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  min-width: 480px;
}
[data-theme="dark"] .screen-ph-stats {
  background: var(--surface-solid);
  border-color: var(--border-soft);
}
.screen-ph-stats > div {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.screen-ph-stats-num {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.screen-ph-stats-lbl {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--ff-mono);
}

.insight-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: color-mix(in oklch, var(--accent), transparent 94%);
  border: 1px solid color-mix(in oklch, var(--accent), transparent 82%);
  border-radius: 10px;
  color: var(--text);
}
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: color-mix(in oklch, var(--accent), transparent 94%);
  border: 1px solid color-mix(in oklch, var(--accent), transparent 82%);
  border-radius: 10px;
  color: var(--text);
}

/* Creative grid (big preview) */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.creative-big {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease;
}
.creative-big:hover { transform: translateY(-2px); }
.creative-rank {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--ff-mono); font-size: 10px;
  background: oklch(0 0 0 / 0.55);
  color: oklch(1 0 0 / 0.95);
  padding: 3px 7px; border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Finance rows */
.fin-rows { display: flex; flex-direction: column; gap: 0; }
.fin-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr auto;
  align-items: center;
  gap: 16px;
}
.fin-bar-wrap { display: flex; align-items: center; }
.fin-bar { width: 100%; height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.fin-bar-fill { height: 100%; transition: width 1s ease; }

/* AI section */
.ai-section {
  position: relative;
  overflow: hidden;
}
.ai-section::before {
  content: ""; position: absolute;
  width: 60vw; height: 60vw;
  left: -30vw; top: 20%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.ai-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
  color: var(--text-2);
}

.ai-chat {
  display: flex; flex-direction: column;
  background: var(--bg-1);
  box-shadow: var(--shadow-card), 0 30px 80px -30px color-mix(in oklch, var(--accent), transparent 82%);
}
.ai-chat-body {
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  max-height: 540px;
  overflow-y: auto;
  background:
    radial-gradient(80% 60% at 100% 0%, var(--accent-glow), transparent 60%),
    var(--bg-1);
}
.bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 88%;
  opacity: 1;
}
.bubble-u {
  background: var(--accent);
  color: var(--accent-fg);
  border-bottom-right-radius: 4px;
}
.bubble-a {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 4px;
}
.ai-action {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s;
}
.ai-action:hover { background: var(--bg); }
.dot-typ {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
  animation: dot-bounce 1.4s ease infinite;
}
.dot-typ:nth-child(2) { animation-delay: .2s; }
.dot-typ:nth-child(3) { animation-delay: .4s; }
@keyframes dot-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-3px); opacity: 1; } }
.ai-chat-input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 18px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-1);
}

/* Personas */
.persona-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.how-step {
  padding: 24px 24px 24px 0;
  position: relative;
  padding-right: 32px;
}
.how-step:not(:last-child)::after {
  content: ""; position: absolute;
  right: 16px; top: 28px; bottom: 28px;
  width: 1px; background: var(--border-soft);
}
.how-step-num {
  font-size: 11px; color: var(--text-3);
  letter-spacing: 0.06em;
}
.how-step-line {
  margin-top: 12px;
  height: 1px;
  width: 32px;
  background: var(--accent);
}

/* Pricing */
.bill-switch {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}
.bill-switch button {
  appearance: none; border: 0; background: transparent;
  padding: 8px 18px;
  font-family: inherit; font-size: 13.5px; color: var(--text-3);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.bill-switch button[data-active="true"] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.2);
}
.bill-save {
  font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  background: var(--accent-glow); color: var(--accent);
  font-family: var(--ff-mono);
}
.plan-card {
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan-highlighted {
  background: linear-gradient(180deg, var(--surface), var(--surface));
  border-color: color-mix(in oklch, var(--accent), transparent 60%);
  box-shadow: var(--shadow-card), 0 30px 80px -30px var(--accent-glow);
  position: relative;
}
.plan-highlighted::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(180deg, var(--accent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.plan-tag {
  font-family: var(--ff-mono); font-size: 10.5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--text-3);
  border: 1px solid var(--border-soft);
}
.plan-tag[data-highlight="true"] {
  background: var(--accent); color: var(--accent-fg); border-color: transparent;
}
.plan-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-list li.row { gap: 12px; align-items: center; }
.plan-list .check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-width: 22px; border-radius: 50%; background: oklch(0.95 0.02 260); }

/* FAQ */
.faq-item {
  appearance: none; background: transparent; border: 0;
  text-align: left; width: 100%; cursor: pointer;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-family: inherit;
  color: var(--text);
  transition: padding .2s;
}
.faq-item:hover .faq-q { color: var(--accent); }
.faq-q {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color .15s;
  padding-right: 24px;
}
.faq-plus {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--text-3);
  width: 24px;
  display: inline-flex;
  justify-content: center;
}
.faq-a {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 60ch;
}

/* Final CTA */
.cta-card {
  position: relative;
  padding: 72px 72px 80px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--border);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 80%; height: 120%;
  left: 50%; top: -20%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-glow), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }

/* Footer */
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-link { color: var(--text-2); font-size: 13.5px; transition: color .15s; }
.footer-link:hover { color: var(--text); }

/* Light theme tweaks */
[data-theme="light"] .creative-rank { background: oklch(0 0 0 / 0.65); }

/* Responsive */
@media (max-width: 1100px) {
  .grid-features { grid-template-columns: repeat(2, 1fr); }
  .preview-shell { grid-template-columns: 1fr; }
  .preview-side { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .preview-side-item { min-width: 280px; flex-shrink: 0; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .creative-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .h-display { font-size: 32px; }
  .section { padding: 80px 0; }
  .wrap { padding: 0 18px; }

  .row.between { flex-wrap: wrap; }
  /* Stack hero */
  section.section:first-of-type > .wrap > .row { grid-template-columns: 1fr !important; gap: 48px !important; }
  .grid-features { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .row[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .creative-grid { grid-template-columns: repeat(2, 1fr); }
  .data-table { font-size: 11.5px; }
  .data-table td, .data-table th { padding: 8px 6px; }
  .cta-card { padding: 40px 28px; }
}

/* ─── Nav dropdown for Корисне ───────────────────────── */
.nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
}
.nav-dropdown-trigger {
  font-size: 14px;
  line-height: 1;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropdownFadeIn 0.15s ease-out;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
[data-theme="dark"] .nav-dropdown-menu {
  background: var(--surface-solid);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 450;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover {
  background: #f0f4ff;
  color: #2563eb;
}
[data-theme="dark"] .nav-dropdown-item:hover {
  background: rgba(37,99,235,0.1);
  color: #60a5fa;
}
