/* Saddiq demo: shared tokens and components.
   Layout: presenter pages are a centred column; the shop is phone-width; the dashboard is a wide two-pane tool. */
:root {
  color-scheme: light;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --ink: #16211f;
  --muted: #5b6763;
  --line: #e0e4de;
  --brand: #0f4c5c;        /* store + dashboard primary */
  --brand-soft: #e2eef0;
  --cta: #e86a1c;          /* order buttons */
  --cta-ink: #ffffff;
  --tag: #fff3d6;          /* highlighted tracking codes */
  --tag-ink: #7a4a00;
  --good: #1f7a4a; --good-soft: #e1f3e8;
  --warn: #9a6200; --warn-soft: #fbefd5;
  --bad: #b03a2e; --bad-soft: #f9e2df;
  --info: #2e5aa8; --info-soft: #e3ebf8;
  --wa: #1f8f55; --wa-bubble: #dcf8c6; --wa-bg: #ece5dd;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }

/* demo strip shown on every page */
.demo-strip { background: var(--ink); color: #dfe6e3; font-size: 13px; padding: 8px 16px; display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; align-items: center; }
.demo-strip a { color: #fff; font-weight: 600; text-decoration: none; }
.demo-strip a:hover { text-decoration: underline; }
.demo-strip b { color: #ffd59e; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 600; text-decoration: none; }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: 0.55; cursor: default; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.s-new { background: var(--info-soft); color: var(--info); }
.s-confirmed { background: var(--brand-soft); color: var(--brand); }
.s-dispatched { background: var(--warn-soft); color: var(--warn); }
.s-paid { background: var(--good-soft); color: var(--good); }
.s-refused, .s-unreachable { background: var(--bad-soft); color: var(--bad); }

.src { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.src i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.src-facebook i { background: #1877f2; }
.src-instagram i { background: #d6249f; }
.src-tiktok i { background: #111; box-shadow: 2px 0 0 #25f4ee, -2px 0 0 #fe2c55; }
.src-whatsapp i { background: #25d366; }
.src-direct i { background: #9aa5a1; }

.tag { background: var(--tag); color: var(--tag-ink); border-radius: 4px; padding: 0 3px; }

/* phone frame used for ads, the shop preview and WhatsApp */
.phone { width: 100%; max-width: 360px; background: #0d0f0f; border-radius: 36px; padding: 12px; box-shadow: 0 18px 40px rgba(15, 30, 30, 0.18); }
.phone-screen { background: #fff; border-radius: 26px; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; }

/* WhatsApp mock */
.wa { background: var(--wa-bg); display: flex; flex-direction: column; flex: 1; }
.wa-head { background: #075e54; color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.wa-head .av { width: 34px; height: 34px; border-radius: 50%; background: var(--cta); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.wa-head b { display: block; font-size: 15px; }
.wa-head span { font-size: 12px; opacity: 0.8; }
.wa-body { padding: 14px 12px; display: grid; gap: 8px; align-content: start; }
.wa-msg { background: #fff; border-radius: 0 10px 10px 10px; padding: 9px 11px 6px; font-size: 14.5px; max-width: 88%; box-shadow: 0 1px 1px rgba(0,0,0,0.08); }
.wa-msg time { display: block; text-align: right; font-size: 11px; color: #7b8a86; margin-top: 2px; }
.wa-msg .wa-btn { display: block; text-align: center; color: #128c7e; font-weight: 600; border-top: 1px solid #e6ebe9; margin-top: 8px; padding-top: 7px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
