/* Noot marketing site.
   Colours and type mirror the apps (lib/config/app_color.dart and theme.dart):
   teal #468077 is the brand, #F3F6F7 the page background, Urbanist for English
   and Tajawal for Arabic. Light mode only. Layout uses logical properties
   (inline-start / inline-end) so the same CSS serves Arabic (RTL) and English (LTR). */

@font-face { font-family: "Urbanist"; src: url("/assets/fonts/Urbanist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("/assets/fonts/Urbanist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("/assets/fonts/Urbanist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("/assets/fonts/Urbanist-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --teal-50: #EEF6F4; --teal-100: #DFF5F1; --teal-200: #BFE0DA; --teal-300: #8FC2B9;
  --teal-500: #468077; --teal-600: #3B6E66; --teal-700: #2F5A53; --teal-800: #234642; --teal-900: #16302D;
  --sand-50: #FBF6EE; --sand-100: #F4E9D6; --sand-600: #9A6B2F;

  --background: #F3F6F7;
  --surface: #FFFFFF;
  --surface-variant: #F7FAF9;
  --border: #DDE6E4;
  --divider: #E8EEED;
  --text: #0F1C1A;
  --text-2: #4A5A57;
  --text-3: #6A7875;
  --primary: #468077;
  --primary-hover: #3B6E66;
  --on-primary: #FFFFFF;
  --primary-container: #DFF5F1;
  --on-primary-container: #234642;
  --success: #16A34A;

  --glow-1: rgba(70, 128, 119, .20);
  --glow-2: rgba(201, 164, 106, .16);
  --shadow-phone: 0 40px 80px -30px rgba(22, 48, 45, .45), 0 18px 36px -18px rgba(15, 28, 26, .25);
  --shadow-card: 0 18px 40px -22px rgba(15, 28, 26, .30);
  --bezel: #121A19;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tracking-tight: -0.025em;
}
/* Arabic: Tajawal, and no negative letter-spacing (it breaks letter joining). */
html[lang="ar"] {
  --font: "Tajawal", "Urbanist", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --tracking-tight: 0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.15; letter-spacing: var(--tracking-tight); font-weight: 700; }
html[lang="ar"] :is(h1, h2, h3, h4) { line-height: 1.35; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--teal-200); color: var(--teal-900); }
bdi, .ltr { unicode-bidi: isolate; direction: ltr; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Arrows point forward in reading direction. */
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--background) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--divider); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-inline-start: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .98rem; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.lang-switch:hover { background: var(--surface-variant); }
.lang-switch .icon { width: 18px; height: 18px; color: var(--primary); }
.lang-switch [lang="ar"] { font-family: "Tajawal", sans-serif; }
.lang-switch [lang="en"] { font-family: "Urbanist", sans-serif; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-variant); }
.icon-btn .icon { width: 20px; height: 20px; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .nav-links {
    display: none; position: absolute; inset-inline: 0; top: 76px;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--background); border-bottom: 1px solid var(--divider);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 8px; font-size: 1.05rem; }
  .menu-btn { display: inline-grid; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn-small { display: none; }
}
@media (max-width: 400px) {
  .brand img { height: 36px; }
  .lang-switch { padding: 0 10px; }
  .lang-switch .icon { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius-sm);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .95rem; }

/* Store badges */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
[dir="rtl"] .store-badge { padding: 8px 16px 8px 20px; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store-badge small { font-size: .72rem; font-weight: 500; letter-spacing: .03em; opacity: .85; }
.store-badge strong { font-family: "Urbanist", system-ui, sans-serif; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; direction: ltr; text-align: start; }
.store-row--compact .store-badge { min-height: 50px; padding-block: 6px; border-radius: 12px; }
.store-row--compact .store-badge svg { width: 24px; height: 24px; }
.store-row--compact .store-badge strong { font-size: 1.05rem; }

/* ---------- Chips & labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-700); font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  padding: 6px 12px; border-radius: 999px; background: var(--primary-container);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.eyebrow .icon { width: 16px; height: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.chip .icon { width: 16px; height: 16px; color: var(--primary); }

/* ---------- Phone frame ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .16);
  background: var(--bezel);
  box-shadow: var(--shadow-phone);
  container-type: inline-size;
}
.phone::after { /* Dynamic Island */
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--w) * .032 + 2.4cqw); width: 29cqw; height: 8.4cqw;
  background: #000; border-radius: 999px; z-index: 6; pointer-events: none;
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 1391; border-radius: calc(var(--w) * .128); background: var(--surface); object-fit: cover; object-position: top; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.hero::before { width: 820px; height: 820px; inset-inline-end: -200px; top: -200px; background: radial-gradient(closest-side, var(--glow-1), transparent); }
.hero::after { width: 640px; height: 640px; inset-inline-start: -260px; bottom: -280px; background: radial-gradient(closest-side, var(--glow-2), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin: 20px 0; letter-spacing: calc(var(--tracking-tight) * 1.4); }
html[lang="ar"] .hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 40ch; margin-bottom: 30px; }
.hero .store-row { margin-bottom: 24px; }
.owner-link {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: border-color .15s ease, transform .15s ease;
}
[dir="rtl"] .owner-link { padding: 10px 10px 10px 16px; }
.owner-link:hover { border-color: var(--teal-300); transform: translateY(-1px); }
.owner-link img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); }
.owner-link strong { display: block; font-weight: 700; }
.owner-link span { color: var(--text-3); font-size: .88rem; }
.owner-link .icon { color: var(--primary); width: 18px; height: 18px; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 620px; }
.hero-visual .phone--front { --w: clamp(240px, 26vw, 310px); z-index: 2; transform: translateX(-12%); }
[dir="rtl"] .hero-visual .phone--front { transform: translateX(12%); }
.hero-visual .phone--back { --w: clamp(210px, 22vw, 268px); position: absolute; inset-inline-end: 0; top: 56px; z-index: 1; transform: rotate(5deg); }
[dir="rtl"] .hero-visual .phone--back { transform: rotate(-5deg); }
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: .92rem; line-height: 1.3;
}
.float-card strong { display: block; font-weight: 700; color: var(--text); }
.float-card span { color: var(--text-3); font-size: .82rem; }
.float-card .fc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-container); color: var(--primary); flex: none; }
.float-card .fc-icon .icon { width: 20px; height: 20px; }
.float-card .fc-icon--ok { background: #DCFCE7; color: var(--success); }
.float-card--a { inset-inline-start: -2%; top: 10%; }
.float-card--b { inset-inline-start: -4%; bottom: 6%; }
.float-card--c { inset-inline-end: -2%; bottom: 22%; }
.price-tag { display: block; font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.price-tag small { font-size: .8rem; color: var(--text-3); font-weight: 500; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero .lede { margin-inline: auto; }
  .hero .store-row { justify-content: center; }
  .hero-visual { min-height: 0; padding: 24px 0 0; }
}
@media (max-width: 560px) {
  .hero-visual .phone--back { display: none; }
  .hero-visual .phone--front, [dir="rtl"] .hero-visual .phone--front { transform: none; --w: min(70vw, 280px); }
  .float-card--a { inset-inline-start: 0; top: 8%; }
  .float-card--b { display: none; }
  .float-card--c { inset-inline-end: 0; bottom: 10%; }
  .float-card { padding: 10px 12px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--white { background: var(--surface); border-block: 1px solid var(--divider); }
.section-head { max-width: 740px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin: 16px 0; }
.section-head p { color: var(--text-2); font-size: 1.125rem; }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category {
  position: relative; overflow: hidden; padding: 26px 24px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.category::after { content: ""; position: absolute; width: 160px; height: 160px; inset-inline-end: -60px; top: -60px; border-radius: 50%; background: radial-gradient(closest-side, var(--teal-100), transparent); }
.category .h-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary); color: #fff; margin-bottom: 18px; }
.category .h-icon .icon { width: 26px; height: 26px; }
.category h3 { font-size: 1.2rem; margin-bottom: 6px; }
.category p { color: var(--text-2); font-size: .97rem; }
@media (max-width: 960px) { .categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .categories { grid-template-columns: 1fr; } }

/* Two apps */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--border);
}
.app-card--owner { background: var(--teal-800); border-color: transparent; color: #fff; }
.app-card--owner::after { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-end: -160px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 194, 185, .28), transparent); }
.app-card > * { position: relative; z-index: 1; }
.app-id { display: flex; align-items: center; gap: 16px; }
.app-id img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 24px -12px rgba(15, 28, 26, .5); }
.app-card--owner .app-id img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 24px -12px rgba(0, 0, 0, .6); }
.app-id small { display: block; font-weight: 600; font-size: .85rem; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .app-id small { text-transform: none; letter-spacing: 0; }
.app-card--owner .app-id small { color: var(--teal-200); }
.app-id h3 { font-size: 1.6rem; }
.app-card p { color: var(--text-2); }
.app-card--owner p { color: rgba(255, 255, 255, .82); }
.app-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.app-points li { display: flex; gap: 10px; align-items: flex-start; }
.app-points .icon { width: 20px; height: 20px; color: var(--primary); margin-top: 3px; }
.app-card--owner .app-points .icon { color: var(--teal-200); }
.app-card .store-row { margin-top: auto; padding-top: 6px; }
.app-card--owner .store-badge { border-color: rgba(255, 255, 255, .3); }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; } }

/* Audience band headings */
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 80px); }
.band-head > div { max-width: 680px; }
.band-head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 16px 0 14px; }
.band-head p { color: var(--text-2); font-size: 1.125rem; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(96px, 12vw, 150px); }
.feature--flip .feature-copy { order: 2; }
.feature-copy { min-width: 0; }
.feature-copy h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 18px 0; }
.feature-copy > p { color: var(--text-2); font-size: 1.125rem; margin-bottom: 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 8px;
  background: var(--primary-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23468077' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks strong { font-weight: 700; }
.ticks span { color: var(--text-2); }
.ticks span strong { color: var(--text); }
.note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface);
  color: var(--text-2); font-size: .97rem; border: 1px solid var(--border);
}
.note .icon { color: var(--primary); margin-top: 3px; }

.feature-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 600px; }
.feature-visual::before {
  content: ""; position: absolute; inset: 6% 4%; z-index: -1; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: radial-gradient(circle at 30% 30%, var(--glow-1), transparent 62%), radial-gradient(circle at 70% 70%, var(--glow-2), transparent 60%);
}
.phones { display: flex; align-items: center; justify-content: center; }
.phones .phone { --w: clamp(220px, 22vw, 280px); }
.phones .phone + .phone { margin-inline-start: calc(var(--w) * -0.28); }
.phones .phone:nth-child(1) { z-index: 2; }
.phones .phone:nth-child(2) { z-index: 1; transform: translateY(40px) scale(.9); }
.phones--three .phone { --w: clamp(200px, 19vw, 260px); }
.phones--three .phone:nth-child(1) { z-index: 1; transform: translateY(40px) scale(.86); }
.phones--three .phone:nth-child(2) { z-index: 3; transform: none; }
.phones--three .phone:nth-child(3) { z-index: 1; transform: translateY(40px) scale(.86); }
.phones--single .phone { --w: clamp(250px, 25vw, 300px); }
.feature-visual .float-card--a { top: 10%; inset-inline-start: 2%; }
.feature-visual .float-card--c { bottom: 12%; inset-inline-end: 2%; }

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-copy { order: 0; }
  .feature-visual { min-height: 0; padding-top: 12px; }
}
@media (max-width: 560px) {
  .phones .phone { --w: 62vw; }
  .phones .phone + .phone { display: none; }
  .phones--three .phone { display: none; }
  .phones--three .phone:nth-child(2) { display: block; --w: 66vw; }
  .phones--single .phone { --w: 66vw; }
  .feature-visual .float-card { display: none; }
}

/* Payment methods */
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pay {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 700; font-size: .92rem; color: var(--text);
}
.pay .icon { width: 18px; height: 18px; color: var(--primary); }
.pay--mada { color: #1D4E89; }
.pay--visa { color: #1A1F71; font-style: italic; letter-spacing: .02em; }
.pay--apple { color: #000; }
.pay--apple svg { width: 16px; height: 16px; }
.mc { display: inline-flex; }
.mc i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.mc i:first-child { background: #EB001B; }
.mc i:last-child { background: #F79E1B; margin-inline-start: -7px; mix-blend-mode: multiply; }

/* Small feature grid */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(80px, 10vw, 120px); }
.mini { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.mini .h-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--primary-container); color: var(--primary); margin-bottom: 16px; }
.mini .h-icon .icon { width: 22px; height: 22px; }
.mini h4 { font-size: 1.1rem; margin-bottom: 6px; }
.mini p { color: var(--text-2); font-size: .96rem; }
@media (max-width: 960px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mini-grid { grid-template-columns: 1fr; } }

/* Owners band (deep teal) */
.section--owners { background: var(--teal-900); color: #fff; overflow: hidden; isolation: isolate; }
.section--owners::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; inset-inline-start: -300px; top: -360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 128, 119, .55), transparent); }
.section--owners .eyebrow { background: rgba(143, 194, 185, .18); color: var(--teal-200); }
.section--owners .band-head p,
.section--owners .feature-copy > p,
.section--owners .ticks span { color: rgba(255, 255, 255, .78); }
.section--owners .ticks span strong { color: #fff; }
.section--owners .ticks li::before { background-color: rgba(143, 194, 185, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BFE0DA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.section--owners .note { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .82); }
.section--owners .note .icon { color: var(--teal-200); }
.section--owners .feature-visual::before { background: radial-gradient(circle at 35% 35%, rgba(143, 194, 185, .22), transparent 62%), radial-gradient(circle at 70% 70%, rgba(201, 164, 106, .14), transparent 60%); }
.section--owners .phone { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.section--owners .store-badge { border-color: rgba(255, 255, 255, .3); }
.section--owners .float-card { color: var(--text); }

/* Listing steps */
.steps { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  position: relative; padding: 16px 18px; padding-inline-start: 64px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .95rem; color: rgba(255, 255, 255, .75);
}
.step::before {
  counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 18px; top: 16px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-200); color: var(--teal-900); font-weight: 700; font-size: .95rem;
}
.step strong { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; font-size: 1.02rem; }

/* Calendar tiles (owner pricing) */
.cal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.cal { padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.cal .icon { width: 22px; height: 22px; color: var(--teal-200); margin-bottom: 8px; }
.cal strong { display: block; font-size: 1rem; }
.cal span { font-size: .9rem; color: rgba(255, 255, 255, .72); }
@media (max-width: 560px) { .cal-row { grid-template-columns: 1fr; } }

/* Payout status */
.payout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.payout span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.payout .p1 { background: rgba(255, 255, 255, .1); color: #fff; }
.payout .p2 { background: rgba(201, 164, 106, .22); color: #F4E2C2; }
.payout .p3 { background: rgba(34, 197, 94, .2); color: #A7F3C5; }
.payout .icon { width: 14px; height: 14px; }
.payout .sep { color: rgba(255, 255, 255, .4); padding: 0; }

.owner-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.owner-cta .app-id img { width: 56px; height: 56px; border-radius: 14px; }

/* Trust */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-card { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--background); border: 1px solid var(--border); }
.p-card .h-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-container); color: var(--primary); margin-bottom: 18px; }
.p-card .h-icon .icon { width: 24px; height: 24px; }
.p-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.p-card p { color: var(--text-2); font-size: .96rem; }
@media (max-width: 960px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
.license {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--background); overflow: hidden;
}
.license div { padding: 18px 22px; }
.license div + div { border-inline-start: 1px solid var(--border); }
.license dt { font-size: .85rem; color: var(--text-3); font-weight: 600; }
.license dd { margin: 4px 0 0; font-weight: 700; font-size: 1.1rem; }
@media (max-width: 720px) { .license { grid-template-columns: 1fr; } .license div + div { border-inline-start: 0; border-top: 1px solid var(--border); } }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; padding-inline-end: 56px; font-weight: 700; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--primary); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--text-2); }

/* Download CTA */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: clamp(32px, 6vw, 72px);
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-500) 55%, #5E9A90 100%); color: #fff;
}
.cta::after { content: ""; position: absolute; width: 560px; height: 560px; inset-inline-end: -160px; top: -240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .2), transparent); }
.cta > * { position: relative; z-index: 1; }
.cta-head { max-width: 640px; margin-bottom: 36px; }
.cta h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 12px; }
.cta-head p { opacity: .9; font-size: 1.125rem; }
.cta-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-app { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.cta-app .app-id img { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.cta-app .app-id small { color: var(--teal-100); }
.cta-app .app-id h3 { font-size: 1.35rem; }
.cta .store-badge { border-color: rgba(255, 255, 255, .3); }
@media (max-width: 860px) { .cta-apps { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
a.contact-card:hover { border-color: var(--teal-300); transform: translateY(-2px); }
.contact-card .h-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary); color: #fff; flex: none; }
.contact-card .h-icon .icon { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--text-3); font-weight: 600; font-size: .85rem; margin-bottom: 2px; }
.contact-card strong { font-size: 1.1rem; font-weight: 700; word-break: break-word; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--divider); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 14px; font-weight: 700; }
html[lang="ar"] .footer-grid h4 { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-about .brand img { height: 44px; }
.footer-about p { color: var(--text-2); font-size: .97rem; margin-top: 16px; max-width: 36ch; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .86rem; color: var(--text-3); }
.footer-legal .licenses { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; inset-inline-end: -220px; top: -320px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-1), transparent); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-top: 16px; }

.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.legal-nav { position: sticky; top: 96px; }
.legal-nav h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; margin-bottom: 12px; }
html[lang="ar"] .legal-nav h2 { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legal-nav a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .97rem; }
.legal-nav a:hover { background: var(--surface); color: var(--text); }
.legal-nav a[aria-current="page"] { background: var(--primary-container); color: var(--on-primary-container); font-weight: 700; }

.prose {
  min-width: 0; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose h4, .prose h5, .prose h6 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 16px; display: grid; gap: 6px; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose a { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.prose img { height: auto; border-radius: var(--radius-sm); }

.legal-loading { display: grid; gap: 14px; }
.legal-loading i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--divider), var(--surface-variant), var(--divider)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.legal-loading i:nth-child(3n) { width: 70%; }
.legal-loading i:nth-child(4n) { width: 88%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.legal-error { display: grid; gap: 16px; justify-items: start; color: var(--text-2); }
.legal-error .btn { min-height: 46px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; order: 2; }
}
@media (prefers-reduced-motion: reduce) { .legal-loading i { animation: none; } }

/* Opened from the Noot apps (?app=1): the app shows its own title bar, so show only the text. */
.in-app .skip-link, .in-app .site-header, .in-app .site-footer, .in-app .page-hero, .in-app .legal-nav { display: none; }
.in-app .legal-layout { grid-template-columns: 1fr; padding: 16px var(--gutter) 40px; }
.in-app .prose { padding: 20px; }

/* 404 */
.notfound { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.notfound img { height: 64px; width: auto; margin: 0 auto 28px; }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.notfound p { color: var(--text-2); margin-bottom: 28px; }
.notfound hr { border: 0; border-top: 1px solid var(--divider); max-width: 320px; margin: 48px auto; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
