/* =========================================================================
   eClinton App Store — Design System
   Brand DNA pulled from pay.eclinton.com (#E8001D) & market.eclinton.com
   (#D92B2B): confident red, pill-shaped controls, glass headers, dark mode.
   Signature element of THIS theme: the "Smart Install" segmented switcher
   + conic-gradient Rating Ring on every app page — the hybrid of Play
   Store's install button and App Store's rating circle, upgraded.
   ========================================================================= */

:root{
  --ec-red:        #E8001D;
  --ec-red-2:      #D92B2B;
  --ec-red-dark:   #a8000f;
  --ec-red-soft:   #ffe6e8;
  --ec-gold:       #F5A623;
  --ec-green:      #1FAA59;

  --ec-grad:       linear-gradient(135deg,#E8001D 0%,#FF4D4D 55%,#D92B2B 100%);
  --ec-grad-soft:  linear-gradient(135deg,rgba(232,0,29,.12),rgba(217,43,43,.05));

  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(20,20,26,.06), 0 1px 1px rgba(20,20,26,.04);
  --sh-2: 0 8px 24px -8px rgba(20,20,26,.16);
  --sh-3: 0 20px 48px -16px rgba(232,0,29,.28);

  --ff-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --ff-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --bg: #F6F6FA;
  --surface: #ffffff;
  --surface-2: #F0F0F6;
  --border: #E7E7EF;
  --text: #141419;
  --muted: #6B6B7C;
  --header-h: 72px;
}

html.dark, body.dark{
  --bg: #0B0B10;
  --surface: #15151D;
  --surface-2: #1C1C26;
  --border: #27272F;
  --text: #F3F3F6;
  --muted: #9797A6;
  --ec-red-soft: rgba(232,0,29,.16);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--ff-body); font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased; transition:background .25s ease,color .25s ease;
  overflow-x:hidden;
}
h1,h2,h3,h4{ font-family:var(--ff-display); font-weight:700; line-height:1.15; margin:0 0 .5em; letter-spacing:-.01em; }
p{ margin:0 0 1em; color:var(--muted); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
:focus-visible{ outline:2px solid var(--ec-red); outline-offset:2px; }
.container{ width:100%; max-width:1280px; margin:0 auto; padding:0 24px; }
.container-narrow{ width:100%; max-width:920px; margin:0 auto; padding:0 24px; }
.visually-hidden{ position:absolute!important; width:1px;height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 26px; border-radius:var(--r-pill); font-weight:600; font-size:.95rem;
  border:1.5px solid transparent; transition:transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
.btn-primary{ background:var(--ec-grad); color:#fff; box-shadow:var(--sh-3); }
.btn-primary:hover{ box-shadow:0 24px 56px -16px rgba(232,0,29,.42); }
.btn-outline{ background:transparent; border-color:var(--border); color:var(--text); }
.btn-outline:hover{ border-color:var(--ec-red); color:var(--ec-red); }
.btn-ghost{ background:var(--surface-2); color:var(--text); }
.btn-sm{ padding:9px 18px; font-size:.85rem; }
.btn-block{ width:100%; }
.btn[disabled], .btn.is-disabled{ opacity:.5; pointer-events:none; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:60; height:var(--header-h);
  display:flex; align-items:center;
  background:color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter:blur(16px) saturate(160%); -webkit-backdrop-filter:blur(16px) saturate(160%);
  border-bottom:1px solid var(--border);
}
.site-header .container{ display:flex; align-items:center; gap:24px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--ff-display); font-weight:800; font-size:1.15rem; flex-shrink:0; }
.brand-mark{
  width:38px; height:38px; border-radius:11px; background:var(--ec-grad); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.1rem; box-shadow:var(--sh-2);
}
.brand img.custom-logo{ height:34px; width:auto; border-radius:8px; }
.brand small{ display:block; font-family:var(--ff-body); font-weight:500; font-size:.62rem; color:var(--muted); letter-spacing:.06em; text-transform:uppercase; }

.primary-nav{ display:flex; align-items:center; gap:2px; flex:1; }
.primary-nav ul{ display:flex; align-items:center; gap:2px; }
.primary-nav a{
  display:inline-flex; align-items:center; padding:9px 15px; border-radius:var(--r-pill);
  font-size:.9rem; font-weight:600; color:var(--muted); transition:background .15s,color .15s;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a{ background:var(--surface-2); color:var(--ec-red); }

.header-actions{ display:flex; align-items:center; gap:8px; margin-left:auto; }
.icon-btn{
  width:42px; height:42px; border-radius:50%; background:var(--surface-2); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:1.05rem; color:var(--text); flex-shrink:0;
}
.icon-btn:hover{ border-color:var(--ec-red); }
.theme-toggle svg{ width:19px; height:19px; }
.mobile-nav-toggle{ display:none; }

/* Search overlay */
.search-overlay{
  position:fixed; inset:0; z-index:100; background:color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter:blur(6px); display:flex; align-items:flex-start; justify-content:center;
  padding:14vh 24px 24px; opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.search-overlay.is-open{ opacity:1; pointer-events:auto; }
.search-overlay form{ width:100%; max-width:640px; display:flex; gap:10px; background:var(--surface); padding:10px; border-radius:var(--r-pill); box-shadow:var(--sh-3); border:1px solid var(--border); }
.search-overlay input[type="search"]{ flex:1; border:0; background:transparent; padding:12px 18px; font-size:1.05rem; color:var(--text); }
.search-overlay input:focus{ outline:none; }
.search-close{ position:absolute; top:24px; right:24px; }

/* ---------- Hero ---------- */
.hero{ padding:72px 0 56px; position:relative; overflow:hidden; }
.hero::before{
  content:""; position:absolute; top:-220px; right:-160px; width:520px; height:520px; border-radius:50%;
  background:var(--ec-grad); opacity:.16; filter:blur(60px); z-index:0;
}
.hero .container{ position:relative; z-index:1; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; padding:6px 16px; border-radius:var(--r-pill);
  background:var(--ec-red-soft); color:var(--ec-red); font-weight:700; font-size:.78rem; letter-spacing:.02em; margin-bottom:20px;
}
.hero h1{ font-size:clamp(2.1rem,4.6vw,3.6rem); max-width:16ch; }
.hero h1 .accent{ background:var(--ec-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero .lede{ font-size:1.08rem; max-width:52ch; margin-bottom:32px; }
.hero-cta-row{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:36px; }

.store-search{
  display:flex; align-items:center; gap:10px; max-width:560px; background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--r-pill); padding:6px 6px 6px 20px; box-shadow:var(--sh-1); margin-bottom:28px;
}
.store-search input{ flex:1; border:0; background:transparent; padding:12px 0; font-size:.98rem; color:var(--text); }
.store-search input:focus{ outline:none; }
.store-search button{ border:0; }

.platform-strip{ display:flex; flex-wrap:wrap; gap:10px; }
.platform-pill{
  display:inline-flex; align-items:center; gap:7px; padding:8px 15px; border-radius:var(--r-pill);
  background:var(--surface-2); border:1px solid var(--border); font-size:.82rem; font-weight:600; color:var(--muted);
}

/* Trust marquee */
.trust-strip{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--surface); overflow:hidden; }
.trust-track{ display:flex; gap:48px; padding:14px 0; width:max-content; animation:scrollx 32s linear infinite; }
.trust-track span{ font-size:.86rem; font-weight:600; color:var(--muted); white-space:nowrap; display:flex; align-items:center; gap:8px; }
@keyframes scrollx{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
@media (prefers-reduced-motion: reduce){ .trust-track{ animation:none; } }

/* Stats */
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:44px 0 0; }
.stat-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:22px; text-align:center; }
.stat-card b{ display:block; font-family:var(--ff-display); font-size:1.7rem; background:var(--ec-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-card span{ font-size:.82rem; color:var(--muted); font-weight:600; }

/* Section header */
.section{ padding:56px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:26px; gap:16px; flex-wrap:wrap; }
.section-head .kicker{ color:var(--ec-red); font-weight:700; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; display:block; margin-bottom:6px; }
.section-head h2{ font-size:1.7rem; margin:0; }
.view-all{ font-weight:700; font-size:.88rem; color:var(--ec-red); display:inline-flex; align-items:center; gap:4px; flex-shrink:0; }

/* Category chip scroller */
.chip-scroller{ display:flex; gap:10px; overflow-x:auto; padding-bottom:6px; scrollbar-width:none; }
.chip-scroller::-webkit-scrollbar{ display:none; }
.cat-chip{
  flex-shrink:0; display:flex; align-items:center; gap:8px; padding:10px 18px; border-radius:var(--r-pill);
  background:var(--surface); border:1.5px solid var(--border); font-weight:600; font-size:.88rem;
}
.cat-chip:hover{ border-color:var(--ec-red); color:var(--ec-red); }
.cat-chip .ico{ font-size:1.05rem; }

/* ---------- App Cards / Grids ---------- */
.app-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:20px; }
.app-grid.dense{ grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); }
.app-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:18px;
  display:flex; flex-direction:column; gap:12px; transition:transform .18s ease, box-shadow .18s ease, border-color .18s;
  position:relative;
}
.app-card:hover{ transform:translateY(-4px); box-shadow:var(--sh-2); border-color:transparent; }
.app-card-top{ display:flex; gap:12px; align-items:center; }
.app-icon{
  width:60px; height:60px; border-radius:16px; object-fit:cover; flex-shrink:0; background:var(--ec-grad);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-family:var(--ff-display); font-size:1.3rem;
  box-shadow:var(--sh-1);
}
.app-card-title{ font-weight:700; font-size:.98rem; margin:0 0 2px; line-height:1.3; }
.app-card-dev{ font-size:.78rem; color:var(--muted); }
.app-card-tagline{ font-size:.84rem; color:var(--muted); margin:0; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.app-card-meta{ display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:10px; border-top:1px dashed var(--border); }
.rating-inline{ display:flex; align-items:center; gap:4px; font-weight:700; font-size:.85rem; }
.rating-inline svg{ width:14px; height:14px; fill:var(--ec-gold); }
.price-tag{ font-weight:700; font-size:.82rem; color:var(--ec-green); }
.price-tag.paid{ color:var(--text); }

/* Badges */
.badge{ display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border-radius:var(--r-pill); font-size:.66rem; font-weight:800; letter-spacing:.02em; text-transform:uppercase; }
.badge-verified{ background:#e8f6ee; color:var(--ec-green); }
.badge-editor{ background:linear-gradient(135deg,#fff2d8,#ffe2b0); color:#96690a; }
.badge-new{ background:var(--ec-red-soft); color:var(--ec-red); }
.badge-beta{ background:#eef1ff; color:#4a55d9; }
.badge-soon{ background:var(--surface-2); color:var(--muted); }
html.dark .badge-verified{ background:rgba(31,170,89,.16); }
html.dark .badge-editor{ background:rgba(245,166,35,.16); color:#f5c46a; }
html.dark .badge-beta{ background:rgba(74,85,217,.18); color:#aab0ff; }
.app-badges{ position:absolute; top:14px; right:14px; display:flex; flex-direction:column; gap:4px; align-items:flex-end; }

/* Editor's choice carousel */
.carousel{ display:flex; gap:20px; overflow-x:auto; padding-bottom:10px; scroll-snap-type:x mandatory; scrollbar-width:none; }
.carousel::-webkit-scrollbar{ display:none; }
.feature-card{
  scroll-snap-align:start; flex:0 0 340px; border-radius:var(--r-lg); padding:26px; color:#fff; position:relative; overflow:hidden;
  background:var(--ec-grad); min-height:200px; display:flex; flex-direction:column; justify-content:flex-end;
}
.feature-card::after{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 85% 0%, rgba(255,255,255,.28), transparent 55%); }
.feature-card .badge{ position:relative; z-index:1; background:rgba(255,255,255,.22); color:#fff; width:fit-content; margin-bottom:14px; }
.feature-card h3{ position:relative; z-index:1; color:#fff; font-size:1.2rem; margin-bottom:4px; }
.feature-card p{ position:relative; z-index:1; color:rgba(255,255,255,.85); font-size:.85rem; margin-bottom:0; }

/* Coming soon */
.soon-card{ background:var(--surface-2); border:1.5px dashed var(--border); border-radius:var(--r-md); padding:18px; display:flex; gap:12px; align-items:center; }
.soon-card .app-icon{ filter:grayscale(.4); opacity:.75; }
.soon-card small{ color:var(--muted); font-weight:700; }

/* ---------- Single App ---------- */
.app-hero{ padding:44px 0 24px; border-bottom:1px solid var(--border); background:var(--surface); }
.app-hero-grid{ display:grid; grid-template-columns:132px 1fr auto; gap:26px; align-items:center; }
.app-hero .app-icon{ width:132px; height:132px; border-radius:30px; font-size:3rem; }
.app-hero h1{ font-size:1.9rem; margin-bottom:6px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.app-hero .dev-line a{ color:var(--ec-red); font-weight:600; }
.app-hero .badges-row{ display:flex; gap:6px; margin:10px 0; flex-wrap:wrap; }
.app-hero .meta-row{ display:flex; gap:22px; margin-top:14px; flex-wrap:wrap; }
.meta-block{ text-align:left; }
.meta-block b{ display:block; font-size:1.05rem; }
.meta-block span{ font-size:.74rem; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.03em; }

/* Rating ring */
.rating-ring-wrap{ display:flex; align-items:center; gap:14px; }
.rating-ring{ width:74px; height:74px; border-radius:50%; display:flex; align-items:center; justify-content:center; position:relative; flex-shrink:0;
  background:conic-gradient(var(--ec-red) calc(var(--pct,80)*1%), var(--surface-2) 0); }
.rating-ring::before{ content:""; position:absolute; inset:6px; border-radius:50%; background:var(--surface); }
.rating-ring b{ position:relative; z-index:1; font-family:var(--ff-display); font-size:1.15rem; }

/* Smart install segmented control — signature interactive element */
.install-panel{ margin-top:20px; }
.install-tabs{ display:inline-flex; background:var(--surface-2); border-radius:var(--r-pill); padding:4px; gap:2px; flex-wrap:wrap; }
.install-tab{ padding:9px 16px; border-radius:var(--r-pill); font-size:.82rem; font-weight:700; color:var(--muted); display:flex; align-items:center; gap:6px; border:0; background:transparent; }
.install-tab.is-active{ background:var(--surface); color:var(--ec-red); box-shadow:var(--sh-1); }
.install-tab .rec{ background:var(--ec-red); color:#fff; font-size:.6rem; padding:1px 6px; border-radius:6px; }
.install-cta-row{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }

/* Tabs / content */
.app-tabs{ position:sticky; top:var(--header-h); z-index:20; background:var(--bg); border-bottom:1px solid var(--border); }
.app-tabs .tabnav{ display:flex; gap:6px; overflow-x:auto; }
.app-tabs .tabnav a{ padding:16px 14px; font-weight:700; font-size:.9rem; color:var(--muted); border-bottom:2px solid transparent; white-space:nowrap; }
.app-tabs .tabnav a.is-active, .app-tabs .tabnav a:hover{ color:var(--ec-red); border-color:var(--ec-red); }
.app-section{ padding:40px 0; border-bottom:1px solid var(--border); }
.app-section:last-child{ border-bottom:0; }
.app-section h2{ font-size:1.25rem; }
.long-desc{ max-width:76ch; }
.long-desc p{ color:var(--text); }

/* Screenshots gallery */
.shots-scroller{ display:flex; gap:14px; overflow-x:auto; scrollbar-width:none; }
.shots-scroller::-webkit-scrollbar{ display:none; }
.shots-scroller img{ height:420px; width:auto; border-radius:var(--r-md); border:1px solid var(--border); flex-shrink:0; cursor:zoom-in; }
@media (max-width:640px){ .shots-scroller img{ height:300px; } }

/* Permissions */
.perm-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px; }
.perm-list li{ display:flex; gap:10px; align-items:flex-start; font-size:.86rem; color:var(--muted); background:var(--surface); border:1px solid var(--border); border-radius:var(--r-sm); padding:12px; }

/* Rating breakdown */
.rating-breakdown{ display:grid; grid-template-columns:220px 1fr; gap:40px; align-items:center; }
.rb-score{ text-align:center; }
.rb-score .num{ font-family:var(--ff-display); font-size:3.4rem; }
.rb-bars{ display:flex; flex-direction:column; gap:8px; }
.rb-row{ display:flex; align-items:center; gap:10px; font-size:.8rem; color:var(--muted); }
.rb-row .bar{ flex:1; height:8px; border-radius:99px; background:var(--surface-2); overflow:hidden; }
.rb-row .bar span{ display:block; height:100%; background:var(--ec-grad); border-radius:99px; }

/* Reviews */
.review{ padding:20px 0; border-bottom:1px solid var(--border); }
.review-head{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.avatar-fallback{ width:38px; height:38px; border-radius:50%; background:var(--ec-grad); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem; }
.review-author{ font-weight:700; font-size:.9rem; }
.review-date{ font-size:.76rem; color:var(--muted); }
.review-stars{ display:flex; gap:2px; margin:4px 0 8px; }
.review-stars svg{ width:14px; height:14px; fill:var(--surface-2); }
.review-stars svg.filled{ fill:var(--ec-gold); }
.helpful-btn{ font-size:.78rem; font-weight:700; color:var(--muted); display:inline-flex; gap:6px; align-items:center; background:var(--surface-2); border-radius:var(--r-pill); padding:6px 12px; border:0; margin-top:8px; }
.helpful-btn.voted{ color:var(--ec-red); }

/* Review / rating form */
.rating-input{ display:flex; gap:6px; }
.rating-input input{ display:none; }
.rating-input label{ font-size:1.7rem; color:var(--surface-2); cursor:pointer; }
.rating-input label:hover, .rating-input label:hover ~ label{ filter:none; }
.rating-input:hover label{ color:var(--surface-2); }
.rating-input input:checked ~ label{ color:var(--ec-gold); }
.rating-input label:hover, .rating-input label:hover ~ label{ color:var(--ec-gold); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea, .form-control{
  width:100%; padding:12px 16px; border-radius:var(--r-sm); border:1.5px solid var(--border); background:var(--surface); color:var(--text); font-family:inherit; font-size:.92rem;
}
.comment-form p{ margin-bottom:14px; }
.login-cta{ background:var(--surface-2); border-radius:var(--r-md); padding:22px; text-align:center; }

/* Feedback box */
.feedback-box{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:26px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }

/* Related */
.dev-strip{ display:flex; align-items:center; gap:14px; background:var(--surface-2); border-radius:var(--r-md); padding:16px 20px; margin-bottom:20px; }

/* ---------- Archive / Filters ---------- */
.archive-layout{ display:grid; grid-template-columns:260px 1fr; gap:32px; align-items:flex-start; }
.filter-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:20px; position:sticky; top:calc(var(--header-h) + 20px); }
.filter-card h4{ font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin-bottom:12px; }
.filter-group{ margin-bottom:22px; }
.filter-check{ display:flex; align-items:center; gap:8px; font-size:.87rem; padding:6px 0; color:var(--muted); }
.filter-check input{ accent-color:var(--ec-red); }
.toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; gap:12px; flex-wrap:wrap; }
.toolbar select{ padding:9px 14px; border-radius:var(--r-pill); border:1.5px solid var(--border); background:var(--surface); color:var(--text); font-weight:600; font-size:.85rem; }
@media (max-width:900px){ .archive-layout{ grid-template-columns:1fr; } .filter-card{ position:static; } }

.pagination{ display:flex; gap:8px; justify-content:center; margin-top:36px; }
.pagination a, .pagination span{ width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--surface); border:1px solid var(--border); font-weight:700; font-size:.85rem; }
.pagination .current{ background:var(--ec-grad); color:#fff; border-color:transparent; }

/* Why us */
.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.why-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:24px; }
.why-card .ico{ width:46px; height:46px; border-radius:14px; background:var(--ec-grad-soft); color:var(--ec-red); display:flex; align-items:center; justify-content:center; font-size:1.3rem; margin-bottom:14px; }
.why-card h3{ font-size:1.02rem; margin-bottom:6px; }
.why-card p{ font-size:.87rem; margin:0; }

/* CTA band */
.cta-band{ background:var(--ec-grad); border-radius:var(--r-lg); padding:52px 40px; text-align:center; color:#fff; position:relative; overflow:hidden; }
.cta-band h2{ color:#fff; font-size:1.9rem; }
.cta-band p{ color:rgba(255,255,255,.85); max-width:52ch; margin:0 auto 26px; }
.cta-band .btn-primary{ background:#fff; color:var(--ec-red); box-shadow:none; }
.cta-band .btn-outline{ border-color:rgba(255,255,255,.5); color:#fff; }

/* 404 */
.error-404{ text-align:center; padding:100px 0; }
.error-404 .code{ font-family:var(--ff-display); font-size:6rem; background:var(--ec-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--surface); border-top:1px solid var(--border); margin-top:40px; padding:56px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
.footer-grid h4{ font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom:14px; color:var(--muted); }
.footer-grid ul li{ margin-bottom:9px; }
.footer-grid a{ font-size:.88rem; color:var(--text); }
.footer-grid a:hover{ color:var(--ec-red); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid var(--border); font-size:.8rem; color:var(--muted); flex-wrap:wrap; gap:12px; }
.social-row{ display:flex; gap:10px; }
.back-to-top{ position:fixed; bottom:24px; right:24px; z-index:50; opacity:0; pointer-events:none; transition:opacity .2s; }
.back-to-top.show{ opacity:1; pointer-events:auto; }

/* Screenshot lightbox */
.lightbox{ position:fixed; inset:0; background:rgba(6,6,10,.92); z-index:200; display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .2s; }
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox img{ max-height:88vh; max-width:90vw; border-radius:var(--r-md); }
.lightbox .close{ position:absolute; top:24px; right:24px; color:#fff; }

/* Responsive */
@media (max-width:900px){
  .primary-nav{ display:none; }
  .mobile-nav-toggle{ display:flex; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:1fr; }
  .app-hero-grid{ grid-template-columns:84px 1fr; }
  .app-hero .app-icon{ width:84px; height:84px; border-radius:22px; font-size:2rem; }
  .app-hero-grid .install-panel-cell{ grid-column:1/-1; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .rating-breakdown{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
}

/* Mobile drawer nav */
.mobile-drawer{ position:fixed; inset:0; z-index:120; visibility:hidden; }
.mobile-drawer.is-open{ visibility:visible; }
.mobile-drawer .scrim{ position:absolute; inset:0; background:rgba(0,0,0,.5); opacity:0; transition:opacity .2s; }
.mobile-drawer.is-open .scrim{ opacity:1; }
.mobile-drawer .panel{ position:absolute; top:0; right:0; height:100%; width:82%; max-width:320px; background:var(--surface); padding:24px; transform:translateX(100%); transition:transform .25s ease; overflow-y:auto; }
.mobile-drawer.is-open .panel{ transform:translateX(0); }
.mobile-drawer ul li a{ display:block; padding:12px 4px; font-weight:700; border-bottom:1px solid var(--border); }
