/* EZ News landing. One stylesheet for RTL (ar) and LTR (en): logical properties only.
   Contrast on --paper #FFFFFF: --ink 15.9:1, --ink-2 6.6:1, --teal-700 6.0:1, --teal-900 9.3:1,
   --teal-700 on --teal-50 5.4:1, --teal-900 on --teal-100 7.4:1. --teal (#2BA1A4, 3.1:1) is decoration only.
   Dark: --ink 15:1, --ink-2 8.3:1, --link 9.3:1 on #0C1A1B. */

@font-face { font-family: "Dubai"; src: url("fonts/Dubai-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Dubai"; src: url("fonts/Dubai-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --teal: #2BA1A4; --teal-50: #EAF6F6; --teal-100: #CFEBEC; --teal-300: #7CC8CA; --teal-700: #1B6E70; --teal-900: #0F4F52;
  --paper: #FFFFFF; --paper-2: #F3F8F8; --ink: #0E2627; --ink-2: #4A6163; --rule: #D7E6E6;
  --link: var(--teal-700); --btn: var(--teal-700); --btn-ink: #FFFFFF; --btn-hover: var(--teal-900);
  --chip: var(--teal-50); --chip-ink: var(--teal-700); --logo-ink: var(--teal-900);
  --band: var(--teal-900); --band-ink: #FFFFFF; --card: #FFFFFF; --shadow: 0 1px 2px rgb(15 79 82 / .06), 0 8px 24px rgb(15 79 82 / .07);
  --radius: 16px; --wrap: 1200px; --gutter: 16px;
  --font: "Dubai", "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C1A1B; --paper-2: #112426; --ink: #E3EFEF; --ink-2: #9CB6B7; --rule: #22393B;
    --link: var(--teal-300); --btn: var(--teal-300); --btn-ink: #0C1A1B; --btn-hover: #A6DCDD;
    --chip: #163638; --chip-ink: var(--teal-300); --logo-ink: #E3EFEF; --card: #102224;
    --band: #0F4F52; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.125rem; line-height: 1.75; border-top: 4px solid var(--teal); overflow-x: hidden; }
:lang(en) body, body:lang(en) { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .2em; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 10; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Buttons and chips */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 6px 22px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--teal); }
.btn svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .btn .ext { transform: scaleX(-1); }
.chip { display: inline-block; background: var(--chip); color: var(--chip-ink); font-size: .875rem; font-weight: 700; line-height: 1; padding: 8px 12px 7px; border-radius: 8px; }

/* Masthead: the page header is an EZ News front-page masthead */
.masthead-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 76px; }
.dateline { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.dateline:empty { visibility: hidden; }
.logo { display: inline-flex; color: var(--logo-ink); }
.logo svg { width: 152px; height: auto; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.top-actions .lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; font-weight: 700; text-decoration: none; color: var(--ink); border-radius: 10px; }
.top-actions .lang:hover { color: var(--link); }
.top-actions .btn { min-height: 44px; padding-inline: 16px; }
.sections { border-block: 1px solid var(--rule); }
.sections ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(12px, 3.5vw, 48px); overflow-x: auto; scrollbar-width: none; }
.sections a { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding-inline: 4px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.sections a::after { content: ""; position: absolute; inset-inline: 15%; bottom: 10px; height: 3px; border-radius: 3px; background: var(--teal); transform: scaleX(0); transition: transform .2s; }
.sections a:hover { color: var(--link); }
.sections a:hover::after { transform: scaleX(1); }
@media (max-width: 719px) {
  .masthead-top { grid-template-columns: auto 1fr; min-height: 68px; }
  .dateline { display: none; }
  .logo svg { width: 124px; }
  .top-actions .demo-link { display: none; }
  .sections ul { justify-content: flex-start; gap: 16px; }
  .top-actions { gap: 4px; }
  .top-actions .lang { padding-inline: 8px; }
  .top-actions .btn { padding-inline: 14px; font-size: .9375rem; }
}

/* Ticker: the signature strip. Real feature names, static under reduced motion. */
.ticker { background: var(--band); color: var(--band-ink); }
.ticker .wrap { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.ticker-label { flex: none; background: var(--teal-100); color: var(--teal-900); font-weight: 700; font-size: .875rem; line-height: 1; padding: 8px 12px 7px; border-radius: 8px; }
.ticker-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; --shift: -50%; }
[dir="rtl"] .ticker-track { --shift: 50%; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li { white-space: nowrap; font-size: 1rem; padding-inline: 18px; position: relative; }
.ticker li::before { content: ""; position: absolute; inset-inline-start: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--teal-300); }
.ticker-toggle { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .35); background: transparent; color: inherit; border-radius: 10px; cursor: pointer; }
.ticker-toggle:hover { background: rgb(255 255 255 / .1); }
.ticker-toggle svg { width: 18px; height: 18px; }
.ticker-toggle .play { display: none; }
.ticker.paused .ticker-track, .ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker.paused .play { display: block; } .ticker.paused .pause { display: none; }
@keyframes ticker { to { transform: translateX(var(--shift)); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .ticker-track ul[aria-hidden] { display: none; }
  .ticker-viewport { overflow-x: auto; mask-image: none; scrollbar-width: none; }
  .ticker-toggle { display: none; }
}

/* Lead story */
.lead { padding-block: 40px 56px; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-block-end: 18px; font-size: .9375rem; color: var(--ink-2); }
.kicker .by { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.kicker svg { width: 18px; height: 18px; }
.lead h1 { font-size: clamp(2.25rem, 1.1rem + 4.6vw, 4.5rem); line-height: 1.15; letter-spacing: -.01em; max-width: 15em; }
:lang(en) .lead h1 { letter-spacing: -.025em; max-width: 14em; }
.standfirst { margin-block-start: 20px; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); color: var(--ink-2); max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-block-start: 28px; }
.cta-row .mail { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.lead-grid { display: grid; gap: 32px; margin-block-start: 44px; }
@media (min-width: 960px) { .lead-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; } }
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: var(--shadow); width: 100%; }
.shot figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-block-start: 12px; font-size: .9375rem; color: var(--ink-2); }

/* Product card: white card, rounded, teal top edge, title with a short teal underline (as on EZ News pages) */
.card { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--teal); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-title { font-size: 1.375rem; padding: 18px 22px 14px; border-block-end: 1px solid var(--rule); }
.card-title span { display: inline-block; padding-block-end: 6px; background: linear-gradient(var(--teal), var(--teal)) no-repeat; background-size: 56px 3px; background-position: bottom right; }
:lang(en) .card-title span, [dir="ltr"] .card-title span { background-position: bottom left; }
.card-body { padding: 18px 22px 22px; }

.also .story + .story { border-block-start: 1px solid var(--rule); }
.story { padding-block: 16px; }
.story:first-child { padding-block-start: 0; }
.story:last-child { padding-block-end: 0; }
.story h3 { font-size: 1.1875rem; margin-block: 10px 6px; }
.story p { font-size: 1rem; color: var(--ink-2); }

/* Sections */
.section { padding-block: 72px; }
.section.alt { background: var(--paper-2); }
.section-head { margin-block-end: 36px; max-width: 46em; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.section-head h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--teal); margin-block-start: 14px; }
.section-head p { margin-block-start: 16px; color: var(--ink-2); font-size: 1.125rem; }

/* Workflow: a real sequence of article statuses */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.flow li { position: relative; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); }
.flow .status { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; line-height: 1; padding: 8px 12px 7px; border-radius: 8px; }
.flow .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-draft { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--rule); }
.s-pending { background: var(--chip); color: var(--chip-ink); }
.s-approved { background: var(--teal-100); color: var(--teal-900); }
.s-live { background: var(--btn); color: var(--btn-ink); }
.flow h3 { font-size: 1.25rem; margin-block: 14px 8px; }
.flow p { font-size: 1rem; color: var(--ink-2); }
.flow li:not(:last-child)::after { content: ""; position: absolute; background: var(--teal); }
@media (min-width: 900px) {
  .flow li:not(:last-child)::after { top: 38px; inset-inline-end: -20px; width: 20px; height: 2px; }
}
@media (max-width: 899px) {
  .flow li:not(:last-child)::after { inset-inline-start: 36px; bottom: -16px; width: 2px; height: 16px; }
}

/* Feature cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 22px; font-size: 1rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.ticks code { font-family: ui-monospace, Consolas, monospace; font-size: .8125rem; background: var(--paper-2); padding: 1px 5px; border-radius: 5px; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }

/* Screens */
.screens { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .screens { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; } }
.phones { display: flex; gap: 20px; justify-content: center; }
.phone { margin: 0; width: min(46%, 240px); }
.phone img { border-radius: 28px; border: 6px solid #1A2E2F; box-shadow: var(--shadow); width: 100%; background: #fff; }
.phone figcaption, .screens > .shot figcaption { font-size: .9375rem; color: var(--ink-2); margin-block-start: 10px; text-align: center; }
.screens > .shot figcaption { justify-content: center; }
.demo-note { margin-block-start: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--ink-2); font-size: 1rem; }

/* Brand + stack */
.two { display: grid; gap: 20px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; gap: 12px; }
.stack div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; font-size: 1rem; align-items: baseline; }
.stack dt { font-weight: 700; direction: ltr; unicode-bidi: isolate; text-align: left; }
[dir="rtl"] .stack dt { text-align: right; }
.stack dd { margin: 0; color: var(--ink-2); }
@media (max-width: 480px) { .stack div { grid-template-columns: 1fr; gap: 0; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 52em; }
.faq details { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; }
.faq details[open] { border-color: var(--teal); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 20px; font-weight: 700; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(45deg); margin-block-start: -4px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); font-size: 1rem; }

/* Closing band */
.closing { background: var(--band); color: var(--band-ink); padding-block: 64px; }
.closing h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.closing p { margin-block-start: 12px; color: #D5ECEC; max-width: 40em; }
.closing .cta-row a.btn-primary { background: #FFFFFF; color: var(--teal-900); }
.closing .cta-row a.btn-primary:hover { background: var(--teal-50); }
.closing .cta-row a.btn-ghost { background: transparent; color: #FFFFFF; border-color: rgb(255 255 255 / .5); }
.closing .cta-row a.btn-ghost:hover { border-color: #FFFFFF; }
.closing .mail { color: #FFFFFF; }

/* Footer */
.footer { padding-block: 40px; font-size: .9375rem; color: var(--ink-2); border-block-start: 1px solid var(--rule); }
.footer .wrap { display: grid; gap: 20px; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer .made a { font-weight: 700; }
@media (min-width: 900px) { .footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; } .footer nav ul { justify-content: center; } }
