/* CureLink web trial site: the landing page, sign-up/sign-in and the seller's page. */
:root {
  --teal: #0fa3b1;
  --teal-strong: #0b8793;
  --navy: #12355b;
  --bg: #f5f8fa;
  --card: #ffffff;
  --text: #12355b;
  --muted: #5b6f86;
  --line: #dde6ee;
  --danger: #c0392b;
  --ok: #1e8e5a;
  --hot: #e07a1f;
  --shadow: 0 6px 24px rgba(18, 53, 91, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1b2a;
    --card: #14273b;
    --text: #e8f1f8;
    --muted: #9db2c6;
    --line: #23405e;
    --navy: #e8f1f8;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}
h1, h2, h3, .brand, button, .btn { font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif; }
a { color: var(--teal-strong); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--navy); text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.mark-dark { display: none; }
@media (prefers-color-scheme: dark) { .mark-light { display: none; } .mark-dark { display: inline; } }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; padding: 28px 0 40px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 8px; } }
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.35; margin: 0 0 12px; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--teal); }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.ticks li { padding-inline-start: 30px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 0; color: #fff; background: var(--teal); width: 20px; height: 20px; border-radius: 50%; font-size: 12px; display: grid; place-items: center; margin-top: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 4px; font-size: 22px; color: var(--navy); }
.card .sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
input[dir='ltr'] { text-align: right; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 12px 20px; font-size: 17px; font-weight: 700; cursor: pointer;
  background: var(--teal); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--teal-strong); }
.btn.block { width: 100%; margin-top: 18px; }
.btn.ghost { background: transparent; color: var(--teal-strong); border: 1px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 9px; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.btn.wa { background: #25d366; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.switch { text-align: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.switch button { background: none; border: 0; color: var(--teal-strong); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.err { color: var(--danger); font-size: 14px; margin-top: 10px; min-height: 1em; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 48px; }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }
.product { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; text-align: start; font: inherit; color: inherit; }
.product.on { border-color: var(--teal); }
.product[disabled] { cursor: default; opacity: 0.65; }
.product b { display: block; font-family: 'Cairo', sans-serif; font-size: 18px; color: var(--navy); }
.product span { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--bg); color: var(--muted); margin-top: 8px; }
.tag.live { background: rgba(15, 163, 177, 0.12); color: var(--teal-strong); }
.section-title { font-size: 20px; margin: 0 0 12px; color: var(--navy); }
.welcome .days { font-size: 40px; font-weight: 800; color: var(--teal); font-family: 'Cairo', sans-serif; line-height: 1.2; }
footer { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 0 40px; }
[hidden] { display: none !important; }

/* the seller's page */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 26px; font-family: 'Cairo', sans-serif; color: var(--teal); }
.stat span { font-size: 13px; color: var(--muted); }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.doc.hot { border-color: var(--hot); }
.doc .row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--muted); }
.doc .name { font-weight: 700; font-size: 17px; color: var(--text); font-family: 'Cairo', sans-serif; }
.doc .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.pill.live { background: rgba(30, 142, 90, 0.12); color: var(--ok); }
.pill.ended { background: rgba(192, 57, 43, 0.1); color: var(--danger); }
.pill.hot { background: rgba(224, 122, 31, 0.14); color: var(--hot); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar input { max-width: 280px; }
