/* Opt out of browser forced/auto dark mode: the design is deliberately
   light + navy; auto-inversion (Chrome/Edge with OS dark theme) breaks it. */
:root{color-scheme:only light}

/* Anchor jumps (megamenu deep links, in-page nav) must clear the sticky
   topbar + nav so headings aren't hidden under them. */
html{scroll-padding-top:120px}

/* ─── Mobile drawer: light, like the app's mobile menu ───────────────────
   The drawer inherited Nextarp's navy. Two problems: it clashed with the
   light nav it slides out from, and the Avatorial logo artwork has a white
   background, so the header showed a white block floating on navy. */















/* Avatorial overrides on top of the Nextarp base stylesheet.
   Same tokens, same typography — plus a text wordmark, simple nav links,
   and pricing-card components the base sheet doesn't have. */

/* hero mascot — sits on a navy->white gradient zone so its white background
   blends in with no visible edges */
/* 3-color hero: brand light blue (top) -> deep navy (bottom) across the
   whole hero, with an ELLIPTICAL white glow behind the mascot. Geometry:
   mascot is a 330x330 square (center 165px from the right, y=181); the
   glow is a 680px circle centered on it, solid white to 70% of its radius
   (238px) which exceeds the square's half-diagonal (233px) — so the image
   rectangle sits entirely inside solid white and can never show a border. */
.hero{background:linear-gradient(180deg,#2A4E77 0%,var(--c-primary) 60%,#17304F 100%)}
/* true ellipse: 840x620 box => semi-axes 420x310, centered on the mascot.
   Solid core at 70% => 294x217, and the mascot square's corners sit at
   normalized distance 0.66 < 0.70 — still fully inside solid white. */
.av-hero-fade{
  position:absolute;top:-129px;right:-255px;width:840px;height:620px;
  background:radial-gradient(ellipse closest-side, #fbfcfc 70%, rgba(251,252,252,0) 100%);
  pointer-events:none;
}
.av-hero-mascot{
  position:absolute;right:0;top:16px;width:330px;height:auto;
}
/* stats keep a solid backdrop over the gradient/glow */
.hero-stats{background:var(--navy2)}
@media(max-width:1024px){.av-hero-mascot,.av-hero-fade{display:none}}

/* --- light nav: background matches the logo artwork exactly (#fbfcfc),
       so the lockup sits seamlessly with no visible plate or lines --- */

.av-nav-cta .btn-ghost{color:var(--navy2);border-color:var(--border2);background:transparent}
.av-nav-cta .btn-ghost:hover{border-color:var(--navy2)}
.av-logo-lockup{height:44px;width:auto;display:block}
@media(max-width:600px){.av-logo-lockup{height:36px}}

/* text wordmark */
.av-wordmark{
  font-family:var(--font-sans);font-weight:900;font-size:20px;
  color:#fff;letter-spacing:-0.5px;
}
.av-wordmark em{font-style:normal;color:var(--blue)}

/* simple nav links (no mega menu on the marketing site) — dark text on the
   light nav, same navy as the section headings */
.av-links{display:flex;align-items:center;gap:26px;flex:1;height:100%}
.av-links a{
  font-size:13.5px;font-weight:700;color:var(--navy2);
  transition:color 0.15s;
}
.av-links a:hover{color:var(--blue2)}
.av-nav-cta{margin-left:auto;display:flex;align-items:center;gap:10px}
.av-nav-cta .btn-ghost{padding:9px 18px;font-size:13px}
.av-nav-cta .btn-primary{padding:10px 20px;font-size:13px}

/* trial CTA that lives inside the mobile panel only */
.av-panel-cta{display:none}

/* --- mobile menu (CSS-only hamburger: checkbox + label) --- */
.av-nav-toggle{display:none}
.av-ham{display:none}
@media(max-width:760px){
  .av-ham{
    display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;
    min-width:44px;min-height:44px;padding:10px;margin-left:8px;cursor:pointer;order:3;
  }
  .av-ham span{
    display:block;width:22px;height:2px;border-radius:1px;
    background:var(--navy2);transition:transform 0.2s,opacity 0.2s;
  }
  .av-nav-toggle:checked ~ .av-ham span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .av-nav-toggle:checked ~ .av-ham span:nth-child(2){opacity:0}
  .av-nav-toggle:checked ~ .av-ham span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  .av-nav-cta{order:2}
  .av-nav-cta .btn-primary{display:none} /* the trial CTA moves into the panel */
  .av-nav-cta .btn-ghost{padding:8px 14px;font-size:12.5px}

  .av-links{
    position:absolute;top:62px;left:0;right:0;z-index:799;
    display:none;flex-direction:column;align-items:stretch;gap:0;height:auto;
    background:#fbfcfc;border-bottom:1px solid var(--border);
    padding:6px 0 10px;box-shadow:0 16px 28px rgba(10,31,68,0.18);
  }
  .av-nav-toggle:checked ~ .av-links{display:flex}
  .av-links a{
    display:block;padding:14px 24px;font-size:15px;color:var(--navy2);
    border-bottom:1px solid var(--off);
  }
  .av-links a:last-child{border-bottom:none}
  .av-panel-cta{display:block;color:var(--blue);font-weight:700}
}

/* compact hero variants (were inline styles, which blocked mobile shrink) */
.hero-compact{padding:64px 48px 56px}
.hero-slim{padding:48px 48px 40px}
@media(max-width:1024px){
  .hero-compact{padding:48px 20px 40px}
  .hero-slim{padding:36px 20px 30px}
  footer[style]{padding:40px 20px 24px !important}
  .av-cta-strip{padding:32px 20px}
  .av-cta-strip h2{font-size:24px}
}

/* --- product mockups (CSS recreations of the real UI: crisp, responsive,
   never go stale) rendered inside a browser chrome --- */
.av-shot{
  border:1px solid var(--border);border-radius:12px;overflow:hidden;
  box-shadow:0 24px 60px rgba(10,31,68,0.16);background:#fff;
}
.av-shot-bar{
  display:flex;align-items:center;gap:6px;padding:9px 12px;
  background:#f1f5f9;border-bottom:1px solid var(--border);
}
.av-shot-bar i{width:11px;height:11px;border-radius:50%;background:#cbd5e1;display:block}
.av-shot-url{
  margin-left:10px;font-size:11px;color:#64748b;background:#fff;
  border:1px solid var(--border);border-radius:6px;padding:3px 10px;font-family:monospace;
}
.av-shot-body{padding:18px;background:#f8fafc}
.av-card-mini{background:#fff;border:1px solid var(--border);border-radius:10px;padding:14px;text-align:left}
.av-chip{display:inline-block;font-size:10px;font-weight:700;padding:2px 8px;border-radius:4px;letter-spacing:.02em}
.av-chip-pending{background:#fef3c7;color:#92400e}
.av-chip-plat{background:#e2e8f0;color:#475569}
.av-shot-post{font-size:13.5px;line-height:1.5;color:#0f172a;margin:10px 0}
.av-shot-actions{display:flex;gap:6px;flex-wrap:wrap}
.av-btn-ap{background:#059669;color:#fff}
.av-btn-ed{background:#fff;color:#475569;border:1px solid var(--border)}
.av-btn-rj{background:#fff;color:#b91c1c;border:1px solid #fecaca}
.av-shot-actions span{font-size:12px;font-weight:600;padding:6px 14px;border-radius:6px}
.av-fold{border-top:1px dashed #fca5a5;margin:8px 0;position:relative}
.av-fold span{position:absolute;right:0;top:-8px;font-size:9px;color:#ef4444;background:#f8fafc;padding:0 4px}
.av-shot-dim{color:#94a3b8}

/* how-it-works becomes a two-column step + visual */
.av-how-row{
  display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;
  margin:0 auto 56px;max-width:960px;
}
.av-how-row:nth-child(even) .av-how-text{order:2}
.av-how-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:50%;background:var(--blue);color:#fff;
  font-weight:800;font-size:15px;margin-bottom:14px;
}
.av-how-text h3{font-size:22px;margin:0 0 10px}
.av-how-text p{color:#475569;margin:0}
@media(max-width:760px){
  .av-how-row{grid-template-columns:1fr;gap:22px;margin-bottom:40px}
  .av-how-row:nth-child(even) .av-how-text{order:0}
}

/* example output side-by-side */
.av-example{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:900px;margin:0 auto;align-items:start}
@media(max-width:760px){.av-example{grid-template-columns:1fr}}
.av-ig{
  aspect-ratio:4/5;border-radius:12px;padding:26px;color:#fff;text-align:left;
  background:linear-gradient(160deg,#0a1f44,#12336e);display:flex;flex-direction:column;
  box-shadow:0 16px 40px rgba(10,31,68,0.18);
}
.av-ig-bar{width:44px;height:5px;border-radius:3px;background:#3a78f2;margin-bottom:18px}
.av-ig h4{font-size:21px;line-height:1.25;margin:0 0 16px}
.av-ig li{list-style:none;font-size:13px;margin:9px 0;padding-left:18px;position:relative;color:#e2e8f0}
.av-ig li::before{content:"";position:absolute;left:0;top:6px;width:8px;height:8px;border-radius:50%;background:#3a78f2}
.av-ig-foot{margin-top:auto;font-size:11px;color:#94a3b8;padding-top:14px}

/* pricing cards */
.av-tiers{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;align-items:stretch}
@media(max-width:1024px){.av-tiers{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.av-tiers{grid-template-columns:1fr}}
.av-tier{
  background:#fff;border:1px solid var(--border);border-radius:var(--r3);
  padding:28px 24px;display:flex;flex-direction:column;
  transition:box-shadow 0.2s,transform 0.2s;
}
.av-tier:hover{box-shadow:0 8px 32px rgba(10,31,68,0.09);transform:translateY(-2px)}
.av-tier.hot{border:2px solid var(--blue);position:relative}
.av-tier.hot::before{
  content:'MOST POPULAR';position:absolute;top:-11px;left:50%;transform:translateX(-50%);
  background:var(--blue);color:#fff;font-family:var(--font-sans);
  font-size:10px;font-weight:800;letter-spacing:0.09em;
  padding:4px 12px;border-radius:3px;
}
.av-tier-name{
  font-family:var(--font-sans);font-weight:800;font-size:15px;
  color:var(--navy2);margin-bottom:4px;
}
.av-tier-for{font-size:12.5px;color:var(--muted);margin-bottom:18px;min-height:34px}
.av-price{display:flex;align-items:baseline;gap:6px;margin-bottom:4px}
.av-price-n{
  font-family:var(--font-sans);font-weight:900;font-size:40px;
  color:var(--navy);letter-spacing:-1.5px;line-height:1;
}
.av-price-per{font-size:12.5px;color:var(--muted)}
.av-price-note{font-size:11.5px;color:var(--muted);margin-bottom:20px}
.av-tier ul{margin:0 0 24px;flex:1}
.av-tier li{
  font-size:13px;color:#37507e;line-height:1.5;
  padding:7px 0 7px 24px;position:relative;
  border-bottom:1px solid var(--off);
}
.av-tier li:last-child{border-bottom:none}
.av-tier li::before{
  content:'✓';position:absolute;left:2px;top:7px;
  color:var(--blue);font-weight:800;font-size:12px;
}
.av-tier .btn-primary,.av-tier .btn-outline-navy{
  width:100%;text-align:center;display:inline-block;
}

/* FAQ */
.av-faq{max-width:760px}
.av-faq details{
  border:1px solid var(--border);border-radius:var(--r2);
  padding:0;margin-bottom:10px;background:#fff;overflow:hidden;
}
.av-faq summary{
  font-family:var(--font-sans);font-weight:700;font-size:14px;
  color:var(--navy2);padding:16px 20px;cursor:pointer;list-style:none;
}
.av-faq summary::-webkit-details-marker{display:none}
.av-faq summary::after{content:'+';float:right;color:var(--blue);font-weight:800}
.av-faq details[open] summary::after{content:'–'}
.av-faq details p{font-size:13.5px;color:var(--muted);line-height:1.65;padding:0 20px 16px}

/* comparison table */
.av-compare{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--border);border-radius:var(--r2);overflow:hidden;background:#fff}
.av-compare th,.av-compare td{padding:13px 16px;font-size:13px;text-align:center;border-bottom:1px solid var(--off)}
.av-compare th{
  font-family:var(--font-sans);font-weight:800;font-size:12px;
  letter-spacing:0.04em;text-transform:uppercase;color:var(--muted);
  background:var(--off);
}
.av-compare th:first-child,.av-compare td:first-child{text-align:left;font-weight:600;color:var(--navy2)}
.av-compare th.av-us{color:#fff;background:var(--blue)}
.av-compare td.av-us{background:var(--blue-pale);font-weight:700;color:var(--blue3)}
.av-compare tr:last-child td{border-bottom:none}
.av-yes{color:#0d9455;font-weight:800}
.av-no{color:#c2410c;font-weight:700}
.av-part{color:var(--muted)}
.av-compare-wrap{overflow-x:auto}
.av-compare-note{font-size:11.5px;color:var(--muted);margin-top:12px;line-height:1.6}

/* small helpers */
.av-center{text-align:center}
.av-cta-strip{
  background:linear-gradient(105deg,var(--navy) 0%,var(--navy2) 100%);
  border-radius:var(--r3);padding:48px;text-align:center;
}
.av-cta-strip h2{
  font-family:var(--font-sans);font-weight:900;font-size:30px;
  color:#fff;letter-spacing:-0.8px;margin-bottom:10px;
}
.av-cta-strip p{color:rgba(255,255,255,0.55);font-size:15px;margin-bottom:24px}
.av-footnote{font-size:12px;color:var(--muted);margin-top:24px}

/* real app screenshots inside the browser frame */
.av-shot-img{padding:0;background:#fff}
.av-shot-img img{display:block;width:100%;height:auto}

/* --- RTL (Arabic): the hero mascot and its fade are pinned right in LTR,
       exactly where RTL text lives — mirror both to the left, and flip the
       sheep so it still faces the copy. --- */
html[dir="rtl"] .av-hero-mascot{right:auto;left:0;transform:scaleX(-1)}
html[dir="rtl"] .av-hero-fade{right:auto;left:-255px}
