@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;700&display=swap");

:root {
  --bg-primary: #FAF7F2;
  --bg-muted: #EDE7DC;
  --bg-footer: #2A2521;
  --text-primary: #1A1A1A;
  --text-muted: #6B6259;
  --text-on-dark: #FAF7F2;
  /* Aligned to the web-app palette: green-led accent (links, eyebrows, active),
     brown reserved for primary CTAs. See src/App.css :root. */
  --accent: #6e9152;
  --accent-hover: #5a7a42;
  --accent-soft: #b4c79e;
  --brown-cta: #4a3826;
  --brown-cta-hover: #5c4632;
  --blue: #8fbfe0;
  --clay: #7e4a2c;
  --border: rgba(26, 26, 26, 0.12);
  --shadow: 0 18px 48px rgba(26, 26, 26, 0.08);
  --shadow-soft: 0 10px 30px rgba(26, 26, 26, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1200px;
  --crisis-offset: 0px;
  --ui-offset: 0px;
  --section-pad: 96px;
  --section-pad-tight: 64px;

  --cream: var(--bg-primary);
  --cream2: var(--bg-muted);
  --cream3: var(--bg-muted);
  --brown: var(--text-primary);
  --brown2: var(--text-primary);
  --muted: var(--text-muted);
  --white: var(--bg-primary);
  --footer: var(--bg-footer);
  --green: var(--accent);
  --green2: var(--accent);
  --green3: var(--accent-hover);
  --teal: var(--accent);
  --purple: var(--accent);
  --purple3: var(--bg-muted);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream2) 100%);
  color: var(--brown);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

body.has-sticky-ui {
  padding-top: var(--ui-offset);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(155, 62, 44, 0.35);
  outline-offset: 3px;
}

.crisis-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--bg-muted);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 0.95rem;
}

.crisis-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-nav {
  position: fixed;
  top: var(--crisis-offset);
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.crisis-dismiss {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 1;
  font-size: 20px;
  cursor: pointer;
  flex: 0 0 auto;
}

.crisis-dismiss:hover {
  background: rgba(26, 26, 26, 0.04);
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand-wordmark {
  font-family: "DM Serif Display", serif;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.nav-links,
.footer-links,
.footer-legal,
.check-list,
.resource-list,
.cookie-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a,
.footer-links a,
.footer-legal a {
  text-decoration: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(250, 247, 242, 0.6);
}

.lang-button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-button[aria-pressed="true"] {
  background: rgba(26, 26, 26, 0.06);
  color: var(--text-primary);
}

.lang-button:hover {
  background: rgba(26, 26, 26, 0.04);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.page-section {
  padding: var(--section-pad) 0;
}

.page-section.tight {
  padding-top: var(--section-pad-tight);
}

.hero {
  padding: 92px 0 72px;
}

.hero-panel,
.form-shell,
.essay-shell,
.notice,
.table-shell,
.resource-card,
.principle-card,
.stat-card,
.copy-block,
.legal-block,
.waitlist-card,
.react-embed-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.react-embed-shell {
  overflow: hidden;
}

.react-embed-frame {
  width: 100%;
  height: min(1100px, 90vh);
  border: 0;
  display: block;
}

.hero-panel {
  padding: 56px;
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(237, 231, 220, 0.7), rgba(250, 247, 242, 1));
}

.hero-copy {
  max-width: 62ch;
  margin: 0 auto;
}

.eyebrow,
.kicker {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.eyebrow {
  margin-bottom: 18px;
}

.kicker {
  margin-bottom: 14px;
}

h1,
h2,
h3,
h4 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.2rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.6rem;
}

.section-intro,
.large-copy,
.hero-copy p {
  font-size: 1.1rem;
  color: var(--muted);
}

.serif-accent {
  font-family: var(--font-system);
  font-style: italic;
  color: var(--green);
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 13px 20px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.nav-button:hover {
  transform: translateY(-1px);
}

.btn-primary,
.nav-button.primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 12px 24px rgba(155, 62, 44, 0.16);
}

.btn-primary:hover,
.nav-button.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 16px 34px rgba(155, 62, 44, 0.2);
}

.btn-secondary,
.nav-button.secondary {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}

.btn-secondary:hover,
.nav-button.secondary:hover {
  background: rgba(228, 221, 210, 0.65);
}

.btn-link {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.btn-soft {
  background: var(--bg-muted);
  color: var(--accent);
}

.btn-soft:hover {
  background: rgba(237, 231, 220, 0.85);
}

.hero-art {
  min-height: 360px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(237, 231, 220, 0.9), rgba(250, 247, 242, 0.98));
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  align-items: flex-end;
}

.art-card {
  margin-left: auto;
  width: min(280px, 100%);
  background: rgba(255, 253, 249, 0.9);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--border);
}

.stat-grid,
.section-grid,
.principles-grid,
.resource-grid,
.footer-grid,
.waitlist-grid {
  display: grid;
  gap: 26px;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.waitlist-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.stat-card,
.copy-block,
.principle-card,
.resource-card,
.waitlist-card,
.notice,
.form-shell,
.legal-block,
.table-shell {
  padding: 32px;
}

.stat-card,
.copy-block,
.principle-card,
.resource-card {
  border-radius: var(--radius-md);
}

.copy-block,
.stat-card {
  background: rgba(255, 253, 249, 0.92);
}

.copy-block h3,
.stat-card h3 {
  margin-bottom: 10px;
}

.principle-card {
  position: relative;
  background: rgba(255, 253, 249, 0.94);
  border-left: 5px solid rgba(155, 175, 136, 0.8);
}

.principle-card h3 {
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full,
.checkbox-group.full {
  grid-column: 1 / -1;
}

label,
.legend {
  font-weight: 700;
  color: var(--brown);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(26, 26, 26, 0.18);
  background: var(--cream);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--brown);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.checkbox-columns label {
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-columns input {
  width: auto;
  margin-top: 4px;
}

.helper-text,
.small-note,
.copy-block p,
.principle-card p,
.resource-card p,
.legal-block p,
.notice p,
.form-shell p,
.waitlist-card p {
  color: var(--muted);
}

.band {
  background: var(--cream2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.prose {
  max-width: 72ch;
  margin: 0 auto;
  font-size: 1.06rem;
}

.availability-panel {
  padding: 32px;
  background: rgba(237, 231, 220, 0.58);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.availability-card {
  padding: 24px;
  background: rgba(250, 247, 242, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.availability-card h3 {
  margin-bottom: 10px;
}

.small-note {
  font-size: 0.95rem;
}

.small-note a {
  color: var(--accent);
  text-decoration: none;
}

.small-note a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.steps {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: rgba(250, 247, 242, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.step-number {
  font-family: "DM Serif Display", serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.radio-row label {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.radio-row input {
  width: auto;
}

.checkbox-inline label {
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-inline input {
  width: auto;
  margin-top: 4px;
}

.hidden {
  display: none;
}

.success-message {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(237, 231, 220, 0.85);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: none;
}

.success-message.show {
  display: block;
}

.essay-layout {
  max-width: 860px;
  margin: 0 auto;
}

.essay-shell {
  padding: 64px;
}

.essay-shell .section-intro {
  font-size: 1.24rem;
}

.essay-body p {
  font-size: 1.16rem;
  margin: 0 0 20px;
}

.signature {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.principle-number {
  font-family: var(--font-system);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(155, 62, 44, 0.12);
  color: var(--text-primary);
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-family: var(--font-system);
  font-weight: 700;
  font-size: 1.15rem;
  background: rgba(237, 232, 223, 0.9);
}

tbody tr:nth-child(even) td {
  background: rgba(245, 240, 232, 0.65);
}

.notice {
  border-left: 6px solid var(--teal);
}

.resource-list li,
.check-list li,
.cookie-list li {
  margin-bottom: 10px;
  color: var(--muted);
}

.footer {
  background: var(--footer);
  color: rgba(245, 240, 232, 0.86);
  padding: 56px 0 28px;
  margin-top: 80px;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  margin-bottom: 24px;
}

.footer h4 {
  color: var(--cream);
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 10px;
}

.footer a:hover {
  color: var(--green3);
}

.footer-legal-row {
  border-top: 1px solid rgba(245, 240, 232, 0.12);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.muted-callout {
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.95rem;
}

.page-header {
  padding-top: 24px;
  margin-bottom: 34px;
}

.page-header.compact {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.page-header .section-intro {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

.legal-block {
  margin-bottom: 24px;
}

.legal-review {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--purple3);
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  :root {
    --section-pad: 86px;
    --section-pad-tight: 58px;
  }

  .hero-panel,
  .waitlist-grid,
  .section-grid,
  .stat-grid,
  .principles-grid,
  .resource-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --section-pad: 76px;
    --section-pad-tight: 52px;
  }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero-panel,
  .essay-shell,
  .waitlist-card,
  .notice,
  .table-shell,
  .form-shell,
  .legal-block {
    padding: 24px;
  }

  .availability-grid,
  .step {
    grid-template-columns: 1fr;
  }

  .brand-wordmark {
    font-size: 1.45rem;
  }

  .checkbox-columns {
    grid-template-columns: 1fr;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }
}

.users-page {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream2) 100%);
}

.users-page.has-sticky-ui {
  padding-top: 0;
}

.users-topbar {
  position: sticky;
  top: 0;
}

.users-topbar-shell {
  gap: 24px;
  flex-wrap: wrap;
}

.users-brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.users-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.users-breadcrumb a {
  text-decoration: none;
}

.users-breadcrumb a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.users-topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}

.users-topbar-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.users-topbar-links a:hover {
  color: var(--text-primary);
  background: rgba(237, 231, 220, 0.8);
  border-color: var(--border);
}

.users-hero-section {
  padding-top: 72px;
}

.users-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.users-hero-copy h1 {
  max-width: 12ch;
}

.users-hero-panel,
.users-access-card,
.users-highlight {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.users-hero-panel {
  padding: 28px;
}

.users-hero-card h3 {
  margin-bottom: 18px;
}

.users-feature-grid,
.users-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.users-access-card {
  padding: 32px;
}

.users-access-card .btn {
  margin-top: 12px;
}

.users-highlight {
  padding: 36px;
}

@media (max-width: 960px) {
  .users-hero-grid,
  .users-feature-grid,
  .users-access-grid {
    grid-template-columns: 1fr;
  }

  .users-topbar-links {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .users-topbar-shell,
  .users-brand-row,
  .users-topbar-links {
    align-items: flex-start;
  }

  .users-topbar-links a {
    padding: 9px 14px;
  }

  .users-highlight,
  .users-access-card,
  .users-hero-panel {
    padding: 24px;
  }
}

/* ============================================================================
   App-alignment overrides (2026-06-29)
   Match the Shveeli web application's design language: system-ui typography,
   green-led accents (handled via --accent above), and brown primary CTAs.
   Appended last so these win by source order.
   ========================================================================== */
:root {
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  font-family: var(--font-system);
}

/* Drop the serif display face; the app is fully system-ui sans. Keep strong
   weight/sizing so headings retain presence. */
h1, h2, h3, h4,
.brand-wordmark,
.step-number,
.hero h1 {
  font-family: var(--font-system);
  letter-spacing: -0.01em;
}

.brand-wordmark {
  font-weight: 700;
}

/* Primary CTAs use the app's brown, not the green accent. */
.btn-primary,
.nav-button.primary {
  background: var(--brown-cta);
  color: var(--text-on-dark);
  box-shadow: 0 12px 24px rgba(74, 56, 38, 0.18);
}
.btn-primary:hover,
.nav-button.primary:hover {
  background: var(--brown-cta-hover);
}

/* Focus ring in the green accent to match the app. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(110, 145, 82, 0.40);
}

/* --- Demo video embed + logo mark ----------------------------------------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  box-shadow: var(--shadow-soft);
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--text-light);
  padding: 24px;
}
.video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brown-cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
}
.video-hint { font-size: 0.85rem; }

/* Brand mark sizing (overrides the earlier 48px rule for a balanced nav). */
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand-row h4 { margin: 0; }
.footer-brand-row .brand-mark { width: 26px; height: 26px; }

/* Feature tiles (four pillars) — matches the web app's tile treatment. */
.feature-tile {
  position: relative;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease, border-color 0.32s ease;
}
.feature-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent, var(--accent)), transparent 78%);
}
.feature-tile:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, var(--accent));
  box-shadow: 0 22px 46px var(--card-glow, rgba(26, 26, 26, 0.1));
}
.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-soft, rgba(110, 145, 82, 0.12));
  color: var(--card-accent, var(--accent));
  margin-bottom: 16px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.tile-icon svg { width: 24px; height: 24px; }
.feature-tile:hover .tile-icon { transform: translateY(-2px) scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .feature-tile, .tile-icon { transition: none; }
}

/* "How it works" steps — accent number badge + calm hover */
.step {
  grid-template-columns: 48px 1fr;
  background: var(--surface);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-system);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(110, 145, 82, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .step { transition: none; }
}

/* --- Arabic / RTL ---------------------------------------------------------- */
[dir="rtl"] body,
[dir="rtl"] .btn,
[dir="rtl"] .nav-button,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  font-family: "Noto Sans Arabic", var(--font-system);
}
/* Accent line on tiles starts from the right in RTL. */
[dir="rtl"] .feature-tile::before {
  background: linear-gradient(270deg, var(--card-accent, var(--accent)), transparent 78%);
}
/* Keep the check-list markers on the correct side. */
[dir="rtl"] .check-list li { padding-right: 0; }

/* Cookie / essential-storage notice */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface, #fffdf9);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.cookie-banner a { color: var(--accent); font-weight: 600; }
.cookie-accept {
  flex: 0 0 auto;
  background: var(--brown-cta);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-accept:hover { background: var(--brown-cta-hover); }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
