/* ═══════════════════════════════════════════════════════════════════════
   PrimeCafe — landing page styles
   Dark theme matching the desktop/mobile apps (#0f0f1a base, indigo accent).
   No framework: vanilla CSS + custom properties + grid/flexbox.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── PrimeCafe / ScrjamSoft brand font — IBM Plex Sans Arabic ───────────
   The same family the desktop app harmonises on (PRIMARY_FAMILY). One file
   covers Arabic + Latin. Self-hosted woff2 (no third-party request). */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg:           #0f0f1a;
  --surface:      #1a1a2e;
  --surface-alt:  #14142a;
  --border:       #2a2a3e;
  --border-light: #3a3a52;
  --text:         #ffffff;
  --text-muted:   #94a3b8;
  --text-dim:     #64748b;
  --primary:      #0c8f6b;
  --primary-hover:#14b487;
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --accent:       #097656;
  --accent-rgb:   20, 180, 135;
  --orange:       #f97316;

  --radius-sm:  8px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 8px 28px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 50px rgba(0,0,0,0.6);

  --max-width: 1140px;
}

/* ── Light theme — opt-in only; dark remains the default ────────────────
   Activated by html[data-theme="light"] (set from localStorage by main.js
   and a tiny inline <head> script to avoid a flash). Redefines the same
   semantic variables, so every component re-themes with zero per-rule work. */
html[data-theme="light"] {
  --bg:           #ffffff;
  --surface:      #ffffff;
  --surface-alt:  #f1f5f9;
  --border:       #e2e8f0;
  --border-light: #cbd5e1;
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-dim:     #64748b;
  --primary-hover:#0a7656;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.08);
  --shadow:    0 8px 28px rgba(15,23,42,0.12);
  --shadow-lg: 0 16px 50px rgba(15,23,42,0.16);
}
/* The hero title uses a white→grey gradient clipped to text; invert it on
   light so the heading stays legible. */
html[data-theme="light"] .hero h1 {
  background: linear-gradient(180deg, #0f172a, #475569);
}
/* The sticky header has a hardcoded translucent-dark background; lighten it
   for the light theme so the dark nav text stays readable. */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.85);
}

/* ── PrimeCafe product page — its own purple world (icon #A695FF) ───────
   Scoped to body.product-primecafe so the rest of the site stays green.
   The publisher CTA in the header is re-greened to match other pages. */
body.product-primecafe {
  --primary:       #6f5cf0;
  --primary-hover: #9b8bf7;
  --accent:        #5847d6;
  --accent-rgb:    166, 149, 255;
}
html[data-theme="light"] body.product-primecafe {
  --primary-hover: #5847d6;
}
body.product-primecafe .nav-cta { background: #0c8f6b; }
body.product-primecafe .nav-cta:hover { background: #14b487; }
body.product-primecafe .breadcrumb span:last-child { color: var(--primary-hover); }

/* ── Reset / base ──────────────────────────────────────────────────── */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", "Cairo", "Noto Sans Arabic",
               -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* RTL adjustments — applied automatically when <html dir="rtl"> */
html[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Cairo", "Noto Sans Arabic", "Segoe UI", sans-serif; }

/* Language toggle — declarative side. The JS in main.js sets the
   correct `lang` on <html>, then this rule hides the wrong-language
   spans. Doing it via CSS instead of JS attribute manipulation makes
   the page look right immediately on first paint (no FOUC) and also
   handles the no-JS case gracefully: by default we render the Arabic
   text (matching `<html lang="ar">` in index.html). */
html[lang="ar"] [data-lang="en"] { display: none; }
html[lang="en"] [data-lang="ar"] { display: none; }

a { color: var(--primary-hover); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text); }

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

h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; }

p { color: var(--text-muted); }

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

.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }

/* ── Header / nav ──────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.lang-toggle {
  font-size: 0.85rem;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--primary); }

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(closest-side,
    rgba(var(--accent-rgb),0.15),
    transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary-hover);
  background: rgba(var(--accent-rgb),0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-weight: 600;
  border: 1px solid rgba(var(--accent-rgb),0.25);
}

.hero h1 {
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff, #aab);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sections ─────────────────────────────────────────────────────── */

section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header p {
  max-width: 560px;
  margin: 12px auto 0;
}

/* ── Features grid ───────────────────────────────────────────────── */

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s;
}
.feature:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: rgba(var(--accent-rgb),0.12);
}

.feature h3 { margin-bottom: 6px; }
.feature p  { font-size: 0.95rem; }

/* ── Wallet spotlight ────────────────────────────────────────────── */

.wallet-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 40px;
}

.wallet-step {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}
.wallet-step:hover { border-color: var(--primary); transform: translateY(-2px); }

.wallet-step-num {
  position: absolute;
  top: -14px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}
html[dir="rtl"] .wallet-step-num { transform: translateX(50%); }

.wallet-step-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1;
}

.wallet-step h3 { margin-bottom: 8px; }
.wallet-step p  { font-size: 0.92rem; }

.wallet-arrow {
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.5;
  font-weight: 300;
}
html[dir="rtl"] .wallet-arrow { transform: scaleX(-1); }  /* flip → into ← */

/* Concrete-example panel — looks like a mini receipt to make the math
   land. Monospace amounts so columns align cleanly. */
.wallet-example {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.wallet-example-label {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wallet-example-body { padding: 24px; }

.wallet-balance {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
}
.wallet-balance-label { color: var(--text-muted); font-size: 0.9rem; }
.wallet-balance-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--success);
  font-family: "Consolas", "SF Mono", monospace;
}

.wallet-events {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wallet-events li {
  display: grid;
  grid-template-columns: 60px 1fr 90px 90px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.wallet-events li:last-child { border-bottom: none; }

.we-time {
  color: var(--text-dim);
  font-family: "Consolas", monospace;
  font-size: 0.85rem;
}
.we-desc { color: var(--text-muted); }
.we-amt {
  text-align: end;
  font-family: "Consolas", monospace;
  font-weight: 600;
}
.amt-neg { color: var(--warning); }
.we-bal {
  text-align: end;
  font-family: "Consolas", monospace;
  font-weight: 700;
  color: var(--text);
}

.wallet-example-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Stack the wallet flow on narrow screens — arrows turn into dividers */
@media (max-width: 880px) {
  .wallet-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .wallet-arrow {
    transform: rotate(90deg);
    height: 24px;
  }
  html[dir="rtl"] .wallet-arrow { transform: rotate(90deg); }
  .wallet-events li {
    grid-template-columns: 50px 1fr 80px;
  }
  .we-bal { display: none; }  /* keep the math focused on the deduction */
}

/* ── Pricing ─────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
}
.tier:hover { border-color: var(--primary); }

.tier-featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(var(--accent-rgb),0.08), var(--surface));
  transform: scale(1.02);
}
.tier-featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
}
html[dir="rtl"] .tier-featured::before {
  content: "الأكثر طلباً";
  letter-spacing: 0;
}

.tier-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
}

.tier-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tier-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 2.6em;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.tier-price-num {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.tier-price-unit { font-size: 0.9rem; color: var(--text-muted); }
.tier-price-note { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 22px; }

.tier-features {
  list-style: none;
  margin: 0 0 24px;
  flex-grow: 1;
}
.tier-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}
.tier-features li.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.5;
}
.tier-features li.disabled::before { content: "✕"; color: var(--text-dim); }

.tier .btn { width: 100%; }

.addon-note {
  text-align: center;
  margin-top: 32px;
  padding: 16px;
  background: var(--surface-alt);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── FAQ ─────────────────────────────────────────────────────────── */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq:hover { border-color: var(--border-light); }
.faq[open]  { border-color: var(--primary); }

.faq summary {
  list-style: none;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: rotate(45deg); }

.faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Footer ──────────────────────────────────────────────────────── */

/* ── Trial signup ──────────────────────────────────────────────────── */
.trial-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 28px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.trial-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  padding: 14px 16px;
  font-family: inherit;
}
.trial-form input[type="email"]::placeholder { color: var(--text-dim); }
.trial-form input[type="email"]:focus { outline: none; border-color: var(--primary); }
.trial-form .btn { flex: 0 0 auto; }
.trial-status {
  max-width: 560px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.trial-status.ok   { color: var(--success); }
.trial-status.err  { color: var(--danger); }
.trial-status.busy { color: var(--text-muted); }
.trial-key {
  display: inline-block;
  margin-top: 6px;
  font-family: "Courier New", monospace;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: var(--text);
  background: var(--surface);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  user-select: all;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 60px;
  margin-top: 60px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.copyright {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { padding: 14px 18px; }
  .hero { padding: 60px 0 70px; }
  section { padding: 56px 0; }
  .tier-featured { transform: none; }
  .container { padding: 0 18px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ScrjamSoft publisher shell — added for the multi-page site
   (home = publisher, /primecafe = product, /support, /legal/*).
   Reuses the tokens above; only new components live here.
   ═══════════════════════════════════════════════════════════════════════ */

/* Nav: secondary "ghost" CTA + active link state for multi-page nav */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-links a.active { color: var(--text); }
.nav-cta {
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.nav-cta:hover { background: var(--primary-hover); color: #fff; }

/* ── Publisher hero (home) ─────────────────────────────────────────── */
.hero-publisher h1 { max-width: 16ch; margin-inline: auto; }
.hero-meta {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.hero-meta b { color: var(--text); font-weight: 700; }

/* ── Products grid (home) ──────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.product-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }

.product-card.coming-soon { opacity: 0.62; }
.product-card.coming-soon:hover { transform: none; border-color: var(--border-light); box-shadow: none; }

.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
}
.product-logo.soon { background: linear-gradient(135deg, var(--border-light), var(--border)); }
.product-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: contain;
}
.product-hero-icon {
  width: 88px; height: 88px;
  border-radius: 20px;
  margin: 0 auto 22px;
  box-shadow: var(--shadow);
}
.product-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.product-kicker { font-size: 0.82rem; color: var(--text-dim); }

.product-card > p { font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }

.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag {
  font-size: 0.78rem;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb),0.1);
  color: var(--primary-hover);
  border: 1px solid rgba(var(--accent-rgb),0.22);
}

.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-soon {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
  border: 1px dashed var(--border-light);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ── "Why ScrjamSoft" value cards ──────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.value {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.value .feature-icon { background: rgba(var(--accent-rgb),0.12); }
.value h3 { margin-bottom: 6px; }
.value p { font-size: 0.92rem; }

/* ── Sub-page hero (support / legal / product) ─────────────────────── */
.page-hero { padding: 64px 0 32px; text-align: center; }
.page-hero .hero-eyebrow { margin-bottom: 16px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ── Contact / support / complaint form ────────────────────────────── */
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  padding: 13px 15px;
  transition: border-color 0.15s;
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 140px; resize: vertical; line-height: 1.6; }
select.form-control { appearance: none; cursor: pointer; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.form-actions .btn { min-width: 160px; }
.form-status { font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok   { color: var(--success); }
.form-status.err  { color: var(--danger); }
.form-status.busy { color: var(--text-muted); }
.form-hint { font-size: 0.85rem; color: var(--text-dim); margin-top: 6px; }

.contact-aside {
  max-width: 640px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.contact-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  font-size: 0.9rem;
}
.contact-card .ci { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.contact-card a { font-weight: 600; }

/* ── Legal document typography ─────────────────────────────────────── */
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px clamp(20px, 5vw, 56px);
}
.legal-doc h2 { font-size: 1.3rem; margin: 34px 0 12px; letter-spacing: -0.01em; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--text); }
.legal-doc p, .legal-doc li { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 12px; }
.legal-doc ul, .legal-doc ol { padding-inline-start: 22px; margin-bottom: 12px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc strong { color: var(--text); }
.legal-doc .legal-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 26px;
}
.legal-doc .legal-meta b { color: var(--text-muted); }
.legal-note {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 26px;
}

/* ── Footer: richer multi-column publisher footer ──────────────────── */
.footer-cols {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col a { display: block; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-about { color: var(--text-muted); font-size: 0.92rem; margin: 12px 0 0; max-width: 32ch; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 460px) {
  .footer-cols { grid-template-columns: 1fr; }
}
