/* ————————————————————————————————————————————————
   Menagenix — official brand identity
   neon green #3BFE35 → slate blue #447FA9, left to right
   bold ALL-CAPS sans display (Montserrat), Inter body,
   mono telemetry labels · very dark, clean background
   ———————————————————————————————————————————————— */

:root {
  --night:   #0b1118;
  --panel:   #111927;
  --panel-2: #16233680;
  --line:    rgba(148, 178, 215, 0.14);
  --line-strong: rgba(148, 178, 215, 0.28);
  --text:    #e9eef6;
  --muted:   #9aaac0;
  --faint:   #66768c;

  /* brand palette */
  --neon:    #3bfe35;            /* Primary Green — gradient left anchor */
  --neon-deep: #2bd127;
  --neon-soft: rgba(59, 254, 53, 0.1);
  --slate:   #447fa9;            /* Slate Blue — gradient right anchor */
  --slate-soft: rgba(68, 127, 169, 0.16);
  --grad:    linear-gradient(90deg, #3bfe35 0%, #447fa9 100%); /* never reversed */

  --err:     #ff6f61;            /* functional only, not a brand color */
  --link:    #8db9e6;

  --font-display: "Montserrat", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--neon); color: var(--night); }

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0;
  background: var(--neon); color: var(--night);
  padding: 0.5rem 1rem; z-index: 200; font-family: var(--font-mono); font-size: 0.85rem;
}
.skip-link:focus { inset-inline-start: 0; }

/* ——— type ——— */

h1, h2 {
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15; letter-spacing: 0.015em;
}
h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
/* accented words carry the brand gradient, always green → blue */
h1 em, h2 em {
  font-style: normal;
  color: var(--neon);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 40em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--neon);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--neon); opacity: 0.6; flex: none; }
.eyebrow.slate { color: var(--slate); }
.eyebrow.slate::before { background: var(--slate); }

/* ——— header ——— */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 17, 24, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.25rem; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a {
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--neon); padding-bottom: 2px; }
/* the solid CTA keeps dark text on the gradient even when it is the current page */
.site-nav .btn.solid[aria-current="page"] { color: var(--night); border-bottom: none; padding-bottom: 0.8rem; }

.nav-tag {
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--neon);
  border: 1px solid var(--neon); border-radius: 99px;
  padding: 0.05rem 0.4rem; margin-inline-start: 0.4rem; vertical-align: 2px;
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  color: var(--text); border-radius: 6px; padding: 0.45rem 0.7rem;
  font-family: var(--font-mono); font-size: 0.8rem; cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 4.25rem; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--neon); }
  .site-nav .btn { margin-top: 0.9rem; width: auto; }
}

/* ——— buttons ——— */

.btn {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 0.8rem 1.5rem; border-radius: 6px;
  border: 1px solid var(--neon);
  color: var(--neon); background: transparent;
  cursor: pointer; transition: background 0.18s, color 0.18s, transform 0.18s, filter 0.18s;
}
.btn:hover { background: var(--neon-soft); text-decoration: none; }
.btn.solid {
  background: var(--grad); color: var(--night);
  border-color: transparent; font-weight: 700;
}
.btn.solid:hover { filter: brightness(1.12); }
.btn.ghost { border-color: var(--line-strong); color: var(--text); }
.btn.ghost:hover { background: rgba(148, 178, 215, 0.08); border-color: var(--muted); }
.btn.slate { border-color: var(--slate); color: var(--link); }
.btn.slate:hover { background: var(--slate-soft); }
.btn.slate.solid { background: var(--slate); color: var(--text); filter: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ——— sections ——— */

.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .lede { margin-top: 0.9rem; }

/* ——— hero ——— */

.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.hero .lede { margin-top: 1.4rem; }
.hero-grid { position: relative; z-index: 1; }

/* the signature: a calm signal trace */
.signal-figure { margin-top: clamp(2.5rem, 6vw, 4rem); }
.signal-figure svg { width: 100%; height: auto; }
.signal-trace {
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.signal-trace.draw {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: trace-draw 3.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}
@keyframes trace-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .signal-trace.draw { stroke-dasharray: none; stroke-dashoffset: 0; }
}
.signal-legend {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint);
  border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: -0.25rem;
}
.signal-legend b { color: var(--muted); font-weight: 500; }
.signal-legend .lit { color: var(--neon); }
.signal-legend .ok { color: var(--link); }
@media (max-width: 640px) { .signal-legend { font-size: 0.65rem; } }

/* ——— cards ——— */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid.four { grid-template-columns: 1fr; } }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.7rem 1.6rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .index {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint);
  display: block; margin-bottom: 1.1rem;
}
.card a.more { font-family: var(--font-mono); font-size: 0.8rem; display: inline-block; margin-top: 1rem; }

/* ——— split band (ad bands: Lora / Aetherix) ——— */

.band {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.8rem, 5vw, 3.2rem);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: linear-gradient(115deg, var(--panel) 0%, var(--night) 90%);
}
.band.lit { border-color: rgba(59, 254, 53, 0.35); }
.band h2 { margin-bottom: 0.8rem; }
.band p { color: var(--muted); }
.band ul { margin: 1.1rem 0 0; padding: 0; list-style: none; color: var(--muted); }
.band li { padding-inline-start: 1.4rem; position: relative; margin-bottom: 0.45rem; }
.band li::before { content: "→"; position: absolute; inset-inline-start: 0; color: var(--neon); font-family: var(--font-mono); font-size: 0.85rem; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

/* transcript vignette used in Lora promos */
.transcript {
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
  font-size: 0.92rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.transcript .meta {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint);
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid var(--line); padding-bottom: 0.7rem;
}
.bubble { border-radius: 10px; padding: 0.65rem 0.9rem; max-width: 88%; line-height: 1.5; }
.bubble.caller { background: var(--panel); align-self: flex-start; border: 1px solid var(--line); }
.bubble.agent { background: var(--slate-soft); border: 1px solid rgba(68, 127, 169, 0.45); align-self: flex-end; }
.bubble .who { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 0.25rem; text-transform: uppercase; }
.bubble[dir="rtl"] { text-align: right; }
.bubble[dir="ltr"] { text-align: left; }

/* ——— feature/detail rows (services & lora pages) ——— */

.detail {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.detail:first-of-type { border-top: 0; }
.detail h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: 0.7rem; }
.detail .kicker { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); display: block; margin-bottom: 0.9rem; }
.detail p { color: var(--muted); }
.detail ul { list-style: none; margin-top: 0.4rem; }
.detail li {
  padding-block: 0.75rem; padding-inline: 1.7rem 0; position: relative;
  border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.98rem;
}
.detail li:last-child { border-bottom: 0; }
.detail li::before {
  content: "✓"; position: absolute; inset-inline-start: 0.1rem; color: var(--neon);
  font-family: var(--font-mono); font-size: 0.85rem;
}
@media (max-width: 780px) { .detail { grid-template-columns: 1fr; } }

/* ——— pricing ——— */

.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; align-items: stretch; }
.tier {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.9rem 1.7rem; display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--neon); position: relative; }
.tier .badge {
  position: absolute; top: -0.8rem; inset-inline-start: 1.4rem;
  background: var(--grad); color: var(--night);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  border-radius: 99px; padding: 0.2rem 0.75rem; letter-spacing: 0.05em;
}
.tier h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.tier .sub { color: var(--faint); font-size: 0.85rem; margin-top: 0.15rem; }
.tier .price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin: 1.1rem 0 0.1rem; }
.tier .price small { font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; color: var(--faint); }
.tier ul { list-style: none; margin: 1.2rem 0 1.6rem; flex: 1; }
.tier li { padding-block: 0.45rem; padding-inline: 1.5rem 0; position: relative; color: var(--muted); font-size: 0.93rem; }
.tier li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--neon); font-family: var(--font-mono); font-size: 0.8rem; }
.tier .btn { text-align: center; }
.pricing-note { color: var(--faint); font-size: 0.9rem; margin-top: 1.6rem; font-family: var(--font-mono); }

/* ——— comparison table (lora math) ——— */

.compare {
  width: 100%; border-collapse: collapse; font-size: 0.97rem;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.compare-wrap { overflow-x: auto; border-radius: 12px; }
.compare th, .compare td { padding: 0.9rem 1.1rem; text-align: start; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; background: var(--panel); }
.compare td:first-child { color: var(--muted); }
.compare td.win { color: var(--neon); font-weight: 600; }
.compare td.lose { color: var(--faint); }
.compare tr:last-child td { border-bottom: 0; }

/* ——— steps ——— */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; counter-reset: step; }
.step {
  border: 1px solid var(--line); border-radius: 10px; padding: 1.6rem 1.5rem;
  background: var(--panel); counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); color: var(--neon); font-size: 0.8rem;
  display: block; margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ——— faq ——— */

.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.1rem 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--neon); font-size: 1.1rem; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 1.2rem; max-width: 42em; }

/* ——— prose (legal pages, about) ——— */

.prose { max-width: 44em; }
.prose h2 { font-size: 1.3rem; margin: 2.4rem 0 0.8rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: 1rem; }
.prose ul { padding-inline-start: 1.2rem; }
.prose .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint); }

/* ——— contact ——— */

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--muted); margin-bottom: 0.45rem; letter-spacing: 0.05em;
}
.form-field input, .form-field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line-strong);
  color: var(--text); border-radius: 8px; padding: 0.8rem 0.95rem;
  font-family: var(--font-body); font-size: 1rem;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--neon); outline-offset: 0; border-color: transparent; }
.form-field textarea { min-height: 9.5rem; resize: vertical; }
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { font-family: var(--font-mono); font-size: 0.85rem; margin-top: 1rem; min-height: 1.4em; }
.form-status.ok { color: var(--neon); }
.form-status.err { color: var(--err); }

.contact-aside .card { margin-bottom: 1rem; }
.contact-aside .card p { margin-top: 0.3rem; }
.contact-aside a { font-family: var(--font-mono); font-size: 0.95rem; }

/* ——— footer ——— */

.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; font-weight: 500; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--muted); font-size: 0.93rem; }
.site-footer a:hover { color: var(--text); }
.footer-about p { color: var(--faint); font-size: 0.9rem; max-width: 26em; margin-top: 0.8rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 2.8rem; padding-top: 1.6rem;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint);
}
.ext::after { content: " ↗"; font-family: var(--font-mono); font-size: 0.8em; }

/* ——— reveal on scroll ——— */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ——— page hero variant (interior pages) ——— */

.page-hero { padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); }
.page-hero .lede { margin-top: 1.2rem; }

/* ——— audio demo slots (lora) ——— */

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 700px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-slot {
  border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 1.5rem; background: var(--panel-2);
}
.demo-slot h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.demo-slot p { color: var(--faint); font-size: 0.88rem; margin-bottom: 0.9rem; }
.demo-slot audio { width: 100%; }

/* ——— owner's dashboard mockup (lora) ——— */

.dash {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--panel);
}
.dash-head {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint);
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line);
  background: var(--night);
}
.dash-head .live { color: var(--neon); }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 1.1rem 1.2rem; border-inline-end: 1px solid var(--line);
}
.stat:last-child { border-inline-end: 0; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; }
.stat .n.up::after { content: " ▲"; font-family: var(--font-mono); font-size: 0.65rem; color: var(--neon); vertical-align: 3px; }
.stat .n.zero { color: var(--neon); }
.stat .l { font-family: var(--font-mono); font-size: 0.66rem; color: var(--faint); letter-spacing: 0.05em; margin-top: 0.25rem; }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-inline-end: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.feed { list-style: none; padding: 0.4rem 0; }
.feed li {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding: 0.55rem 1.2rem; font-size: 0.9rem; color: var(--muted);
}
.feed li + li { border-top: 1px solid var(--line); }
.feed .t { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); flex: none; width: 3.2rem; }
.feed .tag { margin-inline-start: auto; font-family: var(--font-mono); font-size: 0.65rem; flex: none; }
.feed .tag.ok { color: var(--link); }
.feed .tag.hot { color: var(--neon); }
.dash-note {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint);
  padding: 0.7rem 1.2rem; border-top: 1px solid var(--line); background: var(--night);
}

/* ——— floating whatsapp button ——— */

.wa-float {
  position: fixed; inset-inline-end: 1.2rem; bottom: 1.2rem; z-index: 90;
  display: flex; align-items: center; gap: 0.55rem;
  background: #1fae54; color: #fff;
  border-radius: 99px; padding-block: 0.75rem; padding-inline: 0.9rem 1.2rem;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.wa-float:hover { background: #189347; text-decoration: none; transform: translateY(-2px); }
.wa-float svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { padding: 0.85rem; } }

/* dashboard feed sits inside .band — neutralize the band's list styling */
.band .feed { margin: 0; }
.band .feed li { padding: 0.55rem 1.2rem; margin-bottom: 0; }
.band .feed li::before { content: none; }

/* ————————————————————————————————————————————————
   RTL / Arabic layer
   Latin glyphs keep Montserrat + Inter + Plex Mono;
   Arabic glyphs fall through to Cairo / IBM Plex Sans Arabic
   automatically via the per-glyph font stack below.
   ———————————————————————————————————————————————— */

[dir="rtl"] {
  --font-display: "Montserrat", "Cairo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Sans Arabic", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --font-mono-latin: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

/* numeric telemetry keeps the fixed advance that makes it line up */
[dir="rtl"] .signal-legend b,
[dir="rtl"] .feed .t,
[dir="rtl"] .card .index[lang="en"],
[dir="rtl"] .ltr { font-family: var(--font-mono-latin); }
[dir="rtl"] .prose .ltr,
[dir="rtl"] .lede .ltr { font-family: inherit; }

/* Arabic needs more room to breathe between lines */
[dir="rtl"] body { line-height: 1.85; }
[dir="rtl"] h1, [dir="rtl"] h2 { line-height: 1.35; }
[dir="rtl"] h3 { line-height: 1.5; }
[dir="rtl"] .lede { max-width: 38em; }
[dir="rtl"] .prose { max-width: 42em; }
[dir="rtl"] .faq { max-width: 44em; }
[dir="rtl"] .section-head { max-width: 44em; }

/* tracking is tuned for Latin caps — it breaks up connected Arabic script */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .eyebrow, [dir="rtl"] .btn, [dir="rtl"] .nav-tag,
[dir="rtl"] .card .index, [dir="rtl"] .detail .kicker,
[dir="rtl"] .site-footer h4, [dir="rtl"] .compare thead th,
[dir="rtl"] .bubble .who, [dir="rtl"] .tier .badge, [dir="rtl"] .tier h3,
[dir="rtl"] .stat .l, [dir="rtl"] .form-field label, [dir="rtl"] .skip-link,
[dir="rtl"] .nav-toggle, [dir="rtl"] .footer-bottom, [dir="rtl"] .dash-head,
[dir="rtl"] .dash-note, [dir="rtl"] .pricing-note, [dir="rtl"] .signal-legend,
[dir="rtl"] .transcript .meta, [dir="rtl"] .feed, [dir="rtl"] .form-status,
[dir="rtl"] .prose .updated { letter-spacing: 0; }

/* the wordmark stays Latin, so it keeps its Latin tracking */
[dir="rtl"] .brand-name { letter-spacing: 0.06em; }

/* directional glyphs written into content */
[dir="rtl"] .band li::before { content: "←"; }
/* ...but the dashboard feed lives inside .band and takes no bullet */
[dir="rtl"] .band .feed li::before { content: none; }
[dir="rtl"] .ext::after { content: " ↗"; display: inline-block; transform: scaleX(-1); }

/* the band's raking light follows the reading direction */
[dir="rtl"] .band { background: linear-gradient(245deg, var(--panel) 0%, var(--night) 90%); }

/* a Latin island inside an Arabic page (phone numbers, emails, product names) */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* the signal figure is a time axis — it stays left-to-right in both languages */
[dir="rtl"] .signal-figure { direction: ltr; }
[dir="rtl"] .signal-legend span { direction: rtl; }

/* ——— language switcher ——— */

.lang-switch {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--faint); border: 1px solid var(--line-strong);
  border-radius: 99px; padding: 0.28rem 0.7rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.18s, border-color 0.18s;
}
.lang-switch:hover { color: var(--text); border-color: var(--muted); text-decoration: none; }
.lang-switch::before {
  content: "";
  width: 0.9rem; height: 0.9rem; flex: none; opacity: 0.7;
  background: currentColor;
  -webkit-mask: no-repeat center / contain url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cpath d="M3 12h18M12 3c2.5 2.7 3.8 5.8 3.8 9S14.5 21.3 12 21c-2.5-.3-3.8-5.8-3.8-9S9.5 5.7 12 3z"/%3E%3C/svg%3E');
  mask: no-repeat center / contain url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cpath d="M3 12h18M12 3c2.5 2.7 3.8 5.8 3.8 9S14.5 21.3 12 21c-2.5-.3-3.8-5.8-3.8-9S9.5 5.7 12 3z"/%3E%3C/svg%3E');
}
/* the switcher always labels the *other* language, in that language */
.lang-switch[hreflang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-mono); letter-spacing: 0; }
.site-nav .lang-switch[aria-current] { border-bottom: 1px solid var(--line-strong); }

@media (max-width: 780px) {
  .site-nav .lang-switch {
    width: auto; align-self: flex-start; margin-top: 0.9rem;
    padding: 0.4rem 0.8rem; border-bottom: 1px solid var(--line-strong);
  }
  .site-nav .btn { margin-top: 0.9rem; }
}
