/* --font (top of :root) is the page's one family, loaded by the <link>s build.mjs writes in the head; the system
   stack after it is the fallback. */
/* The plans page (plans.js) and the support page (support.js). A calm page after the "Arbitra" pricing layout, in Daftar's
   blue and purple: one soft glow behind the hero, hairline cards of equal height, a gradient on the most popular plan. */
:root{color-scheme:light dark;--ink:#161b33;--muted:#5a6079;--line:#e2e5f0;--line-strong:#cdd3e4;--paper:#fff;--card:#fff;--bg:#f7f8fd;--accent:#2A68C0;--accent-2:#7C3AED;--on-accent:#fff;--soft:#eef2ff;--check:#2a68c01f;--grad:linear-gradient(135deg,#7c3aed,#2a68c0);--glow-a:#dbeafe;--glow-b:#ede9fe;--pick:linear-gradient(160deg,#2a68c00f,#7c3aed12);--pick-line:#8f8de6;--pick-glow:0 22px 50px -18px #5b4fd466;--bar:#ffffffcc;--shadow:0 14px 40px -12px #1a22501f;--focus:#7c5ce0;--font:"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Arabic","Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(38% 420px at 30% 110px,var(--glow-a),transparent) no-repeat,radial-gradient(38% 420px at 70% 150px,var(--glow-b),transparent) no-repeat,var(--bg);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased}
button,a{touch-action:manipulation}
button{font:inherit;color:inherit;border:1px solid var(--line-strong);border-radius:10px;padding:11px 18px;background:var(--paper);cursor:pointer}
button:disabled{opacity:.5;cursor:not-allowed}
a{color:var(--accent)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
header{width:calc(100% - 48px);max-width:1040px;margin:0 auto;padding:20px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:20px;font-weight:600}
.brand small{font-size:11px;font-weight:600;color:var(--muted)}.brand small span{color:var(--accent)}
.icon{display:grid;place-items:center;background:var(--grad);color:#fff;width:38px;height:38px;border-radius:11px;font-size:18px}
main{max-width:1088px;padding:0 24px;margin:auto}
.hero{text-align:center;padding:56px 0 8px}
.eyebrow{display:inline-block;margin:0;padding:5px 12px;border:1px solid var(--line-strong);border-radius:999px;background:var(--card);font-size:11px;letter-spacing:.08em;color:var(--accent);font-weight:600}
h1{font-size:clamp(30px,4.2vw,44px);font-weight:600;line-height:1.15;letter-spacing:-.02em;margin:18px auto 14px;max-width:720px}
:lang(ar) h1,:lang(ar) .eyebrow,:lang(ar) .price{letter-spacing:0}
/* Arabic reads small at the Latin sizes (the owner, 2026-11-30): one or two pixels more throughout */
:lang(ar) h1{font-size:clamp(32px,4.5vw,48px)}:lang(ar) .hero>.eyebrow{font-size:14px}:lang(ar) .hero>p{font-size:18px}:lang(ar) .hero .trial{font-size:16px}:lang(ar) .hero .app-downloads p{font-size:13px}:lang(ar) .period button{font-size:17px}:lang(ar) .period span{font-size:13px}:lang(ar) h2{font-size:22px}:lang(ar) .ribbon{font-size:13px}:lang(ar) .price small{font-size:16px}:lang(ar) .equivalent{font-size:14px}:lang(ar) .plan-card button,:lang(ar) .sticky .primary{font-size:17px}:lang(ar) li{font-size:16px}:lang(ar) .sticky p,:lang(ar) .actions a,:lang(ar) footer{font-size:14px}:lang(ar) .direct p,:lang(ar) .direct-row,:lang(ar) .direct-contact{font-size:16px}
.hero>p{line-height:1.65;color:var(--muted);max-width:520px;margin:0 auto;font-size:16px}
.hero>.eyebrow{margin:0 auto;font-size:12px}
.hero .trial{margin-top:14px;color:var(--accent);font-weight:600;font-size:14px}
.hero>.app-downloads{margin:22px auto 0}
.hero .store-link{min-width:0}.hero .store-link img{height:40px}.hero .store-link img.google-play-badge{height:60px;margin:-10px -8px}
.hero .app-downloads p{font-size:12px;color:var(--muted);opacity:1}
/* The period choice, as the reference's "Yearly / 20% off": no box, one column per option (name, saving under it).
   The hand-drawn ring marks the chosen option and nothing else; savings stay as purple text on every option. Equal
   columns (grid 1fr) and equal heights, so the ring is the same size on a name-only option and nothing shifts. */
.period{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:12px;width:max-content;max-width:100%;margin:30px auto 38px}
.period button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:58px;border:0;border-radius:14px;padding:10px 22px;background:none;font-size:16px;font-weight:500;line-height:1.3;color:var(--muted);text-align:center}
.period button:hover{color:var(--ink)}
.period [aria-pressed=true],.period [aria-pressed=true]:hover{color:var(--accent);font-weight:600}
.period span{color:var(--accent-2);font-size:12px;font-weight:600;line-height:1.35;text-wrap:balance}
/* The ring: two offset strokes in the blue-to-purple gradient, cut out of a filled shape with a mask so the gradient
   follows the uneven radius. Only on the pressed option. */
.period [aria-pressed=true]::before,.period [aria-pressed=true]::after{content:"";position:absolute;pointer-events:none;padding:1.5px;background:var(--grad);border-radius:58% 42% 55% 45%/52% 60% 40% 48%;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.period [aria-pressed=true]::before{inset:1px 0 2px;transform:rotate(-1.5deg)}
.period [aria-pressed=true]::after{inset:3px 2px 0 3px;border-radius:45% 55% 42% 58%/60% 45% 55% 40%;opacity:.55;transform:rotate(2deg)}
/* Drawn in when the visitor moves it (plans.js marks that render with .moved), not on every redraw. */
.period .moved::before,.period .moved::after{animation:ring-in .22s ease-out both}
@keyframes ring-in{from{opacity:0;scale:.92}}
@media(prefers-reduced-motion:reduce){.period .moved::before,.period .moved::after{animation:none}}
/* Keyboard focus only: a thin dashed grey line that follows the oval, offset outside it, so it never reads as a second
   selection or as a box. A pointer press focuses the new button from script; data-pointer keeps Chrome from showing
   the outline that a script focus would otherwise get. */
.period button:focus-visible{outline:1.5px dashed var(--muted);outline-offset:5px;border-radius:58% 42% 55% 45%/52% 60% 40% 48%}
.period button[data-pointer]:focus-visible{outline:none}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
/* Each card spans four rows of the row grid (head, price block, button, features) through subgrid, so the price blocks of
   the three cards share one height and the buttons line up whatever lines sit under a price. */
.plan-card{position:relative;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px;display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;align-content:start;min-width:0;scroll-margin:30px}
.plan-card.highlighted{background:var(--pick),var(--card);border-color:var(--pick-line);box-shadow:var(--pick-glow)}
.plan-card.selected{box-shadow:0 0 0 2px var(--accent)}
.plan-card.highlighted.selected{box-shadow:0 0 0 2px var(--accent),var(--pick-glow)}
.plan-head{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;min-height:30px}
h2{font-size:20px;font-weight:600;margin:0}
.ribbon{margin:0;padding:4px 10px;border-radius:999px;background:var(--grad);color:#fff;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap}
.price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:22px 0 6px;font-size:clamp(30px,3.4vw,40px);font-weight:600;line-height:1.1;letter-spacing:-.02em;overflow-wrap:anywhere}
/* The amount never breaks inside a word ("جنيه" once split as "جن / يه"), in every language. In Arabic the no-break space
   keeps the number and its word together, so a long price wraps only before "/ شهر" or between the words of a two-word
   currency name; English and French may still wrap at the space after the code. */
.price bdi{overflow-wrap:normal}
.price small{font-size:14px;font-weight:400;letter-spacing:0;color:var(--muted)}
.equivalent{font-size:13px;color:var(--muted);line-height:1.6;margin:2px 0}
/* A paid plan with no six-month price, on the six-month tab: one line the height of .equivalent (two in a narrow column;
   the subgrid above keeps the buttons in line). Purple as the savings, on a faint tint of it. */
.period-note{display:flex;align-items:flex-start;gap:6px;width:fit-content;margin:2px 0;padding:1px 9px 1px 7px;border-radius:10px;background:color-mix(in srgb,var(--accent-2) 11%,transparent);color:var(--accent-2);font-size:12px;font-weight:600;line-height:1.6}
.period-note span{flex:none;display:grid;place-items:center;width:13px;height:13px;margin-top:3.5px;border:1.25px solid;border-radius:50%;font:700 9px/1 Georgia,serif;font-style:italic}
:lang(ar) .period-note{font-size:13px}
.plan-card button{width:100%;margin-top:18px;align-self:start;background:transparent;border-color:var(--line-strong);color:var(--ink);font-weight:600}
.plan-card button:not(:disabled):hover{border-color:var(--accent)}
.plan-card [aria-pressed=true]{background:var(--soft);border-color:var(--accent);color:var(--accent)}
.plan-card.highlighted button:not(:disabled){background:var(--grad);border-color:transparent;color:#fff}
ul{list-style:none;margin:22px 0 0;padding:20px 0 0;border-top:1px solid var(--line);flex:1}
li{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.55;margin:0 0 12px;overflow-wrap:anywhere}
li span{flex:none;display:grid;place-items:center;width:18px;height:18px;margin-top:1px;border-radius:50%;background:var(--check);color:var(--accent);font-size:11px;font-weight:700;line-height:1}
.sticky{position:sticky;bottom:14px;margin:32px 0 0;background:var(--bar);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);border:1px solid var(--line);border-radius:16px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:var(--shadow);z-index:2}
.sticky p{font-size:12px;color:var(--muted);margin:6px 0 0}
.actions{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.actions a{font-size:13px}
.primary{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:bold}
.sticky .primary{background:var(--grad);border-color:transparent;color:#fff;font-weight:600}
footer{text-align:center;font-size:12px;line-height:1.9;padding:30px 20px;color:var(--muted);overflow-wrap:anywhere}
.message{text-align:center;min-height:55vh;padding:70px 0}.message h1{font-size:30px}
/* plans-direct.js: where the stores do not sell Daftar */
.direct{margin:32px 0 0;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px}.direct h2{font-size:20px;margin:0 0 8px}.direct p{font-size:14px;line-height:1.7;color:var(--muted);margin:8px 0}.direct-rows{margin:14px 0}.direct-row{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;padding:10px 0;border-top:1px solid var(--line);font-size:14px}.direct-country{font-weight:bold}.direct-plan{color:var(--accent);font-weight:bold}.direct-price{white-space:nowrap}.direct-contact{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;font-size:14px}.direct-contact a{font-weight:bold}
/* Dark: deep navy, low glows, a faint translucent card; by the device unless light is pressed, and by the button */
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--ink:#edf2fb;--muted:#a7b0c8;--line:#252c46;--line-strong:#343d62;--paper:#151a2e;--card:#ffffff08;--bg:#0e1120;--accent:#80b2fa;--accent-2:#b39dfb;--on-accent:#0e1120;--soft:#1c2547;--check:#80b2fa24;--glow-a:#2a68c042;--glow-b:#7c3aed38;--pick:linear-gradient(160deg,#2a68c024,#7c3aed24);--pick-line:#6f6fd8;--pick-glow:0 22px 60px -18px #6d5cf066;--bar:#151a2ecc;--shadow:0 14px 40px -12px #0009;--focus:#b39dfb}}
/* theme-button.js: a pressed choice wins over the device */:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark;--ink:#edf2fb;--muted:#a7b0c8;--line:#252c46;--line-strong:#343d62;--paper:#151a2e;--card:#ffffff08;--bg:#0e1120;--accent:#80b2fa;--accent-2:#b39dfb;--on-accent:#0e1120;--soft:#1c2547;--check:#80b2fa24;--glow-a:#2a68c042;--glow-b:#7c3aed38;--pick:linear-gradient(160deg,#2a68c024,#7c3aed24);--pick-line:#6f6fd8;--pick-glow:0 22px 60px -18px #6d5cf066;--bar:#151a2ecc;--shadow:0 14px 40px -12px #0009;--focus:#b39dfb}
@media(max-width:900px){.cards{grid-template-columns:minmax(0,520px);justify-content:center;gap:16px}}
@media(max-width:700px){header{width:calc(100% - 32px);padding:16px 0}.brand{font-size:18px}.brand small{display:none}main{padding:0 16px}.hero{padding-top:32px}.hero>p{font-size:15px}.hero>.eyebrow{font-size:11px;letter-spacing:.04em}:lang(ar) .hero>.eyebrow{font-size:13px}.period{margin:24px auto 28px}.sticky{padding:12px;gap:12px;bottom:8px;flex-direction:column;align-items:stretch}.sticky>div:first-child{display:none}.actions{justify-content:center}.actions .primary{width:100%}.price{font-size:36px}}
/* Below 360px the eyebrow would wrap inside its pill: plain uppercase text there */
@media(max-width:359px){.hero>.eyebrow{border:0;background:none;padding:0;text-wrap:balance}}
/* Three options on a phone: tighter gaps; the saving wraps inside its ring when it must */
@media(max-width:520px){.period{gap:6px}.period button{padding:10px 10px;font-size:15px}.period span{font-size:11px}:lang(ar) .period button{font-size:16px}:lang(ar) .period span{font-size:12px}}
/* support.js: the support page */
.support{max-width:640px;margin:0 auto;padding:40px 0 30px;text-align:center}.support h1{font-size:clamp(28px,5vw,40px)}.support p{line-height:1.8;color:var(--muted);margin:12px 0}.support-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:28px}.button{display:inline-block;text-decoration:none;font-weight:bold;border:1px solid var(--line-strong);border-radius:12px;padding:12px 18px;background:var(--paper)}.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .button.primary{color:#101827}}:root[data-theme=dark] .button.primary{color:#101827}@media(max-width:700px){.support-actions .button{width:100%;text-align:center}}
.support-plans{display:inline-block;margin-top:20px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
/* theme-button.js: the light/dark button beside the language menu, as the main site's .theme-button */
.header-actions{display:flex;align-items:center;gap:10px}.theme-button{width:36px;height:36px;padding:0;border-radius:50%;background:transparent;border:1px solid var(--line-strong);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;flex:none}.theme-button svg{width:18px;height:18px}.theme-button:hover{background:var(--soft)}
/* support.js: Daftar's store icon above the heading, decorative; 104px, 88px on a phone */
.support-mark{display:block;width:104px;height:104px;margin:0 auto 8px;border-radius:23%;box-shadow:0 10px 28px #2a68c038,0 2px 6px #0000001f}:root[data-theme=dark] .support-mark{box-shadow:0 10px 28px #00000080,0 0 0 1px #ffffff14}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .support-mark{box-shadow:0 10px 28px #00000080,0 0 0 1px #ffffff14}}@media(max-width:700px){.support{padding-top:16px}.support-mark{width:88px;height:88px}}
/* The indexable plans pages (/ar/daftar/plans/ …, plans-page.js): a Daftar link and Plans, the current page, between
   the brand and the buttons; on a phone the brand already leads to Daftar, so only Plans stays. Their loading and
   error states sit under the page's own heading, so they are an h2 and shorter. */
.plans-nav{display:flex;gap:4px;margin-inline-start:auto}
.plans-nav a{padding:8px 14px;border-radius:999px;color:var(--muted);text-decoration:none;font-weight:500;white-space:nowrap}
.plans-nav a:hover{color:var(--ink);background:var(--soft)}
.plans-nav [aria-current=page]{color:var(--ink);background:var(--soft)}
.hero+.message{min-height:30vh;padding:28px 0}.message h2{font-size:22px;margin:0 0 8px}
@media(max-width:560px){.plans-nav a:not([aria-current]){display:none}.plans-nav a{padding:7px 12px}header .brand small{display:none}}
