/* ==========================================================================
   Optipic — shared styles (LTR + RTL via [dir])
   ========================================================================== */

:root{
  /* Brand gradient — sampled from the optipic logotype */
  --brand-blue-700:#123d99;
  --brand-blue-600:#1857d1;
  --brand-blue-500:#1e6fef;
  --brand-cyan-500:#12b7d6;
  --brand-green-500:#22c58a;
  --brand-lime-400:#8be23a;
  --brand-lime-300:#b6f24c;

  --brand-gradient: linear-gradient(100deg, var(--brand-blue-600) 0%, var(--brand-cyan-500) 45%, var(--brand-green-500) 72%, var(--brand-lime-400) 100%);
  --brand-gradient-soft: linear-gradient(100deg, rgba(24,87,209,.10) 0%, rgba(18,183,214,.10) 45%, rgba(34,197,138,.10) 72%, rgba(139,226,58,.12) 100%);

  --ink-900:#0b1220;
  --ink-700:#33415c;
  --ink-500:#5b6b8c;
  --ink-400:#7c8aa8;
  --ink-200:#e3e8f2;
  --ink-100:#eef1f8;
  --ink-50:#f6f8fc;

  --surface:#ffffff;
  --surface-alt:#f6f8fc;
  --border:#e4e9f2;

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;
  --radius-xl:32px;

  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 1px 1px rgba(11,18,32,.04);
  --shadow-md: 0 8px 24px rgba(11,18,32,.08), 0 2px 6px rgba(11,18,32,.05);
  --shadow-lg: 0 20px 48px rgba(18,61,153,.14), 0 6px 16px rgba(11,18,32,.06);
  --shadow-brand: 0 14px 32px rgba(30,111,239,.28);

  --container: 1180px;

  --font-en: "Plus Jakarta Sans","Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --font-fa: "Vazirmatn","Plus Jakarta Sans",system-ui,-apple-system,Segoe UI,Tahoma,sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--surface);
  color:var(--ink-900);
  font-family:var(--font-en);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
html[dir="rtl"] body{ font-family:var(--font-fa); }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font:inherit; cursor:pointer; }
h1,h2,h3,h4,p{ margin:0; }

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}

.section{ padding:96px 0; }
.section--tight{ padding:72px 0; }
.section--alt{ background:var(--surface-alt); }

.section-head{
  max-width:640px;
  margin-bottom:48px;
}
.section-head.center{ margin-inline:auto; text-align:center; }

.section-head h2{
  font-size:clamp(28px,3.4vw,40px);
  line-height:1.15;
  letter-spacing:-.01em;
  font-weight:800;
  margin-top:0;
}
.section-head p{
  margin-top:14px;
  color:var(--ink-500);
  font-size:16.5px;
  line-height:1.65;
}

.gradient-text{
  background:var(--brand-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 24px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }

.btn--primary{
  color:#fff;
  background:var(--brand-gradient);
  background-clip:padding-box;
  border-color:transparent;
  box-shadow:var(--shadow-brand);
}
.btn--primary:hover{ box-shadow:0 18px 40px rgba(30,111,239,.36); transform:translateY(-1px); }

.btn--ghost{
  color:var(--ink-900);
  background:#fff;
  border-color:var(--border);
}
.btn--ghost:hover{ border-color:var(--brand-blue-500); color:var(--brand-blue-600); }

.btn--lg{ padding:15px 30px; font-size:16px; }
.btn--block{ width:100%; }

.btn svg{ width:18px; height:18px; flex:none; }

/* Mirrors any directional (left/right-pointing) icon in RTL — a "→ next"
   arrow drawn LTR still means "forward," which in RTL reading order is
   left, not right; flipping it horizontally keeps that meaning instead
   of pointing the wrong way. Not scoped to .btn since several of these
   arrows sit in plain result rows/report stats, not just inside buttons. */
html[dir="rtl"] svg.flip{ transform:scaleX(-1); }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height:76px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; letter-spacing:-.02em; }
.brand .mark{ width:34px; height:34px; flex:none; }
.brand .word{ background:var(--brand-gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }

.nav{ display:flex; align-items:center; gap:36px; }
.nav a{
  font-size:14.5px; font-weight:600; color:var(--ink-700);
  position:relative; padding:6px 0;
  transition:color .15s ease;
}
.nav a:hover{ color:var(--brand-blue-600); }

.header-actions{ display:flex; align-items:center; gap:10px; }

.header-user-email{
  font-size:13.5px;
  color:var(--ink-500);
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.header-avatar{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:linear-gradient(135deg, #1857D1, #12B7D6);
  color:#fff;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  flex-shrink:0;
  transition:opacity .15s ease;
}

.header-avatar:hover{
  opacity:.85;
}

/* Verification banner shown site-wide (via partials/verify-banner.php,
   included from header.php) when a logged-in user has something
   unverified. */
.verify-banner{
  background:var(--brand-gradient-soft);
  border-bottom:1px solid var(--border);
}

.verify-banner-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:11px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  font-size:14px;
  color:var(--ink-700);
  text-align:center;
}

.verify-banner-inner button{
  background:none;
  border:none;
  padding:0;
  font:inherit;
  font-weight:700;
  color:var(--brand-blue-600);
  cursor:pointer;
}

.verify-banner-inner button:disabled{
  color:var(--ink-400);
  cursor:default;
}

.lang-switch{
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 14px; border-radius:999px;
  border:1px solid var(--border); background:#fff;
  font-size:13.5px; font-weight:700; color:var(--ink-700);
  transition:border-color .15s ease, color .15s ease;
}
.lang-switch:hover{ border-color:var(--brand-blue-500); color:var(--brand-blue-600); }
.lang-switch svg{ width:16px; height:16px; }

.nav-toggle{
  display:none;
  width:40px; height:40px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  align-items:center; justify-content:center;
}
.nav-toggle svg{ width:20px; height:20px; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:64px 0 56px;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:-20% -10% auto -10%;
  height:640px;
  background:
    radial-gradient(60% 60% at 15% 25%, rgba(30,111,239,.16), transparent 70%),
    radial-gradient(55% 55% at 85% 15%, rgba(139,226,58,.20), transparent 70%),
    radial-gradient(45% 45% at 60% 55%, rgba(18,183,214,.14), transparent 70%);
  filter:blur(10px);
  z-index:0;
}
.hero-inner{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
}
.hero-copy h1{
  font-size:clamp(34px,4.6vw,54px);
  line-height:1.08;
  letter-spacing:-.02em;
  font-weight:800;
  margin-top:0;
}
.hero-copy p{
  margin-top:28px;
  font-size:18px;
  line-height:1.7;
  color:var(--ink-500);
  max-width:520px;
}
/* Page-scan strip: a full-width row directly under the hero, separated
   from it (its own section, own background tint) instead of living
   inside .hero-copy where it visually ran together with the hero's own
   text and the section below it. Wide/stretched by design so it reads
   as its own distinct call-to-action band. */
.page-scan-strip{
  position:relative;
  padding:48px 0;
  background:var(--surface-alt);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  overflow:hidden;
}

/* Background animation: photo cards travel horizontally across the
   strip — entering as plain/unoptimized on one side, turning green and
   gaining a saved-percent badge as they cross, then exiting the other
   side "optimized". Direction is reading-direction-aware: in RTL they
   enter from the right and exit left; in LTR, entering from the left
   and exiting right (see the two directional keyframe sets below).
   Opacity (not a mask) carries the "hidden behind the form" effect:
   each photo fades 0→1 while crossing the outer 15% on its entry side,
   sits at 0 for the middle 70% (where the real form is), then fades
   0→1 again crossing the outer 15% on its exit side before leaving at
   full opacity. The three percentage points (0%/-10%left, ~21%/15%left,
   ~79%/85%left, 100%/110%left) are where the animation's overall
   -10%..110% left range crosses those 15%/85% marks — recompute them
   if that left range or the 15/85 split ever changes. Pure CSS, no JS. */
.page-scan-strip-bg{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.scan-lane{
  position:absolute;
  inset:0;
}
.scan-photo{
  position:absolute;
  top:50%;
  width:56px; height:56px;
  margin-top:-28px;
  border-radius:10px;
  background:#fff;
  border:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-400);
  opacity:0;
  animation-name:scanPhotoLTR;
  animation-duration:18s;
  animation-timing-function:linear;
  animation-iteration-count:infinite;
}
.scan-photo svg{ width:24px; height:24px; }
.scan-photo-badge{
  position:absolute;
  inset-inline-end:-10px;
  top:-10px;
  display:flex; align-items:center; gap:3px;
  background:var(--brand-green-500);
  color:#fff;
  font-size:10.5px;
  font-weight:800;
  padding:3px 7px;
  border-radius:999px;
  white-space:nowrap;
  opacity:0;
  transform:scale(.6);
  animation-name:scanBadgePop;
  animation-duration:18s;
  animation-timing-function:linear;
  animation-iteration-count:infinite;
}
.scan-photo-badge svg{ width:9px; height:9px; }

/* LTR: enters at left edge (-10%), exits at right edge (110%). Between
   22% and 78% (crossing the middle 70% of the strip, left:~16.4% to
   ~83.6%) opacity is pinned at 0 with no interpolation ramp — two
   keyframes at the same value (22% and 78%) rather than one, so the
   photo is fully invisible for that whole span instead of fading
   through partial opacity while crossing behind the form. Color/border
   flip from plain to "optimized" is likewise an instant step at 50%
   (dead center of the invisible span, not a gradual crossfade toward
   78%) — this must be a step, not a ramp: since every photo runs the
   same keyframes with only animation-delay differing, an interpolated
   ramp would leave some photos re-emerging mid-transition (visibly
   part-gray/part-green depending on when their delay happens to land
   them in the ramp) instead of every photo re-emerging fully green. */
@keyframes scanPhotoLTR{
  0%{ left:-10%;  opacity:0; border-color:var(--border); color:var(--ink-400); }
  21%{ left:15%;  opacity:.6; border-color:var(--border); color:var(--ink-400); }
  22%{ opacity:0; border-color:var(--border); color:var(--ink-400); }
  49.99%{ border-color:var(--border); color:var(--ink-400); }
  50%{ border-color:var(--brand-green-500); color:var(--brand-green-500); }
  78%{ opacity:0; border-color:var(--brand-green-500); color:var(--brand-green-500); }
  79%{ left:85%;  opacity:.6; border-color:var(--brand-green-500); color:var(--brand-green-500); }
  100%{ left:110%; opacity:.6; border-color:var(--brand-green-500); color:var(--brand-green-500); }
}
/* RTL: enters at right edge (110%), exits at left edge (-10%). */
@keyframes scanPhotoRTL{
  0%{ left:110%; opacity:0; border-color:var(--border); color:var(--ink-400); }
  21%{ left:85%;  opacity:.6; border-color:var(--border); color:var(--ink-400); }
  22%{ opacity:0; border-color:var(--border); color:var(--ink-400); }
  49.99%{ border-color:var(--border); color:var(--ink-400); }
  50%{ border-color:var(--brand-green-500); color:var(--brand-green-500); }
  78%{ opacity:0; border-color:var(--brand-green-500); color:var(--brand-green-500); }
  79%{ left:15%;  opacity:.6; border-color:var(--brand-green-500); color:var(--brand-green-500); }
  100%{ left:-10%; opacity:.6; border-color:var(--brand-green-500); color:var(--brand-green-500); }
}
@keyframes scanBadgePop{
  0%, 79%{ opacity:0; transform:scale(.6); }
  92%{ opacity:.6; transform:scale(1); }
  100%{ opacity:.6; transform:scale(1); }
}

html[dir="rtl"] .scan-photo{ animation-name:scanPhotoRTL; }

/* top/animation-delay per photo are set inline in index.php (both the
   photo and its badge read the same $delay value there) — this is the
   one and only place delay is set. Do not also set animation-delay
   here: an earlier version set it in both places with two different
   numbering schemes, which desynced the photo and its badge (badge
   popped on a different schedule than the photo's own color change). */

@media (prefers-reduced-motion: reduce){
  .scan-photo, .scan-photo-badge{ animation:none; display:none; }
}
@media (max-width:640px){
  .scan-photo{ width:42px; height:42px; margin-top:-21px; }
  .scan-photo svg{ width:18px; height:18px; }
}
.page-scan-strip-inner{
  max-width:920px;
  margin:0 auto;
  text-align:center;
}
.page-scan-strip-label{
  display:flex; align-items:center; justify-content:center; gap:10px;
  font-size:clamp(20px,2.4vw,26px);
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--ink-900);
  margin:0 0 32px;
}
.page-scan-strip-label svg{ width:22px; height:22px; color:var(--brand-blue-600); flex:none; }
.page-scan-strip-form{
  display:flex;
  gap:10px;
}
.page-scan-strip-form input{
  flex:1;
  min-width:0;
  padding:14px 18px;
  border:1.5px solid var(--ink-200);
  border-radius:var(--radius-sm);
  font-size:15.5px;
  font-family:inherit;
  background:#fff;
  color:var(--ink-900);
  box-shadow:var(--shadow-sm);
}
.page-scan-strip-form input::placeholder{ color:var(--ink-400); }
.page-scan-strip-form input:focus{
  outline:none;
  border-color:var(--brand-blue-500);
  box-shadow:0 0 0 3px rgba(30,111,239,.14);
}
.page-scan-strip-form button{ white-space:nowrap; }
.page-scan-strip-sub{
  margin-top:12px;
  font-size:13px;
  color:var(--ink-500);
}
@media (max-width:600px){
  .page-scan-strip-form{ flex-direction:column; }
}

/* Before/After slider */
.compare{
  position:relative;
  border-radius:var(--radius-xl);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  border:1px solid var(--border);
  aspect-ratio:4/3.05;
  user-select:none;
  background:var(--ink-100);
}
.compare img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  pointer-events:none;
}
.compare .after-layer{
  position:absolute; inset:0;
  width:100%; height:100%;
  overflow:hidden;
  clip-path:inset(0 0 0 var(--pos, 50%));
}
html[dir="rtl"] .compare .after-layer{
  clip-path:inset(0 var(--pos, 50%) 0 0);
}
.compare .after-layer img{ width:100%; height:100%; }

.compare-tag{
  position:absolute; top:16px;
  padding:6px 13px;
  border-radius:999px;
  font-size:12px; font-weight:800;
  letter-spacing:.04em; text-transform:uppercase;
  backdrop-filter:blur(6px);
  z-index:3;
}
.compare-tag.tag-before{ inset-inline-start:16px; background:rgba(11,18,32,.55); color:#fff; }
.compare-tag.tag-after{ inset-inline-end:16px; background:rgba(34,197,138,.9); color:#fff; }

.compare-meta{
  position:absolute; bottom:16px; inset-inline-start:16px; inset-inline-end:16px;
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(11,18,32,.6);
  backdrop-filter:blur(6px);
  color:#fff;
  border-radius:999px;
  padding:8px 8px 8px 16px;
  font-size:12.5px;
  z-index:3;
}
html[dir="rtl"] .compare-meta{ padding:8px 16px 8px 8px; }
.compare-meta .saved{
  display:flex; align-items:center; gap:6px;
  background:rgba(255,255,255,.14);
  padding:5px 12px;
  border-radius:999px;
  font-weight:800;
  color:#c8ffb0;
}

.compare-handle{
  position:absolute; top:0; bottom:0;
  inset-inline-start:var(--pos, 50%);
  width:0;
  z-index:4;
  transform:translateX(-50%);
}
html[dir="rtl"] .compare-handle{ transform:translateX(50%); }
.compare-handle::before{
  content:"";
  position:absolute; top:0; bottom:0; left:50%;
  width:2.5px;
  background:#fff;
  box-shadow:0 0 0 1px rgba(11,18,32,.15);
  transform:translateX(-50%);
}
.compare-handle .grip{
  position:absolute; top:50%; left:50%;
  width:44px; height:44px;
  transform:translate(-50%,-50%);
  background:#fff;
  border-radius:50%;
  box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center;
  gap:3px;
  cursor:ew-resize;
}
.compare-handle .grip svg{ width:16px; height:16px; color:var(--brand-blue-600); }

.compare-slider-input{
  position:absolute; inset:0;
  width:100%; height:100%;
  opacity:0;
  cursor:ew-resize;
  margin:0;
  z-index:5;
  -webkit-appearance:none;
}

.hero-visual{ position:relative; }
.hero-badge{
  position:absolute;
  bottom:-22px; inset-inline-start:-22px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-md);
  padding:14px 18px;
  display:flex; align-items:center; gap:12px;
  z-index:5;
}
.hero-badge .ring{
  --pct:82;
  width:40px; height:40px; flex:none;
  border-radius:50%;
  background:conic-gradient(var(--brand-blue-500) calc(var(--pct) * 1%), var(--ink-200) calc(var(--pct) * 1%));
  display:flex; align-items:center; justify-content:center;
}
.hero-badge .ring span{
  width:31px; height:31px; border-radius:50%; background:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:800; color:var(--brand-blue-600);
}
.hero-badge .label{ font-size:12px; color:var(--ink-500); }
.hero-badge .label b{ display:block; font-size:14px; color:var(--ink-900); }

/* ---------- Page scan box (homepage) ---------- */
.page-scan-box{
  max-width:760px;
  margin:0 auto;
  text-align:center;
  padding:48px 32px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-md);
}
.page-scan-box-copy h2{
  font-size:clamp(24px,3vw,32px);
  font-weight:800;
  letter-spacing:-.01em;
  margin:0 0 10px;
}
.page-scan-box-copy p{
  color:var(--ink-500);
  margin:0 0 28px;
  font-size:15.5px;
}
.page-scan-box-form{
  display:flex;
  gap:10px;
  max-width:560px;
  margin:0 auto;
}
.page-scan-box-form input{
  flex:1;
  min-width:0;
  padding:13px 16px;
  border:1.5px solid var(--border);
  border-radius:var(--radius-sm);
  font-size:15px;
  font-family:inherit;
  background:var(--surface);
  color:var(--ink-900);
}
.page-scan-box-form input:focus{
  outline:none;
  border-color:var(--brand-blue-500);
  box-shadow:0 0 0 3px rgba(30,111,239,.14);
}
.page-scan-box-form button{ white-space:nowrap; }
.page-scan-box-error{
  margin-top:14px;
  color:#b42318;
  font-size:13.5px;
}
@media (max-width:640px){
  .page-scan-box-form{ flex-direction:column; }
}

/* ---------- Feature rows ---------- */
.feature-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
  padding:56px 0;
  border-bottom:1px solid var(--border);
}
.feature-row:last-child{ border-bottom:none; }
.feature-row.reverse .feature-copy{ order:2; }
.feature-row.reverse .feature-art{ order:1; }

.feature-copy h3{
  font-size:clamp(22px,2.6vw,30px);
  line-height:1.2;
  letter-spacing:-.01em;
  font-weight:800;
  margin-top:0;
}
.feature-copy p{
  margin-top:14px;
  color:var(--ink-500);
  font-size:16px;
  line-height:1.7;
  max-width:480px;
}
.feature-list{ margin-top:18px; display:flex; flex-direction:column; gap:10px; }
.feature-list li{
  display:flex; align-items:flex-start; gap:10px;
  font-size:14.5px; color:var(--ink-700); font-weight:600;
}
.feature-list li svg{ width:18px; height:18px; flex:none; margin-top:1px; color:var(--brand-green-500); }

.feature-art{
  position:relative;
  border-radius:var(--radius-lg);
  background:var(--surface-alt);
  border:1px solid var(--border);
  aspect-ratio:5/4;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.feature-art .glow{
  position:absolute; inset:0;
  background:var(--brand-gradient-soft);
  opacity:.7;
}
.feature-art svg, .feature-art img{ position:relative; z-index:1; width:62%; height:auto; }

/* ---------- Stat gauge art ---------- */
.gauge-card{
  width:78%;
  background:#fff;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-md);
  padding:26px;
  position:relative; z-index:1;
}
.gauge-top{ display:flex; align-items:center; justify-content:space-between; }
.gauge-score{ font-size:34px; font-weight:800; }
.gauge-bars{ display:flex; align-items:flex-end; gap:6px; height:70px; margin-top:18px; }
.gauge-bars span{ flex:1; border-radius:4px 4px 0 0; background:var(--brand-gradient); }

/* ---------- Product cards ---------- */
.products-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}
.products-grid--three{ grid-template-columns:repeat(3,1fr); }
.product-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:32px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:transparent; }
.product-icon{
  width:52px; height:52px;
  border-radius:14px;
  background:var(--brand-gradient);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
}
.product-icon svg{ width:26px; height:26px; color:#fff; }
.product-card h3{ font-size:19px; font-weight:800; letter-spacing:-.01em; }
.product-card p{ margin-top:10px; color:var(--ink-500); font-size:14.5px; line-height:1.65; }
.product-card .card-actions{ display:flex; align-items:center; gap:18px; margin-top:22px; }
.product-card .card-actions a.text-link{ font-size:14px; font-weight:700; color:var(--brand-blue-600); }

/* ---------- Pricing ---------- */
.pricing-card{
  max-width:460px;
  margin:0 auto;
  text-align:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  padding:40px 36px;
}
.pricing-price{ margin-bottom:24px; }
.pricing-price-amount{
  display:block;
  font-size:clamp(36px,5vw,48px);
  font-weight:800;
  letter-spacing:-.02em;
  background:var(--brand-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.pricing-price-unit{
  display:block;
  margin-top:6px;
  font-size:14px;
  color:var(--ink-500);
  font-weight:600;
}
.pricing-list{
  text-align:start;
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0 0 28px;
  padding-top:24px;
  border-top:1px solid var(--border);
}
.pricing-list li{
  display:flex; align-items:flex-start; gap:10px;
  font-size:14.5px; color:var(--ink-700); font-weight:600;
}
.pricing-list li svg{ width:18px; height:18px; flex:none; margin-top:1px; color:var(--brand-green-500); }
.pricing-cta{ width:100%; justify-content:center; }

/* ---------- Testimonials ---------- */
.testimonial-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.testimonial-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:28px;
}
.testimonial-card .stars{ color:#f5a623; letter-spacing:2px; font-size:15px; }
.testimonial-card h4{ margin-top:14px; font-size:16px; font-weight:800; }
.testimonial-card p{ margin-top:10px; color:var(--ink-500); font-size:14.5px; line-height:1.65; }
.testimonial-person{ display:flex; align-items:center; gap:10px; margin-top:20px; }
.testimonial-person .avatar{
  width:36px; height:36px; border-radius:50%;
  background:var(--brand-gradient);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:13px;
  flex:none;
}
.testimonial-person .who b{ display:block; font-size:13.5px; }
.testimonial-person .who span{ font-size:12.5px; color:var(--ink-400); }

/* ---------- Stats band ---------- */
.stats-band{
  background:var(--ink-900);
  background-image:
    radial-gradient(60% 100% at 10% 0%, rgba(30,111,239,.35), transparent 60%),
    radial-gradient(60% 100% at 90% 100%, rgba(139,226,58,.28), transparent 60%);
  border-radius:var(--radius-xl);
  padding:56px 40px;
  color:#fff;
}
.stats-counter{
  text-align:center;
  font-size:clamp(26px,4vw,44px);
  font-weight:800;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
.stats-counter .digit-accent{ color:var(--brand-lime-300); }
.stats-caption{ text-align:center; color:rgba(255,255,255,.6); font-size:13.5px; margin-top:10px; }

.stats-grid{
  margin-top:40px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  text-align:center;
}
.stats-grid .num{ font-size:30px; font-weight:800; }
.stats-grid .lbl{ margin-top:6px; font-size:13.5px; color:rgba(255,255,255,.62); }

/* ---------- Mini feature icons grid ---------- */
.mini-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.mini-item{
  display:flex;
  align-items:center;
  gap:14px;
  text-align:start;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:20px 18px;
}
.mini-item .ic{
  width:44px; height:44px;
  flex:none;
  border-radius:12px;
  background:var(--brand-gradient-soft);
  display:flex; align-items:center; justify-content:center;
}
.mini-item .ic svg{ width:22px; height:22px; color:var(--brand-blue-600); }
.mini-item p{ margin:0; font-size:13.5px; font-weight:700; color:var(--ink-700); }

/* ---------- FAQ accordion ---------- */
.faq-list{ max-width:820px; margin-inline:auto; display:flex; flex-direction:column; gap:12px; }
.faq-item{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.faq-item summary{
  list-style:none;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:20px 22px;
  font-weight:700; font-size:15.5px;
  cursor:pointer;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item .chev{
  flex:none; width:22px; height:22px;
  border-radius:50%;
  background:var(--surface-alt);
  display:flex; align-items:center; justify-content:center;
  transition:transform .2s ease, background .2s ease;
}
.faq-item .chev svg{ width:12px; height:12px; }
.faq-item[open] .chev{ background:var(--brand-gradient); color:#fff; transform:rotate(180deg); }
.faq-item .faq-body{ padding:0 22px 22px; color:var(--ink-500); font-size:14.5px; line-height:1.7; }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius:var(--radius-xl);
  background:var(--brand-gradient);
  padding:64px 48px;
  text-align:center;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.cta-band h2{ font-size:clamp(26px,3.4vw,38px); font-weight:800; letter-spacing:-.01em; }
.cta-band p{ margin-top:12px; color:rgba(255,255,255,.9); font-size:16px; }
.cta-band .hero-cta{ justify-content:center; margin-top:28px; }
.cta-band .btn--ghost{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.3); color:#fff; }
.cta-band .btn--ghost:hover{ background:rgba(255,255,255,.22); }
.cta-band .btn--primary{ background:#fff; color:var(--brand-blue-700); box-shadow:0 14px 30px rgba(0,0,0,.18); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink-900); color:rgba(255,255,255,.7); padding-top:72px; }
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr repeat(4,1fr);
  gap:32px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-brand .brand{ color:#fff; }
.footer-brand p{ margin-top:14px; font-size:14px; line-height:1.7; color:rgba(255,255,255,.55); max-width:280px; }
.footer-col h5{ font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:rgba(255,255,255,.45); margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:14px; color:rgba(255,255,255,.75); transition:color .15s ease; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding:26px 0;
  font-size:13px; color:rgba(255,255,255,.45);
  flex-wrap:wrap; gap:12px;
}
/* ---------- Reveal-on-scroll ---------- */
[data-reveal]{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
[data-reveal].in{ opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .feature-row{ grid-template-columns:1fr; gap:32px; }
  .feature-row.reverse .feature-copy{ order:1; }
  .feature-row.reverse .feature-art{ order:2; }
  .products-grid{ grid-template-columns:1fr; }
  .testimonial-grid{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:1fr; gap:20px; }
  .mini-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1/-1; }
}
@media (max-width:760px){
  .nav{
    display:none;
    position:absolute;
    top:100%; left:0; right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:#fff;
    border-bottom:1px solid var(--border);
    box-shadow:var(--shadow-md);
    padding:8px 24px 16px;
  }
  .nav.nav-open{ display:flex; }
  .nav a{ padding:14px 0; border-bottom:1px solid var(--border); }
  .nav a:last-child{ border-bottom:none; }
  .nav-toggle{ display:flex; }
  .site-header{ position:sticky; }
  .header-inner{ position:relative; }
  .section{ padding:64px 0; }
  .hero{ padding-top:32px; }
  .hero-badge{ position:static; margin-top:16px; width:fit-content; }
  .mini-grid{ grid-template-columns:1fr 1fr; }
  .cta-band{ padding:48px 24px; }
}
@media (max-width:760px){
  .header-actions .btn--primary{ display:none; }
}
