/* merhaba website. Brand tokens mirror lib/core/res/theme.dart. */
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-wght.woff2") format("woff2"), url("fonts/Outfit-wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Only AppTheme colours (lib/core/res/theme.dart). Light only, like the app. */
  color-scheme: light;
  --bg: #faf9fa;            /* lightBackgroundColor */
  --surface: #ffffff;       /* lightSurfaceColor */
  --ink: #30212a;           /* lightInkColor */
  --muted: #665a61;         /* lightMutedColor */
  --accent: #c93468;        /* lightAccentColor */
  --accent-strong: #aa2856; /* lightAccentStrongColor */
  --blush: #fceef3;         /* lightBlushColor */
  --lavender: #f2edff;      /* lightLavenderColor */
  --line: #ede9ef;          /* dividerTheme */
  --gradient: linear-gradient(135deg, #e54479, #c93468); /* lightAccentGradient */
  /* Elevation: a hairline ring + soft depth instead of borders (ink at low alpha). */
  --ring: 0 0 0 1px rgb(48 33 42 / 0.07);
  --shadow-sm: var(--ring), 0 1px 2px rgb(48 33 42 / 0.05);
  --shadow: var(--ring), 0 1px 2px rgb(48 33 42 / 0.04), 0 12px 32px -14px rgb(48 33 42 / 0.16);
  --shadow-lift: var(--ring), 0 2px 4px rgb(48 33 42 / 0.05), 0 18px 40px -16px rgb(48 33 42 / 0.22);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 4rem;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-ar: system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.7 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.9; }
html[lang="ar"] .brand { font-family: var(--font); }

a { color: var(--accent); text-underline-position: from-font; text-decoration-thickness: from-font; text-underline-offset: 0.2em; text-decoration-skip-ink: auto; }
@media (hover: hover) { a:hover { color: var(--accent-strong); } }
::selection { background: var(--blush); color: var(--ink); }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50;
  background: var(--accent); color: var(--surface); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* Reading progress */
.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 40; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--gradient);
  transform: scaleX(0); transform-origin: left;
}
html[dir="rtl"] .progress span { transform-origin: right; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.bar {
  max-width: 72rem; margin-inline: auto; padding: 0.5rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
}
.brand-dot {
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--gradient);
  box-shadow: inset 0 0 0 0.3rem rgb(255 255 255 / 0.22);
}
.primary { order: 3; flex-basis: 100%; }
.primary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.primary a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.85rem;
  border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap;
  transition-property: background-color, color, scale; transition-duration: 150ms; transition-timing-function: var(--ease);
}
@media (hover: hover) { .primary a:hover { background: var(--blush); color: var(--ink); } }
.primary a[aria-current="page"] { background: var(--blush); color: var(--accent-strong); font-weight: 600; }
.lang {
  margin-inline-start: auto; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 1rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500;
  background: var(--surface);
  transition-property: border-color, color, scale; transition-duration: 150ms; transition-timing-function: var(--ease);
}
@media (hover: hover) { .lang:hover { border-color: var(--accent); color: var(--accent-strong); } }
/* Small screens: the header scrolls away so it never covers the text. */
@media (max-width: 899px) {
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }
  .primary a { padding-inline: 0.7rem; }
}
@media (min-width: 900px) {
  .primary { order: 0; flex-basis: auto; margin-inline-start: 1.5rem; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(40rem 26rem at 100% 0%, rgb(229 68 121 / 0.10), transparent 70%),
    radial-gradient(30rem 22rem at 0% 100%, rgb(242 237 255 / 0.9), transparent 70%),
    linear-gradient(135deg, var(--blush), var(--lavender));
  padding: 2.75rem 1rem 6.5rem;
}
.hero::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--gradient);
}
.hero::after {
  content: ""; position: absolute; inset-inline: -10%; bottom: -3.5rem; height: 6rem;
  background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 72rem; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.75rem; color: var(--muted);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.eyebrow .icon { color: var(--accent); }
.hero h1 {
  margin: 0; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700;
  text-wrap: balance;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.35; }
.hero-sub { margin: 0.85rem 0 1.25rem; max-width: 40rem; font-size: 1.1rem; color: var(--muted); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.chips div {
  display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.35rem 0.85rem; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.chips dt { font-size: 0.8rem; color: var(--muted); }
.chips dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chips mark.owner-input { font-weight: 600; }
.draft-badge {
  display: inline-block; margin: 0; padding: 0.3rem 0.85rem; border-radius: 8px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-size: 0.9rem; font-weight: 500;
  border-inline-start: 3px solid var(--accent);
}

/* Layout */
/* The hero sits inside <main> (landmark + skip link reach the h1); the body overlaps it. */
.main-body { padding: 0 1rem 4rem; margin-top: -4.5rem; position: relative; z-index: 2; }
main:focus { outline: none; }
.layout { max-width: 72rem; margin-inline: auto; display: grid; gap: 1rem; }
.doc {
  min-width: 0; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.25rem 1.1rem 1.5rem;
}
@media (min-width: 640px) { .doc { padding: 2.25rem 2.5rem 2.5rem; } }
@media (min-width: 1024px) {
  .layout.has-toc { grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; gap: 2rem; }
  .layout.has-toc .doc { grid-column: 1; grid-row: 1; }
  .layout.has-toc .toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 1.25rem); max-height: calc(100vh - var(--header-h) - 2.5rem); overflow: auto; }
}

/* Table of contents */
.toc {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 0.5rem;
}
.toc summary {
  cursor: pointer; list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between;
  padding-inline: 0.75rem; font-weight: 600; border-radius: 14px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+" / ""; font-size: 1.3rem; color: var(--accent); }
.toc[open] summary::after { content: "−" / ""; }
.toc ol { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: flex; align-items: center; min-height: 44px; padding: 0.45rem 0.75rem; border-radius: 14px; color: var(--muted); text-decoration: none;
  font-size: 0.93rem; line-height: 1.45; text-wrap: pretty;
  transition-property: background-color, color; transition-duration: 150ms; transition-timing-function: var(--ease);
}
@media (hover: hover) { .toc a:hover { background: var(--bg); color: var(--ink); } }
.toc a[aria-current="location"] { color: var(--accent-strong); background: var(--blush); font-weight: 600; }

/* Document typography */
.doc > :first-child { margin-top: 0; }
.doc h2 {
  position: relative; font-size: 1.4rem; line-height: 1.25; margin: 2.75rem 0 0.85rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line); color: var(--ink); font-weight: 650; letter-spacing: -0.015em; text-wrap: balance;
}
/* Brand marker on the divider: colour stays decorative, headings stay ink. */
.doc h2::before {
  content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 2.5rem; height: 3px;
  border-radius: 3px; background: var(--gradient);
}
html[lang="ar"] .doc h2 { letter-spacing: 0; font-weight: 700; line-height: 1.45; }
.doc h3 { font-size: 1.1rem; line-height: 1.35; margin: 1.75rem 0 0.5rem; font-weight: 600; text-wrap: balance; }
.doc p, .doc ul, .doc ol { margin: 0 0 1rem; max-width: 68ch; }
.doc ul, .doc ol { padding-inline-start: 1.4rem; }
.doc li { margin-block-end: 0.4rem; }
.doc li::marker { color: var(--accent); }
.doc strong { font-weight: 650; }
code { font-size: 0.92em; background: var(--lavender); padding: 0.1em 0.35em; border-radius: 5px; }

.notice {
  display: flex; gap: 0.75rem; align-items: flex-start; margin: 0 0 1.5rem; padding: 1rem 1.1rem;
  background: var(--lavender); border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.notice p { margin: 0; max-width: none; }
.notice-icon { color: var(--accent-strong); margin-top: 0.2rem; }

mark.owner-input { background: var(--blush); color: var(--ink); outline: 1px dashed var(--accent); outline-offset: -1px; padding: 0.05em 0.35em; border-radius: 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.release-dep { color: var(--muted); font-style: italic; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; box-shadow: var(--ring); border-radius: var(--radius); overscroll-behavior-x: contain; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; background: var(--surface); font-size: 0.95rem; }
th, td { text-align: start; vertical-align: top; padding: 0.7rem 0.9rem; border-block-end: 1px solid var(--line); }
thead th { background: var(--blush); font-size: 0.85rem; color: var(--ink); font-weight: 600; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--bg); }
tbody tr:last-child > * { border-block-end: 0; }
tbody th { font-weight: 600; }

.to-top { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.to-top a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-weight: 600; text-decoration: none; }


/* Deletion form */
/* Concentric radii: 22px outer = 14px padding + 8px inner. */
.deletion {
  background: var(--bg); box-shadow: var(--ring); border-radius: var(--radius-lg);
  padding: 0.875rem; margin: 1.75rem 0;
}
.deletion h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0.25rem 0.75rem; padding: 0; border: 0; }
.deletion h2::before { display: none; }
.deletion h2 .icon { color: var(--accent); }
.del-status { margin: 0 0 0.875rem; padding: 0.85rem 1rem; border-radius: 8px; background: var(--lavender); max-width: none; }
.del-status[data-tone="error"] { color: var(--accent-strong); background: var(--blush); }
fieldset { border: 0; box-shadow: var(--ring); border-radius: 8px; padding: 1rem; margin: 0 0 0.875rem; min-width: 0; background: var(--surface); }
fieldset:last-of-type { margin-bottom: 0; }
fieldset[disabled] { opacity: 0.6; }
legend { float: inline-start; width: 100%; display: flex; align-items: center; gap: 0.5rem; margin-block-end: 0.75rem; font-weight: 600; padding: 0; }
legend + * { clear: both; }
.step-no {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%;
  background: var(--accent); color: var(--surface); font-size: 0.85rem; font-variant-numeric: tabular-nums;
}
label { display: block; margin-block-end: 0.35rem; font-weight: 500; }
input[type="email"], input[type="text"] {
  width: 100%; min-height: 48px; padding: 0.5rem 0.85rem; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--muted); border-radius: 10px; margin-block-end: 0.85rem;
  font-size: max(16px, 1rem); transition-property: border-color, box-shadow; transition-duration: 150ms; transition-timing-function: var(--ease);
}
input[type="email"]:focus, input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--blush); }
input[type="text"][inputmode="numeric"] { font-variant-numeric: tabular-nums; letter-spacing: 0.2em; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin-block-end: 0.85rem; }
.check input { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; flex: none; accent-color: var(--accent); }
.check label { margin: 0; font-weight: 400; }
button {
  min-height: 48px; padding: 0.5rem 1.4rem; font: inherit; font-weight: 600; border-radius: 999px;
  border: 0; background: var(--accent); color: var(--surface); cursor: pointer;
  transition-property: background-color, scale; transition-duration: 150ms; transition-timing-function: var(--ease);
}
@media (hover: hover) { button:not(:disabled):hover { background: var(--accent-strong); } }
button.danger { background: var(--accent-strong); }
button:disabled, fieldset[disabled] button { cursor: not-allowed; }

/* Footer */
.site-footer { background: var(--surface); box-shadow: 0 -1px 0 var(--line); padding: 2.5rem 1rem 1.5rem; }
.footer-grid { max-width: 72rem; margin-inline: auto; display: grid; gap: 1.75rem; }
.footer-grid h2 { font-size: 0.95rem; margin: 0 0 0.6rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); text-decoration: none; }
@media (hover: hover) { .footer-grid li a:hover { color: var(--accent-strong); } }
.footer-grid p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.footer-note {
  max-width: 72rem; margin: 2rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem;
}

/* Press feedback (Apple: respond on pointer-down). Motion is opt-in. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .primary a:active, .lang:active, .to-top a:active { scale: 0.96; }
  button:not(:disabled):active { scale: 0.96; }
}
/* Translucent header turns solid when the user asks for less transparency. */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
/* Higher contrast: real borders instead of soft rings. */
@media (prefers-contrast: more) {
  .doc, .toc, .chips div, .draft-badge, .table-wrap, fieldset, .deletion { box-shadow: none; border: 1px solid var(--muted); }
  .primary a[aria-current="page"], .toc a[aria-current="location"] { text-decoration: underline; }
}
@media (forced-colors: active) {
  .doc h2::before, .progress { display: none; }
}
@media print {
  .site-header, .progress, .toc, .deletion, .to-top, .site-footer, .skip { display: none; }
  body { background: var(--surface); }
  .hero { background: none; padding: 0 0 1rem; }
  .hero::before, .hero::after { display: none; }
  .main-body { margin: 0; }
  .doc { border: 0; box-shadow: none; padding: 0; }
}

/* Links on lavender use the strong accent (accent on lavender is 4.4:1). */
.notice a, .del-status a { color: var(--accent-strong); }

/* ---------- Website: shared page containers ---------- */
.wrap { max-width: 72rem; margin-inline: auto; display: grid; gap: 2.5rem; }
.section-title { font-size: 1.35rem; line-height: 1.25; margin: 0 0 1rem; letter-spacing: -0.015em; text-wrap: balance; }
html[lang="ar"] .section-title { letter-spacing: 0; line-height: 1.45; }
.brand[aria-current="page"] { color: var(--ink); }
.go { width: 1.1em; height: 1.1em; }
.button-link {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 48px; padding-inline: 1.4rem;
  border-radius: 999px; background: var(--accent); color: var(--surface); font-weight: 600; text-decoration: none;
  transition-property: background-color, color, scale, box-shadow; transition-duration: 150ms; transition-timing-function: var(--ease);
}
.button-link.ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (hover: hover) {
  .button-link:hover { background: var(--accent-strong); color: var(--surface); }
  .button-link.ghost:hover { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow); }
}

/* ---------- Home ---------- */
.page-home .main-body { margin-top: 0; padding-top: 1rem; }
.page-support .main-body { margin-top: 0; padding-top: 1.5rem; }
.page-support .hero { padding-bottom: 4.5rem; }
.hero-home { padding-bottom: 5rem; }
.hero-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; } }
.hero-home h1 { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
html[lang="ar"] .hero-home h1 { letter-spacing: 0; line-height: 1.3; }
.hero-home .hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.2rem); max-width: 34rem; }
.eyebrow.pill {
  padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 500;
}
.eyebrow.pill .icon { color: var(--accent); }
.stores { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store {
  display: inline-flex; align-items: center; gap: 0.65rem; min-height: 56px; padding-block: 0.5rem;
  padding-inline: 0.9rem 1.1rem; border-radius: 16px; background: var(--ink); color: var(--surface);
}
.store > span { display: grid; line-height: 1.2; }
.store-name { font-weight: 650; font-size: 1.02rem; }
.store-soon { font-size: 0.78rem; }
.hero-actions { margin: 0; }

/* Phone illustration: drawn in CSS, no images and no invented people. */
.mock { display: grid; place-items: center; }
.mock-phone {
  position: relative; width: min(18rem, 78vw); aspect-ratio: 9 / 18.5; padding: 0.7rem;
  border-radius: 2.6rem; background: var(--ink);
  box-shadow: 0 0 0 1px rgb(48 33 42 / 0.2), 0 30px 60px -24px rgb(48 33 42 / 0.45), 0 12px 24px -12px rgb(201 52 104 / 0.35);
  rotate: -3deg;
}
html[dir="rtl"] .mock-phone { rotate: 3deg; }
.mock-notch { position: absolute; top: 1.1rem; left: 50%; translate: -50% 0; width: 5.5rem; height: 1.4rem; border-radius: 1rem; background: var(--ink); z-index: 1; }
.mock-screen {
  height: 100%; border-radius: 1.95rem; overflow: hidden; padding: 2.6rem 1rem 1rem; display: grid; align-content: start; gap: 0.85rem;
  background: linear-gradient(180deg, var(--blush), var(--surface) 40%, var(--lavender));
  font-size: 0.8rem; line-height: 1.35; color: var(--ink);
}
.mock-title { margin: 0; font-weight: 650; font-size: 1rem; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mock-chip { padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--surface); box-shadow: var(--ring); font-size: 0.72rem; }
.mock-chip.on { background: var(--accent); color: var(--surface); box-shadow: none; }
.mock-card, .mock-room { border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow-sm); padding: 0.75rem; }
.mock-card { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: center; }
.mock-avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gradient); }
.mock-lines { display: grid; gap: 0.35rem; }
.mock-lines span { height: 0.5rem; border-radius: 0.25rem; background: var(--line); }
.mock-lines span:last-child { width: 60%; }
.mock-badge { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; color: var(--accent-strong); font-weight: 600; }
.mock-badge .icon { width: 0.95rem; height: 0.95rem; }
.mock-room p { margin: 0.35rem 0 0.5rem; font-weight: 600; }
.mock-live { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 600; color: var(--accent-strong); }
.mock-live::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); }
.mock-faces { display: flex; }
.mock-faces span { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--surface); background: var(--blush); margin-inline-end: -0.45rem; }
.mock-faces span:nth-child(2) { background: var(--lavender); }
.mock-faces span:nth-child(3) { background: var(--gradient); }
.mock-join { display: inline-block; margin-top: 0.6rem; padding: 0.3rem 0.9rem; border-radius: 999px; background: var(--accent); color: var(--surface); font-size: 0.72rem; font-weight: 600; }

/* Bands */
.band { max-width: 72rem; margin: 0 auto; padding: 3.5rem 0 1rem; }
.band-head { max-width: 40rem; margin-bottom: 1.75rem; }
.band-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.6rem; text-wrap: balance; }
html[lang="ar"] .band-head h2 { letter-spacing: 0; line-height: 1.35; }
.band-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.4rem; margin: 0; }
.feature h3 { margin: 0.9rem 0 0.35rem; font-size: 1.12rem; line-height: 1.3; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 14px; display: inline-grid; place-items: center;
  background: var(--blush); color: var(--accent-strong);
}
.rollout {
  display: flex; gap: 0.6rem; align-items: flex-start; margin: 1.25rem 0 0; padding: 0.9rem 1rem;
  border-radius: var(--radius); background: var(--lavender); color: var(--ink); font-size: 0.95rem;
}
.rollout .icon { color: var(--accent-strong); margin-top: 0.15rem; }
.rollout a { color: var(--accent-strong); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { margin: 0; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.steps .step-no { width: 2.2rem; height: 2.2rem; font-size: 1rem; font-weight: 650; }
.steps h3 { margin: 0.9rem 0 0.35rem; font-size: 1.12rem; }
.steps p { margin: 0; color: var(--muted); }
.safety-band { padding-bottom: 0; }
.safety-list { list-style: none; margin: 0; padding: 1.5rem; display: grid; gap: 1.25rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--blush), var(--lavender)); }
@media (min-width: 760px) { .safety-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2rem; gap: 1.5rem 2rem; } }
.safety-list li { display: flex; gap: 0.85rem; align-items: flex-start; margin: 0; }
.safety-icon { width: 1.6rem; height: 1.6rem; color: var(--accent-strong); margin-top: 0.15rem; }
.safety-list h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.safety-list p { margin: 0; color: var(--muted); }
.safety-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1rem 0 0; }
.safety-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent-strong); }
.cta {
  max-width: 72rem; margin: 3.5rem auto 0; padding: 2.5rem 1.5rem; text-align: center; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.cta h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
html[lang="ar"] .cta h2 { letter-spacing: 0; line-height: 1.4; }
.cta p { margin: 0 auto; max-width: 34rem; color: var(--muted); }
.cta .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Features page ---------- */
.feature-detail { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .feature-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-detail .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.feature-detail h2 { margin: 0.2rem 0 0.35rem; font-size: 1.2rem; line-height: 1.3; }
.points { list-style: none; margin: 0.85rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.points li { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0; }
.points .icon { color: var(--accent); width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; }

/* ---------- Support page ---------- */
.help-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.help-card { display: grid; align-content: start; gap: 0.5rem; padding: 1.4rem; margin: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.help-card h3 { margin: 0.4rem 0 0; font-size: 1.1rem; }
.help-card p { margin: 0; color: var(--muted); }
.help-card a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.help-card .pending { margin-top: 0.25rem; font-size: 0.9rem; }
.faq { display: grid; gap: 0.75rem; }
.faq details { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 0.85rem 1.1rem; font-weight: 600; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--accent); flex: none; }
.faq details[open] .faq-icon { rotate: 45deg; }
.faq-body { padding: 0 1.1rem 1rem; }
.faq-body p { margin: 0 0 0.6rem; max-width: 68ch; color: var(--ink); }
.faq-body a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-weight: 600; }
@media (hover: hover) { .faq summary:hover { color: var(--accent-strong); } }

/* Footer columns */
.footer-nav { display: grid; gap: 1.75rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-contact p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 3fr 1.3fr; } }

@media (prefers-reduced-motion: no-preference) {
  .button-link:active { scale: 0.96; }
  .faq-icon { transition-property: rotate; transition-duration: 200ms; transition-timing-function: var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .mock-phone, html[dir="rtl"] .mock-phone { rotate: none; }
}
@media (prefers-contrast: more) {
  .feature, .steps li, .help-card, .faq details, .cta, .store { box-shadow: none; border: 1px solid var(--muted); }
}
@media print {
  .hero-home .mock, .stores, .cta { display: none; }
}

/* Review fixes */
html[dir="rtl"] .hero {
  background:
    radial-gradient(40rem 26rem at 0% 0%, rgb(229 68 121 / 0.10), transparent 70%),
    radial-gradient(30rem 22rem at 100% 100%, rgb(242 237 255 / 0.9), transparent 70%),
    linear-gradient(225deg, var(--blush), var(--lavender));
}
.del-status:empty { display: none; }
.del-status:focus { outline: none; }
.table-wrap:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--blush); }

/* Visual fixes: compact cards on phones (icon/number beside the title, not on its own row). */
@media (max-width: 639px) {
  .feature-grid .feature, .steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.9rem; align-items: center; padding: 1.1rem; }
  .feature-grid .feature h3, .steps h3 { margin: 0; }
  .feature-grid .feature p, .steps p { grid-column: 2; margin-top: 0.3rem; }
  .feature-grid .feature-icon { width: 2.5rem; height: 2.5rem; }
  .mock-phone { width: min(16rem, 72vw); }
  .hero-home { padding-bottom: 4rem; }
}

/* Feature build state (honest: nothing is shown as live before launch). */
.status { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0.6rem 0 0; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; line-height: 1.6; }
.status::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.status-built { background: var(--blush); color: var(--accent-strong); }
.status-next { background: var(--lavender); color: var(--muted); }
.feature-detail .status { margin: 0.25rem 0 0.5rem; }

/* 404 */
.notfound { max-width: 34rem; margin: 0 auto; padding: 4rem 1rem; text-align: center; }
.notfound .brand { justify-content: center; margin-bottom: 1.5rem; }
.notfound-code { font-size: clamp(4rem, 18vw, 7rem); font-weight: 700; line-height: 1; margin: 0; color: var(--accent); letter-spacing: -0.04em; }
.notfound [lang="ar"] { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); }

/* ==========================================================================
   Visual refresh v2 (2026-10-22): glass header with pill nav, gradient title and buttons, flat
   cards, dark plum bands for page headers, safety and footer, scroll fade-in.
   Spec: ops/evidence/website-20261022/DESIGN_SPEC.md
   ========================================================================== */
:root {
  /* Merhaba palette only (lib/core/res/theme.dart): accent, accent strong, accent gradient,
     blush, lavender, ink. Dark bands use lightInkColor. */
  --plum: var(--ink);
  --card: var(--bg);
  --brand-gradient: linear-gradient(135deg, #e54479 0%, var(--accent) 100%); /* large headline text only */
  /* Fills behind white text: accent -> accent strong keeps white text at 4.5:1 or better. */
  --fill-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  --glow: 0 10px 30px rgb(201 52 104 / 0.28);
}

/* Header: glass bar, pill links */
.site-header {
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
}
.brand-dot { background: var(--fill-gradient); }
.primary a { border-radius: 12px; padding-inline: 1.1rem; color: var(--muted); }
@media (hover: hover) { .primary a:hover { background: rgb(201 52 104 / 0.06); color: var(--accent-strong); } }
.primary a[aria-current="page"] { background: rgb(201 52 104 / 0.1); color: var(--accent-strong); }
.lang { border-radius: 12px; }

/* Home hero (html[dir] matches the specificity of the RTL hero rule above) */
html[dir] .hero-home {
  background:
    radial-gradient(26rem 26rem at 92% 8%, rgb(242 237 255 / 0.9), transparent 70%),
    radial-gradient(22rem 22rem at 6% 88%, rgb(201 52 104 / 0.12), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-home::before { display: none; }
.hero-home .eyebrow.pill {
  background: var(--lavender); color: var(--accent-strong); border-radius: 999px; padding: 0.35rem 0.9rem;
  letter-spacing: 0; text-transform: none; font-size: 0.85rem; box-shadow: none;
}
.hero-home .eyebrow.pill .icon { color: var(--accent); }
.hero-home h1 {
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  font-weight: 800; padding-block: 0.05em;
}

/* Store buttons: gradient + dark */
.store {
  border-radius: 16px; padding: 0.85rem 1.6rem; color: #fff; border: 0;
  background: var(--plum); box-shadow: 0 18px 40px -12px rgb(48 33 42 / 0.45);
}
.store:first-child { background: var(--fill-gradient); box-shadow: var(--glow); }
.store .icon { color: #fff; }
.store-soon { opacity: 0.85; }

/* Buttons */
.button-link { background: var(--fill-gradient); border-radius: 16px; box-shadow: var(--glow); padding-inline: 1.6rem; }
@media (hover: hover) { .button-link:hover { background: var(--fill-gradient); filter: brightness(1.06); } }
.button-link.ghost { background: #fff; color: var(--plum); box-shadow: 0 2px 4px rgb(0 0 0 / 0.05), 0 0 0 1px var(--line); }

/* Section headings and flat cards */
.band { padding-top: 4.5rem; }
.band-head { margin-inline: auto; text-align: center; }
.band-head h2 { font-weight: 800; }
.feature, .steps li, .help-card { background: var(--card); box-shadow: none; border-radius: 20px; padding: 1.75rem; }
.feature-icon {
  background: var(--fill-gradient); color: #fff; border-radius: 16px;
  box-shadow: 0 8px 20px -8px rgb(201 52 104 / 0.45);
}
.steps .step-no { background: var(--fill-gradient); color: #fff; box-shadow: var(--glow); }

/* Safety band: dark plum */
.safety-band {
  max-width: none; margin-inline: -1rem; padding: 4.5rem 1rem; margin-top: 4rem;
  background:
    radial-gradient(28rem 20rem at 85% 0%, rgb(229 68 121 / 0.22), transparent 70%),
    radial-gradient(24rem 18rem at 10% 100%, rgb(201 52 104 / 0.22), transparent 70%),
    var(--plum);
  color: #fff;
}
.safety-band > * { max-width: 72rem; margin-inline: auto; }
.safety-band .band-head h2 { color: #fff; }
.safety-band .safety-list { background: none; padding: 0; }
.safety-band .safety-list li { background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); border-radius: 20px; padding: 1.5rem; }
.safety-band .safety-list h3 { color: #fff; }
.safety-band .safety-list p { color: rgb(255 255 255 / 0.75); }
.safety-band .safety-icon { color: var(--blush); }
.safety-band .safety-links a { color: #fff; }

/* CTA: gradient panel */
.cta { background: var(--fill-gradient); color: #fff; border-radius: 30px; box-shadow: var(--glow); }
.cta h2 { color: #fff; }
.cta p { color: #fff; }
.cta .button-link { background: #fff; color: var(--accent-strong); box-shadow: 0 10px 30px rgb(48 33 42 / 0.25); }
.cta .button-link.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.75); }

/* Inner pages (features, support, legal): dark plum page header */
html[dir] .page-legal .hero, html[dir] .page-features .hero, html[dir] .page-support .hero {
  color: #fff; padding-top: 4.5rem;
  background:
    radial-gradient(22rem 22rem at 88% 12%, rgb(229 68 121 / 0.24), transparent 70%),
    radial-gradient(18rem 18rem at 8% 92%, rgb(201 52 104 / 0.25), transparent 70%),
    var(--plum);
}
.page-legal .hero::before, .page-features .hero::before, .page-support .hero::before { display: none; }
.page-legal .hero h1, .page-features .hero h1, .page-support .hero h1 { color: #fff; font-weight: 800; }
.page-legal .hero-sub, .page-features .hero-sub, .page-support .hero-sub { color: rgb(255 255 255 / 0.8); }
.page-legal .eyebrow, .page-features .eyebrow, .page-support .eyebrow { color: rgb(255 255 255 / 0.75); }
.page-legal .eyebrow .icon, .page-features .eyebrow .icon, .page-support .eyebrow .icon { color: var(--blush); }
.page-legal .chips div { background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); }
.page-legal .chips dt { color: rgb(255 255 255 / 0.75); }
.page-legal .chips dd { color: #fff; }
.page-legal .chips mark.owner-input { background: rgb(255 255 255 / 0.16); color: #fff; outline-color: var(--blush); }
.page-legal .draft-badge { background: rgb(255 255 255 / 0.1); color: #fff; box-shadow: none; border-inline-start-color: var(--blush); }

/* Legal document: side accent bar on section titles, flat intro card */
.doc h2 { font-weight: 800; padding-inline-start: 1.1rem; border-inline-start: 4px solid var(--accent); }
.doc h2::before { display: none; }
.doc .notice { background: var(--card); border: 0; border-radius: 20px; padding: 1.5rem; }

/* Footer: dark plum */
.site-footer { background: var(--plum); color: #fff; box-shadow: none; padding-top: 3.5rem; }
.site-footer .brand { color: #fff; }
.footer-grid h2 { color: #fff; }
.footer-grid li a, .footer-grid p { color: rgb(255 255 255 / 0.72); }
@media (hover: hover) { .footer-grid li a:hover { color: #fff; } }
.footer-note { color: rgb(255 255 255 / 0.6); border-top-color: rgb(255 255 255 / 0.12); }

/* Scroll fade-in (only when reveal.js runs; never with reduced motion) */
.can-reveal .reveal { opacity: 0; transform: translateY(24px); }
.can-reveal .reveal.in { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .can-reveal .reveal { opacity: 1; transform: none; } }
.contact-email { margin: 0.75rem 0 0; font-weight: 700; color: var(--accent-strong); word-break: break-all; }
