/* Qala website – colours from the logo (same as lib/core/theme.dart). */
:root {
  --ink: #5a3a22;
  --walnut: #71533b;
  --muted: #8c7259;
  --terracotta: #c2693e;
  --terracotta-dark: #a2522c;
  --cream: #f3e6cc;
  --sand: #fbf3e6;
  --card: #fffcf7;
  --line: #e9d8bc;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans",
        "Noto Sans Arabic", Tahoma, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-dark); }

/* Only the chosen language is shown. */
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"],
html[lang="ar"] [data-lang="ar"],
html[lang="ckb"] [data-lang="ckb"] { display: revert; }

/* Header */
.top {
  max-width: 1040px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
         font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.langs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line);
         border-radius: 999px; padding: 3px; }
.langs button {
  border: 0; background: transparent; color: var(--walnut); font: inherit; font-size: 14px;
  font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--terracotta); color: #fff; }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 64px; }

/* Hero */
.hero {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1.1fr 0.9fr; padding: 40px 0 56px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 0 0 16px;
           letter-spacing: -0.02em; }
html[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero p.lead { font-size: 19px; color: var(--walnut); margin: 0 0 28px; max-width: 32em; }
.hero-logo { background: var(--cream); border-radius: 36px; overflow: hidden;
             box-shadow: 0 18px 40px rgba(90, 58, 34, 0.14); max-width: 420px;
             justify-self: center; width: 100%; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 10px 20px; border-radius: 14px; background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 700;
}
.store small { display: block; font-weight: 500; font-size: 12px; opacity: 0.8; line-height: 1.2; }
.store span { line-height: 1.2; }
.store.soon { background: var(--card); color: var(--walnut); border: 1px dashed var(--line);
              cursor: default; }
.store svg { width: 24px; height: 24px; flex: none; }

/* Sections */
section { padding: 24px 0; }
section > h2 { font-size: 28px; margin: 0 0 20px; letter-spacing: -0.01em; }
html[dir="rtl"] section > h2 { letter-spacing: 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--walnut); }
.step { width: 36px; height: 36px; border-radius: 50%; background: var(--terracotta);
        color: #fff; font-weight: 800; display: grid; place-items: center; }

.split { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.panel { border-radius: var(--radius); padding: 28px; }
.panel h2 { margin: 0 0 10px; font-size: 24px; }
.panel p { margin: 0 0 12px; }
.panel ul { margin: 0; padding-inline-start: 20px; }
.panel.dark { background: var(--ink); color: #fbefdc; }
.panel.dark a { color: #f2b48e; }
.panel.light { background: var(--cream); }

.button {
  display: inline-block; margin-top: 8px; padding: 12px 20px; border-radius: 12px;
  background: var(--terracotta); color: #fff; text-decoration: none; font-weight: 700;
}

/* Text pages (privacy, support, imprint) */
.doc { max-width: 720px; margin: 0 auto; padding: 16px 0 32px; }
.doc h1 { font-size: 32px; margin: 8px 0 4px; line-height: 1.2; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc h3 { font-size: 17px; margin: 20px 0 4px; }
.muted { color: var(--muted); }
.note { background: var(--cream); border-radius: 12px; padding: 14px 16px; }
.todo { background: #fde0c8; border-radius: 6px; padding: 0 4px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
          padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--walnut); }

/* QR landing (/m/…) */
.qr { max-width: 460px; margin: 0 auto; text-align: center; padding: 24px 0; }
.qr img.logo { width: 132px; margin: 0 auto 16px; border-radius: 28px; }
.qr h1 { font-size: 28px; margin: 0 0 8px; line-height: 1.25; }
.qr .code {
  font: 700 clamp(15px, 4.4vw, 22px)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em; white-space: nowrap;
  background: var(--card); border: 2px dashed var(--terracotta); border-radius: 14px;
  padding: 14px; margin: 20px 0; direction: ltr;
}
.qr .stores { justify-content: center; margin-top: 20px; }

footer { border-top: 1px solid var(--line); }
footer .inner { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px;
                display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted);
                font-size: 15px; }
footer a { color: var(--walnut); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .copy { margin-inline-start: auto; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 24px; }
  .hero-logo { max-width: 160px; border-radius: 28px; order: -1; justify-self: start; }
  .cards, .split { grid-template-columns: 1fr; }
  footer .copy { margin-inline-start: 0; width: 100%; }
}
