/* =========================================================
   AppForEvent — landing additions (loaded after style.css)
   ========================================================= */
:root {
  --afe-ink: #14121f;
  --afe-ink-2: #4a4760;
  --afe-muted: #77748a;
  --afe-line: #e7e5ef;
  --afe-bg-soft: #f6f5fb;
  --afe-violet: #5c00ff;
  --afe-pink: #ff0080;
  --afe-orange: #ff511e;
  --afe-green: #10b981;
  --afe-grad: linear-gradient(120deg, var(--afe-violet), var(--afe-pink));
  --afe-radius: 18px;
  --afe-shadow: 0 1px 2px rgba(20, 18, 31, .04), 0 8px 24px rgba(20, 18, 31, .06);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Icons ---------- */
.ico-check { width: 1.1em; height: 1.1em; color: var(--afe-green); flex: none; }
.ico-arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform 200ms var(--ease-out); }

/* ---------- Buttons ---------- */
.btn-cta, .btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease;
}
.btn-cta { background: var(--afe-grad); color: #fff; box-shadow: 0 8px 24px rgba(92, 0, 255, .25); }
.btn-cta:hover { color: #fff; }
.btn-cta--sm { padding: .55rem 1.1rem; font-size: .9rem; box-shadow: none; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost--dark { color: var(--afe-ink); border-color: var(--afe-line); }
.btn-ghost--dark:hover { color: var(--afe-ink); background: var(--afe-bg-soft); }
.btn-cta:active, .btn-ghost:active, .btn-brand:active, .sticky-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-cta:hover .ico-arrow, .link-arrow:hover .ico-arrow { transform: translateX(3px); }
}
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid rgba(92, 0, 255, .45); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--afe-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--afe-ink); text-decoration: none; }
.site-nav { display: none; gap: 1.5rem; }
.site-nav a { color: var(--afe-ink-2); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--afe-violet); }
@media (min-width: 992px) { .site-nav { display: flex; } }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }

.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; padding: .45rem .75rem; border: 1px solid var(--afe-line);
  border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--afe-ink);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: "▾"; margin-left: .35rem; font-size: .7rem; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--afe-line); border-radius: 12px; box-shadow: var(--afe-shadow);
  transform-origin: top right; transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
@starting-style { .lang-switch[open] ul { opacity: 0; transform: scale(0.96); } }
.lang-switch a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--afe-ink); text-decoration: none; font-size: .9rem; }
.lang-switch a:hover, .lang-switch a[aria-current] { background: var(--afe-bg-soft); }
.lang-switch a[aria-current] { font-weight: 700; }
@media (max-width: 575px) { .site-header .btn-cta--sm { display: none; } }

/* ---------- Hero ---------- */
.hero .intro__title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.eyebrow { display: inline-block; margin-bottom: 1rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .85rem; font-weight: 600; }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); opacity: .9; margin: 1rem 0 1.5rem; max-width: 36rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 1.5rem 0 0; list-style: none; font-size: .95rem; }
.chips li { display: flex; align-items: center; gap: .4rem; }
.hero .intro__img img { max-width: min(100%, 460px); height: auto; }
.hero__audiences { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 2.5rem 0 0; list-style: none; }
.hero__audiences .intro__block-title { margin: 0 0 .15rem; font-size: 1rem; }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.015em; text-wrap: balance; }
.section-head p { color: var(--afe-muted); font-size: 1.05rem; margin: .75rem 0 0; text-wrap: pretty; }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: rgba(255, 255, 255, .7); }
.footnote { color: var(--afe-muted); font-size: .85rem; margin-top: 1rem; }

/* ---------- About / facts ---------- */
.about h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead-text { font-size: 1.1rem; color: var(--afe-ink-2); line-height: 1.65; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: 0; background: var(--afe-line); border: 1px solid var(--afe-line); border-radius: var(--afe-radius); overflow: hidden; }
.facts > div { background: #fff; padding: 1rem 1.25rem; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--afe-muted); font-weight: 600; }
.facts dd { margin: .25rem 0 0; font-weight: 600; color: var(--afe-ink); }

/* ---------- Pains ---------- */
.pains { background: var(--afe-bg-soft); }
.pains__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pain-card { background: #fff; border-radius: var(--afe-radius); padding: 1.5rem; box-shadow: var(--afe-shadow); display: flex; flex-direction: column; gap: 1rem; }
.pain-card p { margin: 0; }
.pain-card__pain { color: var(--afe-ink-2); }
.pain-card__fix { font-weight: 600; color: var(--afe-ink); padding-top: 1rem; border-top: 1px dashed var(--afe-line); }
.tag { display: block; width: fit-content; margin-bottom: .4rem; padding: .15rem .55rem; border-radius: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tag--pain { background: #fff0f3; color: #d6004f; }
.tag--fix { background: #ecfdf5; color: #047857; }

/* ---------- Features tabs ---------- */
.tab__layout { display: grid; gap: 2rem; align-items: center; margin-top: 2rem; }
@media (min-width: 992px) { .tab__layout { grid-template-columns: 1fr 1fr; } }
.tab__text h3 { font-size: 1.5rem; }
.tab__text p { color: var(--afe-ink-2); font-size: 1.05rem; }
.tab__img img { max-width: min(100%, 420px); height: auto; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--afe-violet); text-decoration: none; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem 1.5rem; padding: 0; margin: 3rem 0 0; list-style: none; }
.feature-list li, .check-list li { display: flex; align-items: flex-start; gap: .5rem; }
.check-list { padding: 0; margin: 0; list-style: none; display: grid; gap: .6rem; }
.check-list .ico-check { margin-top: .2em; }
#nav-tab .nav-link { transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
#nav-tab .nav-link:active { transform: scale(0.97); }

/* ---------- Stat ring ---------- */
.stat-ring { position: relative; max-width: 240px; margin: 1.5rem auto 0; }
.stat-ring svg { width: 100%; height: auto; transform: rotate(-90deg); }
.stat-ring circle { fill: none; stroke-width: 12; }
.stat-ring__track { stroke: #e9e7f1; }
.stat-ring__bar { stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: var(--offset, 0); transition: stroke-dashoffset 900ms var(--ease-out); }
.stat-ring figcaption { position: absolute; inset: 18%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.stat-ring strong { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; color: var(--afe-ink); }
.stat-ring figcaption span:last-child { font-size: .78rem; color: var(--afe-ink-2); margin-top: .35rem; line-height: 1.3; }

/* ---------- ROI ---------- */
.roi { background: var(--afe-bg-soft); }
.roi__box { display: grid; gap: 1.5rem; background: #fff; border-radius: calc(var(--afe-radius) + 6px); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--afe-shadow); }
@media (min-width: 992px) { .roi__box { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.roi__inputs { display: grid; gap: 1.5rem; }
.roi__inputs label { display: grid; gap: .5rem; font-weight: 600; color: var(--afe-ink); }
.roi__inputs label > span { display: flex; justify-content: space-between; gap: 1rem; }
.roi__inputs output { color: var(--afe-violet); font-variant-numeric: tabular-nums; }
.roi__inputs input[type=range] { width: 100%; accent-color: var(--afe-violet); }
.roi__inputs input[type=number] { width: 100%; padding: .7rem .9rem; border: 1px solid var(--afe-line); border-radius: 10px; font: inherit; }
.roi__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.roi__row label > span { font-weight: 500; font-size: .9rem; color: var(--afe-ink-2); }
.roi__result dl { margin: 0 0 1.25rem; }
.roi__result dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--afe-line); }
.roi__result dt { font-weight: 500; color: var(--afe-ink-2); }
.roi__result dt small { display: block; color: var(--afe-muted); font-weight: 400; }
.roi__result dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.roi__result .pos { color: #047857; }
.roi__result .neg { color: #b42318; }
.roi__net { border-bottom: 0 !important; }
.roi__net dt { color: var(--afe-ink); font-weight: 700; }
.roi__net dd { font-size: 1.8rem; background: var(--afe-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Cases ---------- */
.cases__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.case-card { border: 1px solid var(--afe-line); border-radius: var(--afe-radius); padding: 1.5rem; background: #fff; display: flex; flex-direction: column; }
.case-card__tag { width: fit-content; padding: .25rem .7rem; border-radius: 999px; background: var(--afe-bg-soft); color: var(--afe-violet); font-size: .8rem; font-weight: 700; }
.case-card h3 { font-size: 1.15rem; margin: .9rem 0 1rem; line-height: 1.35; }
.case-card dl { margin: 0; flex: 1; }
.case-card dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--afe-muted); font-weight: 700; }
.case-card dd { margin: .2rem 0 .9rem; color: var(--afe-ink-2); }
.case-card .is-result { color: #047857; }
.case-card dd.is-result { color: var(--afe-ink); font-weight: 600; background: #ecfdf5; padding: .75rem; border-radius: 10px; }
.case-card__who { margin: 0; color: var(--afe-muted); font-size: .9rem; font-style: italic; }

/* ---------- Compare ---------- */
.compare__table { width: 100%; max-width: 920px; margin: 0 auto; border-collapse: separate; border-spacing: 0; border: 1px solid var(--afe-line); border-radius: var(--afe-radius); overflow: hidden; }
.compare__table th, .compare__table td { padding: 1rem 1.25rem; vertical-align: top; border-bottom: 1px solid var(--afe-line); width: 50%; }
.compare__table tr:last-child td { border-bottom: 0; }
.compare__table thead th { background: var(--afe-bg-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.compare__table thead th:last-child { background: var(--afe-grad); color: #fff; }
.compare__table td:first-child { color: var(--afe-muted); text-decoration: line-through; text-decoration-color: rgba(214, 0, 79, .35); }
.compare__table td:last-child { font-weight: 600; }
.compare__table td:last-child .ico-check { margin-right: .4rem; vertical-align: -0.15em; }

/* ---------- Steps ---------- */
.steps__list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps__list li { counter-increment: step; padding: 1.5rem; border-radius: var(--afe-radius); background: var(--afe-bg-soft); }
.steps__list li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%; background: var(--afe-grad); color: #fff; font-weight: 700; }
.steps__list h3 { font-size: 1.15rem; }
.steps__list p { margin: 0; color: var(--afe-ink-2); }

/* ---------- Objections ---------- */
.objections__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.objection { padding: 1.5rem; border-radius: var(--afe-radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.objection h3 { color: #fff; font-size: 1.2rem; }
.objection p { color: rgba(255, 255, 255, .75); margin: 0; }

/* ---------- Pricing ---------- */
#pricing th[scope=row] { font-weight: 500; text-align: left; }
#pricing td { text-align: center; }
#pricing .ico-check { width: 1.5em; height: 1.5em; }
#pricing .dash { color: #c9c6d6; }
.badge-popular { display: inline-block !important; margin-bottom: .35rem; padding: .15rem .6rem; border-radius: 999px; background: var(--afe-grad); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 860px; margin: 0 auto; display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--afe-line); border-radius: 14px; background: #fff; transition: border-color 200ms ease, box-shadow 200ms ease; }
.faq__item[open] { border-color: rgba(92, 0, 255, .3); box-shadow: var(--afe-shadow); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.05rem; margin: 0; font-weight: 600; }
.faq__item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--afe-bg-soft); font-weight: 700; transition: transform 200ms var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 1.25rem 1.2rem; color: var(--afe-ink-2); }
.faq__answer p { margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-wrap: balance; }
.final-cta p { color: var(--afe-muted); max-width: 620px; margin: .75rem auto 1.75rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 6rem; text-align: center; color: var(--afe-muted); font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin: 1rem 0; }
.footer__links a { color: var(--afe-ink-2); }
@media (min-width: 768px) { .site-footer { padding-bottom: 2.5rem; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  display: flex; justify-content: center; padding: .95rem; border-radius: 999px;
  background: var(--afe-grad); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 12px 32px rgba(92, 0, 255, .35);
  transform: translateY(0); opacity: 1; transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out);
}
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.sticky-cta:hover { color: #fff; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 200ms ease; }
  .stat-ring__bar, .sticky-cta, .ico-arrow { transition: none; }
}
