/* minumeeting landing page (M-6-3) — one stylesheet, system fonts, no external request, light/dark from the system,
   logical properties for right-to-left. Pages are generated by scripts/site/build.mjs; this file is written by hand.
   Colours follow the app's brand (green → teal gradient, src/design/brand/logo.js) at AA contrast in both themes. */
:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --bg-hero: #ecfdf5;
  --card: #ffffff;
  --fg: #0b1220;
  --muted: #4b5563;
  --line: #dfe3ea;
  --accent: #0b7d72;
  --button: #0f766e;
  --button-fg: #ffffff;
  --soon: #fff7e6;
  --soon-fg: #8a4b00;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b14;
    --bg-hero: #0b1a1a;
    --card: #111827;
    --fg: #e8eaee;
    --muted: #a3a9b5;
    --line: #273042;
    --accent: #34d3c2;
    --button: #14b8a6;
    --button-fg: #04201d;
    --soon: #2b1d03;
    --soon-fg: #fbbf24;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  overflow-wrap: break-word;
}

[lang="ar"] body, body:lang(ar) { line-height: 1.85; }

.wrap { width: 100%; max-width: 64rem; margin-inline: auto; padding-inline: 16px; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.top-links { display: flex; align-items: center; gap: 12px; }
.lang { font-size: 0.95rem; }

/* Buttons */
.button {
  display: inline-block; padding: 12px 20px; border-radius: 12px; background: var(--button); color: var(--button-fg);
  font-weight: 700; text-decoration: none; line-height: 1.3;
}
.button:hover { filter: brightness(1.08); }
.button.small { padding: 8px 14px; font-size: 0.95rem; white-space: nowrap; }
/* On a phone the hero's own button is right below: the header keeps the brand and the language only. */
@media (max-width: 480px) { .top .button.small { display: none; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-hero), var(--bg)); padding-block: 48px 24px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.25; margin: 0 0 16px; max-width: 22ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 8px; }
.small-note { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Screenshots: a row that scrolls inside itself on phones (never the page) */
.shots ul { list-style: none; margin: 0; padding: 8px 0 24px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots ul:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.shots li { flex: 0 0 auto; scroll-snap-align: center; }
.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; }
.shots img { display: block; width: min(260px, 70vw); height: auto; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
@media (min-width: 900px) { .shots ul { justify-content: center; overflow: visible; } }

/* Sections */
.block { padding-block: 28px; border-top: 1px solid var(--line); }
.block h2 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 16px; }
.block h3 { font-size: 1.1rem; margin: 0 0 6px; }
.block p { margin: 0; }
.note { color: var(--muted); margin-top: 12px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.6em; width: 12px; height: 7px; border-inline-start: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
[dir="rtl"] .ticks li::before { transform: rotate(45deg); }

.cards, .steps, .stores { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.cards li, .steps li, .stores li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3::before { content: counter(step) ". "; color: var(--accent); }

.stores li { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.store-name { font-weight: 700; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--soon); color: var(--soon-fg); font-size: 0.9rem; font-weight: 600; }

.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.consent { margin-block: 24px 40px; padding: 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }

/* Footer */
.bottom { border-top: 1px solid var(--line); padding-block: 20px 32px; color: var(--muted); font-size: 0.95rem; }
.bottom ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.bottom p { margin: 0; }
