/* ==========================================================================
   STATICO — 90s Grunge Rock / Zine Anti-Design
   Same layout and grunge treatment, recolored to the app identity:
   deep navy ink, crisp white paper, emerald green, electric blue.
   Courier New. Torn paper, xerox grain, hard shadows, misregistered ink.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;600;700;900&display=swap');

:root {
  /* ---- Core palette (StockFlow app identity) ---- */
  --ink: #0F172A;          /* deep slate/navy ink */
  --ink-deep: #020617;     /* near-black, never pure black */
  --paper: #FFFFFF;        /* crisp white */
  --paper-2: #F1F5F9;      /* slate-100 */
  --yellow: #10B981;       /* emerald green (app secondary) */
  --rust: #1D4ED8;         /* strong blue (app accent) */
  --olive: #047857;        /* dark emerald */
  --denim: #1E3A8A;        /* navy blue */
  --concrete: #64748B;     /* slate grey */
  --burnt: #1E40AF;        /* deep blue */

  /* ---- Legacy token aliases (used across pages/inline styles) ---- */
  --color-bg: var(--paper);
  --color-surface: var(--paper-2);
  --color-surface-elevated: var(--paper);
  --color-primary: var(--ink);
  --color-primary-hover: var(--ink-deep);
  --color-secondary: var(--yellow);
  --color-secondary-hover: #0E9F6E;
  --color-tertiary: var(--rust);
  --color-text: var(--ink);
  --color-text-secondary: #475569;
  --color-text-on-dark: var(--paper);
  --color-text-inverse: var(--paper);
  --color-border: var(--ink);
  --color-border-hover: var(--rust);
  --color-warning-bg: #ECFDF5;
  --color-warning-border: var(--yellow);
  --color-whatsapp: #128C7E;
  --color-facebook: var(--denim);

  --focal-bg: var(--ink);
  --focal-text: var(--paper);
  --focal-text-secondary: #CBD5E1;
  --focal-card-bg: rgba(255, 255, 255, 0.07);
  --focal-card-border: rgba(255, 255, 255, 0.30);
  --focal-card-hover-border: var(--yellow);

  /* ---- Type ---- */
  --font-mono: 'Courier New', Courier, 'Noto Kufi Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, monospace;
  --font-arabic: var(--font-mono);
  --font-english: var(--font-mono);

  --fs-hero: clamp(2.2rem, 4.4vw, 3.5rem);
  --fs-h2: clamp(1.65rem, 3.8vw, 2.7rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.45rem);
  --fs-body: 1rem;
  --fs-small: 0.9rem;
  --fs-tiny: 0.75rem;

  /* ---- Space ---- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* ---- Edge / shadow ---- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;
  --custom-border-width: 2px;
  --custom-border-style: solid;
  --custom-border-color: var(--ink);

  --shadow-sm: 3px 3px 0 rgba(15, 23, 42, 0.22);
  --shadow-md: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 rgba(15, 23, 42, 0.85);
  --shadow-button: 4px 4px 0 var(--ink);
  --shadow-on-dark: 6px 6px 0 rgba(2, 6, 23, 0.55);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --duration-slow: 600ms;

  /* ---- Torn paper edge ---- */
  --torn: polygon(
    0% 100%, 0% 72%, 1.5% 88%, 3% 66%, 4.5% 92%, 6% 74%, 7.5% 96%, 9% 68%,
    10.5% 84%, 12% 70%, 13.5% 94%, 15% 76%, 16.5% 88%, 18% 64%, 19.5% 90%,
    21% 72%, 22.5% 98%, 24% 70%, 25.5% 86%, 27% 66%, 28.5% 92%, 30% 74%,
    31.5% 90%, 33% 68%, 34.5% 96%, 36% 72%, 37.5% 86%, 39% 66%, 40.5% 92%,
    42% 76%, 43.5% 88%, 45% 68%, 46.5% 94%, 48% 74%, 49.5% 90%, 51% 70%,
    52.5% 96%, 54% 76%, 55.5% 88%, 57% 66%, 58.5% 92%, 60% 72%, 61.5% 96%,
    63% 68%, 64.5% 86%, 66% 74%, 67.5% 94%, 69% 70%, 70.5% 90%, 72% 66%,
    73.5% 92%, 75% 76%, 76.5% 88%, 78% 68%, 79.5% 94%, 81% 72%, 82.5% 86%,
    84% 66%, 85.5% 92%, 87% 74%, 88.5% 88%, 90% 68%, 91.5% 96%, 93% 72%,
    94.5% 90%, 96% 66%, 97.5% 86%, 99% 74%, 100% 88%, 100% 100%
  );
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-mono);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  text-align: start;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.ltr { direction: ltr; text-align: left; }

/* Xerox grain + scanlines, fixed over everything, never blocks clicks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { color: var(--color-text-secondary); }
strong { color: var(--ink); }

a {
  color: var(--rust);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--ink); }

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

/* hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

html[lang="en"] .btn,
html[lang="en"] .section-title,
html[lang="en"] .hero-title,
html[lang="en"] .focal-headline {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Arabic / Hebrew script: no tracking, or letters drift apart */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .section-title,
html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] h4,
html[lang="he"] .section-title {
  letter-spacing: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 5px 0 rgba(15, 23, 42, 0.28);
}

.navbar .container,
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 68px;
  padding-block: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper);
  font-weight: 900;
  font-size: 1.25rem;
  text-decoration: none;
}
.logo svg { width: 32px; height: 32px; }
.logo-text {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--rust);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a:not(.btn) {
  color: var(--paper);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}
.nav-links a:not(.btn):hover {
  color: var(--yellow);
  border-bottom-color: var(--rust);
}

.nav-cta {
  padding: 8px 16px !important;
  font-size: 0.8rem !important;
}

/* Nav CTA must read as a button against the dark bar */
.navbar .btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 3px 3px 0 rgba(8, 18, 30, 0.55);
}
.navbar .btn-primary:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(8, 18, 30, 0.55);
}

/* Language switcher — three little stamped tabs */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--paper);
  background: transparent;
  overflow: hidden;
}
.lang-btn {
  border: none;
  background: transparent;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
  cursor: pointer;
}
.lang-btn + .lang-btn { border-inline-start: 2px solid var(--paper); }
.lang-btn.active { background: var(--yellow); color: var(--ink); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--paper);
  color: var(--paper);
  padding: 4px 12px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   Marquee ticker
   ========================================================================== */
.ticker {
  direction: ltr;
  background: var(--ink-deep);
  color: var(--yellow);
  border-bottom: 3px solid var(--rust);
  overflow: hidden;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 9px;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  white-space: nowrap;
  animation: ticker 26s linear infinite;
}
.ticker-track span {
  padding-inline-end: 2.5rem;
}
.ticker-track span::after {
  content: "///";
  color: var(--rust);
  margin-inline-start: 0.7rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--rust); color: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.btn-secondary { background: var(--yellow); color: var(--ink); }
.btn-secondary:hover { background: var(--burnt); color: var(--paper); }
.btn-outline { background: var(--paper); color: var(--ink); border-style: solid; }
.btn-outline:hover { background: var(--yellow); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 4px 4px 0 rgba(8,18,30,.5); }
.btn-outline-light:hover { background: var(--yellow); color: var(--ink); border-color: var(--ink); }

/* Buttons sitting on dark surfaces need light borders + yellow fill */
.hero .btn-primary,
.focal-section .btn-primary,
.footer .btn-primary,
.roles-section .btn-primary,
.contact-section .btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 rgba(8, 18, 30, 0.55);
}
.hero .btn-primary:hover,
.focal-section .btn-primary:hover,
.footer .btn-primary:hover,
.roles-section .btn-primary:hover,
.contact-section .btn-primary:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(8, 18, 30, 0.55);
}

/* ==========================================================================
   Section base + torn paper edges
   ========================================================================== */
section { position: relative; }

.section-header {
  text-align: start;
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  max-width: 760px;
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.015em;
  position: relative;
  padding-bottom: 14px;
  text-shadow: 2px 2px 0 rgba(29, 78, 216, 0.18);
}
.section-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 72px;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--rust) 0 9px, transparent 9px 14px);
}
.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  max-width: 620px;
}

.showcase-section,
.features,
.faq-section {
  background: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.showcase-section::before,
.features::before,
.faq-section::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -24px;
  height: 26px;
  background: var(--paper);
  clip-path: var(--torn);
  pointer-events: none;
  z-index: 2;
}

.roles-section,
.contact-section,
.focal-section {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.roles-section::before,
.contact-section::before,
.focal-section::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -24px;
  height: 26px;
  background: var(--ink);
  clip-path: var(--torn);
  pointer-events: none;
  z-index: 2;
}
.roles-section .section-title,
.contact-section .section-title,
.focal-section .focal-headline { color: var(--paper); }
.roles-section .section-subtitle,
.contact-section .section-subtitle,
.focal-subheadline { color: var(--focal-text-secondary); }
.roles-section .section-title::after,
.contact-section .section-title::after { background: repeating-linear-gradient(90deg, var(--yellow) 0 9px, transparent 9px 14px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2.4rem, 5vw, 4.2rem);
  overflow: hidden;
  border-bottom: 4px solid var(--rust);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 18% 20%, rgba(29, 78, 216, 0.22), transparent 42%),
    radial-gradient(circle at 85% 78%, rgba(14, 165, 233, 0.20), transparent 46%);
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}

.hero-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 rgba(8, 18, 30, 0.55);
  transform: rotate(-1.2deg);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.22;
  color: var(--paper);
  max-width: 18ch;
  text-shadow: 3px 3px 0 rgba(29, 78, 216, 0.6);
}

.hero-description {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #CBD5E1;
  max-width: 58ch;
  border-inline-start: 3px solid var(--rust);
  padding-inline-start: 14px;
}
.hero-description strong { color: var(--yellow); }

.hero-actions {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.trust-pills span {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 rgba(8, 18, 30, 0.5);
}
.trust-pills span:nth-child(odd) { transform: rotate(-1deg); }
.trust-pills span:nth-child(even) { transform: rotate(1deg); }

/* Hero screenshot as a taped polaroid */
.hero-preview {
  position: relative;
  width: 100%;
  transform: rotate(1.4deg);
}
.hero-preview::before {
  content: "";
  position: absolute;
  top: -14px;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: 104px;
  height: 26px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.95), rgba(16, 185, 129, 0.72));
  border: 1px dashed rgba(15, 23, 42, 0.4);
  transform: rotate(-2.5deg);
  z-index: 3;
}

.device-frame {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(8, 18, 30, 0.5);
  cursor: pointer;
}
.device-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  background: var(--ink);
  border-bottom: 3px solid var(--ink);
  color: var(--paper);
}
.device-topbar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--concrete);
}
.device-topbar .dot:first-child { background: var(--rust); }
.device-topbar .dot:nth-child(2) { background: var(--yellow); }
.device-topbar .dot:nth-child(3) { background: var(--olive); }
.device-url {
  margin-inline-start: 10px;
  font-size: 0.72rem;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Screenshot frames / fallbacks (shared by index + guide)
   ========================================================================== */
.screenshot-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  overflow: hidden;
}
.screenshot-slot.mobile-slot { aspect-ratio: 9 / 16; max-height: 430px; }
.screenshot-slot img.real-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
  filter: contrast(1.03) saturate(0.9) sepia(0.08);
}
.screenshot-slot.has-image img.real-screenshot { opacity: 1; }
.screenshot-slot.has-image .screenshot-fallback { display: none; }
.screenshot-slot.has-image[data-lightbox-src] { cursor: zoom-in; }

.screenshot-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  gap: 0.45rem;
  color: var(--ink);
  border: 2px dashed rgba(15, 23, 42, 0.4);
  margin: 10px;
}
.screenshot-fallback strong {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--rust);
  direction: ltr;
}
.screenshot-fallback span {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  max-width: 280px;
}
.fallback-badge {
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 9px;
}

/* ==========================================================================
   Showcase (screenshots)
   ========================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.tab-panel { display: none; }
.tab-panel.active { display: grid; }

.shot-card {
  grid-column: span 12;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 rgba(15, 23, 42, 0.85);
  overflow: visible;
  cursor: pointer;
  position: relative;
  transform: rotate(-0.5deg);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}
.shot-card:nth-child(1) { grid-column: span 7; }
.shot-card:nth-child(2) { grid-column: span 5; transform: rotate(0.7deg); }
.shot-card:nth-child(3) { grid-column: span 12; transform: rotate(-0.3deg); }
.shot-card:nth-child(3) .screenshot-slot { aspect-ratio: 21 / 9; }
.shot-card::after {
  content: "";
  position: absolute;
  top: -13px;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: 92px;
  height: 24px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.95), rgba(16, 185, 129, 0.7));
  border: 1px dashed rgba(15, 23, 42, 0.4);
  transform: rotate(-2deg);
  z-index: 3;
}
.shot-card:hover {
  transform: rotate(0) translateY(-5px);
  box-shadow: 12px 14px 0 rgba(15, 23, 42, 0.9);
}
.shot-card .screenshot-slot { border-bottom: 3px solid var(--ink); }
.shot-caption { padding: 1rem 1.25rem 1.3rem; }
.shot-caption h3 { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.shot-caption p { font-size: var(--fs-small); color: var(--color-text-secondary); }

/* ==========================================================================
   Roles
   ========================================================================== */
.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-xl);
}
.tab-btn,
.role-btn,
.guide-role-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 15px;
  border: 2px solid var(--paper);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast),
              box-shadow var(--duration-fast), transform var(--duration-fast);
}
.tab-btn.active,
.role-btn.active,
.guide-role-pill.active {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(8, 18, 30, 0.55);
  transform: rotate(-1deg);
}
.role-btn:hover,
.guide-role-pill:hover { background: rgba(255, 255, 255, 0.12); }
.role-btn.active:hover,
.guide-role-pill.active:hover { background: var(--yellow); }

.role-card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(8, 18, 30, 0.55);
  padding: 1.75rem;
  position: relative;
}
.role-card::before {
  content: "DOSSIER";
  position: absolute;
  top: -13px;
  inset-inline-end: 24px;
  background: var(--rust);
  color: var(--paper);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 2px 9px;
  transform: rotate(2deg);
}
.role-card-header h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.role-card-header p { color: var(--color-text-secondary); margin-bottom: 1.4rem; }
.role-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.role-col {
  padding: 1.1rem 1.2rem;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.role-can { background: rgba(16, 185, 129, 0.16); }
.role-restricted { background: rgba(29, 78, 216, 0.12); }
.role-col h4 { margin-bottom: 0.7rem; font-size: 0.98rem; }
.role-col ul {
  padding-inline-start: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: var(--fs-small);
}
.role-col li { color: var(--color-text-secondary); }
.role-can li::marker { color: var(--olive); }
.role-restricted li::marker { color: var(--rust); }

/* ==========================================================================
   Features — asymmetric "flyers stapled to a board"
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.85);
  padding: 1.6rem;
  opacity: 1;
  transform: rotate(var(--rot, -0.6deg));
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  animation: riseIn 0.55s var(--ease-out) both;
}
.feature-card:nth-child(2n) { --rot: 0.7deg; }
.feature-card:nth-child(3n) { --rot: -0.3deg; }
.feature-card:hover {
  transform: rotate(0) translateY(-5px);
  box-shadow: 11px 13px 0 rgba(15, 23, 42, 0.9);
}
.features-grid .feature-card:nth-child(1) { grid-column: span 7; }
.features-grid .feature-card:nth-child(2) { grid-column: span 5; }
.features-grid .feature-card:nth-child(3) { grid-column: span 5; }
.features-grid .feature-card:nth-child(4) { grid-column: span 7; }
.features-grid .feature-card:nth-child(5) { grid-column: span 6; }
.features-grid .feature-card:nth-child(6) { grid-column: span 6; }

.feature-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
  flex-shrink: 0;
}
.feature-card:nth-child(2n) .feature-icon { background: var(--rust); color: var(--paper); }
.feature-card:nth-child(3n) .feature-icon { background: var(--olive); color: var(--paper); }
.feature-icon svg { width: 30px; height: 30px; }
/* legacy wrapper support */
.feature-icon-wrapper {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.feature-icon-wrapper svg { width: 30px; height: 30px; }

.feature-card h3 { font-size: var(--fs-h3); }
.feature-card p { font-size: var(--fs-small); color: var(--color-text-secondary); }

@keyframes riseIn {
  from { opacity: 0.6; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}
.features-grid .feature-card:nth-child(1) { animation-delay: 0.02s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.08s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.14s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.26s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.32s; }

/* ==========================================================================
   Focal banner
   ========================================================================== */
.focal-section {
  border-top: 4px solid var(--rust);
  border-bottom: 4px solid var(--yellow);
}
.focal-content {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.focal-headline {
  font-size: var(--fs-h2);
  font-weight: 900;
  color: var(--paper);
  margin-bottom: 0.8rem;
  text-shadow: 3px 3px 0 rgba(29, 78, 216, 0.8);
}
.focal-subheadline {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
  margin-inline: auto;
}
.focal-content .hero-actions { justify-content: center; margin-top: 1.6rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.faq-item {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.82);
  padding: 1rem 1.2rem;
}
.faq-item:nth-child(odd) { transform: rotate(-0.3deg); }
.faq-item:nth-child(even) { transform: rotate(0.3deg); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--rust);
  color: var(--paper);
  font-size: 1.1rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; background: var(--ink); }
.faq-item p {
  margin-top: 0.75rem;
  color: var(--color-text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* ==========================================================================
   Contact / free trial
   ========================================================================== */
.contact-section { border-top: 4px solid var(--yellow); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.contact-info-card,
.contact-form-card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 rgba(8, 18, 30, 0.55);
  padding: 1.6rem;
}
.contact-info-card { transform: rotate(-0.4deg); }
.contact-form-card { transform: rotate(0.4deg); }
.contact-info-card h3,
.contact-form-card h3 { margin-bottom: 0.75rem; }
.contact-lead { color: var(--color-text-secondary); font-size: var(--fs-small); margin-bottom: 1.2rem; }

.contact-channel-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  margin-bottom: 1rem;
}
.channel-label { font-size: 0.72rem; font-weight: 700; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.channel-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.btn-copy {
  align-self: flex-start;
  margin-top: 0.3rem;
  padding: 5px 11px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-copy:hover { background: var(--ink); color: var(--paper); }
.btn-whatsapp-sm {
  align-self: flex-start;
  margin-top: 0.3rem;
  background: var(--color-whatsapp);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: 6px 13px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}
.contact-note { margin-top: 1rem; font-size: var(--fs-small); color: var(--color-text-secondary); }
.contact-note a { color: var(--rust); font-weight: 700; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-group label { font-size: var(--fs-small); font-weight: 700; }
.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  background: var(--paper);
  color: var(--ink);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 3px solid var(--rust);
  outline-offset: 1px;
}
.form-submit-btn { width: 100%; justify-content: center; }
.form-hint { margin-top: 0.6rem; font-size: 0.72rem; color: var(--color-text-secondary); text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink-deep);
  color: var(--paper);
  border-top: 4px solid var(--yellow);
  padding-block: var(--space-2xl);
  font-size: var(--fs-small);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; max-width: 430px; }
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  color: var(--paper);
  text-shadow: 2px 2px 0 var(--rust);
}
.footer-desc { color: #C7D2E3; }
.footer-desc a { color: var(--yellow); }
.footer-links { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--paper); opacity: 0.9; font-weight: 700; }
.footer-links a:hover { color: var(--yellow); opacity: 1; }
.footer-links span { color: #94A3B8; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 18, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 20px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--paper);
  background: var(--rust);
  color: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-figure { max-width: 1000px; width: 100%; text-align: center; }
.lightbox-figure img {
  max-height: 80vh;
  max-width: 100%;
  margin-inline: auto;
  border: 4px solid var(--paper);
  box-shadow: 10px 10px 0 rgba(8, 18, 30, 0.6);
}
.lightbox-figure figcaption { margin-top: 0.8rem; color: var(--paper); font-size: var(--fs-small); }

/* ==========================================================================
   Guide page
   ========================================================================== */
.guide-hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border-bottom: 4px solid var(--yellow);
  position: relative;
  overflow: hidden;
}
.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
}
.guide-hero > .container { position: relative; z-index: 1; }
.guide-hero h1 {
  font-size: var(--fs-h2);
  color: var(--paper);
  margin-bottom: 0.5rem;
  text-shadow: 3px 3px 0 rgba(29, 78, 216, 0.8);
}
.guide-hero p { color: var(--focal-text-secondary); max-width: 680px; margin-inline: auto; margin-bottom: 1.5rem; }

.guide-controls { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.guide-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 3px solid var(--paper);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-body);
}
.guide-search-input:focus { outline: 3px solid var(--rust); outline-offset: 2px; }
.guide-role-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }

.guide-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  padding-block: 2.5rem 4rem;
  align-items: start;
}
.guide-sidebar {
  position: sticky;
  top: 92px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(15, 23, 42, 0.85);
  padding: 1.1rem;
}
.guide-sidebar h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--rust);
}
.guide-sidebar ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.guide-sidebar a {
  display: block;
  padding: 6px 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  border-inline-start: 3px solid transparent;
}
.guide-sidebar a:hover { background: var(--paper-2); border-inline-start-color: var(--rust); color: var(--rust); }

.guide-content { display: flex; flex-direction: column; gap: 1.75rem; }

.guide-article {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-inline-start-width: 9px;
  border-inline-start-color: var(--rust);
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.85);
  padding: 1.6rem;
  scroll-margin-top: 100px;
  position: relative;
}
.guide-article::after {
  content: "";
  position: absolute;
  top: -12px;
  inset-inline-start: 34px;
  width: 80px;
  height: 22px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.92), rgba(16, 185, 129, 0.68));
  border: 1px dashed rgba(15, 23, 42, 0.4);
  transform: rotate(-2deg);
}
.guide-article-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.guide-article h2 { font-size: var(--fs-h3); }
.guide-role-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.guide-role-badges span {
  font-size: 0.68rem;
  padding: 2px 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.guide-article p { color: var(--color-text-secondary); font-size: var(--fs-small); }

.guide-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.guide-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  padding: 0.8rem 0.9rem;
  font-size: var(--fs-small);
}
.guide-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rust);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
}
.guide-steps li div { color: var(--color-text-secondary); }
.guide-steps li strong { color: var(--ink); }

.guide-tip {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--color-warning-bg);
  border: 2px solid var(--burnt);
  border-inline-start-width: 8px;
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}
.guide-tip-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-inline-end: 6px;
  background: var(--burnt);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.8rem;
}

.guide-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--paper);
  border: 3px dashed var(--ink);
}
.guide-article .screenshot-slot { margin-top: 1rem; border: 2px solid var(--ink); }

/* ==========================================================================
   Privacy page
   ========================================================================== */
.privacy-container {
  max-width: 860px;
  margin: 2.5rem auto 3rem;
  padding: 2rem 2.25rem;
  background: var(--paper) !important;
  border: 3px solid var(--ink) !important;
  box-shadow: 10px 10px 0 rgba(15, 23, 42, 0.85) !important;
}
.privacy-header {
  border-bottom: 3px solid var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}
.privacy-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-bottom: 0.35rem;
}
.privacy-meta { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.privacy-section { margin-bottom: 1.25rem; }
.privacy-section h2 { color: var(--ink); margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.privacy-section p, .privacy-section ul { font-size: 0.92rem; line-height: 1.9; color: var(--ink); opacity: 0.85; }
.privacy-section ul { padding-inline-start: 1.25rem; list-style: square; }
.privacy-section li { margin-bottom: 0.35rem; }
.privacy-section strong { color: var(--rust); }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--rust) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
.back-btn:hover { text-decoration: underline; }
[dir="rtl"] .back-btn svg { transform: scaleX(-1); }
@media (max-width: 640px) {
  .privacy-container { padding: 1.25rem 1rem; box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.85) !important; }
}

/* ==========================================================================
   Legacy helpers still referenced
   ========================================================================== */
.security-alert {
  background: var(--color-warning-bg);
  border-inline-start: 6px solid var(--burnt);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 650px;
}
.security-alert-title { font-weight: 700; font-size: var(--fs-small); }
.security-alert-text { font-size: var(--fs-small); color: var(--color-text-secondary); }
.focal-card {
  background: var(--focal-card-bg);
  border: 2px solid var(--focal-card-border);
  padding: 1.5rem;
  color: var(--focal-text);
}
.focal-card-title { font-size: var(--fs-h3); color: var(--focal-text); }
.focal-card-desc { font-size: var(--fs-small); color: var(--focal-text-secondary); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .navbar .container { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--paper);
    margin-top: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 8px 4px; border-bottom: none; font-size: 0.86rem; }
  .nav-cta { width: 100%; justify-content: center; }
  .lang-switcher { align-self: flex-start; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-content { align-items: center; text-align: center; }
  .hero-title { max-width: 22ch; }
  .hero-description { border-inline-start: none; padding-inline-start: 0; }
  .hero-actions, .trust-pills { justify-content: center; }
  .hero-tag { align-self: center; }
  .hero-preview { max-width: 680px; margin-inline: auto; }

  .features-grid .feature-card:nth-child(n) { grid-column: span 12; }
  .shot-card:nth-child(n) { grid-column: span 12; }
  .shot-card:nth-child(3) .screenshot-slot { aspect-ratio: 16 / 10; }

  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
}

@media (max-width: 640px) {
  .container { padding-inline: 1rem; }
  .hero-title { text-shadow: 3px 2px 0 rgba(29, 78, 216, 0.75); }
  .section-title { font-size: 1.5rem; }
  .trust-pills span { font-size: 0.66rem; }
  .footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .role-columns { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-track { animation: none; }
  .feature-card { opacity: 1; translate: 0 0; }
}


/* ==========================================================================
   Comprehensive Mobile-First Responsive Overhaul (<= 900px, <= 768px, <= 420px)
   ========================================================================== */

html, body {
  max-width: 100%;
  overflow-x: clip;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.showcase-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.guide-toc-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-small);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  margin-bottom: 0.5rem;
}

.guide-toc-summary::-webkit-details-marker {
  display: none;
}

.guide-toc-summary::after {
  content: '▾';
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.guide-toc:not([open]) .guide-toc-summary {
  margin-bottom: 0;
}

.guide-toc:not([open]) .guide-toc-summary::after {
  transform: rotate(-90deg);
}

@media (max-width: 900px) {
  .navbar {
    min-height: 60px;
    padding: 8px 0;
  }

  .navbar .container {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .nav-links {
    white-space: normal;
    flex-wrap: nowrap;
    padding: 0.75rem 0 0.5rem;
  }

  .nav-links a:not(.btn) {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 6px;
    border-radius: 6px;
  }

  .nav-links .lang-switcher {
    align-self: flex-start;
    margin: 4px 0 8px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0 3rem;
  }

  .guide-sidebar {
    position: static;
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6.5vw, 2.15rem);
    line-height: 1.3;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    text-align: center;
  }

  .trust-pills {
    gap: 0.4rem;
    margin-top: 1rem;
  }

  .trust-pills span {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .showcase-section,
  .roles-section,
  .features,
  .faq-section,
  .contact-section,
  .focal-section {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }

  /* Horizontal touch-scrollable role pills on mobile */
  .role-tabs,
  .guide-role-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    gap: 0.5rem;
  }

  .role-tabs::-webkit-scrollbar,
  .guide-role-filters::-webkit-scrollbar {
    display: none;
  }

  .role-btn,
  .guide-role-pill {
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .device-frame,
  .shot-card,
  .role-card,
  .feature-card,
  .faq-item,
  .contact-info-card,
  .contact-form-card,
  .guide-sidebar,
  .guide-article {
    box-shadow: 4px 4px 0 #11241A;
  }

  .role-card,
  .contact-info-card,
  .contact-form-card,
  .guide-article {
    padding: 1.15rem;
  }

  .role-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-item {
    padding: 0.9rem 1rem;
  }

  .faq-item summary {
    min-height: 44px;
    gap: 0.75rem;
    font-size: 0.95rem;
  }

  /* Prevent iOS Safari auto-zoom on form inputs */
  .form-group input,
  .form-group textarea,
  .guide-search-input {
    font-size: 16px;
    min-height: 44px;
  }

  .btn-copy,
  .btn-whatsapp-sm,
  .form-submit-btn {
    width: 100%;
    min-height: 44px;
    text-align: center;
    justify-content: center;
  }

  .guide-hero {
    padding: 2rem 0;
  }

  .guide-steps li {
    padding: 0.75rem;
    gap: 0.65rem;
  }

  .lightbox-close {
    width: 44px;
    height: 44px;
    top: max(14px, env(safe-area-inset-top));
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
  }
}

@media (max-width: 420px) {
  .container {
    padding-inline: 12px;
  }

  .device-frame,
  .shot-card,
  .role-card,
  .feature-card,
  .faq-item,
  .contact-info-card,
  .contact-form-card,
  .guide-sidebar,
  .guide-article {
    box-shadow: 3px 3px 0 #11241A;
  }
}


/* Fix #screenshots cards clipping on mobile: reset multi-column grid-column spans */
@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr !important;
  }

  .showcase-grid .shot-card,
  .showcase-grid .shot-card:nth-child(n) {
    grid-column: auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}


/* High-Contrast Crisp Readability Override (Deep Navy Ink + Rubik for Arabic/Hebrew) */
:root {
  --color-text: #0F172A;
  --color-text-secondary: #1E293B;
}

body,
p,
li,
summary,
label,
input,
textarea,
.guide-article p,
.guide-steps li,
.guide-steps div,
.shot-caption p,
.role-card-header p,
.role-col li,
.feature-card p,
.contact-lead,
.faq-item p {
  font-family: 'Rubik', 'Inter', system-ui, -apple-system, sans-serif;
  color: #0F172A;
  font-weight: 500;
}

h1, h2, h3, h4,
.shot-caption h3,
.role-card-header h3,
.feature-card h3,
.contact-info-card h3,
.contact-form-card h3,
.guide-article h2,
.faq-item summary {
  font-family: 'Rubik', 'Inter', system-ui, sans-serif;
  color: #0F172A;
  font-weight: 700;
}

.hero-title,
.guide-hero h1,
.focal-headline {
  color: #FFFFFF;
  text-shadow: none;
}

.hero-description,
.hero-description strong,
.guide-hero p,
.focal-subheadline,
.footer,
.footer p,
.footer a {
  color: #F1F5F9;
}

.section-title {
  color: #0F172A;
  text-shadow: none;
}

.section-subtitle {
  color: #1E293B;
}


/* App Logo in Navbar */
.navbar-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .navbar-logo-img {
    height: 46px;
  }
}


/* Ultra-Dark High-Contrast Text Across All Light Surfaces */
:root {
  --color-text: #020617;
  --color-text-secondary: #0F172A;
}

body,
p,
li,
span,
label,
summary,
input,
textarea,
a:not(.btn) {
  color: #020617;
}

.hero,
.hero *,
.guide-hero,
.guide-hero *,
.focal-section,
.focal-section *,
.footer,
.footer *,
.btn-primary,
.btn-primary *,
.guide-step-num,
.guide-role-badges span,
.lang-btn.active {
  color: #FFFFFF;
}

.hero-tag,
.trust-pills span,
.btn-outline,
.btn-outline * {
  color: #020617;
}


/* Crisp Bold White Text on Dark Ticker/Marquee & Navbar */
.marquee,
.marquee *,
.ticker,
.ticker *,
.ticker-track,
.ticker-track *,
.navbar,
.navbar .logo-text,
.nav-links a:not(.btn) {
  color: #FFFFFF !important;
  font-weight: 700;
}

/* ==========================================================================
   try.html — full interactive demo page (embedded app + live guide)
   Reuses the zine tokens: 2px ink borders, hard offset shadows, mono type.
   ========================================================================== */

.try-main {
  padding-block: var(--space-xl) var(--space-2xl);
}

.try-hero {
  margin-bottom: var(--space-lg);
}

.try-h1 {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.try-h1::after {
  content: '';
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 10px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

.try-sub {
  margin-top: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: var(--fs-small);
  max-width: 62ch;
}

.try-nav {
  gap: var(--space-md);
}

.try-back-link {
  border: 2px solid var(--paper);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  white-space: nowrap;
}
.try-back-link:hover {
  background: var(--yellow);
  border-color: var(--ink);
  color: var(--ink);
}

.try-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

/* ---------------- app stage ---------------- */
.try-stage {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.try-stage-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.try-dots {
  display: inline-flex;
  gap: 5px;
  flex-shrink: 0;
}
.try-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.9;
}
.try-dots span:nth-child(2) { background: var(--rust); }
.try-dots span:nth-child(3) { background: var(--concrete); }

.try-url {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.try-tools {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.try-tool {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
  cursor: pointer;
  background: transparent;
  color: var(--paper);
  border: 2px solid var(--paper);
  white-space: nowrap;
}
.try-tool:hover,
.try-tool:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  outline: none;
}
.try-tool-icon {
  font-size: 14px;
  padding: 5px 8px;
}

.try-frame-wrap {
  position: relative;
  height: clamp(520px, 68vh, 780px);
  background: #FFFFFF;
}

.try-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.try-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
}

/* fullscreen: stage fills the screen, frame takes the rest */
.try-stage:fullscreen {
  display: flex;
  flex-direction: column;
  border: 0;
  box-shadow: none;
  background: var(--ink);
}
.try-stage:fullscreen .try-frame-wrap {
  flex: 1;
  height: auto;
}
.try-stage::backdrop {
  background: var(--ink-deep);
}

/* ---------------- guide panel ---------------- */
.try-guide {
  position: sticky;
  top: 92px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.try-guide-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--paper);
}

.try-guide-title {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.try-guide-auto {
  font-size: 0.62rem;
  line-height: 1.3;
  text-align: end;
  color: #CBD5E1;
  max-width: 55%;
}

.try-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 2px dashed var(--ink);
  max-height: 148px;
  overflow-y: auto;
}

.try-chip {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  white-space: nowrap;
}
.try-chip:hover {
  background: var(--paper-2);
}
.try-chip.active {
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}

.try-guide-body {
  padding: 12px;
}

.try-guide-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.try-guide-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.try-guide-name h2 {
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
}

.try-guide-here {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 700;
}

.try-guide-section + .try-guide-section {
  margin-top: 12px;
}

.try-guide-section h3 {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--concrete);
  margin-bottom: 4px;
}

.try-guide-section p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.try-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: try-step;
}

.try-steps li {
  counter-increment: try-step;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 6px;
  color: var(--color-text-secondary);
}

.try-steps li::before {
  content: counter(try-step);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--paper);
  background: var(--ink);
}

.try-note {
  margin-top: var(--space-lg);
  padding: 10px 12px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--color-warning-bg);
  border: 2px solid var(--ink);
  border-inline-start: 6px solid var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

@media (max-width: 1024px) {
  .try-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .try-guide {
    position: static;
  }
  .try-frame-wrap {
    height: clamp(420px, 60vh, 620px);
  }
}

@media (max-width: 640px) {
  .try-nav {
    width: 100%;
    justify-content: space-between;
  }
  .try-guide-auto {
    display: none;
  }
  .try-chips {
    max-height: 112px;
  }
  .try-frame-wrap {
    height: 420px;
  }
}

/* ------------------------------------------------------------------------- */
/* Contact form — post-submit confirmation panel                              */
/*                                                                            */
/* Replaces the old silent mailto. The panel is always shown after submit so  */
/* the visitor sees the composed request even when no mail client is          */
/* registered, and can copy it.                                               */
/* ------------------------------------------------------------------------- */
.form-done {
  text-align: center;
}

.form-done-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  color: var(--paper);
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 rgba(8, 18, 30, 0.55);
}

.form-done h3 {
  margin-bottom: 0.5rem;
}

.form-done-text {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 1.1rem;
}

.form-done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.form-done-actions .btn {
  font-size: var(--fs-small);
  padding: 0.55rem 0.95rem;
}

#tcf-copy.is-copied {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}

.form-preview {
  text-align: start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px dashed rgba(15, 23, 42, 0.35);
  border-radius: 6px;
  padding: 0.8rem 0.9rem;
  margin: 0 0 0.9rem;
  /* 260px fits the full request template (4 fields) in all three languages
     without scrolling; longer free-text notes scroll inside the box. */
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 480px) {
  .form-done-actions {
    flex-direction: column;
  }
  .form-done-actions .btn {
    width: 100%;
  }
}
