/* ══════════════════════════════════════════════════════════════
   AMA HORIZONS — "Ticket & Ledger" design system
   Loaded after styles.css: redefines tokens + adds the signature
   ticket-card language. Every operation here (a café session, a
   shop sale, a chat order) becomes a tracked, stamped record —
   the visual system says that literally.

   Palette is sampled directly from the AMA Horizons logo mark:
   the cloud runs a deep blue -> bright teal gradient over a navy
   wordmark. That blue/teal/navy IS the brand — the ticket/stamp
   structure just gives it a place to live.
   ══════════════════════════════════════════════════════════════ */

:root {
  /* — Horizon palette (sampled from the logo) — */
  --bg:          #EEF3F6;
  --surface:     #FFFFFF;
  --surface-2:   #F1F5F8;
  --surface-3:   #E5EBF0;
  --border:      rgba(6,39,74,0.10);
  --border-2:    rgba(6,39,74,0.20);

  --text:        #06274A;
  --text-2:      #3C5872;
  --text-3:      #7690A6;

  --primary:     #0B54C2;
  --primary-2:   #083E8F;
  --primary-3:   #062C66;

  --ok:          #0E8A72;
  --warn:        #B8860B;
  --danger:      #C0392B;

  --teal:        #00B8B3;
  --teal-2:      #00918D;
  --ink:         #06274A;
  --ledger:      #EEF3F6;

  --accent:      var(--primary);
  --muted:       var(--text-2);
  --panel:       var(--surface);
  --panel-2:     var(--surface-2);
  --primary-light: var(--primary);

  --font-display: 'Space Grotesk', 'Cairo', system-ui, sans-serif;
  --font-body:    'Inter', 'Cairo', system-ui, sans-serif;
  --font-mono:    'Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

html[dir="rtl"] { --font-display: 'Cairo', 'Space Grotesk', system-ui, sans-serif; }

/* ── Type roles ──────────────────────────────────────────── */
h1, h2, h3, h4,
.hero-headline, .section-h2, .about-h2, .cta-h2,
.brand, .product-name, .pm-band-title, .pm-offer-price,
.hero-headline span, nav.nav .brand-product {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.stat-number, .pv-stat-num, .mfc-value,
.pm-offer-price, .pm-renewal-amount,
.ticket-number, .ticket-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.btn, .nav a, .lang-switcher, .section-label, .eyebrow {
  font-family: var(--font-body);
}

/* ── Base surface: ledger paper, not lavender ───────────── */
html, body { background: var(--bg); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .6;
}

/* ── Kill the generic AI-gradient-orb hero decoration ───── */
.hero-orb, .hero-beam, .hero-beam::after, .hero-orb-1, .hero-orb-2, .hero-orb-3 {
  display: none !important;
}
.cursor-glow { display: none !important; }
.hero-home::before, .pm-hero::before, .pm-hero::after,
.products-section::before, .cta-section::before, .why-section::before,
.about-section::before {
  background: none !important;
  content: none !important;
}

/* ── Nav: hairline ledger rule, no blur-glass ───────────── */
.nav {
  background: var(--ledger);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--border-2);
  box-shadow: none;
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background-image: repeating-linear-gradient(to right, var(--border-2) 0 6px, transparent 6px 12px);
}
.brand .logo { border-radius: 4px; box-shadow: 0 0 0 1px var(--border-2); }
.nav .links a:not(.btn):not(.lang-switcher)::after { background: var(--primary); }

/* ── Buttons: stamped, not pill-glow — navy ink, teal offset ── */
.btn {
  border-radius: 4px;
  background: var(--ink);
  box-shadow: 2px 2px 0 0 var(--teal);
  border: 1px solid var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover {
  background: var(--ink);
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 0 var(--teal);
}
.btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 0 var(--teal); }
.btn.btn-hero, #pricing-signup-btn, #nav-signup-btn {
  background: var(--primary);
  border-color: var(--primary-3);
  box-shadow: 2px 2px 0 0 var(--ink);
}
.btn.btn-hero:hover, #pricing-signup-btn:hover, #nav-signup-btn:hover {
  background: var(--primary-2);
  box-shadow: 3px 3px 0 0 var(--ink);
}
.ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text) !important;
  box-shadow: none;
  border-radius: 4px;
}
.ghost:hover { background: var(--surface-2); border-color: var(--ink); }
.ghost i, .ghost span { color: var(--text) !important; }
.nav .btn.ghost, .nav .btn.ghost i, .nav .btn.ghost span { color: var(--text) !important; }

/* ── Eyebrow / labels: mono ticket tag instead of pill ──── */
.eyebrow, .section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-2);
  background: none;
  border: none;
  padding: 0;
}
.eyebrow-dot { background: var(--primary); animation: none !important; }
.eyebrow-dot::before { display: none; }

/* ── Photo-filled text: background-clip:text with a real photo instead
   of a flat gradient. Needs a bold, large face to read — use sparingly,
   on one heading at a time, never on a heading already sitting on the
   same photo (the letters would just vanish back into it). ── */
.text-photo-fill {
  background-image:
    linear-gradient(100deg, rgba(6,39,74,0.25), rgba(0,184,179,0.15)),
    url('../../horizon-bg.jpg');
  background-size: cover;
  background-position: center 55%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@supports not (background-clip: text) {
  .text-photo-fill { background: none; color: var(--text); -webkit-text-fill-color: var(--text); }
}

.headline-gradient {
  color: var(--primary);
  background: linear-gradient(100deg, var(--primary) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not (-webkit-background-clip: text) {
  .headline-gradient { -webkit-text-fill-color: var(--primary); }
}

/* ── Icon badges / stat numbers: echo the logo's own blue->teal sweep ── */
.product-icon-lg {
  background: linear-gradient(135deg, var(--primary), var(--teal)) !important;
}
.product-icon-lg i { color: #fff; }
.pillar-icon, .why-icon {
  background: linear-gradient(135deg, rgba(11,84,194,0.14), rgba(0,184,179,0.14)) !important;
}
.pillar-icon i, .why-icon i { color: var(--primary-2); }

.stat-number {
  background: linear-gradient(100deg, var(--primary) 0%, var(--teal) 100%) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
/* .pv-stat-num sits on a dark photo scrim — keep it plain white, not gradient-filled */
.pv-stat-num { color: #fff !important; -webkit-text-fill-color: #fff !important; }

.product-visual-scrim {
  background: linear-gradient(135deg,
    rgba(6,39,74,0.75) 0%,
    rgba(0,184,179,0.35) 50%,
    rgba(6,39,74,0.8) 100%) !important;
}

/* ══════════════════════════════════════════════════════════
   Signature component: the ticket card
   ══════════════════════════════════════════════════════════ */
.ticket-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  box-shadow: 6px 6px 0 0 rgba(6,39,74,0.08);
}

.ticket-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ticket-number::before, .ticket-number::after {
  content: "";
  width: 14px; height: 1px;
  background: var(--border-2);
}

.ticket-tear {
  position: relative;
  height: 1px;
  margin: 20px 0;
  background-image: repeating-linear-gradient(to right, var(--border-2) 0 7px, transparent 7px 14px);
}
.ticket-tear::before, .ticket-tear::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-2);
}
.ticket-tear::before { left: -28px; }
.ticket-tear::after { right: -28px; }

.ticket-punch {
  position: absolute;
  top: 24px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-2);
  z-index: 3;
}
.ticket-punch.left { left: -7px; }
.ticket-punch.right { right: -7px; }

/* ══════════════════════════════════════════════════════════
   Real photography instead of flat paper — the site's own
   "horizon" (dusk sky meeting a still sea) opens the homepage
   and closes it at the contact section, with a navy scrim so
   the ticket content on top stays fully readable and the
   photo fades into the ledger paper underneath it.
   ══════════════════════════════════════════════════════════ */
.hero-home, .pm-hero {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(6,39,74,0.72) 0%, rgba(6,39,74,0.55) 45%, var(--ledger) 96%),
    url('../../horizon-bg.jpg');
  background-size: cover;
  background-position: center 65%;
  background-repeat: no-repeat;
}

.hero-home .ticket-number,
.hero-home .eyebrow,
.pm-hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero-home .ticket-number::before, .hero-home .ticket-number::after,
.pm-hero .eyebrow-dot { background: rgba(255,255,255,0.4); }

.hero-home .hero-headline,
.pm-hero .hero-headline { color: #fff; }
.hero-home .hero-headline .headline-gradient,
.pm-hero .hero-headline span:not(.headline-gradient) { color: #fff; }
.hero-home .headline-gradient, .pm-hero .headline-gradient {
  background: linear-gradient(100deg, #6FD8FF 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-home .hero-sub, .pm-hero .hero-sub { color: rgba(255,255,255,0.82); }
.hero-home .hero-trust-text, .pm-hero .hero-trust-text { color: rgba(255,255,255,0.75); }

.hero-home .btn.ghost, .pm-hero .btn.ghost, .cta-section .btn.ghost {
  border-color: rgba(255,255,255,0.4);
  color: #fff !important;
}
.hero-home .btn.ghost i, .hero-home .btn.ghost span,
.pm-hero .btn.ghost i, .pm-hero .btn.ghost span,
.cta-section .btn.ghost i, .cta-section .btn.ghost span { color: #fff !important; }
.hero-home .btn.ghost:hover, .pm-hero .btn.ghost:hover, .cta-section .btn.ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.hero-home .hero-mockup-browser, .pm-hero .hero-mockup-browser {
  box-shadow: 0 30px 60px rgba(6,39,74,0.5);
}

/* Contact / CTA: bookend the homepage with the same horizon */
.cta-section {
  position: relative;
  background-image:
    linear-gradient(180deg, var(--ledger) 0%, rgba(6,39,74,0.55) 30%, rgba(6,39,74,0.8) 100%),
    url('../../horizon-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.cta-section .section-label, .cta-section .cta-h2, .cta-section .cta-sub,
.cta-section .cta-trust-item { color: #fff; }

/* ══════════════════════════════════════════════════════════
   Section rhythm: no section left on flat default. Photo
   bookends the page (hero/CTA); paper carries the two
   text-and-card-heavy sections (about, products) where the
   ticket cards need a clean light surface; navy ink bands
   the other three, giving the page a visible beat as you
   scroll instead of one long uninterrupted sheet.
   ══════════════════════════════════════════════════════════ */
.stats-bar, .gallery-section, .why-section,
.pm-stats-bar, .pm-pricing-section {
  background: var(--ink) !important;
  border-color: rgba(255,255,255,0.12) !important;
  position: relative;
  overflow: hidden;
}
.stats-bar::before, .gallery-section::before, .why-section::before,
.pm-stats-bar::before, .pm-pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.stats-bar > *, .gallery-section > *, .why-section > *,
.pm-stats-bar > *, .pm-pricing-section > * { position: relative; z-index: 1; }

.pm-pricing-section .section-label,
.pm-pricing-section .section-h2 { color: #fff; }
.pm-pricing-section .section-sub { color: rgba(255,255,255,0.72); }
.pm-pricing-section .pm-pricing-notice p { color: rgba(255,255,255,0.55); }
.pm-pricing-section .pm-offer-card { box-shadow: 0 25px 60px rgba(0,0,0,0.35); }

.stats-bar .stat-divider, .pm-stats-bar .stat-divider { background: rgba(255,255,255,0.18); }
.stats-bar .stat-label, .pm-stats-bar .stat-label { color: rgba(255,255,255,0.65); }
.stats-bar .stat-number, .pm-stats-bar .stat-number {
  background: linear-gradient(100deg, #6FD8FF 0%, var(--teal) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.gallery-section .section-label, .why-section .section-label { color: var(--teal); }
.gallery-section .section-h2, .why-section .section-h2 { color: #fff; }
.gallery-section .section-sub { color: rgba(255,255,255,0.7); }

.gallery-overlay-content { color: var(--teal); }

.why-card { box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.cta-section .cta-trust-item i { color: var(--teal); }

/* ══════════════════════════════════════════════════════════
   Product-page feature bands: the bug was that alternating
   bands (var(--surface) / var(--surface-2)) held cards that
   were ALSO var(--surface-2) — on every other band the cards
   were the exact same color as their own container and just
   vanished. Fix: cards are always a solid white panel, bands
   alternate paper/navy for real contrast, matching the same
   rhythm used site-wide (not just two shades of near-white).
   ══════════════════════════════════════════════════════════ */
.pm-feature-band {
  background: var(--surface) !important;
  border-color: var(--border-2) !important;
}
.pm-feature-card {
  background: var(--surface-2) !important;
  border-color: var(--border-2) !important;
}

.pm-feature-band.pm-band-navy {
  background: var(--ink) !important;
  border-color: rgba(255,255,255,0.12) !important;
  overflow: hidden;
}
.pm-feature-band.pm-band-navy::before,
.pm-feature-band.pm-band-navy::after { display: none; }
.pm-feature-band.pm-band-navy .pm-band-label { color: var(--teal); }
.pm-feature-band.pm-band-navy .pm-band-title { color: #fff; }
.pm-feature-band.pm-band-navy .pm-band-sub { color: rgba(255,255,255,0.72); }
.pm-feature-band.pm-band-navy .pm-feature-card {
  background: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}
.pm-feature-band.pm-band-navy .pm-feature-icon {
  background: linear-gradient(135deg, rgba(11,84,194,.16), rgba(0,184,179,.22)) !important;
  border-color: rgba(0,184,179,.3) !important;
  color: var(--primary-2);
}
.pm-feature-band.pm-band-navy .pm-feature-card h3 { color: var(--text); }
.pm-feature-band.pm-band-navy .pm-feature-card p { color: var(--text-2); }

.pm-callout {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; border-radius: 12px; margin-top: 24px;
  background: rgba(11,84,194,0.06); border: 1px solid rgba(11,84,194,0.14);
}
.pm-callout i { color: var(--primary-2); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.pm-callout-title {
  font-size: 12px; font-weight: 700; color: var(--primary-2);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.pm-callout-text { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.pm-feature-band.pm-band-navy .pm-callout {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.16) !important;
}
.pm-feature-band.pm-band-navy .pm-callout i { color: var(--teal); }
.pm-feature-band.pm-band-navy .pm-callout-title { color: var(--teal); }
.pm-feature-band.pm-band-navy .pm-callout-text { color: rgba(255,255,255,0.75); }
