/* =========================================================
   ADS SCALING page — loaded after style.css
   ========================================================= */
.t-hero h1.a-title { font-size: clamp(46px, 6vw, 84px); margin: 24px 0 28px; text-transform: none; font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; }
.t-hero h1.a-title .serif { font-size: 1.08em; }

.dash {
  border-radius: 26px; padding: 22px; position: relative; z-index: 2;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), 0 40px 120px -50px rgba(242,107,29,.35);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.dash-head small { display: block; font-size: 12px; }
.dash-head strong { font-size: 17px; }
.dash-platforms { display: flex; gap: 6px; }
.dash-platforms span { font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.dash-platforms span.on { background: rgba(242,107,29,.12); border-color: rgba(242,107,29,.4); color: var(--gold-2); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.kpi small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.kpi b { display: block; font-size: 22px; letter-spacing: -0.03em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 600; }
.kpi em.up { color: var(--green); }
.chart { margin-top: 14px; padding: 16px 14px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.chart svg { width: 100%; height: 140px; display: block; overflow: visible; }
.chart-line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.6s cubic-bezier(.4,0,.2,1) .4s forwards; }
.chart-line-2 { stroke-dasharray: 4 5; stroke-dashoffset: 0; animation: none; opacity: .8; }
.chart-area { opacity: 0; animation: fadeIn 1.2s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.chart-legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.dash-note { font-size: 11px; color: var(--dim); margin-top: 12px; text-align: center; }

.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain-n { display: block; font-family: var(--font-serif); font-style: italic; font-size: 44px; color: var(--gold); line-height: 1; margin-bottom: 22px; }

.engines { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.engine .badge { margin-bottom: 14px; }
.engine h3 { font-size: 26px; }
.engine-visual {
  height: 170px; border-radius: 16px; margin-bottom: 26px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(242,107,29,.08), transparent 70%), var(--bg-2); border: 1px solid var(--line);
}
.ad-grid { display: grid; grid-template-columns: repeat(6, 44px); gap: 10px; padding-top: 20px; }
.ad-grid i { aspect-ratio: 9/16; border-radius: 8px; background: linear-gradient(160deg, #ffffff, #efe7dc); border: 1px solid var(--line-2); position: relative; animation: adPulse 3s ease-in-out infinite; }
.ad-grid i:nth-child(2) { animation-delay: .3s; } .ad-grid i:nth-child(4) { animation-delay: .6s; } .ad-grid i:nth-child(5) { animation-delay: .9s; } .ad-grid i:nth-child(6) { animation-delay: 1.2s; }
.ad-grid i.win { background: linear-gradient(160deg, #ffb27a, #f26b1d); border-color: var(--gold); box-shadow: 0 0 30px rgba(242,107,29,.35); transform: scale(1.12); animation: none; }
.ad-grid i.win b { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-size: 10px; padding: 3px 8px; border-radius: 999px; background: var(--grad-gold); color: #ffffff; white-space: nowrap; }
@keyframes adPulse { 50% { opacity: .45; } }
.pipeline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
.pipeline span { font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface); }
.pipeline span.hl { border-color: rgba(143,179,255,.45); color: var(--blue); background: rgba(143,179,255,.08); }
.pipeline i { width: 22px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); background-size: 200% 100%; animation: flow 1.4s linear infinite; }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ab { width: 82%; display: grid; gap: 12px; }
.ab div { display: grid; grid-template-columns: 60px 1fr 42px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.ab i { height: 10px; border-radius: 6px; background: rgba(23,18,10,.1); width: 0; animation: abGrow 3s ease infinite; }
.ab i.best { background: var(--grad-gold); }
.ab em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
@keyframes abGrow { 0% { width: 0; } 40%, 100% { width: var(--w); } }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bars i { width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--gold-2), var(--gold-3)); height: 0; animation: barGrow 3.2s ease infinite; }
.bars i:nth-child(2) { animation-delay: .1s; } .bars i:nth-child(3) { animation-delay: .2s; } .bars i:nth-child(4) { animation-delay: .3s; } .bars i:nth-child(5) { animation-delay: .4s; } .bars i:nth-child(6) { animation-delay: .5s; } .bars i:nth-child(7) { animation-delay: .6s; }
@keyframes barGrow { 0% { height: 0; } 40%, 100% { height: var(--h); } }

.deliver { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.deliver li { padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.deliver b { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 6px; }
.deliver b::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--grad-gold); color: #ffffff; flex-shrink: 0; }
.deliver span { color: var(--muted); font-size: 14px; }

.fit > .badge { align-self: flex-start; }
.fit ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; color: var(--muted); }
.fit li { display: flex; gap: 12px; }
.fit-yes li::before { content: "✓"; color: var(--green); font-weight: 700; }
.fit-no li::before { content: "✕"; color: #dc2626; font-weight: 700; }
.fit-yes { border-color: rgba(22,163,74,.25); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { display: flex; flex-direction: column; }
.tier > .badge { align-self: flex-start; margin-bottom: 18px; }
.tier h3 { font-size: 26px; }
.tier ul { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.tier li { display: flex; gap: 10px; }
.tier li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.tier .btn { margin-top: auto; }
.tier-featured {
  border-color: rgba(242,107,29,.4);
  background: radial-gradient(ellipse at 50% 0%, rgba(242,107,29,.12), transparent 60%), linear-gradient(180deg, #ffffff, #fdf3ea);
  box-shadow: 0 40px 100px -40px rgba(242,107,29,.3);
}

@media (max-width: 1080px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 900px) {
  .engines, .deliver { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pain-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash { padding: 16px; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .ad-grid { grid-template-columns: repeat(6, 34px); gap: 8px; }
}
