/* Waraqa Paint landing page. Palette and type from the Waraqa brand guidelines v1.1. */
:root {
  --maroon: #4C2224;
  --kraft: #C0A286;
  --cream: #F4ECE0;
  --charcoal: #241C1B;
  --espresso: #201513;
  --terracotta: #C06A4B;
  --line: #E6D9C7;
  --muted: #7D6F63;

  --bg: var(--cream);
  --surface: #FBF6EE;
  --text: var(--charcoal);
  --heading: var(--maroon);
  --accent: var(--maroon);
  --on-accent: var(--cream);
  --band: var(--kraft);
  --on-band: var(--charcoal);
  --rule: var(--line);
  --subtle: var(--muted);

  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --gutter: 16px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--espresso);
    --surface: #2A1D1A;
    --text: #EADFD0;
    --heading: var(--cream);
    --accent: var(--cream);
    --on-accent: var(--maroon);
    --band: #3A2622;
    --on-band: #EADFD0;
    --rule: #3E2C27;
    --subtle: #B5A595;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--heading); font-weight: 650; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid var(--accent);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { min-height: 38px; padding: 6px 16px; font-size: 0.92rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; color: var(--heading); font-size: 1.05rem; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a:not(.btn) { text-decoration: none; color: var(--subtle); font-weight: 500; font-size: 0.95rem; }
nav a:not(.btn):hover { color: var(--heading); }
nav a.lang { color: var(--heading); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; }
.brand span, nav a { white-space: nowrap; }
@media (max-width: 640px) { nav { gap: 8px; } nav a:not(.btn):not(.lang) { display: none; } nav a.lang { padding: 6px 12px; } .btn-small { padding: 6px 14px; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* Arabic: Reem Kufi for headings only, Readex Pro for everything else; no letter-spacing (brand rules). */
:lang(ar) { --font: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif; }
html:lang(ar) body { line-height: 1.75; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3 { font-family: "Reem Kufi", "Readex Pro", system-ui, sans-serif; letter-spacing: 0; line-height: 1.25; }
html:lang(ar) h1 { line-height: 1.2; }
html:lang(ar) .eyebrow { letter-spacing: 0; }
.latin { unicode-bidi: isolate; }

/* Hero */
.hero { padding: 64px 0 40px; }
.eyebrow { color: var(--terracotta); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 40em; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.note { color: var(--subtle); font-size: 0.95rem; }
.shot { margin-top: 40px; margin-bottom: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(36, 28, 27, 0.45); }
.shot figcaption { color: var(--subtle); font-size: 0.85rem; margin-top: 10px; }

/* Features */
.features { padding: 56px 0; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
section[id] { scroll-margin-top: 72px; }
.grid article { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.grid article p { margin: 0; color: var(--text); }

/* Offer */
.offer { background: var(--band); color: var(--on-band); padding: 56px 0 32px; }
.offer-inner { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .offer-inner { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-block: 16px; padding-inline: 62px 18px; background: var(--surface); color: var(--text); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 650; }
.fine { font-size: 0.85rem; color: inherit; opacity: 0.8; margin-top: 24px; }

/* Demo */
.demo { padding: 56px 0; }
.demo-inner { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .demo-inner { grid-template-columns: 1fr 1fr; gap: 56px; } }
.warn { background: var(--surface); border: 1px solid var(--rule); border-inline-start: 4px solid var(--terracotta); border-radius: var(--radius); padding: 22px 24px; }
.warn h3 { margin-bottom: 10px; }
.warn ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 8px; }

/* Download */
.download { padding: 8px 0 48px; }
.download .wrap { border-top: 1px solid var(--rule); padding-top: 48px; }

/* FAQ */
.faq { padding: 8px 0 64px; }
details { max-width: 820px; border-bottom: 1px solid var(--rule); padding: 4px 0; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; }

/* Footer */
.foot { background: var(--maroon); color: var(--cream); padding: 48px 0; }
.foot a { color: var(--cream); }
.foot-inner { display: grid; gap: 6px; }
.wordmark {
  display: block; width: 72px; height: 72px; margin-bottom: 12px;
  background: var(--cream);
  -webkit-mask: url("assets/waraqa-wordmark.svg") center / contain no-repeat;
  mask: url("assets/waraqa-wordmark.svg") center / contain no-repeat;
}
.foot .fine { opacity: 0.75; margin-top: 8px; }
