/* ============================================================
   solvtech Downloads — shared styles
   Teal/green Material-style theme, RTL-aware via logical properties
   ============================================================ */

:root {
  /* Orange ramp — replaces the previous teal brand system
     (2026-07-19 premium rebrand; see WEBSITE_DESIGN_BRIEF.md) */
  --orange-50:  #fff2e8;
  --orange-100: #ffdcc0;
  --orange-200: #ffbd8a;
  --orange-300: #ff9d54;
  --orange-400: #ff8329;
  --orange-500: #ff6a00;
  --orange-600: #e65f00;
  --orange-700: #cc5500;
  --orange-800: #a34400;
  --orange-900: #7a3300;

  --color-primary: var(--orange-500);
  --color-primary-dark: var(--orange-700);
  --color-primary-light: var(--orange-50);
  --color-accent: var(--orange-500);

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #f6f6f6;
  --color-text: #111111;
  --color-text-muted: #5b5b5b;
  --color-border: #e7e7e7;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05), 0 1px 3px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 4px 12px rgba(17, 17, 17, 0.07), 0 2px 4px rgba(17, 17, 17, 0.05);
  --shadow-lg: 0 20px 40px rgba(17, 17, 17, 0.12), 0 6px 14px rgba(17, 17, 17, 0.07);
  --shadow-glow: 0 12px 32px rgba(255, 106, 0, 0.22);

  --radius-card: 20px;
  --radius-field: 12px;
  --radius-pill: 999px;

  --font-en: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Tahoma", "Segoe UI", "Noto Kufi Arabic", Roboto, sans-serif;

  --max-width: 1180px;
}

/* Dark tokens are applied two ways so the manual toggle and the OS
   preference never fight each other:
   1. `@media (prefers-color-scheme: dark)` — the original behavior,
      still applies automatically when the visitor hasn't chosen a
      theme explicitly (:root has no [data-theme] attribute yet).
   2. `:root[data-theme="dark"]` — set by js/theme.js when the visitor
      clicks the header dark-mode toggle; persisted in localStorage so
      it survives a reload. `:root[data-theme="light"]` (also set by
      the same toggle) explicitly opts back out of the OS preference. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0e0e0e;
    --color-surface: #171717;
    --color-surface-alt: #1e1e1e;
    --color-text: #f5f5f5;
    --color-text-muted: #a8a8a8;
    --color-border: #2c2c2c;
    --color-primary: var(--orange-400);
    --color-primary-dark: var(--orange-300);
    --color-primary-light: #3a2412;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 12px 32px rgba(255, 131, 41, 0.25);
  }
}

:root[data-theme="dark"] {
  --color-bg: #0e0e0e;
  --color-surface: #171717;
  --color-surface-alt: #1e1e1e;
  --color-text: #f5f5f5;
  --color-text-muted: #a8a8a8;
  --color-border: #2c2c2c;
  --color-primary: var(--orange-400);
  --color-primary-dark: var(--orange-300);
  --color-primary-light: #3a2412;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 12px 32px rgba(255, 131, 41, 0.25);
}

/* Smooth, no-flash theme swap on toggle — applied narrowly (not `*`) so
   it doesn't fight the existing reduced-motion / entrance-animation rules
   further down this file. */
body, .site-header, .app-card, .pillar-card, .faq-item, .callout-card,
.device-chip, .download-meta-card, .comparison-table, .doc-frame,
.screenshot-frame-card button.screenshot-frame {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-en);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body,
[dir="rtl"] body {
  font-family: var(--font-ar);
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary-dark); }

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

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-800));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.brand__logo svg { width: 20px; height: 20px; }

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.lang-toggle:hover { background: var(--color-primary-light); }
.lang-toggle:active { transform: scale(0.97); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.theme-toggle:hover { background: var(--color-primary-light); }
.theme-toggle:active { transform: scale(0.93); }
.theme-toggle svg { width: 18px; height: 18px; }

/* Swap which icon is visible based on the CURRENT theme (not which one
   you'd switch to) — sun shows in light mode (tap to go dark), moon
   shows in dark mode (tap to go light). Driven by data-theme on <html>,
   same attribute js/theme.js already sets for the CSS variable swap. */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: inline-flex; }
}

/* ---------------- Hero ---------------- */

.hero {
  padding-block: 48px 32px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.hero p {
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* ---------------- App grid / cards ---------------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-block: 8px 56px;
}

.app-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.app-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.app-card__icon img { width: 100%; height: 100%; object-fit: cover; }

.app-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.app-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.app-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-field);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover { background: var(--color-primary-light); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------------- Detail page ---------------- */

.detail-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-block: 40px 24px;
  flex-wrap: wrap;
}

.detail-hero__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.detail-hero__icon img { width: 100%; height: 100%; object-fit: cover; }

.detail-hero__meta { flex: 1; min-width: 240px; }

.detail-hero__meta h1 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--color-primary-dark);
}

.detail-hero__tagline {
  color: var(--color-text-muted);
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

section.detail-section {
  padding-block: 20px;
  border-top: 1px solid var(--color-border);
}

section.detail-section h2 {
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  margin-top: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-field);
  padding: 12px 14px;
  font-size: 0.92rem;
}

.feature-list li svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.screenshot-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-block: 6px 10px;
  scroll-snap-type: x proximity;
}

.screenshot-frame {
  flex: 0 0 auto;
  width: 190px;
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
  border: 6px solid var(--color-surface);
  outline: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--color-surface-alt);
}

.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; }

.install-note {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-field);
  padding: 16px 18px;
  font-size: 0.92rem;
}

.install-note h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--color-primary-dark);
}

.install-note ol { margin: 0; padding-inline-start: 20px; }
.install-note li { margin-bottom: 6px; }

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding-block: 32px;
}

.download-cta .version-tag {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 28px;
  margin-top: 40px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.site-footer a { color: var(--color-primary-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------------- WhatsApp floating button ---------------- */

.whatsapp-fab {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}

.whatsapp-fab:hover { transform: translateY(-2px); }
.whatsapp-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.whatsapp-fab__label { display: none; }

@media (min-width: 640px) {
  .whatsapp-fab__label { display: inline; }
}

/* ---------------- Breadcrumb / back link ---------------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block: 18px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.back-link svg { width: 16px; height: 16px; }
[dir="rtl"] .back-link svg { transform: scaleX(-1); }

/* ---------------- Utility ---------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .detail-hero { flex-direction: column; align-items: center; text-align: center; }
  .badge-row { justify-content: center; }
}

/* ============================================================
   Premium landing/product sections (2026-07-18 commercial pass)
   ============================================================ */

.section { padding-block: 44px; }
.section + .section { border-top: 1px solid var(--color-border); }

.section-head { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: 32px; }
.section-head--left { text-align: start; margin-inline: 0; }

.section-eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0;
}

/* ---------------- Hero v2 ---------------- */

.hero-v2 {
  padding-block: 56px 36px;
  text-align: center;
}

.hero-v2__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.hero-v2 h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 16px;
  line-height: 1.15;
}

.hero-v2__sub {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 28px;
}

.hero-v2__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* ---------------- Trust bar ---------------- */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
  margin-top: 28px;
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: var(--radius-field);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

.trust-bar__item svg { width: 22px; height: 22px; color: var(--color-primary); }

/* ---------------- Comparison table ("Why SolvTechATT?") ---------------- */

.comparison-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--color-surface);
}

.comparison-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: start;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table thead th {
  background: var(--color-surface-alt);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison-table tbody tr:last-child td { border-bottom: none; }

.comparison-table td.col-old { color: var(--color-text-muted); }

.comparison-table td.col-new {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.comparison-table .x-mark { color: #c0392b; margin-inline-end: 6px; }
.comparison-table .check-mark { color: var(--orange-600); margin-inline-end: 6px; }

@media (prefers-color-scheme: dark) {
  .comparison-table .x-mark { color: #e57373; }
}

/* ---------------- Feature pillars ---------------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.pillar-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pillar-card__icon svg { width: 24px; height: 24px; }

.pillar-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--color-text); }
.pillar-card p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------------- Screenshot gallery (data-driven) ---------------- */

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}

.screenshot-frame-card {
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.screenshot-frame-card .new-badge {
  position: absolute;
  top: -6px;
  inset-inline-end: calc(50% - 78px);
  z-index: 2;
}

.screenshot-frame-card button.screenshot-frame {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 9 / 20;
  border-radius: 22px;
  border: 6px solid var(--color-surface);
  outline: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--color-surface-alt);
  padding: 0;
  cursor: pointer;
  position: relative;
  display: block;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.screenshot-frame-card button.screenshot-frame:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.screenshot-frame__notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  z-index: 1;
}

.screenshot-frame-card img { width: 100%; height: 100%; object-fit: cover; }

.screenshot-frame-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.screenshot-frame-card figcaption strong { font-size: 0.92rem; color: var(--color-text); }
.screenshot-frame-card figcaption span { font-size: 0.8rem; color: var(--color-text-muted); }

.new-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: #2a1e00;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* ---------------- Document (PDF/Excel) preview gallery ---------------- */

.doc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.doc-frame-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }

.doc-frame {
  width: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  outline: 1px solid var(--color-border);
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.doc-frame:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.doc-frame--pdf { aspect-ratio: 210 / 297; max-width: 220px; margin-inline: auto; }
.doc-frame--excel { aspect-ratio: 297 / 210; max-width: 320px; margin-inline: auto; }

.doc-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }

.doc-frame-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.doc-frame-card figcaption strong { font-size: 0.92rem; color: var(--color-text); }
.doc-frame-card figcaption span { font-size: 0.8rem; color: var(--color-text-muted); max-width: 280px; }

/* ---------------- Lightbox ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 18, 0.78);
  padding: 32px;
}

.lightbox.is-open { display: flex; }

.lightbox__inner {
  position: relative;
  max-width: min(90vw, 640px);
  max-height: 86vh;
}

.lightbox__inner img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.lightbox__close {
  position: absolute;
  top: -14px;
  inset-inline-end: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.lightbox__close svg { width: 16px; height: 16px; }

/* ---------------- Supported devices ---------------- */

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.device-chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-field);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.device-chip__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.device-chip__icon svg { width: 20px; height: 20px; }
.device-chip h4 { margin: 0 0 4px; font-size: 0.95rem; }
.device-chip p { margin: 0; font-size: 0.84rem; color: var(--color-text-muted); }

/* ---------------- Download meta card ---------------- */

.download-meta-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 28px;
  max-width: 640px;
  margin-inline: auto;
}

.download-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-block: 20px 24px;
}

.download-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.download-meta-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-weight: 700;
}

.download-meta-item .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  word-break: break-all;
}

.download-meta-item .value code {
  font-size: 0.78rem;
  font-family: "Cascadia Code", Consolas, monospace;
  word-break: break-all;
  background: var(--color-surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

.release-notes {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 4px;
}

.release-notes h4 { margin: 0 0 10px; font-size: 0.9rem; color: var(--color-primary-dark); }
.release-notes ul { margin: 0; padding-inline-start: 20px; font-size: 0.88rem; color: var(--color-text-muted); }
.release-notes li { margin-bottom: 5px; }

/* ---------------- FAQ ---------------- */

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-inline: auto; }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-field);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------------- CTA banner ---------------- */

.cta-banner {
  background: linear-gradient(135deg, var(--orange-700), var(--orange-900));
  border-radius: var(--radius-card);
  padding: 40px 28px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.cta-banner p { margin: 0 0 22px; color: rgba(255,255,255,0.85); max-width: 520px; margin-inline: auto; }
.cta-banner .btn-primary { background: #fff; color: var(--color-primary-dark); }
.cta-banner .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* ---------------- Security / offline callouts ---------------- */

.callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.callout-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-field);
  padding: 18px 20px;
}

.callout-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: var(--color-primary-dark);
}

.callout-card h4 svg { width: 18px; height: 18px; color: var(--color-primary); }
.callout-card p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); }

/* ---------------- Skip link ---------------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 300;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; }

@media (max-width: 560px) {
  .section-head { text-align: center; }
  .hero-v2__ctas { flex-direction: column; align-items: stretch; }
}

/* ---------------- Subtle entrance animations ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-v2, .section, .cta-banner {
    animation: fade-slide-up 0.5s ease both;
  }
  .pillar-card, .screenshot-frame-card, .doc-frame-card, .device-chip, .faq-item, .trust-bar__item {
    animation: fade-slide-up 0.45s ease both;
  }
  .pillar-card:nth-child(2), .screenshot-frame-card:nth-child(2), .doc-frame-card:nth-child(2), .device-chip:nth-child(2) { animation-delay: 0.04s; }
  .pillar-card:nth-child(3), .screenshot-frame-card:nth-child(3), .doc-frame-card:nth-child(3), .device-chip:nth-child(3) { animation-delay: 0.08s; }
  .pillar-card:nth-child(4), .screenshot-frame-card:nth-child(4), .device-chip:nth-child(4) { animation-delay: 0.12s; }
  .pillar-card:nth-child(5), .screenshot-frame-card:nth-child(5), .device-chip:nth-child(5) { animation-delay: 0.16s; }
  .pillar-card:nth-child(6), .screenshot-frame-card:nth-child(6), .device-chip:nth-child(6) { animation-delay: 0.2s; }
  .screenshot-frame-card:nth-child(7) { animation-delay: 0.24s; }

  .lightbox__inner { animation: fade-scale-in 0.18s ease both; }
}

@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   Skeleton-loading shimmer for the screenshot/report galleries
   (js/gallery.js adds/removes .is-loading per-frame as each image's
   own load event fires) — a real loading-state affordance, not a
   simulated delay: on a fast connection it's invisible, on a slow one
   the shimmer covers the actual network wait instead of a blank frame.
   ============================================================ */

.screenshot-frame-card button.screenshot-frame.is-loading,
.doc-frame.is-loading {
  background: linear-gradient(100deg, var(--color-surface-alt) 30%, var(--color-border) 50%, var(--color-surface-alt) 70%);
  background-size: 220% 100%;
  animation: shimmer-loading 1.4s ease-in-out infinite;
}

.screenshot-frame-card button.screenshot-frame.is-loading img,
.doc-frame.is-loading img {
  opacity: 0;
}

@keyframes shimmer-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-frame-card button.screenshot-frame.is-loading,
  .doc-frame.is-loading {
    animation: none;
    background: var(--color-surface-alt);
  }
}

/* ============================================================
   2026-07-19 premium enterprise redesign — hero device mockups,
   platforms, product-store cards, services bento, process timeline,
   contact section. Additive: everything above still backs the
   product-detail page (zk-attend.html) unchanged.
   ============================================================ */

.hero-premium {
  padding-block: 64px 40px;
  text-align: center;
  overflow: hidden;
}

.hero-premium__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-premium h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 18px;
  line-height: 1.08;
}

.hero-premium h1 .accent { color: var(--color-primary); }

.hero-premium__sub {
  color: var(--color-text-muted);
  font-size: 1.18rem;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Immediate download access, above the fold — see index.html's comment on
   this block. Sits between the hero subheading and the secondary
   Learn-More/Start-a-Project row so a visitor never has to scroll past
   marketing copy to get the app. */
.hero-downloads {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-premium__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Floating device mockup composition */
/* 2026-07-24: dropped the laptop/tablet mockups — there's no real Windows
   desktop or tablet screenshot yet, so those slots were rendering the old
   plain placeholder SVGs as bare beige rectangles (looked like a missing
   image, not "coming soon"). Two real phone screenshots, shown at a
   readable size, is more honest and looks more finished than mixing real
   content with unmistakably-fake filler. Re-add a laptop mock here once a
   real Windows screenshot exists. */
/* Sized by HEIGHT (not width) below — the phone frames are 9:19.5, so
   sizing them as a % of the container's WIDTH (the previous approach)
   produced a rendered height far taller than the container's own
   declared height, and since absolutely-positioned children aren't
   clipped by their parent's height, the frames visually bled upward into
   the buttons above and downward into the feature cards below. Height-
   based sizing (aspect-ratio computes width automatically) guarantees
   both frames always fit inside .device-stage's own box. */
.device-stage {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  height: clamp(380px, 50vw, 480px);
}

.device-stage__glow {
  position: absolute;
  inset: 6% 12%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, 0.28), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.device-mock {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  will-change: transform;
}

.device-mock img { width: 100%; height: 100%; object-fit: cover; display: block; }

.device-mock--phone-android {
  height: 88%;
  width: auto;
  aspect-ratio: 9 / 19.5;
  inset-inline-start: 6%;
  top: 4%;
  border-radius: 24px;
  border-width: 7px;
  z-index: 2;
  animation: float-c 6.5s ease-in-out infinite;
}

.device-mock--phone-ios {
  height: 88%;
  width: auto;
  aspect-ratio: 9 / 19.5;
  inset-inline-end: 6%;
  bottom: 4%;
  border-radius: 24px;
  border-width: 7px;
  z-index: 1;
  animation: float-a 7.5s ease-in-out infinite reverse;
}

@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-c { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-1deg); } }

@media (max-width: 640px) {
  /* The two-phone diagonal overlap composition reads as messy/broken at
     phone width (frames too small to read, awkward gaps) — show just one
     phone, large and centered, instead. */
  .device-stage { height: 400px; max-width: 240px; }
  .device-mock--phone-ios { display: none; }
  .device-mock--phone-android {
    height: 100%;
    inset-inline-start: 50%;
    top: 0;
    transform: translateX(-50%);
  }
  [dir="rtl"] .device-mock--phone-android { transform: translateX(50%); }
}

/* ---------------- Platform cards ---------------- */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.platform-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.platform-card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
  border-color: var(--orange-200);
}

.platform-card__icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-card__icon svg { width: 28px; height: 28px; }
.platform-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.platform-card p { margin: 0 0 10px; font-size: 0.86rem; color: var(--color-text-muted); }

.platform-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.platform-card__status--live { background: #e8f7ee; color: #1a7a3d; }
.platform-card__status--soon { background: var(--color-surface-alt); color: var(--color-text-muted); }
@media (prefers-color-scheme: dark) {
  .platform-card__status--live { background: #163a24; color: #6fd894; }
}
:root[data-theme="dark"] .platform-card__status--live { background: #163a24; color: #6fd894; }

/* ---------------- Product store grid ---------------- */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Single real product today — center it instead of stretching one card
   across a grid sized for many. */
.store-grid--single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.store-card--live:hover {
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  transform: translateY(-6px);
}

.store-card--soon {
  opacity: 0.72;
}

.store-card__media {
  aspect-ratio: 16 / 10;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.store-card__media img { width: 100%; height: 100%; object-fit: cover; }

.store-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.store-card__title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-card__title-row h3 { margin: 0; font-size: 1.15rem; }

.store-card__desc { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; flex: 1; }

.store-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.pill-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

.pill-tag--soon { background: var(--color-surface-alt); color: var(--color-text-muted); }

/* ---------------- Services bento grid ---------------- */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 16px;
}

.bento-item {
  grid-column: span 2;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bento-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.bento-item--wide { grid-column: span 4; flex-direction: row; align-items: center; justify-content: space-between; }
.bento-item--tall { grid-row: span 2; }

.bento-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-item__icon svg { width: 20px; height: 20px; }
.bento-item h3 { margin: 0; font-size: 1rem; }
.bento-item p { margin: 0; font-size: 0.82rem; color: var(--color-text-muted); }

@media (max-width: 760px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento-item { grid-column: span 1 !important; grid-row: auto !important; flex-direction: column !important; align-items: flex-start !important; padding: 18px; }
}

/* ---------------- Process timeline ---------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  inset-inline: 6%;
  height: 2px;
  background: var(--color-border);
}

.timeline-step {
  position: relative;
  text-align: center;
  padding-top: 0;
  z-index: 1;
}

.timeline-step__dot {
  width: 44px;
  height: 44px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.timeline-step h4 { margin: 0 0 6px; font-size: 0.94rem; }
.timeline-step p { margin: 0; font-size: 0.8rem; color: var(--color-text-muted); padding-inline: 6px; }

@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline::before { inset-inline-start: 22px; inset-inline-end: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline-step { text-align: start; padding-inline-start: 60px; }
  .timeline-step__dot { position: absolute; inset-inline-start: 0; margin: 0; }
}

/* ---------------- Why choose us (qualitative chips, no fabricated stats) ---------------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.value-card {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius-card);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}

.value-card__icon {
  width: 46px;
  height: 46px;
  margin-inline: auto;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.value-card__icon svg { width: 24px; height: 24px; }
.value-card h4 { margin: 0 0 6px; font-size: 0.98rem; }
.value-card p { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------------- Contact section ---------------- */

.contact-banner {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-800));
  border-radius: var(--radius-card);
  padding: 52px 28px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-banner::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(255,255,255,0.16), transparent 70%);
}

.contact-banner h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3.6vw, 2.2rem); position: relative; }
.contact-banner p { margin: 0 0 28px; color: rgba(255,255,255,0.88); max-width: 520px; margin-inline: auto; position: relative; }

.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.contact-banner .btn-primary { background: #fff; color: var(--orange-700); }
.contact-banner .btn-primary:hover { background: rgba(255,255,255,0.92); }
.contact-banner .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.contact-banner .btn-outline:hover { background: rgba(255,255,255,0.14); }

/* ---------------- Footer (multi-column) ---------------- */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.footer-grid h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--color-text); text-decoration: none; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--color-primary); }

.footer-bottom { text-align: center; }

/* ---------------- Scroll-reveal (progressive enhancement over the
   existing on-load CSS entrance animations; see js/reveal.js) ---------------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
