/* ==========================================================================
   Tocyn marketing site
   Design tokens come from the Tocyn side-cut ticket brand pack
   (assets/brand/Tocyn_Brand_Theme.json). The recurring motif is the ticket:
   concave cut-outs on the sides, a perforated tear line and a blue stub.
   Every directional rule uses a logical property so the Arabic page mirrors
   on its own. Keep it that way.
   ========================================================================== */

/* ------------------------------ Fonts ------------------------------------
   Self-hosted (OFL licences in assets/fonts/), so the CSP stays font-src
   'self'. Latin subset only; the Arabic page uses its own system stack. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Brand pack */
  --ink: #111827;
  --accent: #1D4ED8;
  --canvas: #FFFFFF;
  --surface: #F3F4F6;
  --muted: #4B5563;
  --divider: #D1D5DB;

  /* Derived */
  --ink-2: #1F2937;
  --accent-dark: #1E40AF;
  --accent-on-dark: #93C5FD;   /* accent for text on ink: about 10:1 */
  --tint: #EFF6FF;

  --maxw: 1120px;
  --radius: 8px;
  --radius-sm: 6px;
  --notch: 12px;               /* radius of a ticket cut-out */
  --notch-bg: var(--canvas);   /* colour behind a ticket, set per section */
  --shadow: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow-lg: 0 24px 48px -24px rgba(17, 24, 39, .45);

  --font: "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "IBM Plex Sans", "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Anchor targets land below the sticky header, not under it. */
[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
strong, b { font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-end-end-radius: var(--radius-sm);
}
.skip-link:focus { inset-inline-start: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .page-hero :focus-visible, .section-dark :focus-visible,
.site-footer :focus-visible, .allin :focus-visible { outline-color: var(--accent-on-dark); }
.cta :focus-visible { outline-color: #fff; }

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.15rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap; text-decoration: none; line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: .9rem 1.5rem; font-size: 1.02rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-outline { background: var(--canvas); color: var(--ink); border-color: var(--divider); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero .btn-outline, .page-hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-outline:hover, .page-hero .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* -------------------------------- Header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1; }
.nav { display: flex; gap: 1.4rem; margin-inline: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions { display: flex; gap: .6rem; align-items: center; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: .35rem; padding: 12px 24px 20px; border-bottom: 1px solid var(--divider); background: var(--canvas); }
.mobile-nav a { padding: .6rem .2rem; color: var(--ink); font-weight: 500; }
.mobile-nav .btn { margin-top: .4rem; }
.mobile-nav .btn-primary { color: #fff; }

/* --------------------------------- Hero ---------------------------------- */
.hero, .page-hero {
  --notch-bg: var(--ink);
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(720px 420px at 0% 110%, rgba(29,78,216,.38), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, #0D1320 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-block: 84px 92px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600;
  color: var(--accent); margin: 0 0 1rem;
}
/* A small blue ticket stub in front of every eyebrow. */
.eyebrow::before {
  content: ""; flex: none; width: 16px; height: 10px; border-radius: 2px; background: currentColor;
  -webkit-mask: radial-gradient(circle 3px at 50% 0, #0000 96%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 3px at 50% 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 3px at 50% 0, #0000 96%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 3px at 50% 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
}
.hero .eyebrow, .page-hero .eyebrow, .section-dark .eyebrow { color: var(--accent-on-dark); }
.hero h1 { color: #fff; }
.lead { font-size: 1.16rem; color: rgba(255,255,255,.84); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1rem; }
.hero-note { font-size: .9rem; color: rgba(255,255,255,.66); margin: 0; }

/* Hero preview: a white ticket with a blue stub on its far edge and a
   perforated tear line above the totals. */
.hero-panel { display: flex; justify-content: center; }
.panel-card {
  width: 100%; max-width: 380px; background: var(--canvas); color: var(--ink);
  border-radius: var(--radius); border-inline-end: 14px solid var(--accent);
  padding: 18px; box-shadow: var(--shadow-lg);
}
.panel-row { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.panel-row--head { justify-content: flex-start; font-size: .95rem; margin-bottom: 14px; }
.panel-count { margin-inline-start: auto; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-live { background: #16A34A; box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }
.panel-list { display: flex; flex-direction: column; gap: 8px; }
.panel-item { display: flex; align-items: center; gap: .6rem; background: var(--surface); border-radius: var(--radius-sm); padding: 9px 11px; font-size: .92rem; color: var(--ink); }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 600; color: #fff; background: var(--ink); }
.tag { margin-inline-start: auto; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: #DCFCE7; color: #166534; }
.tag-cond { background: #FEF3C7; color: #92400E; }
.panel-foot {
  position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--divider);
}
.panel-foot::before, .panel-foot::after {
  content: ""; position: absolute; top: calc(-1 * var(--notch) - 1px);
  width: var(--notch); height: calc(2 * var(--notch)); background: var(--notch-bg);
}
.panel-foot::before { inset-inline-start: -18px; border-start-end-radius: var(--notch); border-end-end-radius: var(--notch); }
.panel-foot::after { inset-inline-end: calc(-18px - 14px); border-start-start-radius: var(--notch); border-end-start-radius: var(--notch); }
.panel-foot div { text-align: center; padding: 4px 2px; }
.panel-foot strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.panel-foot span { font-size: .72rem; color: var(--muted); }

/* ------------------------------- Sections -------------------------------- */
.section { --notch-bg: var(--canvas); padding: 88px 0; }
.section-alt { --notch-bg: var(--surface); background: var(--surface); }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-sub { font-size: 1.1rem; color: var(--muted); }
.section-sub strong { color: var(--ink); }

/* Stat row: one long ticket, split by tear lines. */
.stat-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--canvas); border: 1px solid var(--divider); border-radius: var(--radius);
}
.stat { text-align: center; padding: 1.7rem 1rem; border-inline-end: 2px dashed var(--divider); }
.stat:last-child { border-inline-end: 0; }
.stat-num { display: block; font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1.2; }
.stat-label { color: var(--muted); font-size: .95rem; }

/* Feature grid. Each card is a ticket: a cut-out on either side. */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: var(--canvas); border: 1px solid var(--divider);
  border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card::before, .card::after {
  content: ""; position: absolute; top: 50%; margin-top: calc(-1 * var(--notch));
  width: var(--notch); height: calc(2 * var(--notch));
  background: var(--notch-bg); border: 1px solid var(--divider); transition: border-color .2s ease;
}
.card::before { inset-inline-start: -1px; border-inline-start: 0; border-start-end-radius: var(--notch); border-end-end-radius: var(--notch); }
.card::after { inset-inline-end: -1px; border-inline-end: 0; border-start-start-radius: var(--notch); border-end-start-radius: var(--notch); }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card:hover::before, .card:hover::after { border-color: var(--accent); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card em { font-style: normal; color: var(--accent-dark); font-weight: 600; }
.icon { width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--tint); color: var(--accent); margin-bottom: 1rem; }
.icon svg { width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-block; font-family: var(--font); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); background: var(--tint); padding: 2px 8px; border-radius: 4px; vertical-align: middle; }

/* Steps. The number is a blue stub with its own cut-outs. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.step { position: relative; padding: 1.5rem 1.25rem; background: var(--canvas); border: 1px solid var(--divider); border-radius: var(--radius); }
.step-num {
  display: inline-grid; place-items: center; width: 50px; height: 34px; border-radius: 3px;
  background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: .9rem;
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
.step em { font-style: normal; color: var(--accent-dark); font-weight: 600; }

/* Who cards: a blue stub down the leading edge. */
.who-card { background: var(--canvas); border: 1px solid var(--divider); border-inline-start: 6px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.who-card h3 { font-size: 1.05rem; }
.who-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.who-more { text-align: center; font-size: 1.35rem; margin: 3.5rem 0 1.5rem; }
.who-link { display: flex; flex-direction: column; color: inherit; transition: transform .2s ease, border-color .2s ease; }
.who-link:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); }
.who-link p { flex: 1; }
.who-more-link { margin-top: .9rem; font-size: .9rem; font-weight: 600; color: var(--accent); }
.who-more-link::after { content: " \2192"; }
[dir="rtl"] .who-more-link::after { content: " \2190"; }

/* Industry pages: a second line under a name in the hero panel */
.panel-item .panel-who { display: flex; flex-direction: column; line-height: 1.25; }
.panel-item .panel-who small { color: var(--muted); font-size: .76rem; }
.industry-note { max-width: 46rem; margin: 2.5rem auto 0; text-align: center; font-size: .92rem; color: var(--muted); }
/* Industry pages: the photo under the hero, pulled up to overlap it */
.photo-band { position: relative; margin-top: -56px; padding-bottom: 64px; }
.photo-band-img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* CTA: the one full-bleed blue band on each page. */
.cta { background: var(--accent); color: #fff; text-align: center; }
.cta-inner { max-width: 44rem; margin-inline: auto; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 1.8rem 0 1.2rem; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--surface); }
.cta-contact { font-size: .95rem; }
.cta-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------- Footer --------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: .8rem 0 0; max-width: 22rem; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: flex-start; max-width: 40rem; }
.footer-nav a { color: rgba(255,255,255,.8); font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 22px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--accent-on-dark); }

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

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 64px 72px; }
  .hero-panel { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 2px dashed var(--divider); }
}
@media (max-width: 1060px) {
  .nav, .header-actions { display: none; }
  .nav-toggle { display: flex; margin-inline-start: auto; }
  .mobile-nav[data-open="true"] { display: flex; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .grid-3, .grid-4, .steps, .stat-row { grid-template-columns: 1fr; }
  .stat { border-inline-end: 0; border-bottom: 2px dashed var(--divider); }
  .stat:last-child { border-bottom: 0; }
  .footer-bottom { flex-direction: column; }
  .panel-foot::before { inset-inline-start: -18px; }
}

/* ==========================================================================
   Subpages - pricing, privacy, status, 404
   ========================================================================== */

.page-hero-inner { padding-block: 66px 62px; max-width: 46rem; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.page-hero h1 .accent { color: var(--accent-on-dark); }
.page-hero .lead { max-width: 40rem; }
.page-hero .updated { font-size: .9rem; color: rgba(255,255,255,.66); margin: 1.2rem 0 0; }

/* ------------------------------- Pricing --------------------------------- */
.promise-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-bottom: 1px solid var(--divider); }
.promise-strip div { padding: 18px 20px; text-align: center; font-size: .82rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-inline-end: 1px solid var(--divider); }
.promise-strip div:last-child { border-inline-end: 0; }
.promise-strip b { color: var(--ink); font-weight: 600; }

/* Each plan is a ticket: the price is torn off from the features along a
   perforated line, with a cut-out at each end of it. Cards stretch to the
   tallest in the row; .tier-feats takes the slack so every CTA sits on the
   card floor. */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tier {
  --tier-pad: 1.6rem; --tier-border: 1px;
  position: relative; display: flex; flex-direction: column; background: var(--canvas);
  border: var(--tier-border) solid var(--divider); border-radius: var(--radius);
  padding: 1.9rem var(--tier-pad) 1.7rem;
}
.tier--featured { --tier-border: 2px; border-color: var(--ink); box-shadow: var(--shadow-lg); }
.tier-badge { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: .3rem .75rem; border-radius: 4px; white-space: nowrap; }
.tier-kicker { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 .35rem; }
.tier h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
.tier-who { color: var(--muted); font-size: .92rem; margin: 0 0 1.1rem; min-height: 2.8em; }
/* Reserve room for the "From" label so every price figure and tear line sits
   on the same line across the row, whether or not the plan has a "From". */
.tier-price {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 7.15rem; padding-bottom: 1.2rem; margin-bottom: 1.3rem; border-bottom: 2px dashed var(--divider);
}
.tier-price::before, .tier-price::after {
  content: ""; position: absolute; bottom: calc(-1 * var(--notch) - 1px);
  width: var(--notch); height: calc(2 * var(--notch)); background: var(--notch-bg);
  border: var(--tier-border) solid var(--divider);
}
.tier--featured .tier-price::before, .tier--featured .tier-price::after { border-color: var(--ink); }
.tier-price::before { inset-inline-start: calc(-1 * (var(--tier-pad) + var(--tier-border))); border-inline-start: 0; border-start-end-radius: var(--notch); border-end-end-radius: var(--notch); }
.tier-price::after { inset-inline-end: calc(-1 * (var(--tier-pad) + var(--tier-border))); border-inline-end: 0; border-start-start-radius: var(--notch); border-end-start-radius: var(--notch); }
.tier-from { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: .2rem; }
.tier-amt { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.tier-amt small { font-family: var(--font); font-size: 1.05rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier-per { display: block; font-size: .84rem; color: var(--muted); margin-top: .4rem; }

.tier-feats { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.tier-feats li { position: relative; padding-inline-start: 1.85rem; margin-bottom: .7rem; font-size: .94rem; line-height: 1.45; color: var(--ink); }
.tier-feats li::before { content: ""; position: absolute; inset-inline-start: 0; top: .18em; width: 19px; height: 19px; border-radius: 4px; background: var(--tint); }
.tier-feats li::after { content: ""; position: absolute; inset-inline-start: 7px; top: .42em; width: 4px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(43deg); }
.tier-feats li.carried { font-weight: 600; color: var(--ink); }
.tier-feats li.carried::before { background: var(--ink); }
.tier-feats li.carried::after { border-color: #fff; }
.tier-cta { display: grid; padding-top: 1.3rem; border-top: 1px solid var(--divider); }

/* Everything-included band */
.allin { background: var(--ink); color: rgba(255,255,255,.8); border-radius: var(--radius); border-inline-start: 10px solid var(--accent); padding: 2rem 2.2rem; margin-top: 2.5rem; }
.allin h2 { color: #fff; font-size: 1.25rem; margin-bottom: 1.4rem; }
.allin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.allin-grid div { font-size: .93rem; line-height: 1.5; }
.allin-grid b { display: block; color: var(--accent-on-dark); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; }

.pricing-note { margin: 2rem auto 0; max-width: 52rem; font-size: .93rem; color: var(--muted); text-align: center; }
.pricing-note b { color: var(--ink); }

/* -------------------------- Long-form / legal ---------------------------- */
.prose { max-width: 46rem; margin-inline: auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 2px dashed var(--divider); }
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.02rem; margin-top: 1.6rem; margin-bottom: .3rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-inline-start: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--ink); }
.prose .placeholder { background: var(--tint); color: var(--accent-dark); font-weight: 600; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.prose address { font-style: normal; color: var(--muted); background: var(--surface); border-inline-start: 6px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 0 0 1rem; }

/* ---------------------------------- 404 ---------------------------------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound .container { max-width: 32rem; }
.notfound img { margin: 0 auto 1.6rem; }
.notfound p { color: var(--muted); }

/* --------------------- Responsive (subpage components) -------------------- */
@media (max-width: 940px) {
  .tiers { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .tier--featured { order: -1; }
  .promise-strip, .allin-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-strip div:nth-child(2) { border-inline-end: 0; }
  .promise-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--divider); }
}
@media (max-width: 520px) {
  .promise-strip, .allin-grid { grid-template-columns: 1fr; }
  .promise-strip div { border-inline-end: 0; border-bottom: 1px solid var(--divider); }
  .allin { padding: 1.6rem 1.4rem; }
  .tier { --tier-pad: 1.3rem; }
}

/* ==========================================================================
   Arabic / RTL
   The layout mirrors on its own because every directional property above is
   logical. What Arabic needs beyond that is typographic.
   ========================================================================== */
[dir="rtl"] {
  /* Inter and IBM Plex Sans are self-hosted as latin only. Dubai and Segoe UI
     carry good Arabic on Windows; SF Arabic and Geeza Pro on Apple; Noto Naskh
     elsewhere. Tahoma is the long-standing fallback. */
  --font: "Dubai", "Segoe UI", system-ui, "Noto Naskh Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
  --font-head: var(--font);
}
[dir="rtl"] body { line-height: 1.9; }

/* Negative tracking damages the cursive joins in Arabic, and capitalisation
   has no meaning in a script with no letter case. */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: normal; line-height: 1.45; font-weight: 700; }
[dir="rtl"] .eyebrow,
[dir="rtl"] .tier-kicker,
[dir="rtl"] .tier-from,
[dir="rtl"] .pill,
[dir="rtl"] .tier-badge,
[dir="rtl"] .promise-strip div { letter-spacing: normal; text-transform: none; }
[dir="rtl"] .stat-num { letter-spacing: normal; }

/* The wordmark stays latin, in the brand face, and in reading order. */
[dir="rtl"] .brand-word { font-family: "IBM Plex Sans", "Inter", system-ui, sans-serif; letter-spacing: normal; }

/* Mirror the hero glow so the light still comes from the reading side. */
[dir="rtl"] .hero, [dir="rtl"] .page-hero {
  background:
    radial-gradient(720px 420px at 100% 110%, rgba(29,78,216,.38), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, #0D1320 100%);
}

/* ------------------------- Language switcher ------------------------------ */
.lang-switch {
  font-size: .85rem; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--divider); border-radius: var(--radius-sm);
  padding: .35rem .8rem; white-space: nowrap; line-height: 1.4;
}
.lang-switch:hover { border-color: var(--ink); text-decoration: none; }
.mobile-nav .lang-switch { display: inline-block; width: fit-content; margin-top: .5rem; }
.footer-nav .lang-switch { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.3); }
.footer-nav .lang-switch:hover { color: #fff; border-color: #fff; }

/* ------------------------------ CDM module -------------------------------
   Ink band for the add-on, between Tasks (white) and Roving teams (grey),
   so it reads as an extension to the core product. The white feature cards
   are reused unchanged, which is why the band sets no text colour of its own:
   the card titles inherit theirs and would turn white on white. */
.section-dark { --notch-bg: var(--ink); background: var(--ink); }
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.82); }
.section-dark .card { border-color: var(--ink-2); }
.section-dark .card::before, .section-dark .card::after { border-color: var(--ink-2); }
.cdm-cta { text-align: center; margin: 2.5rem 0 0; }

/* ------------------------------ Status page -------------------------------
   Colours are deliberately separate from the brand palette: blue is the
   brand, and a status page must not borrow it for "good", or the page stops
   reading as a signal. Dots take their colour from the row via currentColor,
   so a row has exactly one state class. */
.status-wrap { max-width: 44rem; margin-inline: auto; }

.status-banner { display: flex; align-items: center; gap: .9rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); border: 2px solid; font-size: 1.15rem; font-weight: 600; }
.status-banner .status-dot { width: 14px; height: 14px; }
.status-banner.is-ok { color: #0E6B46; background: #E8F6F0; border-color: #0E6B4633; }
.status-banner.is-warn { color: #8A5200; background: #FDF4E6; border-color: #8A520033; }
.status-banner.is-down { color: #A32A26; background: #FBECEB; border-color: #A32A2633; }
.status-banner.is-unknown,
.status-banner.is-checking { color: var(--muted); background: var(--surface); border-color: var(--divider); }

.status-list { list-style: none; padding: 0; margin: 1.25rem 0 0; border: 1px solid var(--divider); border-radius: var(--radius); overflow: hidden; }
.status-row { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--divider); background: var(--canvas); }
.status-row:last-child { border-bottom: 0; }
.status-name { font-weight: 600; color: var(--ink); }
.status-state { margin-inline-start: auto; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.status-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: currentColor; }
.status-row.is-operational { color: #0E6B46; }
.status-row.is-degraded { color: #8A5200; }
.status-row.is-down { color: #A32A26; }
.status-row.is-unknown { color: var(--muted); }

.status-checked { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.status-note { margin: 1.5rem 0 0; font-size: .92rem; color: var(--muted); }
.status-demo { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: var(--radius-sm); background: #FDF4E6; color: #8A5200; font-size: .9rem; font-weight: 600; }

@media (max-width: 520px) {
  .status-banner { font-size: 1rem; padding: 1.1rem 1.1rem; }
  .status-row { flex-wrap: wrap; }
  .status-state { margin-inline-start: 0; width: 100%; padding-inline-start: 1.85rem; }
}
