:root { --bg: #FFFBEB; --card: #FFFFFF; --ink: #1B1A14; --ink-fixed: #1B1A14; --muted: #5F5A45; --line: #EDE5C6; --accent: #C9A21A; --accent-deep: #9C7C0B; --hero: #FFD23F; --alt: #B8401F; --alt-deep: #8F2F14; --gold: #FFD23F; --sh-a: #FFF3C4; --sh-b: #FFF6D8; --sh-c: #FBE6DE; --link: #A8381A; --btn: #1B1A14; --btn-hover: #3A3825; --on-hero: #1B1A14; --on-btn: #FFFBEB; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0C1426; --card: #141F38; --ink: #F4F1E6; --ink-fixed: #1B1A14; --muted: #A9B3C9; --line: #25314F; --accent: #FFD23F; --accent-deep: #E6B91F; --hero: #1A2747; --alt: #FF8A70; --alt-deep: #E86F54; --gold: #FFD23F; --sh-a: #16223F; --sh-b: #101A33; --sh-c: #3A2219; --link: #FFD23F; --btn: #FFD23F; --btn-hover: #FFE07A; --on-hero: #FFF3C4; --on-btn: #1B1A14; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0C1426; --card: #141F38; --ink: #F4F1E6; --ink-fixed: #1B1A14; --muted: #A9B3C9; --line: #25314F; --accent: #FFD23F; --accent-deep: #E6B91F; --hero: #1A2747; --alt: #FF8A70; --alt-deep: #E86F54; --gold: #FFD23F; --sh-a: #16223F; --sh-b: #101A33; --sh-c: #3A2219; --link: #FFD23F; --btn: #FFD23F; --btn-hover: #FFE07A; --on-hero: #FFF3C4; --on-btn: #1B1A14; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Safratna ---------- */
.logo-h1 { align-items: center; gap: 0.6rem 1.4rem; }
.logo-h1 img.ar { block-size: clamp(3.6rem, 8.5vw, 5.6rem); inline-size: auto; }
.logo-h1 img.en { block-size: clamp(1.3rem, 3vw, 1.9rem); inline-size: auto; opacity: 0.95; }
.logo-h1 img.en.big { block-size: clamp(2.6rem, 6vw, 4rem); }
/* silhouettes: tone-on-tone, a darker shade of the banner colour, like satrsalfah.com (Sultan's pick, 16 Nov 2026) */
.theme-safratna .gi { color: #000; opacity: 0.18; filter: none; }
.theme-safratna .gi svg { fill: currentColor; stroke: none; }
.theme-safratna .gi svg .ln { stroke: currentColor; fill: none; }
.theme-safratna .gi.k-heart { animation-name: gfloat; }
.tile.big { background: #FFD23F; }
.pill-soon { background: #fff; }
.num { display: inline-block; color: var(--alt); background: var(--sh-c); border-radius: 99px; padding: 0.05rem 0.9rem; font-weight: 700; font-size: 0.9rem; margin-block-end: 0.5rem; }
.split .art.phone > picture { display: block; inline-size: min(100%, 15rem); }
.split .art.phone img { inline-size: 100%; block-size: auto; display: block; border-radius: 2rem; box-shadow: 0 18px 40px rgba(18, 28, 51, 0.22), 0 0 0 1px var(--line); }
@media (min-width: 48rem) { .split.flip > :first-child { order: 2; } }
.cta { background: var(--sh-a); border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); }
.cta h2 { margin-block-start: 0; }
.stores { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block-start: 0.8rem; }
.store { display: inline-flex; flex-direction: column; border: 2px solid var(--line); background: var(--card); border-radius: 0.9rem; padding: 0.3rem 0.9rem; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.store b { color: var(--ink); font-size: 0.95rem; }
.contact { margin-block-start: 1.4rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; }
.lead { max-inline-size: 60ch; }
.legal .lead { color: var(--muted); }
.legal { max-inline-size: 52rem; }
.legal h1 { font-size: var(--step-3); }
.legal h3 { font-size: var(--step-1); margin-block: 1.4em 0.2em; }
.legal p, .legal li { max-inline-size: 68ch; }
.legal a { overflow-wrap: anywhere; }
.tablewrap { overflow-x: auto; }
.credits li { margin-block-end: 0.4rem; font-size: 0.97rem; }
.nowrap { white-space: nowrap; unicode-bidi: isolate; }
.msg { text-align: center; padding-block: 2rem; }
.msg img { inline-size: 5.5rem; block-size: auto; }
/* buttons used by the page text and by the worker's deletion pages */
.legal .btn, .msg .btn, .cta .btn { background: var(--btn); color: var(--on-btn); }
.btn.apple { background: #000 !important; color: #fff !important; }
.btn.off { background: var(--card) !important; color: var(--muted) !important; border: 2px solid var(--line); cursor: default; }
.btn.off:hover { transform: none; }
.btn.danger { background: #B3261E !important; color: #fff !important; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.delform fieldset { border: 2px solid var(--line); border-radius: 1rem; padding: 0.6rem 1.1rem; margin-block: 1rem; }
.delform legend { padding-inline: 0.4rem; font-weight: 700; }
.delform label { display: block; padding-block: 0.4rem; }
.delform .typed input { display: block; margin-block-start: 0.4rem; inline-size: 100%; max-inline-size: 16rem; font: inherit; padding: 0.6rem 0.8rem; border: 2px solid var(--line); border-radius: 0.7rem; background: var(--card); color: var(--ink); }

/* strengths panel: shown instead of app screenshots until the app is launched (SHOW_SHOTS in build.py) */
.strength { display: grid; justify-items: center; gap: 1.2rem; padding: clamp(1.6rem, 5vw, 2.6rem) 1.4rem; border-radius: 2rem; background: var(--sh-a); border: 2px solid var(--line); max-inline-size: 22rem; margin-inline: auto; inline-size: 100%; }
.strength.s2 { background: var(--sh-b); } .strength.s3 { background: var(--sh-c); }
.strength .big-ic { display: grid; place-items: center; inline-size: 6.5rem; block-size: 6.5rem; border-radius: 1.8rem; background: #FFD23F; color: #1B1A14; box-shadow: 0 10px 24px rgba(18, 28, 51, 0.16); }
.strength .big-ic svg { inline-size: 3.6rem; block-size: 3.6rem; }
.strength .chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.strength .chips li { background: var(--card); border: 2px solid var(--line); border-radius: 99px; padding: 0.2rem 0.9rem; font-weight: 600; font-size: 0.95rem; }
.tile.big img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }

/* Safratna icon on the home page: the approved stamp as two layers (stamp-base.svg + stamp-plane.svg, same 1024 box).
   At rest the plane layer sits exactly where the approved icon has it, so the picture is identical to the app icon.
   The plane takes off along its own heading, leaves the tile and glides back in from the lower right (8 s loop, transform and opacity only).
   Same pop-in and reduced-motion rules as the Fidwa site. The header icon is the still picture. */
.stampicon { position: relative; display: block; inline-size: 100%; block-size: 100%; }
.stampicon img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; display: block; }
.stampicon .st-plane { transform-origin: 25.13% 23.73%; animation: stampfly 8s linear infinite; will-change: transform, opacity; }
@keyframes stampfly {
  0% { transform: translate(0.00%, 0.00%) rotate(0.0deg); opacity: 1; }
  36% { transform: translate(0.00%, 0.00%) rotate(0.0deg); opacity: 1; }
  39.5% { transform: translate(0.00%, 0.00%) rotate(-2.0deg); opacity: 1; }
  40.4062% { transform: translate(-0.94%, -0.33%) rotate(-1.5deg); opacity: 1; }
  41.3125% { transform: translate(-1.95%, -0.71%) rotate(-0.6deg); opacity: 1; }
  42.2188% { transform: translate(-3.06%, -1.15%) rotate(0.5deg); opacity: 1; }
  43.125% { transform: translate(-4.33%, -1.67%) rotate(1.7deg); opacity: 1; }
  44.0312% { transform: translate(-5.77%, -2.32%) rotate(3.1deg); opacity: 1; }
  44.9375% { transform: translate(-7.45%, -3.12%) rotate(4.6deg); opacity: 1; }
  45.8438% { transform: translate(-9.38%, -4.11%) rotate(6.2deg); opacity: 1; }
  46.75% { transform: translate(-11.61%, -5.34%) rotate(7.9deg); opacity: 1; }
  47.6562% { transform: translate(-14.15%, -6.84%) rotate(9.6deg); opacity: 1; }
  48.5625% { transform: translate(-17.04%, -8.67%) rotate(11.5deg); opacity: 1; }
  49.4688% { transform: translate(-20.28%, -10.89%) rotate(13.4deg); opacity: 1; }
  50.375% { transform: translate(-23.90%, -13.56%) rotate(15.4deg); opacity: 1; }
  51.2812% { transform: translate(-27.90%, -16.73%) rotate(17.4deg); opacity: 1; }
  52.1875% { transform: translate(-32.28%, -20.47%) rotate(19.6deg); opacity: 1; }
  53.0938% { transform: translate(-37.03%, -24.86%) rotate(21.8deg); opacity: 1; }
  54% { transform: translate(-42.14%, -29.97%) rotate(24.0deg); opacity: 1; }
  54.1% { transform: translate(93.77%, 60.43%) rotate(20.0deg); opacity: 0; }
  59.9% { transform: translate(93.77%, 60.43%) rotate(20.0deg); opacity: 0; }
  60% { transform: translate(93.77%, 60.43%) rotate(20.0deg); opacity: 1; }
  61.1818% { transform: translate(87.49%, 54.98%) rotate(18.9deg); opacity: 1; }
  62.3636% { transform: translate(81.35%, 49.84%) rotate(17.8deg); opacity: 1; }
  63.5455% { transform: translate(75.35%, 45.02%) rotate(16.8deg); opacity: 1; }
  64.7273% { transform: translate(69.50%, 40.49%) rotate(15.7deg); opacity: 1; }
  65.9091% { transform: translate(63.82%, 36.26%) rotate(14.7deg); opacity: 1; }
  67.0909% { transform: translate(58.31%, 32.30%) rotate(13.6deg); opacity: 1; }
  68.2727% { transform: translate(52.98%, 28.63%) rotate(12.6deg); opacity: 1; }
  69.4545% { transform: translate(47.85%, 25.22%) rotate(11.6deg); opacity: 1; }
  70.6364% { transform: translate(42.91%, 22.06%) rotate(10.6deg); opacity: 1; }
  71.8182% { transform: translate(38.18%, 19.15%) rotate(9.7deg); opacity: 1; }
  73% { transform: translate(33.66%, 16.47%) rotate(8.7deg); opacity: 1; }
  74.1818% { transform: translate(29.37%, 14.03%) rotate(7.8deg); opacity: 1; }
  75.3636% { transform: translate(25.31%, 11.80%) rotate(6.8deg); opacity: 1; }
  76.5455% { transform: translate(21.48%, 9.78%) rotate(5.9deg); opacity: 1; }
  77.7273% { transform: translate(17.89%, 7.96%) rotate(5.1deg); opacity: 1; }
  78.9091% { transform: translate(14.55%, 6.32%) rotate(4.2deg); opacity: 1; }
  80.0909% { transform: translate(11.46%, 4.87%) rotate(3.4deg); opacity: 1; }
  81.2727% { transform: translate(8.63%, 3.59%) rotate(2.6deg); opacity: 1; }
  82.4545% { transform: translate(6.07%, 2.47%) rotate(1.8deg); opacity: 1; }
  83.6364% { transform: translate(3.77%, 1.51%) rotate(1.1deg); opacity: 1; }
  84.8182% { transform: translate(1.75%, 0.69%) rotate(0.5deg); opacity: 1; }
  86% { transform: translate(0.00%, 0.00%) rotate(0.0deg); opacity: 1; }
  92% { transform: translate(0.00%, 0.00%) rotate(0.0deg); opacity: 1; }
  100% { transform: translate(0.00%, 0.00%) rotate(0.0deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .stampicon .st-plane { animation: none; will-change: auto; } }
/* the strengths icons bob slowly like Fidwa's pictures (bobart) */
.strength .big-ic { animation: bobart 6s ease-in-out infinite; }
.strength.s2 .big-ic { animation-delay: -2s; } .strength.s3 .big-ic { animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .strength .big-ic { animation: none; } }

/* Header wordmark: the real cream/ink wordmark, as tall as the icon (2.6rem). */
.brand .nm .wm{block-size:2rem;inline-size:auto;display:block}
.brand .nm{flex-direction:row}
