/* ============================================================
   PULSE LIBYA — landing.css
   Marketing landing page styles. Builds entirely on the tokens
   in colors_and_type.css (load that first).
   Two materials in tension: marker hand over precise mono.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- shared helpers ---------- */
.dot { color: var(--pulse); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.marker { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.06; }
.annot  { font-family: var(--font-display); font-weight: 400; color: var(--pulse); line-height: 1.18; }
.eyebrow{
  font-family: var(--font-mono); font-weight: 600;
  font-size: var(--t-micro); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}
.ar { font-family: var(--font-arabic); direction: rtl; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 600; font-size: var(--t-label);
  padding: 14px 24px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-ink    { background: var(--ink); color: #fff; }
.btn-ink:hover { opacity: .92; }
.btn-coral  { background: var(--pulse); color: #fff; box-shadow: 0 8px 22px var(--pulse-glow); }
.btn-coral:hover { background: var(--pulse-ink); }
.btn-ghost  { background: transparent; color: var(--ink); border-color: var(--hairline-2); }
.btn-ghost:hover { background: var(--paper-2); }
.btn .sub-lbl { font-weight: 400; color: inherit; opacity: .6; font-size: var(--t-micro); }
.btn-store { flex-direction: column; align-items: flex-start; gap: 1px; padding: 11px 24px; }
.btn-store .sub-lbl { letter-spacing: .12em; text-transform: uppercase; }
.btn-store .big-lbl { font-size: 17px; font-weight: 700; }

/* ---------- live pill (the pulse) ---------- */
.live {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-weight: 500; font-size: var(--t-small);
  color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--hairline);
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill);
}
.live b { color: var(--ink); font-weight: 600; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--pulse);
  position: relative; flex: none;
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--pulse); animation: pulse 1.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot::after { animation: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 26px; height: auto; }
.brand .wm { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: var(--t-label); color: var(--ink-2); font-weight: 500; transition: color var(--dur-fast) var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 88px); margin: 22px 0 0; }
.hero .sub {
  font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2);
  margin-top: 26px; max-width: 520px; text-wrap: pretty;
}
.hero .ar { font-size: 21px; margin-top: 18px; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero-meta .live { background: transparent; border-color: var(--hairline-2); }

.hero-stage { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, var(--pulse-wash) 0%, rgba(255,237,232,0) 64%);
  top: 50%; left: 50%; transform: translate(-50%, -52%); z-index: 0; pointer-events: none;
}
.hero-stage .device { transform: rotate(-3deg); z-index: 1; }
.hero-pin {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-float); border-radius: var(--r-pill);
  padding: 9px 15px; font-size: var(--t-small); font-weight: 500;
}
.hero-pin .em { font-size: 17px; }
.hero-pin.p1 { top: 16%; left: -6%; }
.hero-pin.p2 { bottom: 19%; right: -8%; }
.hero-annot {
  position: absolute; z-index: 3; font-size: 23px; transform: rotate(-7deg);
  top: 2%; right: 2%; text-align: center;
}
.hero-annot img { width: 120px; margin: 4px auto 0; }

/* ============================================================
   DEVICE FRAME (reusable)
   ============================================================ */
.device {
  width: 300px; padding: 9px; background: #0b0b0d; border-radius: 46px;
  box-shadow: 0 2px 4px rgba(0,0,0,.28), 0 40px 70px -34px rgba(26,23,20,.5);
  position: relative; flex: none;
}
.device::before {
  content: ""; position: absolute; inset: 3px; border-radius: 44px;
  border: 1.5px solid rgba(255,255,255,.10); pointer-events: none; z-index: 5;
}
.device-screen { border-radius: 38px; overflow: hidden; background: #fff; position: relative; }
.device-screen img { width: 100%; display: block; }
.device.sm { width: 250px; border-radius: 40px; }
.device.sm .device-screen { border-radius: 33px; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: 92px 0; }
.sec-head { max-width: 720px; }
.sec-head .eyebrow { display: inline-block; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(34px, 4.3vw, 56px); }
.sec-head .lede { color: var(--ink-2); font-size: 18px; margin-top: 18px; max-width: 560px; text-wrap: pretty; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- categories strip ---------- */
.cats-band { background: var(--paper-2); padding: 56px 0; }
.cats-band .lab { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.cats-band .lab h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.cats-band .lab span { color: var(--ink-3); font-size: var(--t-small); }
.cats { display: flex; flex-wrap: wrap; gap: 12px; }
.cat {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--w); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  border-radius: var(--r-pill); padding: 11px 18px 11px 16px;
  font-family: var(--font-mono); font-weight: 500; font-size: var(--t-label);
}
.cat .em { font-size: 18px; }
.cat .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--hairline); }
.step:first-child { border-top: none; }
.step-n {
  font-family: var(--font-mono); font-weight: 700; font-size: 17px;
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--pulse);
  background: var(--pulse-wash); font-variant-numeric: tabular-nums;
}
.step h4 { font-family: var(--font-display); font-weight: 700; font-size: 23px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: var(--t-body); max-width: 380px; }
.how-stage { display: flex; justify-content: center; position: relative; }
.how-stage .device { transform: rotate(3deg); }
.how-stage .hero-annot { top: -6%; left: -4%; right: auto; transform: rotate(6deg); }

/* ---------- trust / verification ---------- */
.trust-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.trust-stage { display: flex; justify-content: center; position: relative; }
.trust-stage .device { transform: rotate(-3deg); }
.verify-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.vrow {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 16px 18px;
}
.vbadge {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; color: #fff;
}
.vrow .vt { font-weight: 600; font-size: var(--t-label); color: var(--ink); }
.vrow .vd { font-size: var(--t-small); color: var(--ink-2); margin-top: 2px; }
.vrow .vmeta { margin-left: auto; font-size: var(--t-small); color: var(--ink-3); }

/* ============================================================
   DARK FEED SECTION
   ============================================================ */
.dark { background: #17140F; color: var(--paper); }
.dark .eyebrow { color: rgba(251,250,247,.5); }
.dark .sec-head h2 { color: var(--paper); }
.dark .lede { color: rgba(251,250,247,.72); }
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feed-copy { max-width: 480px; }
.feed-points { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.fpoint { display: flex; gap: 14px; align-items: flex-start; }
.fpoint .fp-em { font-size: 19px; line-height: 1.4; flex: none; }
.fpoint p { color: rgba(251,250,247,.78); font-size: var(--t-body); }
.fpoint b { color: var(--paper); font-weight: 600; }
.feed-stage { display: flex; justify-content: center; }
.feed-stage .device { box-shadow: 0 2px 4px rgba(0,0,0,.5), 0 50px 90px -30px rgba(0,0,0,.7); }
.dark-pulse { color: var(--pulse); width: 180px; opacity: .9; margin-top: 36px; }

/* ============================================================
   COMMUNITY / REPUTATION
   ============================================================ */
.rep-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.rep-stage { display: flex; justify-content: center; position: relative; }
.rep-stage .device { transform: rotate(3deg); }
.rep-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; max-width: 460px; }
.stat {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 20px 18px;
}
.stat .num {
  font-family: var(--font-mono); font-weight: 700; font-size: 34px; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat .num .dot { color: var(--pulse); }
.stat .lbl { font-size: var(--t-small); color: var(--ink-3); margin-top: 8px; }

/* ---------- bilingual note ---------- */
.bilingual { background: var(--paper-2); }
.bi-in { display: flex; align-items: center; justify-content: center; gap: 28px 40px; flex-wrap: wrap; text-align: center; }
.bi-in .marker { font-size: clamp(30px, 4vw, 46px); }
.bi-in .x { color: var(--pulse); font-family: var(--font-display); font-size: 40px; }
.bi-in .ar { font-size: clamp(30px, 4vw, 46px); color: var(--ink); font-weight: 600; }
.bilingual .note { text-align: center; color: var(--ink-2); margin-top: 18px; font-size: var(--t-body); }

/* ============================================================
   FINAL CTA (coral)
   ============================================================ */
.cta { background: var(--pulse); color: #fff; text-align: center; padding: 104px 0; position: relative; overflow: hidden; }
.cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 7vw, 82px); line-height: 1.04; }
.cta h2 .dot { color: var(--ink); }
.cta .sub { color: rgba(255,255,255,.9); font-size: 19px; margin-top: 22px; max-width: 480px; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.cta .ar { color: rgba(255,255,255,.82); font-size: 21px; margin-top: 14px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.cta .btn-ink { background: var(--ink); }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.12); }
.cta-pulse { color: rgba(255,255,255,.5); width: 220px; margin: 0 auto 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 56px 0 44px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--ink-2); font-size: var(--t-small); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h5 { font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--ink-2); font-size: var(--t-label); margin-bottom: 10px; transition: color var(--dur-fast) var(--ease); }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline);
  color: var(--ink-3); font-size: var(--t-small);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .how-grid, .trust-grid, .feed-grid, .rep-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stage, .how-stage, .trust-stage, .rep-stage, .feed-stage { order: 2; }
  .how-grid .steps, .trust-grid .trust-copy, .rep-grid .rep-copy, .feed-grid .feed-copy { order: 1; }
  .section { padding: 72px 0; }
  .hero-annot { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero-pin { display: none; }
  .rep-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 14px 12px; }
  .stat .num { font-size: 26px; }
  .device { width: 264px; }
  .nav-cta .btn-text { display: none; }
}

/* ============================================================
   PAGE HERO — sub-pages (privacy, contact)
   ============================================================ */
.page-hero { padding: 96px 0 40px; }
.page-hero .eyebrow { display: inline-block; margin-bottom: 18px; }
.page-h1 { font-size: clamp(46px, 6.6vw, 88px); line-height: 1.06; max-width: 14ch; }
.page-lede { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 21px); margin-top: 22px; max-width: 540px; text-wrap: pretty; }
.page-ar { font-size: 21px; margin-top: 14px; font-weight: 500; color: var(--ink-3); }

/* ============================================================
   LEGAL / PRIVACY
   ============================================================ */
.legal { padding: 24px 0 96px; }
.legal-grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.legal-toc {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 10px;
  border-left: 1px solid var(--hairline); padding-left: 18px;
}
.legal-toc .eyebrow { margin-bottom: 6px; }
.legal-toc a { font-size: var(--t-small); color: var(--ink-2); transition: color var(--dur-fast) var(--ease); }
.legal-toc a:hover { color: var(--ink); }

.legal-body { max-width: 720px; }
.legal-intro {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2); line-height: 1.55;
  padding-bottom: 28px; border-bottom: 1px solid var(--hairline);
  text-wrap: pretty;
}
.legal-section { padding: 36px 0; border-bottom: 1px solid var(--hairline); scroll-margin-top: 96px; }
.legal-section:last-child { border-bottom: none; }
.legal-section h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 14px; color: var(--ink);
}
.legal-section p { color: var(--ink-2); font-size: var(--t-body); margin-top: 12px; max-width: 62ch; text-wrap: pretty; }
.legal-section ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.legal-section li {
  position: relative; padding-left: 22px;
  color: var(--ink-2); font-size: var(--t-body);
  max-width: 62ch; text-wrap: pretty;
}
.legal-section li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 8px; height: 2px; background: var(--pulse);
}
.legal-section li b { color: var(--ink); font-weight: 600; }
.legal-section a { color: var(--ink); border-bottom: 1px solid var(--pulse); padding-bottom: 1px; }
.legal-section a.email { font-weight: 600; }
.legal-annot { margin-top: 18px; font-size: 20px; line-height: 1.3; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-page { padding: 24px 0 80px; }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.contact-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 40px 36px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: flex-start;
}
.contact-card .eyebrow { margin-bottom: 16px; }
.contact-email {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(22px, 3vw, 30px); color: var(--ink);
  letter-spacing: -.01em; margin-bottom: 28px;
  word-break: break-all;
}
.contact-aside { margin-top: 22px; font-size: 21px; }

.lanes { display: flex; flex-direction: column; gap: 10px; }
.lanes .eyebrow { margin-bottom: 6px; }
.lane {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--hairline);
  border-radius: var(--r-card); background: var(--surface);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.lane:hover { background: var(--paper-2); border-color: var(--hairline-2); }
.lane:active { transform: scale(.99); }
.lane-em { font-size: 24px; line-height: 1; margin-top: 2px; }
.lane h4 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 4px; color: var(--ink); }
.lane p { color: var(--ink-2); font-size: var(--t-small); }

/* ============================================================
   SUB-PAGE RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc {
    position: static; border-left: none;
    border-top: 1px solid var(--hairline);
    padding: 18px 0 0;
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
  }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
