:root {
  --bg: #04191b;
  --bg-2: #062a2c;
  --bg-alt: #05201f;
  --panel: #0a3336;
  --ink: #e8f7f4;
  --ink-soft: #cfe6e2;
  --ink-strong: #ffffff;
  --muted: #9ec4bf;
  --muted-2: #7ea8a2;
  --brand: #1ec98a;
  --brand-strong: #14b87c;
  --brand-light: #6ef2c1;
  --brand-ink: #04352c;
  --amber: #f5b84b;
  --amber-ink: #ffd38a;
  --rose: #f0857d;
  --rose-ink: #ff9d95;
  --sky: #6cc6f0;
  --sky-ink: #8fd6f7;
  --violet: #a99bf5;
  --line: rgba(30, 201, 138, 0.22);
  --line-soft: rgba(158, 196, 191, 0.14);
  --card: rgba(255, 255, 255, 0.025);
  --well: rgba(0, 0, 0, 0.2);
  --wa: #25d366;
  --wa-strong: #1ebe5b;
  --wa-ink: #05301a;
  --display: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  --body: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  --head-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Layered shadows: a contact line, a near soft shadow and a far ambient one. */
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.22), 0 6px 16px -8px rgba(0, 0, 0, 0.4);
  --sh-2: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 24px -10px rgba(0, 0, 0, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  --sh-3: 0 2px 4px rgba(0, 0, 0, 0.2), 0 18px 40px -14px rgba(0, 0, 0, 0.55), 0 60px 110px -40px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(30, 201, 138, 0.35), 0 24px 70px -24px rgba(30, 201, 138, 0.5);
  /* The specialty strip runs with the reading direction. */
  --marquee-shift: 50%;
}

html[dir="ltr"] {
  --marquee-shift: -50%;
}

[hidden] {
  display: none !important;
}

html.is-locked {
  overflow: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink-strong);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

section[id] {
  scroll-margin-top: calc(var(--head-h) + 0.5rem);
}

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -4rem;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--display);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- English page ---------- */

html[lang="en"] {
  --body: "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif;
  --display: "Cairo", "IBM Plex Sans", sans-serif;
}

html[lang="en"] body {
  line-height: 1.6;
}

/* Drawn app screens stay Arabic on the English page, like the real app. */
html[lang="en"] [lang="ar"] {
  font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  line-height: 1.7;
}

html[lang="en"] .journey li::after {
  content: counter(step);
}

[dir="ltr"] .announce .i {
  transform: scaleX(-1);
}

/* ---------- Language switch ---------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.7rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 180ms ease, border-color 180ms ease;
}

.lang-switch:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.ls-long {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease,
    box-shadow 180ms ease;
}

.btn-primary {
  background: linear-gradient(180deg, #2bd896, var(--brand) 55%, var(--brand-strong));
  color: var(--brand-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25),
    0 12px 30px -14px rgba(30, 201, 138, 0.75);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #25cf8e, var(--brand-strong));
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25),
    0 18px 38px -14px rgba(30, 201, 138, 0.85);
}

.btn-primary:active,
.btn-wa:active {
  transform: translateY(0);
}

.btn-wa {
  background: linear-gradient(180deg, #34e07a, var(--wa) 55%, var(--wa-strong));
  color: var(--wa-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25),
    0 14px 32px -14px rgba(37, 211, 102, 0.75);
}

.btn-wa:hover {
  background: linear-gradient(180deg, #2ad672, var(--wa-strong));
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(158, 196, 191, 0.28);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--hi);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-lg {
  min-height: 3.3rem;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.btn-sm {
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
  border-radius: 0.7rem;
}

.btn-block {
  width: 100%;
}

.text-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ---------- Announcement + header ---------- */

.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(90deg, rgba(30, 201, 138, 0.16), rgba(245, 184, 75, 0.14));
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 0.9rem;
  text-align: center;
}

.announce-long {
  display: none;
}

.announce:hover span:not(.announce-badge) {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.announce-badge {
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: var(--amber);
  color: #3a2600;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
}

.announce .i {
  color: var(--amber);
}

.announce-seats {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.02rem 0.55rem;
  border: 1px solid rgba(245, 184, 75, 0.4);
  border-radius: 999px;
  color: var(--amber-ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.announce-seats::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-amber 1.8s ease-out infinite;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 25, 27, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.site-head.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(4, 25, 27, 0.9);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--head-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand img {
  width: 2.6rem;
}

.wordmark {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.wordmark span {
  color: var(--ink-strong);
}

.nav {
  display: none;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.7rem;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}

.nav.is-open {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1.25rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6);
}

.nav.is-open a:not(.btn) {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
}

.nav.is-open .nav-cta-mobile {
  margin-top: 0.75rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 3rem 4.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(110, 242, 193, 0.1), transparent 60%),
    linear-gradient(170deg, #031214 0%, var(--bg-2) 55%, var(--bg) 100%);
}

/* Mesh: soft colour fields that drift slowly behind the hero. */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(closest-side at 72% 18%, rgba(30, 201, 138, 0.3), transparent),
    radial-gradient(closest-side at 18% 68%, rgba(12, 148, 136, 0.28), transparent),
    radial-gradient(closest-side at 88% 78%, rgba(108, 198, 240, 0.14), transparent),
    radial-gradient(closest-side at 40% 40%, rgba(245, 184, 75, 0.06), transparent);
  filter: blur(20px);
  animation: mesh-drift 26s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(232, 247, 244, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 247, 244, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 60% 30%, black 10%, transparent 70%);
  mask-image: radial-gradient(circle at 60% 30%, black 10%, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 201, 138, 0.35), transparent);
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.25rem 0.85rem;
  border: 1px solid rgba(30, 201, 138, 0.28);
  border-radius: 999px;
  background: rgba(30, 201, 138, 0.1);
  box-shadow: var(--hi);
  color: var(--brand);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 3.6vw + 0.6rem, 3.15rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hl {
  display: block;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.trust-chips .i {
  color: var(--brand);
}

.hero-copy > * {
  animation: rise-in 900ms var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 240ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 320ms;
}

.hero-copy > :nth-child(6) {
  animation-delay: 400ms;
}

/* Risk reversal under the main buttons */
.risk-free {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
}

.risk-free li {
  display: inline-flex;
  align-items: center;
}

.risk-free li + li::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  margin-inline: 0.6rem;
  border-radius: 50%;
  background: rgba(30, 201, 138, 0.7);
}

.center .risk-free {
  justify-content: center;
}

/* Offline: a distinct, high-trust badge in the hero chips */
.trust-chips li.is-offline {
  gap: 0.5rem;
  padding-block: 0.3rem;
  padding-inline: 0.35rem 0.8rem;
  border: 1px solid rgba(108, 198, 240, 0.35);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(108, 198, 240, 0.14), rgba(30, 201, 138, 0.1));
  box-shadow: var(--hi), 0 10px 24px -14px rgba(108, 198, 240, 0.6);
  color: var(--ink-strong);
  font-family: var(--display);
  font-weight: 700;
}

.offline-ico {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(108, 198, 240, 0.2);
  color: var(--sky-ink);
}

.trust-chips .offline-ico .i {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--sky-ink);
}

.offline-live {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.8s ease-out infinite;
}

.hero-visual {
  position: relative;
  animation: rise-in 1100ms var(--ease) 200ms both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% 2%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(30, 201, 138, 0.32), transparent);
  filter: blur(36px);
}

/* ---------- Queue board mock ---------- */

.board {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(158, 196, 191, 0.2);
  border-radius: 1.2rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(110, 242, 193, 0.07), transparent 70%),
    linear-gradient(180deg, #0c383b, #082a2d);
  box-shadow: var(--hi), 0 0 0 1px rgba(30, 201, 138, 0.06), var(--sh-3);
}

/* "Try it" strip under the board header */
.board-ctrl {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(30, 201, 138, 0.08), rgba(30, 201, 138, 0.02));
}

.js .board-ctrl {
  display: flex;
}

.board-hint {
  margin-inline-end: auto;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.call-btn,
.reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  border-radius: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.call-btn {
  position: relative;
  padding: 0.35rem 0.9rem;
  border: 0;
  background: linear-gradient(180deg, #2bd896, var(--brand) 55%, var(--brand-strong));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px -10px rgba(30, 201, 138, 0.8);
  color: var(--brand-ink);
  font-size: 0.86rem;
}

.call-btn:hover {
  transform: translateY(-1px);
}

.call-btn:active {
  transform: translateY(0) scale(0.98);
}

.call-btn.is-inviting::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  animation: invite 2.4s ease-out infinite;
  pointer-events: none;
}

.reset-btn {
  width: 2.25rem;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.reset-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.reset-btn .i {
  width: 1.05rem;
  height: 1.05rem;
}

.board-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.16);
}

.dots {
  display: inline-flex;
  gap: 0.35rem;
}

.dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rose);
}

.dots i:nth-child(2) {
  background: var(--amber);
}

.dots i:nth-child(3) {
  background: var(--brand);
}

.board-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 201, 138, 0.12);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
}

.live i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.8s ease-out infinite;
}

.board-cols {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem 3.6rem;
}

.col {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.85rem;
  background: var(--card);
}

.col-b {
  display: none;
}

.col-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.3rem;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(30, 201, 138, 0.16);
  color: var(--brand);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
}

.avatar-b {
  background: rgba(108, 198, 240, 0.16);
  color: var(--sky-ink);
}

.col-doc {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.col-doc b {
  font-size: 0.86rem;
  white-space: nowrap;
}

.col-doc small {
  color: var(--muted);
  font-size: 0.72rem;
}

.col-count {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.lane-label {
  margin: 0.6rem 0 0.35rem;
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 600;
}

.lane {
  display: grid;
  gap: 0.4rem;
}

.ticket {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(158, 196, 191, 0.1);
  border-radius: 0.6rem;
  background: rgba(4, 25, 27, 0.55);
}

.ticket .num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 1.85rem;
  height: 1.85rem;
  padding-inline: 0.25rem;
  border-radius: 0.5rem;
  background: rgba(158, 196, 191, 0.1);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
}

.ticket.is-in {
  border-color: rgba(30, 201, 138, 0.45);
  background: rgba(30, 201, 138, 0.1);
}

.ticket.is-in .num {
  background: var(--brand);
  color: var(--brand-ink);
}

.ticket.is-muted {
  opacity: 0.6;
}

.ticket.is-arriving {
  animation: ticket-in 600ms var(--ease) both;
}

.ticket.is-leaving {
  animation: ticket-out 420ms ease forwards;
}

.ticket.is-called {
  animation: called 1.6s var(--ease);
}

.col-count.is-bump {
  animation: bump 520ms var(--ease);
}

.who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.who b {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.who small {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.tag {
  flex-shrink: 0;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag-urgent {
  background: rgba(240, 133, 125, 0.16);
  color: var(--rose-ink);
}

.tag-paid {
  background: rgba(30, 201, 138, 0.14);
  color: var(--brand);
}

.tag-booked {
  background: rgba(108, 198, 240, 0.14);
  color: var(--sky-ink);
}

.board-toast {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(30, 201, 138, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, #13504f, #0f4346);
  box-shadow: var(--hi), 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 0.6rem);
  transition: opacity 300ms ease, transform 300ms var(--ease);
}

.board-toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

.board-toast.is-pulse {
  animation: toast-pulse 1.4s ease-out;
}

.board-toast .i {
  color: var(--brand);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4.5rem, 8vw, 7.25rem);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-head h2,
.founding h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.6vw + 0.8rem, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
}

.section-lead {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.center {
  margin-top: 2.25rem;
  text-align: center;
}

/* Before / after */

.compare {
  position: relative;
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.compare-card {
  position: relative;
  overflow: hidden;
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.3rem;
}

.compare-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
}

.compare-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.compare-badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  font-size: 1.25rem;
}

.compare-badge .i {
  stroke-width: 2.4;
}

.compare-card h3 {
  margin: 0;
  font-size: 1.28rem;
}

.compare-card ul {
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.compare-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.compare-card li .i {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  padding: 0.25rem;
  border-radius: 50%;
}

/* Before: muted, with red warning accents */
.is-before {
  border-color: rgba(240, 133, 125, 0.2);
  background:
    linear-gradient(180deg, rgba(240, 133, 125, 0.07), rgba(240, 133, 125, 0.01) 60%),
    rgba(0, 0, 0, 0.14);
}

.is-before::before {
  background: linear-gradient(90deg, transparent, rgba(240, 133, 125, 0.8), transparent);
}

.is-before .compare-badge {
  border: 1px solid rgba(240, 133, 125, 0.3);
  background: rgba(240, 133, 125, 0.12);
  color: var(--rose-ink);
}

.is-before h3 {
  color: #ffb3ad;
}

.is-before li {
  color: var(--muted);
}

.is-before li .i {
  background: rgba(240, 133, 125, 0.13);
  color: var(--rose);
  stroke-width: 2.6;
}

/* After: elevated, with a teal glow */
.is-after {
  border-color: rgba(30, 201, 138, 0.5);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(30, 201, 138, 0.18), transparent 70%),
    linear-gradient(180deg, #0c393b, #08292b);
  box-shadow: var(--hi), var(--glow), var(--sh-2);
}

.is-after::before {
  background: linear-gradient(90deg, transparent, var(--brand-light), transparent);
}

.is-after .compare-badge {
  background: linear-gradient(180deg, #2bd896, var(--brand));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -10px rgba(30, 201, 138, 0.9);
  color: var(--brand-ink);
}

.is-after h3 {
  color: var(--ink-strong);
}

.is-after li {
  color: var(--ink);
}

.is-after li .i {
  background: var(--brand);
  color: var(--brand-ink);
  stroke-width: 2.8;
}

.compare-vs {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-block: -1.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-2);
  box-shadow: var(--sh-1);
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
}

/* Offline-first callout */
.offline-callout {
  position: relative;
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  overflow: hidden;
  border: 1px solid rgba(108, 198, 240, 0.32);
  border-radius: 1.4rem;
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(108, 198, 240, 0.16), transparent 65%),
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(30, 201, 138, 0.14), transparent 65%),
    linear-gradient(180deg, #0a3135, #072628);
  box-shadow: var(--hi), 0 0 0 1px rgba(108, 198, 240, 0.06), var(--sh-2);
}

.offline-callout-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(108, 198, 240, 0.4);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(108, 198, 240, 0.25), rgba(108, 198, 240, 0.08));
  box-shadow: var(--hi), 0 14px 30px -14px rgba(108, 198, 240, 0.8);
  color: var(--sky-ink);
  font-size: 1.7rem;
}

.offline-kicker {
  margin: 0 0 0.35rem;
  color: var(--sky-ink);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
}

.offline-callout h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1.6vw + 0.9rem, 2rem);
  font-weight: 800;
  line-height: 1.3;
}

.offline-callout-copy > p:last-child {
  margin: 0.6rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
}

.net-steps {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.net-steps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.18);
  animation: net-step 9s ease-in-out infinite;
}

.net-steps li:nth-child(2) {
  animation-delay: 3s;
}

.net-steps li:nth-child(3) {
  animation-delay: 6s;
}

.net-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background: rgba(30, 201, 138, 0.14);
  color: var(--brand);
}

.net-steps li:nth-child(2) .net-ico {
  background: rgba(245, 184, 75, 0.14);
  color: var(--amber);
}

.net-steps li:nth-child(3) .net-ico {
  background: rgba(108, 198, 240, 0.16);
  color: var(--sky-ink);
}

.net-steps li > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.net-steps b {
  font-family: var(--display);
  font-size: 0.95rem;
}

.net-steps small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Journey */

.journey {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.journey li {
  position: relative;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: var(--hi), var(--sh-1);
  counter-increment: step;
}

.journey li::after {
  content: counter(step, arabic-indic);
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.15rem;
  color: rgba(158, 196, 191, 0.18);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.step-icon,
.role-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: rgba(30, 201, 138, 0.12);
  color: var(--brand);
  font-size: 1.35rem;
}

.journey h3,
.role h3,
.steps h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.journey p,
.role p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Features */

.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 2.5rem;
}

.feature:not([hidden]) ~ .feature:not([hidden]) {
  border-top: 1px solid var(--line-soft);
}

.feature-list {
  transition: opacity 220ms ease, transform 220ms var(--ease);
}

.feature-list.is-switching {
  opacity: 0;
  transform: translateY(0.6rem);
}

/* Role filter above the features */
.feature-filter {
  position: sticky;
  top: calc(var(--head-h) + 0.6rem);
  z-index: 20;
  display: none;
  gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  margin: -1rem auto 1.5rem;
  padding: 0.3rem;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(6, 36, 38, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--hi), var(--sh-2);
  scrollbar-width: none;
}

.feature-filter::-webkit-scrollbar {
  display: none;
}

.js .feature-filter {
  display: flex;
}

.feature-filter button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.feature-filter button:hover {
  color: var(--ink-strong);
}

.feature-filter button[aria-pressed="true"] {
  background: linear-gradient(180deg, #2bd896, var(--brand));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px -10px rgba(30, 201, 138, 0.9);
  color: var(--brand-ink);
}

.feature-filter .count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: rgba(158, 196, 191, 0.14);
  font-size: 0.74rem;
}

.feature-filter button[aria-pressed="true"] .count {
  background: rgba(4, 53, 44, 0.2);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
  color: var(--brand);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
}

.feature h3 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.4rem, 1.4vw + 0.95rem, 1.95rem);
  font-weight: 800;
  line-height: 1.3;
}

.ticks {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-inline-start: 1.85rem;
  color: var(--ink-soft);
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  inset-inline-start: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(30, 201, 138, 0.15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ec98a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E")
    center / 0.72rem no-repeat;
}

.feature-visual {
  position: relative;
  min-width: 0;
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: 12% 10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(30, 201, 138, 0.2), transparent);
  filter: blur(28px);
}

.mock {
  max-width: 30rem;
  margin-inline: auto;
  padding: 1.15rem;
  border: 1px solid rgba(158, 196, 191, 0.2);
  border-radius: 1.1rem;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(110, 242, 193, 0.06), transparent 70%),
    linear-gradient(180deg, #0c393c, #092e31);
  box-shadow: var(--hi), 0 0 0 1px rgba(30, 201, 138, 0.05), var(--sh-2);
  font-size: 0.88rem;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.mock-head b {
  font-size: 0.95rem;
}

.mock-head small {
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-btn {
  padding: 0.22rem 0.6rem;
  border-radius: 0.45rem;
  background: rgba(30, 201, 138, 0.14);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(158, 196, 191, 0.13);
  color: var(--ink-soft);
}

.rule:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.rule b {
  color: var(--brand);
  font-family: var(--display);
}

.seg {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.25);
}

.seg i,
.tabs i,
.methods i {
  font-style: normal;
}

.seg i {
  padding: 0.2rem 0.7rem;
  border-radius: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.seg i.on {
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}

.pattern {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.3rem 0 0.4rem;
  padding: 0.75rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.18);
}

.pattern .i {
  margin-inline-start: auto;
  color: var(--muted);
}

.pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill-new {
  background: rgba(30, 201, 138, 0.16);
  color: var(--brand);
}

.pill-fu {
  background: rgba(108, 198, 240, 0.16);
  color: var(--sky-ink);
}

.switch {
  position: relative;
  flex-shrink: 0;
  width: 2.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: rgba(158, 196, 191, 0.22);
}

.switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  inset-inline-start: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  transition: inset-inline-start 200ms ease;
}

.switch.on {
  background: var(--brand);
}

.switch.on::after {
  inset-inline-start: calc(100% - 1.15rem);
}

.mock-patient {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mock-patient > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.mock-patient small {
  color: var(--muted);
  font-size: 0.75rem;
}

.tabs {
  display: flex;
  gap: 0.3rem;
  margin: 0.9rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.6rem;
}

.tabs i {
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.tabs i.on {
  background: rgba(30, 201, 138, 0.14);
  color: var(--brand);
  font-weight: 600;
}

.vitals,
.kpis,
.drawer {
  display: grid;
  gap: 0.45rem;
}

.vitals {
  grid-template-columns: repeat(2, 1fr);
}

.kpis,
.drawer {
  grid-template-columns: repeat(3, 1fr);
}

.vitals div,
.kpis div,
.drawer div {
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  background: var(--well);
  line-height: 1.4;
}

.vitals small,
.kpis small,
.drawer small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.vitals b,
.kpis b,
.drawer b {
  font-family: var(--display);
  font-size: 1rem;
}

.kpis {
  margin-bottom: 0.95rem;
}

.kpis .pos {
  color: var(--brand);
}

.drawer-short {
  background: rgba(240, 133, 125, 0.1) !important;
}

.drawer-short b {
  color: var(--rose-ink);
}

.field {
  margin-top: 0.75rem;
}

.field small {
  color: var(--muted);
  font-size: 0.72rem;
}

.field p {
  margin: 0.25rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  background: var(--well);
  color: var(--ink-soft);
}

.field code {
  direction: ltr;
  unicode-bidi: isolate;
  margin-inline-end: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(30, 201, 138, 0.15);
  color: var(--brand);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
}

/* Prescription mock */

.rx {
  position: relative;
  max-width: 28rem;
  margin-inline: auto;
}

.rx-search {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 88%;
  margin: 0 auto -1.1rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(30, 201, 138, 0.45);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #104548, #0d3e41);
  box-shadow: var(--hi), 0 0 0 4px rgba(30, 201, 138, 0.08), var(--sh-2);
  color: var(--muted);
  font-size: 0.85rem;
}

.rx-search .i {
  color: var(--brand);
}

.rx-paper {
  padding: 1.8rem 1.3rem 1.1rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #f6faf9);
  box-shadow: inset 0 0 0 1px rgba(11, 39, 37, 0.06), 0 2px 4px rgba(0, 0, 0, 0.18),
    0 20px 40px -18px rgba(0, 0, 0, 0.6), 0 50px 90px -40px rgba(0, 0, 0, 0.7);
  color: #12302e;
  font-size: 0.85rem;
}

.rx-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--brand);
}

.rx-head img {
  width: 2.2rem;
}

.rx-head > span {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.rx-head b {
  color: #0b2725;
  font-family: var(--display);
}

.rx-head small,
.rx-date {
  color: #5a7c78;
  font-size: 0.72rem;
}

.rx-date {
  margin-inline-start: auto;
  white-space: nowrap;
}

.rx-patient {
  margin: 0.7rem 0 0;
  color: #33524f;
  font-size: 0.8rem;
}

.rx-symbol {
  display: block;
  margin-top: 0.2rem;
  color: var(--brand-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.rx-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rx-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #d3e4e1;
}

.rx-list b {
  display: block;
  color: #0b2725;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  text-align: left;
}

.rx-list small {
  display: block;
  color: #4d6d69;
  font-size: 0.76rem;
}

.rx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7rem;
  color: #5a7c78;
  font-size: 0.74rem;
}

.rx-foot span:last-child {
  padding: 0 0.45rem;
  border: 1px solid #c5d9d6;
  border-radius: 0.3rem;
}

/* Billing mock */

.bill > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  color: var(--ink-soft);
}

.bill b {
  font-family: var(--display);
}

.bill-disc,
.bill-disc b {
  color: #ffb3ad !important;
}

.bill-disc small {
  color: var(--muted);
}

.bill-total {
  margin-top: 0.35rem;
  padding-top: 0.7rem !important;
  border-top: 1px solid var(--line-soft);
}

.bill-total span {
  font-family: var(--display);
  font-weight: 700;
}

.bill-total b {
  color: var(--brand);
  font-size: 1.15rem;
}

.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.9rem 0;
}

.methods i {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(158, 196, 191, 0.2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

.methods i.on {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}

/* Reports mock */

.bars {
  display: grid;
  gap: 0.55rem;
}

.bar {
  display: grid;
  grid-template-columns: 5.6rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.bar span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.76rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bar i {
  position: relative;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(158, 196, 191, 0.12);
}

.bar i::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(to left, var(--brand), var(--brand-light));
}

.bar b {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.75rem;
}

.split {
  display: flex;
  gap: 2px;
  height: 0.55rem;
  margin-top: 1.1rem;
  overflow: hidden;
  border-radius: 999px;
}

.split i {
  width: var(--w);
}

.split i:nth-child(1),
.split-legend span:nth-child(1)::before {
  background: var(--brand);
}

.split i:nth-child(2),
.split-legend span:nth-child(2)::before {
  background: var(--sky);
}

.split i:nth-child(3),
.split-legend span:nth-child(3)::before {
  background: var(--violet);
}

.split i:nth-child(4),
.split-legend span:nth-child(4)::before {
  background: var(--amber);
}

.split i:nth-child(5),
.split-legend span:nth-child(5)::before {
  background: var(--rose);
}

.split-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.split-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.split-legend span::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

/* Branches mock */

.branches,
.perms {
  margin: 0;
  padding: 0;
  list-style: none;
}

.branches {
  display: grid;
  gap: 0.4rem;
}

.branches li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.18);
}

.branches li.on {
  border-color: rgba(30, 201, 138, 0.4);
  background: rgba(30, 201, 138, 0.08);
}

.branches b {
  font-size: 0.85rem;
}

.branches small {
  color: var(--muted);
  font-size: 0.74rem;
}

.perm-title {
  margin: 1rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.perms li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(158, 196, 191, 0.13);
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.perms li:last-child {
  border-bottom: 0;
}

/* Egypt */

.egypt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.egypt-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: var(--hi);
  transition: border-color 200ms ease, transform 200ms var(--ease);
}

.egypt-grid li:hover,
.role:hover,
.trust-list li:hover {
  border-color: rgba(30, 201, 138, 0.35);
}

.egypt-grid .i {
  margin-bottom: 0.45rem;
  color: var(--brand);
  font-size: 1.45rem;
}

.egypt-grid b {
  font-family: var(--display);
  font-size: 1rem;
}

.egypt-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Roles */

.roles {
  display: grid;
  gap: 1rem;
}

.role {
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: var(--hi), var(--sh-1);
  transition: border-color 200ms ease;
}

/* Trust */

.trust-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: var(--hi);
  transition: border-color 200ms ease;
}

.trust-list .i {
  margin-top: 0.2rem;
  color: var(--brand);
  font-size: 1.45rem;
}

.trust-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

.trust-list b {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 1.02rem;
}

/* Steps */

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: var(--hi), var(--sh-1);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #2bd896, var(--brand));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px -10px rgba(30, 201, 138, 0.9);
  color: var(--brand-ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
}

/* ---------- Download ---------- */

.download {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background:
    radial-gradient(ellipse 60% 90% at 0% 100%, rgba(30, 201, 138, 0.16), transparent 65%),
    var(--card);
}

.download h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.3rem);
  font-weight: 800;
  line-height: 1.3;
}

.download .section-lead {
  margin-inline: 0;
}

.download-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.download-steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.download-steps b {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(30, 201, 138, 0.14);
  color: var(--brand);
  font-family: var(--display);
  font-size: 0.9rem;
}

.download-action {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  text-align: center;
}

.download-icon {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.1rem;
  background: rgba(30, 201, 138, 0.12);
  color: var(--brand);
  font-size: 2rem;
}

.download-action .btn {
  width: 100%;
  max-width: 22rem;
}

.download-meta {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* Shown on phones and tablets: the installer only runs on a Windows PC. */
.download-phone {
  display: none;
  max-width: 22rem;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px dashed rgba(245, 184, 75, 0.38);
  border-radius: 0.7rem;
  background: rgba(245, 184, 75, 0.07);
  color: var(--amber-ink);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ---------- Pricing ---------- */

.billing-toggle {
  display: flex;
  width: fit-content;
  margin: 0 auto 2.5rem;
  padding: 0.3rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--brand-ink);
}

.save {
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 184, 75, 0.18);
  color: var(--amber-ink);
  font-size: 0.72rem;
}

.billing-toggle button[aria-pressed="true"] .save {
  background: rgba(4, 53, 44, 0.16);
  color: var(--brand-ink);
}

.plans {
  display: grid;
  gap: 1.5rem 1.1rem;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.95rem 1.6rem 1.6rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  box-shadow: var(--hi), var(--sh-1);
}

.plan.is-featured {
  border-color: rgba(30, 201, 138, 0.55);
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(30, 201, 138, 0.2), transparent 70%),
    linear-gradient(180deg, #0b3537, #072729);
  box-shadow: var(--hi), var(--glow), var(--sh-2);
}

.plan-badge {
  position: absolute;
  top: -0.85rem;
  inset-inline-start: 1.5rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
}

.plan h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.plan-for {
  margin: 0.15rem 0 1.15rem;
  color: var(--muted);
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.price b {
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.1;
  transition: opacity 160ms ease;
}

.price > span {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-custom b {
  font-size: 2.1rem;
}

.price.is-changing b {
  opacity: 0.25;
}

.price-note {
  min-height: 1.6em;
  margin: 0.4rem 0 1rem;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.founding-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.35rem;
  padding: 0.6rem 0.75rem;
  border: 1px dashed rgba(245, 184, 75, 0.38);
  border-radius: 0.7rem;
  background: rgba(245, 184, 75, 0.07);
  color: var(--amber-ink);
  font-size: 0.86rem;
  line-height: 1.5;
  transition: background 180ms ease;
}

a.founding-line:hover {
  background: rgba(245, 184, 75, 0.14);
}

.founding-line .i {
  color: var(--amber);
}

.founding-line b {
  color: #ffe2a8;
  font-family: var(--display);
}

.plan .ticks {
  flex: 1;
  margin-bottom: 1.5rem;
}

.included {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.1rem;
  background: rgba(0, 0, 0, 0.15);
}

.included h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.included ul {
  display: grid;
  gap: 0.6rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.included .i {
  color: var(--brand);
}

.fine-print {
  margin: 1.25rem 0 0;
  color: var(--muted-2);
  font-size: 0.86rem;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq-wrap {
  max-width: 50rem;
}

.faq details {
  margin-bottom: 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.95rem;
  background: var(--card);
  transition: border-color 180ms ease, background 180ms ease;
}

.faq details[open] {
  border-color: rgba(30, 201, 138, 0.35);
  background: rgba(30, 201, 138, 0.04);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-family: var(--display);
  font-size: 1.03rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.25rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 200ms ease, margin 200ms ease;
}

.faq details[open] summary::after {
  margin-top: 0.25rem;
  transform: rotate(-135deg);
}

.answer {
  padding: 0 1.25rem 1.15rem;
}

.answer p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Founding / final CTA ---------- */

.founding {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.founding-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 15% 50%, rgba(30, 201, 138, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(245, 184, 75, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.founding-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.founding .section-lead {
  margin-inline: 0;
}

.founding-perks {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.founding-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-soft);
}

.founding-perks .i {
  margin-top: 0.25rem;
  color: var(--amber);
  font-size: 1.15rem;
}

.founding-perks b {
  color: var(--ink-strong);
}

.founding-mark {
  display: none;
}

.founding-mark img {
  width: min(100%, 15rem);
  margin-inline: auto;
  filter: drop-shadow(0 20px 50px rgba(30, 201, 138, 0.35));
}

/* ---------- Footer ---------- */

.site-foot {
  padding-block: 2.5rem 6.5rem;
  border-top: 1px solid var(--line-soft);
  background: #031416;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.foot-brand p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.foot-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.foot-links a:hover {
  color: var(--brand);
}

.foot-bottom {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}

.foot-bottom p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* ---------- Mobile sticky CTA ---------- */

.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: rgba(4, 25, 27, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 260ms var(--ease);
}

.mobile-cta.is-visible {
  transform: translateY(0);
}

/* ---------- Specialties strip ---------- */

.specialties {
  padding-block: 2.1rem 2.4rem;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.04));
}

.spec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.3rem;
}

.spec-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.8rem;
  margin: 0;
}

.spec-title b {
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
}

.spec-title span {
  color: var(--muted);
  font-size: 0.95rem;
}

.spec-toggle {
  display: none;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.3rem 0.95rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--hi);
  color: var(--brand);
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.spec-toggle:hover {
  border-color: var(--brand);
}

.js .spec-toggle {
  display: inline-flex;
}

/* Without JS (or when expanded) every specialty shows, wrapped and still. */
.spec-marquee {
  display: grid;
  gap: 0.65rem;
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--hi);
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease;
}

.spec-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}

.spec-list li:nth-child(4n + 2)::before {
  background: var(--sky);
}

.spec-list li:nth-child(4n + 3)::before {
  background: var(--violet);
}

.spec-list li:nth-child(4n + 4)::before {
  background: var(--amber);
}

.spec-list li:hover {
  border-color: rgba(30, 201, 138, 0.5);
  color: var(--ink-strong);
}

.spec-marquee.is-moving:not(.is-expanded) {
  width: 100%;
}

.spec-marquee.is-moving:not(.is-expanded) .spec-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.spec-marquee.is-moving:not(.is-expanded) .spec-track {
  display: flex;
  width: max-content;
  animation: marquee 75s linear infinite;
}

.spec-marquee.is-moving:not(.is-expanded) .is-reverse .spec-track {
  animation-duration: 85s;
  animation-direction: reverse;
}

/* The trailing padding matches the gap, so the copy joins without a seam. */
.spec-marquee.is-moving:not(.is-expanded) .spec-list {
  flex-wrap: nowrap;
  padding-inline-end: 0.6rem;
}

.spec-marquee:hover .spec-track,
.spec-marquee:focus-within .spec-track {
  animation-play-state: paused;
}

.spec-marquee.is-expanded .is-clone {
  display: none;
}

/* ---------- Founding seats ---------- */

.seats {
  max-width: 36rem;
  margin-top: 1.75rem;
  padding: 1.1rem 1.2rem 1rem;
  border: 1px solid rgba(245, 184, 75, 0.3);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(245, 184, 75, 0.1), rgba(245, 184, 75, 0.02)),
    rgba(0, 0, 0, 0.18);
  box-shadow: var(--hi), var(--sh-1);
}

.seats-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.seats-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--amber-ink);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
}

.seats-pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-amber 1.8s ease-out infinite;
}

.seats-count {
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 1.05rem;
}

.seats-bar {
  display: grid;
  grid-template-columns: repeat(var(--seats, 20), 1fr);
  gap: 4px;
  margin-top: 0.9rem;
}

.seats-bar:empty {
  display: none;
}

.seats-bar i {
  height: 0.7rem;
  border: 1px solid rgba(30, 201, 138, 0.45);
  border-radius: 3px;
  background: rgba(30, 201, 138, 0.1);
}

.seats-bar i.is-taken {
  border-color: transparent;
  background: linear-gradient(180deg, var(--amber-ink), var(--amber));
  box-shadow: 0 0 10px -2px rgba(245, 184, 75, 0.7);
}

.seats-bar i.is-next {
  animation: seat-next 1.6s ease-in-out infinite;
}

.seats-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.founding .risk-free {
  margin-top: 1rem;
}

/* ---------- Free-trial window ---------- */

.trial {
  width: min(100% - 2rem, 30rem);
  max-width: 100%;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(30, 201, 138, 0.16), transparent 70%),
    linear-gradient(180deg, #0b3538, #072628);
  box-shadow: var(--hi), var(--sh-3);
  color: var(--ink);
}

.trial[open] {
  animation: dialog-in 380ms var(--ease);
}

.trial::backdrop {
  background: rgba(2, 12, 13, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.trial-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1.5rem 1.4rem;
}

.trial-close {
  position: absolute;
  top: 0.9rem;
  inset-inline-end: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.trial-close:hover {
  border-color: var(--brand);
  color: var(--ink-strong);
}

.trial .eyebrow {
  justify-self: start;
  margin: 0;
}

.trial h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
}

.trial-lead {
  margin: -0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Opening the account yourself: the first choice in the trial dialog. */
.trial-self {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--brand);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(30, 201, 138, 0.18), rgba(30, 201, 138, 0.06));
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(30, 201, 138, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.trial-self:hover,
.trial-self:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brand-light);
  box-shadow: 0 12px 30px rgba(30, 201, 138, 0.22);
}

.trial-self-text {
  display: grid;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.trial-self-text strong {
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
}

.trial-self-text span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.trial-self-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--display);
  font-weight: 800;
  white-space: nowrap;
}

[dir="ltr"] .trial-self-go .i {
  transform: scaleX(-1);
}

.trial-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
}

.trial-or::before,
.trial-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

@media (max-width: 480px) {
  .trial-self {
    flex-direction: column;
    align-items: stretch;
  }

  .trial-self-go {
    justify-content: center;
  }
}

.trial-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.trial-label {
  padding: 0;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
}

.trial select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 1rem;
  padding-inline-end: 2.6rem;
  border: 1px solid rgba(158, 196, 191, 0.25);
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.25)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ec4bf' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    left 0.95rem center / 0.95rem no-repeat;
  color: var(--ink);
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

[dir="ltr"] .trial select {
  background-position: right 0.95rem center;
}

.trial select:hover {
  border-color: rgba(30, 201, 138, 0.5);
}

.trial select option {
  background: var(--bg-2);
  color: var(--ink);
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.choices label {
  position: relative;
}

.choices input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choices span {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 2.8rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(158, 196, 191, 0.25);
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.choices input:checked + span {
  border-color: var(--brand);
  background: rgba(30, 201, 138, 0.14);
  box-shadow: inset 0 0 0 1px var(--brand);
  color: var(--ink-strong);
}

.choices input:focus-visible + span {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

.trial-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  cursor: pointer;
}

.trial-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--brand);
}

.trial .btn-wa {
  margin-top: 0.25rem;
}

.trial-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0.45rem;
  margin-top: -0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  transition: color 180ms ease;
}

.trial-alt:hover {
  color: var(--ink-strong);
}

.trial .risk-free {
  justify-content: center;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
}

/* ---------- Floating WhatsApp button ---------- */

.wa-float {
  position: fixed;
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  inset-inline-end: 1.1rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  height: 3.4rem;
  padding-inline: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #34e07a, var(--wa));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(0, 0, 0, 0.3),
    0 14px 32px -10px rgba(37, 211, 102, 0.65);
  color: #fff;
  transition: transform 200ms var(--ease), bottom 260ms var(--ease);
}

.wa-float:hover {
  transform: translateY(-2px);
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: wa-ring 2.8s ease-out infinite;
  pointer-events: none;
}

.wa-float .i {
  width: 1.6rem;
  height: 1.6rem;
  stroke-width: 1.7;
}

.wa-float-label {
  max-width: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: max-width 320ms var(--ease), padding 320ms var(--ease), opacity 200ms ease;
}

.wa-float:hover .wa-float-label,
.wa-float:focus-visible .wa-float-label {
  max-width: 15rem;
  padding-inline-start: 0.55rem;
  opacity: 1;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 650ms ease, transform 650ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.3rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 201, 138, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0.55rem rgba(30, 201, 138, 0);
  }
}

@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.97);
    border-color: rgba(30, 201, 138, 0.8);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ticket-out {
  to {
    opacity: 0;
    transform: translateX(-1.25rem);
  }
}

@keyframes mesh-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, -2%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-3%, 2%, 0) scale(1.02);
  }
}

@keyframes pulse-amber {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 184, 75, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0.5rem rgba(245, 184, 75, 0);
  }
}

@keyframes invite {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 201, 138, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 0.6rem rgba(30, 201, 138, 0);
  }
}

@keyframes called {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 201, 138, 0.75);
  }
  35% {
    box-shadow: 0 0 0 0.3rem rgba(30, 201, 138, 0.2), 0 0 26px rgba(30, 201, 138, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 201, 138, 0);
  }
}

@keyframes bump {
  35% {
    transform: scale(1.18);
    background: rgba(30, 201, 138, 0.25);
    color: var(--brand-light);
  }
}

@keyframes toast-pulse {
  0% {
    box-shadow: var(--hi), 0 0 0 0 rgba(30, 201, 138, 0.6), 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  }
  100% {
    box-shadow: var(--hi), 0 0 0 0.9rem rgba(30, 201, 138, 0), 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  }
}

@keyframes net-step {
  0%,
  28% {
    border-color: rgba(30, 201, 138, 0.45);
    background: rgba(30, 201, 138, 0.09);
    box-shadow: 0 12px 26px -16px rgba(30, 201, 138, 0.8);
  }
  36%,
  100% {
    border-color: var(--line-soft);
    background: rgba(0, 0, 0, 0.18);
    box-shadow: none;
  }
}

@keyframes marquee {
  to {
    transform: translateX(var(--marquee-shift));
  }
}

@keyframes seat-next {
  50% {
    background: rgba(30, 201, 138, 0.45);
    box-shadow: 0 0 10px rgba(30, 201, 138, 0.6);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
}

@keyframes wa-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  60%,
  100% {
    box-shadow: 0 0 0 0.75rem rgba(37, 211, 102, 0);
  }
}

@keyframes wa-peek {
  8%,
  88% {
    max-width: 15rem;
    padding-inline-start: 0.55rem;
    opacity: 1;
  }
}

/* ---------- Breakpoints ---------- */

@media (max-width: 519px) {
  .hero-actions .btn {
    width: 100%;
  }

  .board-hint {
    display: none;
  }

  .call-btn {
    flex: 1;
  }

  .feature-filter {
    margin-inline: -0.25rem;
    border-radius: 1rem;
  }

  .feature-filter button {
    padding-inline: 0.8rem;
    font-size: 0.86rem;
  }

  .feature-filter button .i {
    display: none;
  }

  .spec-head {
    justify-content: center;
    text-align: center;
  }

  .spec-title {
    justify-content: center;
  }

  /* The trial window becomes a bottom sheet on phones. */
  .trial {
    width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 1.5rem 1.5rem 0 0;
    border-bottom: 0;
  }

  .trial-card {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }

  .wa-float {
    height: 3.1rem;
    padding-inline: 0.75rem;
  }
}

@media (max-width: 899px) {
  /* Sit above the sticky trial bar when it is showing. */
  .mobile-cta.is-visible ~ .wa-float {
    bottom: calc(5.1rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 520px) {
  .announce-long,
  .ls-long {
    display: inline;
  }

  .announce-seats:not([hidden]) {
    display: inline-flex;
  }

  .announce-short,
  .ls-short {
    display: none;
  }

  .board-cols {
    grid-template-columns: 1fr 1fr;
  }

  .col-b {
    display: block;
  }

  .vitals {
    grid-template-columns: repeat(4, 1fr);
  }

  .included ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .founding-perks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 680px) {
  .journey,
  .roles,
  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .egypt-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 820px) {
  .compare,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare {
    gap: 2rem;
  }

  .compare-vs {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .is-after {
    translate: 0 -0.6rem;
  }

  .offline-callout {
    grid-template-columns: auto 1fr minmax(15rem, 19rem);
    align-items: center;
    gap: 1.75rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .download {
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
  }

  .journey,
  .trust-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-inline-start: 1.5rem;
  }

  .nav a:not(.btn) {
    position: relative;
    color: var(--muted);
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 180ms ease;
  }

  .nav a:not(.btn):hover,
  .nav a[aria-current="true"] {
    color: var(--ink-strong);
  }

  .nav a[aria-current="true"]::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
  }

  .nav-cta-mobile,
  .menu-btn,
  .mobile-cta {
    display: none !important;
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-block: 3.25rem;
  }

  .feature.is-flipped .feature-copy {
    order: 2;
  }

  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .founding-grid {
    grid-template-columns: 1.5fr 0.7fr;
  }

  .founding-mark {
    display: block;
  }

  .site-foot {
    padding-bottom: 1.75rem;
  }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* Say once what the round green button is for. */
  .wa-float-label {
    animation: wa-peek 6s var(--ease) 4s;
  }
}

@media (min-width: 980px) {
  .hero {
    padding-block: 4rem 5.5rem;
  }

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

  .roles {
    grid-template-columns: repeat(4, 1fr);
  }

  .included ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1180px) {
  .journey {
    grid-template-columns: repeat(6, 1fr);
  }

  .journey li {
    padding: 1.3rem 1.1rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .download-phone {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Clinics on VenDoc ---------- */
.showcase-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 3rem;
  margin: 0 auto 2.25rem;
}
.showcase-stat { display: grid; justify-items: center; }
.showcase-stat b { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; line-height: 1.1; color: var(--brand-light); }
.showcase-stat span { color: var(--muted); font-weight: 600; }
.showcase-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 80%);
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.showcase-grid::-webkit-scrollbar { display: none; }
@media (min-width: 720px) {
  .showcase-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); overflow: visible; }
}
.showcase-card {
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: var(--hi);
  color: inherit;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms var(--ease);
}
.showcase-card:hover { border-color: var(--line); transform: translateY(-2px); }
.showcase-logo {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(30, 201, 138, 0.12);
  color: var(--brand-light);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
}
.showcase-logo img { width: 100%; height: 100%; object-fit: contain; padding: 0.3rem; background: #fff; }
.showcase-body { min-width: 0; display: grid; gap: 0.1rem; }
.showcase-body b { font-family: var(--display); color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-body small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Free-trial window: the clinic's details ---------- */
.trial-grid { display: grid; gap: 0.75rem; }
@media (min-width: 520px) { .trial-grid { grid-template-columns: 1fr 1fr; } }
.trial input[type='text'],
.trial input[type='tel'] {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(158, 196, 191, 0.25);
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
}
.trial input[type='text']:focus,
.trial input[type='tel']:focus { outline: 2px solid rgba(45, 212, 191, 0.6); outline-offset: 1px; }
.trial-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.trial-error { margin: 0; color: #fca5a5; font-weight: 600; font-size: 0.9rem; }
