/* alsuhaibani.sa — one stylesheet for every page.
   Brand (identity guide, May 2023): dark green #385950, gold #C99512, sage #6F9A95, neutral #C8C5B9.
   Expo Arabic: Bold for main headings, Book for subheadings, Light for body.
   Logo only top-right and bottom-right; neutral #C8C5B9 on dark green, dark green on white. */

@font-face { font-family: "Expo Arabic"; font-weight: 300; font-style: normal; font-display: swap; src: url("ExpoArabic-Light.ttf") format("truetype"); }
@font-face { font-family: "Expo Arabic"; font-weight: 400; font-style: normal; font-display: swap; src: url("ExpoArabic-Book.ttf") format("truetype"); }
@font-face { font-family: "Expo Arabic"; font-weight: 700; font-style: normal; font-display: swap; src: url("ExpoArabic-Bold.otf") format("opentype"); }

:root {
  --green: #385950;
  --green-deep: #2B463F;
  --gold: #C99512;
  --sage: #6F9A95;
  --neutral: #C8C5B9;

  --bg: #F5F6F2;
  --surface: #FFFFFF;
  --bg-2: #E9EDE8;
  --fg: #1B2B27;
  --muted: #4C5F59;
  --line: rgba(56, 89, 80, .18);
  --line-strong: rgba(56, 89, 80, .34);
  --accent-text: #86610A;
  --link: #2C5A50;
  --btn-bg: #385950;
  --btn-fg: #FFFFFF;
  --focus: #C99512;
  --shadow: 0 1px 2px rgba(27, 43, 39, .05), 0 12px 32px -12px rgba(27, 43, 39, .16);

  --font: "Expo Arabic", "Segoe UI", Tahoma, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
  --head-h: 88px;

  --lockup: url("lockup.png");
  --symbol: url("symbol.png");
  --pattern: url("pattern.png");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1815; --surface: #15231F; --bg-2: #122019;
    --fg: #E7EEEA; --muted: #A5B6B0;
    --line: rgba(200, 197, 185, .16); --line-strong: rgba(200, 197, 185, .3);
    --accent-text: #E2B63F; --link: #8CC3B9;
    --btn-bg: #C99512; --btn-fg: #14201C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1815; --surface: #15231F; --bg-2: #122019;
  --fg: #E7EEEA; --muted: #A5B6B0;
  --line: rgba(200, 197, 185, .16); --line-strong: rgba(200, 197, 185, .3);
  --accent-text: #E2B63F; --link: #8CC3B9;
  --btn-bg: #C99512; --btn-fg: #14201C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 300 17px/1.9 var(--font); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Footer sits at the bottom even when a page is shorter than the screen */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
}
main { flex: 1 0 auto; }
h1, h2 { font-weight: 700; line-height: 1.35; margin: 0; text-wrap: balance; }
h3 { font-weight: 400; line-height: 1.45; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(201, 149, 18, .3); }
.in { max-width: var(--wrap); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 50; background: var(--gold); color: #14201C; padding: 8px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Brand marks (white masks, tinted with background-color) */
.lockup { display: block; aspect-ratio: 420 / 431; background: var(--neutral); -webkit-mask: var(--lockup) center / contain no-repeat; mask: var(--lockup) center / contain no-repeat; }
.pattern { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: .07;
  -webkit-mask: var(--pattern) 0 0 / 366px 236px repeat; mask: var(--pattern) 0 0 / 366px 236px repeat; }

/* Header: transparent over the green band, solid once the page scrolls */
.site-head { position: sticky; top: 0; z-index: 20; height: var(--head-h); margin-bottom: calc(-1 * var(--head-h)); color: #fff; transition: background-color .3s ease, box-shadow .3s ease; }
.site-head.scrolled { background: rgba(43, 70, 63, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -14px rgba(0, 0, 0, .45); }
.site-head .in { height: 100%; display: flex; align-items: center; gap: 12px; }
.site-head .brand { margin-inline-end: auto; }
.brand { display: block; line-height: 0; border-radius: 8px; }
.brand .lockup { width: 66px; }
.nav { display: flex; align-items: center; gap: clamp(4px, 1.6vw, 12px); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; color: #fff; text-decoration: none; font: 400 1.02rem/1 var(--font); padding: 0 clamp(8px, 1.4vw, 14px); border-radius: 999px; transition: background-color .2s ease; }
.nav a:hover { background: rgba(255, 255, 255, .1); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: clamp(8px, 1.4vw, 14px); bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--green); color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 85% 10%, rgba(111, 154, 149, .35), transparent 60%), linear-gradient(to bottom, transparent 55%, var(--green-deep)); }
.hero .pattern { z-index: -1; }
.hero-body { position: relative; padding-block: calc(var(--head-h) + clamp(40px, 7vw, 88px)) clamp(48px, 8vw, 96px); }
.eyebrow-rule { display: block; width: 56px; height: 3px; border-radius: 3px; background: var(--gold); margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero p { margin-top: 16px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255, 255, 255, .84); max-width: 36em; }

/* Breadcrumb on inner pages */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 18px; font-size: .98rem; color: rgba(255, 255, 255, .72); }
.crumbs a { display: inline-block; padding-block: 8px 3px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.crumbs a:hover { border-bottom-color: var(--gold); }
.crumbs .sep { color: var(--gold); font-size: 1.2em; line-height: 1; }

.hero.home { min-height: min(100svh, 860px); display: flex; flex-direction: column; justify-content: center; }
.hero.home .hero-body { padding-block: calc(var(--head-h) + 48px) clamp(64px, 9vw, 104px); }
.hero.home h1 { font-size: clamp(2.8rem, 9vw, 6.2rem); line-height: 1.2; letter-spacing: -.005em; }
.hero.home p { margin-top: 28px; font-size: clamp(1.15rem, 2.4vw, 1.6rem); max-width: 30em; line-height: 1.85; }

/* Home sections */
.band { padding-block: clamp(72px, 11vw, 140px); }
.idea { position: relative; max-width: 30em; padding-inline-start: clamp(20px, 3vw, 36px); border-inline-start: 3px solid var(--gold);
  font-size: clamp(1.45rem, 3.4vw, 2.35rem); line-height: 1.8; font-weight: 300; text-wrap: balance; }
.trust-band { padding-block: 0 clamp(72px, 11vw, 140px); }
.trust { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr; gap: 20px clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.trust::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 45%; z-index: -1; background: var(--sage); opacity: .12;
  -webkit-mask: var(--pattern) 0 0 / 244px 157px repeat, linear-gradient(to left, #000, transparent); -webkit-mask-composite: source-in;
  mask: var(--pattern) 0 0 / 244px 157px repeat, linear-gradient(to left, #000, transparent); mask-composite: intersect; }
.trust .badge { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: rgba(56, 89, 80, .1); color: var(--green); }
.trust h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.trust p { margin-top: 8px; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trust .badge { background: rgba(201, 149, 18, .14); color: var(--gold); } }
:root[data-theme="dark"] .trust .badge { background: rgba(201, 149, 18, .14); color: var(--gold); }
@media (max-width: 600px) { .trust { grid-template-columns: 1fr; } }

/* Inner pages */
.page { padding-block: clamp(48px, 8vw, 96px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 12px;
  font: 700 1rem/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 22px -10px rgba(27, 43, 39, .45); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn-solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn-line { border-color: var(--line-strong); color: var(--fg); background: transparent; }

/* App page */
.app-card { max-width: 46em; }
.app-card h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Placeholders until the store links exist; swap for the official badges then */
.store-soon { flex: 1 1 200px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 22px;
  border: 1.5px dashed var(--line-strong); border-radius: 12px; color: var(--muted); cursor: default; }
.store-soon b { font-weight: 700; color: var(--fg); direction: ltr; }
.store-soon small { font-size: .88rem; padding: 3px 12px; border-radius: 999px; background: rgba(201, 149, 18, .16); color: var(--accent-text); }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .98rem; }
.app-links a { display: inline-block; padding-block: 8px; color: var(--muted); text-decoration: none; }
.app-links a:hover { color: var(--link); text-decoration: underline; }
.app-links a + a::before { content: "·"; display: inline-block; margin-inline: 12px; color: var(--accent-text); font-weight: 700; }

/* Logo page */
.logo-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.logo-tile { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 1; display: grid; place-items: center; }
.logo-tile .lockup { background: var(--green); width: 52%; }
.meanings { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: m; }
.meanings li { counter-increment: m; display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.meanings li::before { content: counter(m, arabic-indic); grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(201, 149, 18, .14); color: var(--accent-text); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.meanings h2 { font-size: 1.25rem; font-weight: 400; }
.meanings p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 760px) { .logo-page { grid-template-columns: 1fr; } .logo-tile { max-width: 340px; width: 100%; } }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact-aside { display: grid; gap: 14px; color: var(--muted); font-size: 1.05rem; }
.contact-aside h2 { color: var(--fg); font-size: 1.35rem; }
.contact-aside a { display: inline-block; padding-block: 10px; }
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field > label, .field > legend { font: 400 1.05rem/1.4 var(--font); padding: 0; }
.field .hint { color: var(--muted); font-size: .9rem; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--fg);
  font: 300 1.05rem/1.6 var(--font); transition: border-color .2s ease, background-color .2s ease; }
.input:hover { border-color: var(--sage); }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; background: var(--surface); }
textarea.input { min-height: 180px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border: 1.5px solid var(--line-strong); border-radius: 999px; font: 400 1rem/1 var(--font); transition: background-color .2s ease, border-color .2s ease; }
.chips label:hover span { border-color: var(--sage); }
.chips input:checked + span { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.note { color: var(--muted); font-size: .98rem; padding: 12px 16px; border-radius: 12px; background: var(--bg-2); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot .btn { min-width: 160px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.status { min-height: 1.6em; font-size: 1.02rem; }
.status.ok { color: var(--link); } .status.err { color: #B3402A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.err { color: #FF9C85; } }
:root[data-theme="dark"] .status.err { color: #FF9C85; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .contact-aside { order: 2; } }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }

/* Legal pages: reading column with a contents list beside it on wide screens */
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--head-h) + 24px); font-size: .95rem; }
.toc b { display: block; font-weight: 400; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 5px 14px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.6; }
.toc a:hover { color: var(--fg); }
.toc a.on { color: var(--fg); border-inline-start-color: var(--gold); }
.toc:empty { display: none; }
.legal { max-width: 46em; counter-reset: sec; }
.legal .lead { display: inline-block; color: var(--muted); font-size: .98rem; padding: 6px 14px; border-radius: 999px; background: var(--bg-2); }
.legal h2 { counter-increment: sec; font-size: 1.35rem; margin: 44px 0 12px; display: flex; gap: 12px; align-items: baseline; }
.legal h2::before { content: counter(sec, arabic-indic); flex: none; min-width: 1.8em; color: var(--accent-text); }
.legal p, .legal li { font-size: 1.06rem; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-inline-start: 1.3em; display: grid; gap: 8px; }
.legal li::marker { color: var(--gold); }
.todo { background: rgba(201, 149, 18, .22); border: 1px dashed var(--gold); border-radius: 6px; padding: 1px 8px; font-size: .95em; }
@media (max-width: 900px) { .legal-wrap { grid-template-columns: 1fr; } .toc { display: none; } }

/* 404 */
.lost { text-align: start; }
.lost .btn { margin-top: 32px; }

/* Footer */
.foot { position: relative; overflow: hidden; isolation: isolate; background: var(--green-deep); color: #fff; padding-block: clamp(48px, 7vw, 72px) 28px; }
.foot .pattern { z-index: -1; opacity: .045; }
.foot::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(to left, var(--gold), transparent 70%); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.foot .lockup { width: 104px; flex: none; }
.foot-info { display: grid; gap: 2px; color: rgba(255, 255, 255, .78); font-size: .95rem; flex: 1 1 260px; }
.foot-info b { color: #fff; font-size: 1.05rem; font-weight: 400; margin-bottom: 4px; }
.foot-info a { color: #fff; }
.foot-links { display: grid; gap: 0; }
.foot-links a { display: inline-block; padding-block: 7px; color: #fff; text-decoration: none; font-size: .98rem; }
.foot-info a { display: inline-block; padding-block: 6px; }

/* Back to top on the long legal pages */
.to-top { position: fixed; bottom: max(20px, env(safe-area-inset-bottom, 0px)); inset-inline-end: 20px; z-index: 15; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 999px; background: var(--gold); color: #14201C; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.to-top.on { opacity: 1; visibility: visible; transform: none; }
html:not(.js) .to-top { display: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .62); font-size: .9rem; }

/* Phone header: two rows. Logo and share button on top, the four links spread across the second row. */
@media (max-width: 520px) {
  :root { --head-h: 112px; }
  .site-head .in { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 60px 44px; align-items: center; gap: 0; padding-block: 4px; }
  .site-head .brand { grid-area: 1 / 1; justify-self: start; margin: 0; }
  .site-head .share { grid-area: 1 / 2; }
  .site-head .nav { grid-area: 2 / 1 / 3 / 3; justify-content: space-between; gap: 0; margin-inline: -6px; }
  .brand .lockup { width: 54px; }
  .nav a { font-size: .98rem; padding: 0 6px; }
  .nav a[aria-current="page"]::after { inset-inline: 6px; bottom: 6px; }
}

/* Gentle entrance; only when JS is on and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .rise.shown { opacity: 1; transform: none; }
  .js .rise.d1 { transition-delay: .08s; } .js .rise.d2 { transition-delay: .2s; } .js .rise.d3 { transition-delay: .34s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 520px) {
  .app-links { flex-direction: column; align-items: flex-start; }
  .app-links a + a::before { display: none; }
}

/* Delete-account page */
.del-page { display: grid; gap: 20px; max-width: 46em; }
.del-intro { font-size: 1.12rem; color: var(--muted); margin-bottom: 8px; }
.del-page .card h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin-bottom: 14px; }
.del-page .card p + p { margin-top: 10px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
.steps li { counter-increment: st; display: flex; align-items: center; gap: 16px; font-size: 1.08rem; }
.steps li::before { content: counter(st, arabic-indic); flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(201, 149, 18, .14); color: var(--accent-text); font-weight: 700; line-height: 1; }
.steps b { font-weight: 700; }
.del-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.del-more { color: var(--muted); }

/* Contact: thank-you panel shown after a successful send */
[hidden] { display: none !important; }
.thanks { display: grid; justify-items: center; gap: 12px; padding-block: clamp(36px, 6vw, 56px); text-align: center; }
.thanks:focus { outline: none; }
.thanks-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 999px; background: rgba(56, 89, 80, .12); color: var(--green); }
.thanks h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.thanks p { color: var(--muted); font-size: 1.1rem; max-width: 26em; }
.thanks .btn { margin-top: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .thanks-icon { background: rgba(201, 149, 18, .16); color: var(--gold); } }
:root[data-theme="dark"] .thanks-icon { background: rgba(201, 149, 18, .16); color: var(--gold); }

/* Contact: general vs. account-deletion fields */
.only-general, .only-delete { display: grid; gap: 24px; }
.form[data-mode="delete"] .only-general, .form:not([data-mode="delete"]) .only-delete { display: none; }
.req { color: #B3402A; font-weight: 700; }
.input.ltr { direction: ltr; text-align: right; }
textarea.input.short { min-height: 110px; }
.input[aria-invalid="true"] { border-color: #B3402A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .req { color: #FF9C85; } :root:not([data-theme="light"]) .input[aria-invalid="true"] { border-color: #FF9C85; } }

/* Share button in the header (shares the site's root) */
.share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 clamp(8px, 1.4vw, 14px); margin-inline-start: 4px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; color: #fff; font: 400 1.02rem/1 var(--font); cursor: pointer;
  transition: background-color .2s ease; }
.share:hover { background: rgba(255, 255, 255, .1); }
html:not(.js) .share { display: none; }
@media (max-width: 520px) {
  .share { width: 44px; padding: 0; justify-content: center; margin-inline-start: 2px; }
  .share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* «طلب دعوة» in the header: a gold-outlined pill on wide screens, gold text on phones */
.nav a.nav-cta { border: 1px solid var(--gold); margin-inline-start: 4px; }
.nav a.nav-cta:hover { background: rgba(201, 149, 18, .18); }
.nav a.nav-cta[aria-current="page"] { background: rgba(201, 149, 18, .22); }
.nav a.nav-cta[aria-current="page"]::after { display: none; }
@media (max-width: 520px) {
  .nav a.nav-cta { border: 0; margin: 0; color: #F1D27A; }
  .nav a.nav-cta[aria-current="page"] { background: none; }
  .nav a.nav-cta[aria-current="page"]::after { display: block; }
  .share { margin-inline-start: 0; }
}
@media (max-width: 359px) {
  .nav a { padding: 0 4px; font-size: .9rem; }
}

/* Quiet secondary lines: privacy note, scam warning */
.fine { color: var(--muted); font-size: .92rem; line-height: 1.8; }
.fine + .fine { margin-top: -14px; }
.app-card .fine { margin-top: 14px; }
.invite-cta { margin-top: 6px; }
.invite-cta a { font-weight: 400; }
.invite-page { max-width: 34em; }
.field .hint { line-height: 1.6; }

/* Home headline: the "…" rises dot by dot like the logo's points, then settles (CSS only, once) */
.nowrap { white-space: nowrap; }
.dots i { display: inline-block; font-style: normal; margin-inline: -.03em; }
@media (prefers-reduced-motion: no-preference) {
  .dots i { animation: 1.2s cubic-bezier(.3, .7, .3, 1) both; }
  .dots i:nth-child(1) { animation-name: dot1; }
  .dots i:nth-child(2) { animation-name: dot2; }
  .dots i:nth-child(3) { animation-name: dot3; }
}
@keyframes dot1 { 0% { opacity: 0; transform: translateY(-.12em); } 15%, 65% { opacity: 1; transform: translateY(-.12em); } 100% { opacity: 1; transform: none; } }
@keyframes dot2 { 0%, 20% { opacity: 0; transform: translateY(-.24em); } 35%, 65% { opacity: 1; transform: translateY(-.24em); } 100% { opacity: 1; transform: none; } }
@keyframes dot3 { 0%, 40% { opacity: 0; transform: translateY(-.36em); } 55%, 65% { opacity: 1; transform: translateY(-.36em); } 100% { opacity: 1; transform: none; } }

/* Greeting cards (hidden page): form beside a live preview */
.cards-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.card-preview { margin: 0; position: sticky; top: calc(var(--head-h) + 20px); display: grid; place-items: center; }
.card-preview canvas { width: 100%; max-width: 480px; height: auto; border-radius: 16px; box-shadow: var(--shadow); background: #385950; }
.card-preview canvas.story { max-width: 300px; }
.cards-grid .form-foot .btn { min-width: 0; }
@media (max-width: 820px) {
  .cards-grid { grid-template-columns: 1fr; }
  .card-preview { position: static; order: -1; }
  .card-preview canvas { max-width: 360px; }
  .card-preview canvas.story { max-width: 240px; }
}
