/* ============================================================
   YUSRR MARKETING — SHARED STYLESHEET
   Extracted verbatim from index.html's own <style> block (same
   tokens, same .btn/.card/.badge/.nav/.footer component CSS) so
   every marketing page (index.html plus /about, /careers, /contact,
   /help, /privacy, /terms, /affiliates) looks like one product
   without re-typing ~330 lines of CSS into every file. index.html
   itself is intentionally left with its CSS inline (it already
   worked, zero reason to touch it) — this file is for the newer
   pages only, linked via <link rel="stylesheet" href="/marketing-shared.css">.
   A plain <link> tag adds no build step or bundler — still fully
   static, still zero-dependency, per this project's own architecture.

   Extends the original set with .field/.input/.hint (same shape as
   app/index.html's form controls, for the contact/affiliate forms)
   and a few new page-only classes (page-hero, accordion, stat-pill,
   dash-card) added at the bottom — clearly marked, everything above
   that marker is an unmodified copy of index.html's original CSS.
   ============================================================ */
:root{
  --bg:         #0B0E14;
  --surface:    #12151F;
  --surface2:   #1A1E2A;
  --surface3:   #232838;
  --border:     #242A3A;
  --text:       #F3F4F8;
  --text2:      #9AA1B4;
  --text3:      #676E82;

  --accent:     #16A34A;
  --accent-l:   rgba(22,163,74,.16);
  --accent-dark:#4ADE80;

  --success:    #22C55E;
  --success-l:  rgba(34,197,94,.15);
  --error:      #F5564A;
  --error-l:    rgba(245,86,74,.15);
  --warn:       #F59E0B;
  --warn-l:     rgba(245,158,11,.15);

  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  20px;

  --shadow:     0 1px 2px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.24);
  --shadow-md:  0 6px 16px -4px rgba(0,0,0,.45), 0 2px 6px -2px rgba(0,0,0,.3);
  --shadow-lg:  0 20px 44px -8px rgba(0,0,0,.55);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: 30px;
  --fs-heading: 19px;
  --fs-body:    14px;
  --fs-caption: 11px;

  --ease: 200ms cubic-bezier(.4,0,.2,1);
}
[data-theme="light"]{
  /* Batch 59 — same fix as index.html's own [data-theme="light"] block
     (kept in sync deliberately — see this file's header comment): plain
     white page background instead of the light-gray #F7F8FA it used to
     be. --surface (cards/panels) was already pure white. */
  --bg:         #FFFFFF;
  --surface:    #FFFFFF;
  --surface2:   #F1F2F6;
  --surface3:   #E7E9EF;
  --border:     #E5E7EE;
  --text:       #12141C;
  --text2:      #5B6072;
  --text3:      #9297A6;

  --accent-l:   #E3F7EA;

  --success-l:  #E8FBEF;
  --error-l:    #FDEDEC;
  --warn-l:     #FEF3E1;

  --shadow:     0 1px 2px rgba(16,20,32,.06), 0 1px 3px rgba(16,20,32,.06);
  --shadow-md:  0 8px 20px -6px rgba(16,20,32,.10), 0 2px 6px -2px rgba(16,20,32,.06);
  --shadow-lg:  0 22px 46px -10px rgba(16,20,32,.14);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg); color:var(--text); font-family:var(--font); font-size:var(--fs-body);
  line-height:1.5; -webkit-font-smoothing:antialiased; transition:background var(--ease), color var(--ease);
  overflow-x:hidden;
}
button,input,select,textarea{ font-family:inherit; font-size:inherit; color:inherit; }

html[dir="rtl"]{ --font: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
[dir="rtl"] .nav-actions{ margin-left:0; margin-right:auto; }
[dir="rtl"] .donut-legend-row b{ margin-left:0; margin-right:auto; }
[dir="rtl"] .download-card ol{ text-align:right; padding-left:0; padding-right:20px; }
[dir="rtl"] .accordion-body{ padding-right:0; }
button{ cursor:pointer; background:none; border:none; }
a{ color:inherit; text-decoration:none; }
img,svg{ max-width:100%; display:block; }
ul{ list-style:none; }
::selection{ background:var(--accent-l); color:var(--accent-dark); }

.fs-display{ font-size:var(--fs-display); font-weight:800; letter-spacing:-.03em; }
.fs-heading{ font-size:var(--fs-heading); font-weight:700; }
.text2{ color:var(--text2); }
.text3{ color:var(--text3); }
.container{ max-width:1120px; margin:0 auto; padding:0 20px; }
.container-narrow{ max-width:760px; margin:0 auto; padding:0 20px; }
.row{ display:flex; align-items:center; gap:10px; }
.col{ display:flex; flex-direction:column; gap:10px; }
.between{ display:flex; align-items:center; justify-content:space-between; }
.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media(max-width:860px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; padding:0 20px; border-radius:var(--radius-sm); font-weight:700; font-size:14.5px;
  white-space:nowrap; transition:background var(--ease), color var(--ease), border-color var(--ease), transform 100ms ease, box-shadow var(--ease);
  cursor:pointer;
}
.btn svg{ width:17px; height:17px; }
.btn:active{ transform:scale(.97); }
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.btn-primary{ background:var(--accent); color:#FFFFFF; box-shadow:var(--shadow); }
.btn-primary:hover{ filter:brightness(1.06); }
.btn-secondary{ background:var(--surface2); color:var(--text); border:1px solid var(--border); }
.btn-secondary:hover{ background:var(--surface3); }
.btn-ghost{ background:transparent; color:var(--text2); }
.btn-ghost:hover{ background:var(--surface2); color:var(--text); }
.btn-lg{ height:52px; padding:0 26px; font-size:15.5px; border-radius:var(--radius); }
.btn-block{ width:100%; }

.card{ background:var(--surface); border-radius:var(--radius); border:1px solid var(--border); }
.card.shadow{ box-shadow:var(--shadow); border-color:transparent; }
.card.shadow-md{ box-shadow:var(--shadow-md); border-color:transparent; }
.card-pad{ padding:22px; }

.badge{
  display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 12px; border-radius:999px;
  font-size:12px; font-weight:700;
}
.badge::before{ content:''; width:6px; height:6px; border-radius:50%; background:currentColor; flex-shrink:0; }
.badge:has(svg)::before{ display:none; }
.badge-accent{ background:var(--accent-l); color:var(--accent-dark); }
[data-theme="light"] .badge-accent{ color:#15803D; }
.badge-green{ background:var(--success-l); color:var(--success); }

.theme-toggle{
  width:44px; height:26px; border-radius:999px; background:var(--surface3); border:1px solid var(--border);
  position:relative; flex-shrink:0; transition:background var(--ease);
}
.theme-toggle::after{
  content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%;
  background:var(--accent); transition:transform var(--ease);
}
[data-theme="light"] .theme-toggle::after{ transform:translateX(18px); }

.lang-toggle{ display:flex; gap:2px; background:var(--surface2); padding:3px; border-radius:999px; flex-shrink:0; }
.lang-opt{ padding:5px 10px; border-radius:999px; font-size:11.5px; font-weight:700; border:none; background:transparent; color:var(--text2); cursor:pointer; line-height:1; }
.lang-opt.active{ background:var(--surface); color:var(--text); box-shadow:var(--shadow); }

.ic{ display:block; }

.brand-mark{
  width:34px; height:34px; border-radius:10px; background:var(--accent); color:#FFFFFF;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.brand-mark-img{ height:48px; width:54px; flex-shrink:0; display:block; }
.brand-name{ font-weight:800; font-size:16.5px; letter-spacing:-.01em; }

.nav{
  position:sticky; top:0; z-index:50; background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--border);
}
/* Batch 108 — gaps made fluid (clamp) and the burger breakpoint raised,
   mirroring the fix already applied to index.html in Batch 65 (see the
   matching comment there): fixed 44px/28px gaps plus a French
   "Commencer gratuitement" CTA can outgrow the 1120px container at
   ordinary laptop widths, and body's overflow-x:hidden turns that into
   a silently clipped button rather than a scrollbar. These inner pages
   and the tutorial pages (which both share this file) never got the
   original fix, so they were equally exposed. A headless-browser
   measurement (Playwright, Chromium) of an actual inner page across a
   sweep of viewport widths confirmed the breakpoint below is safe with
   zero overflow from 1180px through 1920px. */
.nav-inner{ display:flex; align-items:center; gap:clamp(16px, 3vw, 44px); height:76px; }
.nav-links{ display:flex; align-items:center; gap:clamp(10px, 1.4vw, 28px); }
.nav-links a{ font-size:13.5px; font-weight:600; color:var(--text2); transition:color var(--ease); white-space:nowrap; }
.nav-links a:hover{ color:var(--text); }
.nav-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.nav-burger{ display:none; width:40px; height:40px; align-items:center; justify-content:center; border-radius:var(--radius-sm); background:var(--surface2); border:1px solid var(--border); }
.mobile-panel{ display:none; flex-direction:column; gap:2px; padding:10px 20px 18px; border-bottom:1px solid var(--border); background:var(--bg); }
.mobile-panel a{ padding:12px 4px; font-weight:600; font-size:14.5px; border-bottom:1px solid var(--border); color:var(--text); }
.mobile-panel a:last-child{ border-bottom:none; }
.mobile-panel.open{ display:flex; }
@media(max-width:1440px){
  .nav-actions .btn-secondary{ display:none; }
}
@media(max-width:1180px){
  .nav-links{ display:none; }
  .nav-burger{ display:flex; }
}
@media(max-width:520px){
  .nav-actions .btn-primary{ display:none; }
}

.hero{ padding:76px 0 60px; position:relative; overflow:hidden; }
.hero::before{
  content:''; position:absolute; top:-160px; right:-120px; width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle, var(--accent-l), transparent 70%); pointer-events:none;
}
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; position:relative; }
@media(max-width:940px){ .hero-grid{ grid-template-columns:1fr; } }
.eyebrow{ display:inline-flex; }
.hero h1{ font-size:44px; font-weight:800; letter-spacing:-.03em; line-height:1.12; margin:18px 0 16px; }
@media(max-width:560px){ .hero h1{ font-size:32px; } }
.hero-rotate{ color:var(--accent); display:inline-block; }
.hero p.lead{ font-size:16.5px; color:var(--text2); max-width:480px; line-height:1.6; }
.hero-ctas{ display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.hero-trust{ display:flex; gap:18px; margin-top:30px; flex-wrap:wrap; }
.hero-trust .row{ font-size:12.5px; color:var(--text2); font-weight:600; gap:7px; }
.hero-trust svg{ color:var(--success); }

.section{ padding:76px 0; }
.section-head{ max-width:620px; margin:0 auto 44px; text-align:center; }
.section-head .fs-caption2{ font-size:12px; font-weight:800; color:var(--accent-dark); text-transform:uppercase; letter-spacing:.08em; }
[data-theme="light"] .section-head .fs-caption2{ color:#15803D; }
.section-head h2{ font-size:30px; font-weight:800; letter-spacing:-.02em; margin:10px 0 12px; }
.section-head p{ color:var(--text2); font-size:15px; line-height:1.6; }
.section-alt{ background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

.feature-card{ padding:24px; }
.feature-ic{ width:44px; height:44px; border-radius:12px; background:var(--accent-l); color:var(--accent-dark); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
[data-theme="light"] .feature-ic{ color:#15803D; }
.feature-card h3{ font-size:15.5px; font-weight:700; margin-bottom:6px; }
.feature-card p{ font-size:13px; color:var(--text2); line-height:1.55; }

.download-card{ padding:26px; text-align:center; }
.download-card .dl-ic{ width:52px; height:52px; border-radius:14px; background:var(--accent-l); color:var(--accent-dark); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
[data-theme="light"] .download-card .dl-ic{ color:#15803D; }
.download-card h3{ font-size:15.5px; font-weight:700; margin-bottom:10px; }
.download-card ol{ list-style:decimal; text-align:left; padding-left:20px; display:flex; flex-direction:column; gap:6px; font-size:12.5px; color:var(--text2); line-height:1.5; }
.download-note{ margin-top:14px; font-size:11.5px; color:var(--text3); }

.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; max-width:640px; margin:0 auto; }
@media(max-width:640px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{ padding:26px; text-align:center; }
.contact-card .c-ic{ width:48px; height:48px; border-radius:13px; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; }
.contact-card h3{ font-size:14.5px; font-weight:700; margin-bottom:6px; }
.contact-card p{ font-size:12.5px; color:var(--text2); margin-bottom:16px; }

.footer{ border-top:1px solid var(--border); padding:44px 0 30px; }
.footer-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:32px; flex-wrap:wrap; }
.footer-cols{ display:flex; gap:40px; flex-wrap:wrap; }
.footer-col h4{ font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--text3); margin-bottom:14px; }
.footer-col a{ display:block; font-size:13px; color:var(--text2); margin-bottom:10px; }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:36px; padding-top:24px; border-top:1px solid var(--border); font-size:12px; color:var(--text3); flex-wrap:wrap; }
/* footer (2026-10): brand + contacts on the left, three columns, one bottom line: copyright + credit / legal links */
.footer-brand{ max-width:280px; }
.footer-contact{ display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.footer-contact a{ display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--text2); }
.footer-contact a:hover{ color:var(--text); }
.footer-copy a.footer-by{ color:inherit; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.footer-sep{ margin:0 4px; }
.footer-legal{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.footer-legal a{ color:var(--text3); }
.footer-legal a:hover{ color:var(--text); }
@media(max-width:640px){ .footer-cols{ display:grid; grid-template-columns:1fr 1fr; gap:24px 28px; width:100%; } .footer-bottom{ flex-direction:column; align-items:flex-start; } }

.wa-float{
  position:fixed; right:20px; bottom:20px; z-index:80;
  width:56px; height:56px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg);
  transition:transform 150ms ease;
}
.wa-float:hover{ transform:scale(1.08); }
@media(max-width:560px){ .wa-float{ width:50px; height:50px; right:14px; bottom:14px; } }

/* Batch 108 — moved here from index.html's own inline <style> so every
   page that includes marketing-shared.css (the 7 inner pages, and the
   tutorial pages generated by generate.py) gets the same "back to top"
   button as the homepage, without duplicating this block into each
   page's own <style>. Stacked directly above the WhatsApp button (same
   right offset, 18px gap = 56px WA button + 20px bottom offset + 18px
   ≈ 94px from the bottom) so the two read as one floating stack.
   Hidden until the page is scrolled past one viewport — see
   initScrollTopFab() wired on each page. */
.scroll-top-fab{
  position:fixed; right:20px; bottom:94px; z-index:80;
  width:44px; height:44px; border-radius:50%; background:var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg);
  border:none; cursor:pointer; transition:transform 150ms ease, opacity 150ms ease, visibility 150ms ease;
  opacity:0; visibility:hidden; transform:translateY(8px);
}
.scroll-top-fab.visible{ opacity:1; visibility:visible; transform:translateY(0); }
.scroll-top-fab:hover{ transform:scale(1.08); }
@media(max-width:560px){ .scroll-top-fab{ width:40px; height:40px; right:14px; bottom:78px; } }

/* ============================================================
   NEW — everything below this line is added for the inner pages
   (about/careers/contact/help/privacy/terms/affiliates). Not used
   by index.html.
   ============================================================ */

/* Simple inner-page hero — no animated rotator, no decorative blob,
   just an eyebrow + title + optional lead paragraph, centered. */
.page-hero{ padding:56px 0 44px; text-align:center; }
.page-hero h1{ font-size:36px; font-weight:800; letter-spacing:-.03em; line-height:1.15; margin:14px 0 12px; }
@media(max-width:560px){ .page-hero h1{ font-size:28px; } }
.page-hero .lead{ font-size:15.5px; color:var(--text2); max-width:600px; margin:0 auto; line-height:1.6; }

/* Form controls — same shape as the app's own .field/.input so a
   contact/signup form on the marketing site feels identical to the
   product itself. */
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.field label{ font-size:13px; font-weight:600; color:var(--text2); }
.input,select.input,textarea.input{
  height:44px; padding:0 14px; border-radius:var(--radius-sm);
  border:1px solid var(--border); background:var(--surface2); color:var(--text);
  transition:border-color var(--ease), box-shadow var(--ease), background var(--ease);
  width:100%;
}
textarea.input{ height:auto; padding:12px 14px; resize:vertical; min-height:110px; }
.input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-l); background:var(--surface); }
.input::placeholder{ color:var(--text3); }
.hint{ font-size:12px; color:var(--text3); }
.form-error{ font-size:12.5px; color:var(--error); margin-top:-6px; margin-bottom:14px; }
.form-success{ display:flex; align-items:flex-start; gap:10px; background:var(--success-l); color:var(--success); border-radius:var(--radius-sm); padding:14px 16px; font-size:13.5px; font-weight:600; }

/* FAQ accordion (Help Center) */
.accordion-item{ border-bottom:1px solid var(--border); }
.accordion-item:last-child{ border-bottom:none; }
.accordion-trigger{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px 4px; text-align:left; font-size:14.5px; font-weight:700; color:var(--text);
}
[dir="rtl"] .accordion-trigger{ text-align:right; }
.accordion-trigger svg{ flex-shrink:0; color:var(--text3); transition:transform var(--ease); }
.accordion-item.open .accordion-trigger svg{ transform:rotate(180deg); }
.accordion-body{ max-height:0; overflow:hidden; transition:max-height var(--ease); }
.accordion-item.open .accordion-body{ max-height:600px; }
.accordion-body-inner{ padding:0 4px 18px; font-size:13.5px; color:var(--text2); line-height:1.65; }
.faq-category{ font-size:12px; font-weight:800; color:var(--accent-dark); text-transform:uppercase; letter-spacing:.06em; margin:36px 0 6px; }
[data-theme="light"] .faq-category{ color:#15803D; }
.faq-category:first-child{ margin-top:0; }

/* Simple stat / value pill (used on About) */
.stat-pill{ text-align:center; padding:20px; }
.stat-pill .n{ font-size:28px; font-weight:800; letter-spacing:-.02em; color:var(--accent-dark); }
[data-theme="light"] .stat-pill .n{ color:#15803D; }
.stat-pill .l{ font-size:12.5px; color:var(--text2); margin-top:4px; }

/* Legal document body (Privacy/Terms) */
.legal-body h2{ font-size:19px; font-weight:800; margin:32px 0 12px; letter-spacing:-.01em; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body p{ font-size:14px; color:var(--text2); line-height:1.7; margin-bottom:14px; }
.legal-body ul{ list-style:disc; padding-left:22px; margin-bottom:14px; }
[dir="rtl"] .legal-body ul{ padding-left:0; padding-right:22px; }
.legal-body li{ font-size:14px; color:var(--text2); line-height:1.7; margin-bottom:6px; }
.legal-body strong{ color:var(--text); }
.legal-updated{ font-size:12.5px; color:var(--text3); margin-bottom:36px; }
.legal-note{ background:var(--warn-l); color:var(--warn); border-radius:var(--radius-sm); padding:14px 16px; font-size:13px; line-height:1.6; margin-bottom:32px; }

/* Affiliate program dashboard */
.dash-card{ padding:22px; }
.dash-kpi .n{ font-size:24px; font-weight:800; letter-spacing:-.02em; }
.dash-kpi .l{ font-size:12px; color:var(--text3); font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-bottom:4px; }
.ref-link-box{
  display:flex; align-items:center; gap:10px; background:var(--surface2); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:12px 14px; font-size:13px; color:var(--text2);
  overflow-x:auto; white-space:nowrap;
}
.auth-card{ max-width:420px; margin:0 auto; padding:32px; }
.auth-switch{ text-align:center; font-size:13px; color:var(--text2); margin-top:18px; }
.auth-switch button{ color:var(--accent-dark); font-weight:700; }
[data-theme="light"] .auth-switch button{ color:#15803D; }

/* Batch 122 — the viewport meta no longer sets maximum-scale=1 (pinch-zoom is
   an accessibility requirement), so form controls must be >=16px on phones
   or iOS Safari zooms the page when one is focused. */
@media (max-width: 768px){
  .input, select.input, textarea.input{ font-size:16px; }
}
