/* AreaIntelig product page.
   Uses the extension's own tokens (assets/theme.css) so the page and the
   product do not look like two different companies. */

:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.62 var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0;
  padding: 10px 16px; background: var(--brand-500); color: #fff; z-index: 99;
}
.skip:focus { inset-inline-start: 0; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand__mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  color: #fff; background: var(--grad-brand); background-size: 240% 100%;
  animation: gradshift 11s ease-in-out infinite;
}
.brand__mark svg { width: 17px; height: 17px; }
.brand__text { letter-spacing: -.01em; }
.nav__links { display: flex; gap: 22px; margin-inline-start: auto; font-size: 14px; }
.nav__links a { color: var(--fg-muted); text-decoration: none; }
.nav__links a:hover { color: var(--fg); }
@media (max-width: 780px) { .nav__links { display: none; } .nav__inner .btn { margin-inline-start: auto; } }

@keyframes gradshift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* --------------------------------------------------------------- buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--border); border-radius: 11px;
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
  color: var(--fg); background: var(--bg-sunken);
  transition: transform .14s ease, filter .18s ease, box-shadow .18s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
}
.btn:hover::after { transition: transform .62s ease; transform: translateX(120%); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(.987); }
.btn--primary {
  color: #fff; border-color: transparent;
  background: var(--grad-brand); background-size: 260% 100%;
  animation: gradshift 12s ease-in-out infinite;
  box-shadow: 0 10px 26px rgba(124,58,237,.28);
}
.btn--ember {
  color: #fff; border-color: transparent;
  background: linear-gradient(115deg, var(--accent-500), var(--accent-400) 60%, var(--brand-500));
  background-size: 220% 100%;
  animation: gradshift 12s ease-in-out infinite;
  box-shadow: 0 10px 26px rgba(249,115,22,.26);
}
.btn--ghost { background: transparent; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--full { width: 100%; margin-top: 4px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 74px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: var(--grad-aurora, radial-gradient(60% 60% at 30% 20%, rgba(124,58,237,.30), transparent 70%));
  filter: blur(10px); pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 52px 0 60px; } }

.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-400); background: color-mix(in oklab, var(--accent-500) 15%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent-500) 34%, transparent);
}
h1 { margin: 0 0 18px; font-size: clamp(34px, 5.2vw, 54px); line-height: 1.08; letter-spacing: -.028em; font-weight: 800; }
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-400), var(--brand-400, #a855f7));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0 0 26px; font-size: 17.5px; line-height: 1.6; color: var(--fg-muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 18px 0 0; font-size: 13px; color: var(--fg-subtle); }

/* mock panel */
.panel {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--bg-elev); box-shadow: 0 30px 70px rgba(0,0,0,.42);
  transform: perspective(1200px) rotateY(-7deg) rotateX(2deg);
}
@media (max-width: 900px) { .panel { transform: none; } }
.panel__bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: var(--bg-sunken); border-bottom: 1px solid var(--border);
}
.panel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--track); }
.panel__title { margin-inline-start: 8px; font-size: 12.5px; font-weight: 800; }
.pill--plan {
  margin-inline-start: auto; padding: 2px 9px; border-radius: 999px; color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em; background: var(--accent-500);
}
.panel__body { padding: 16px 18px 20px; }
.stat { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 13.5px; }
.stat span { color: var(--fg-subtle); }
.stat b { font-weight: 800; }
.stat .pos { color: var(--ok-500, #2fe08a); }
.stat .warn { color: var(--accent-400); }
.panel__rule { height: 1px; background: var(--border); margin: 13px 0; }
.panel__sub { font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-500); margin-bottom: 8px; }
.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini th { text-align: start; padding: 4px 0; color: var(--fg-subtle); font-weight: 700; font-size: 11px; }
.mini td { padding: 5px 0; border-top: 1px solid var(--border); }
.mini .best td { color: var(--accent-400); font-weight: 800; }
.flagline { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--fg-muted); padding: 4px 0; }
.flag { width: 7px; height: 7px; border-radius: 2px; margin-top: 6px; flex: 0 0 auto; }
.flag--warn { background: var(--accent-500); }
.flag--bad { background: #e0455e; }

/* --------------------------------------------------------------- sections */
.section { padding: 78px 0; }
.section--alt { background: var(--bg-elev); border-block: 1px solid var(--border); }
.h2 { margin: 0 0 12px; font-size: clamp(25px, 3.4vw, 34px); line-height: 1.18; letter-spacing: -.02em; font-weight: 800; text-align: center; }
.sub { margin: 0 auto 40px; max-width: 62ch; text-align: center; color: var(--fg-muted); font-size: 16px; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 950px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.feat {
  padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-elev);
  transition: transform .16s ease, border-color .16s ease;
}
.section--alt .feat { background: var(--bg-sunken); }
.feat:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--brand-500) 45%, var(--border)); }
.feat h3 { margin: 0 0 7px; font-size: 15.5px; font-weight: 800; }
.feat p { margin: 0; font-size: 13.8px; line-height: 1.55; color: var(--fg-muted); }
.tag {
  margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; vertical-align: 2px;
  font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: #fff; background: var(--brand-500);
}

.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-inline-start: 27px; margin-bottom: 11px; color: var(--fg-muted); font-size: 14.5px; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px;
  width: 15px; height: 9px; border-inline-start: 2.2px solid var(--accent-500);
  border-bottom: 2.2px solid var(--accent-500); transform: rotate(-45deg);
}
.ticks--sm li { font-size: 13.6px; margin-bottom: 8px; }

/* ----------------------------------------------------------------- plans */
.toggle {
  display: flex; gap: 4px; width: max-content; margin: 0 auto 30px; padding: 4px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev);
}
.toggle__btn {
  padding: 9px 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--fg-subtle); background: transparent;
  transition: color .16s ease, background .16s ease;
}
.toggle__btn.is-on { color: #fff; background: var(--grad-brand); background-size: 200% 100%; }
.save { font-size: 10.5px; font-weight: 800; color: var(--accent-400); margin-inline-start: 5px; }
.toggle__btn.is-on .save { color: #ffd9bd; }

.plans { align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 26px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-elev);
}
.plan--featured {
  border-color: color-mix(in oklab, var(--accent-500) 55%, var(--border));
  box-shadow: 0 20px 50px rgba(124,58,237,.20);
}
.plan--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.ribbon {
  position: absolute; top: -11px; inset-inline-start: 22px; padding: 3px 11px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: #fff; background: var(--accent-500);
}
.plan h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.plan__for { margin: 0; font-size: 12.8px; color: var(--fg-subtle); }
.price { margin: 4px 0 6px; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price .cur { font-size: 21px; vertical-align: 14px; color: var(--fg-subtle); }
.price .per { font-size: 13.5px; font-weight: 600; color: var(--fg-subtle); margin-inline-start: 3px; }
.plan .ticks { flex: 1; }
.plan.is-picked { outline: 2px solid var(--accent-500); outline-offset: 3px; }
.finenote { margin-top: 26px; text-align: center; font-size: 13px; color: var(--fg-subtle); }

/* ----------------------------------------------------------------- steps */
.steps { counter-reset: s; margin: 0 auto; padding: 0; list-style: none; max-width: 760px; }
.steps li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.steps__n {
  display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px;
  border-radius: 11px; font-weight: 800; font-size: 14px; color: #fff;
  background: var(--grad-brand); background-size: 220% 100%;
}
.steps h3 { margin: 3px 0 6px; font-size: 16px; font-weight: 800; }
.steps p { margin: 0 0 10px; color: var(--fg-muted); font-size: 14.4px; }
.steps code { padding: 2px 7px; border-radius: 6px; background: var(--track); font-size: 13px; }

.callout {
  max-width: 760px; margin: 34px auto 0; padding: 20px 22px;
  border: 1px solid var(--border); border-inline-start: 3px solid var(--accent-500);
  border-radius: 0 13px 13px 0; background: var(--bg-sunken);
}
.callout strong { display: block; margin-bottom: 7px; font-size: 15px; }
.callout p { margin: 0; color: var(--fg-muted); font-size: 14.2px; }

/* ------------------------------------------------------------------- faq */
details {
  padding: 16px 18px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev);
}
summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: inline-end; color: var(--accent-500); font-weight: 800; }
details[open] summary::after { content: "\2212"; }
details p { margin: 11px 0 0; color: var(--fg-muted); font-size: 14.3px; }
details a { color: var(--accent-400); }

/* --------------------------------------------------------------- closing */
.closing { padding: 76px 0; background: var(--grad-hero, var(--bg-elev)); border-top: 1px solid var(--border); }
.closing .btn { margin: 6px; }

.foot { padding: 26px 0; border-top: 1px solid var(--border); background: var(--bg); }
.foot__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--fg-subtle); }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Two plans read better side by side and centred than stretched across three. */
.plans--two { max-width: 780px; margin-inline: auto; }
.plans--two .price b { font-size: inherit; }
.plan[data-plan="free"] .price b { font-size: 34px; }
.plan[data-plan="free"] .price .per { display: block; margin: 4px 0 0; font-size: 12.5px; }
.ribbon { white-space: nowrap; }
@media (max-width: 660px) { .ribbon { white-space: normal; inset-inline-start: 16px; } }
