/* WellSmartDuo website: landing page and legal pages. */

:root {
  --brand: #0e7a55;
  --brand-strong: #0a5c40;
  --brand-soft: #e3f4ec;
  --mint: #4fd1a0;
  --bg: #f5f6f3;
  --surface: #ffffff;
  --ink: #14211b;
  --muted: #5d6c64;
  --line: #e2e7e3;
  --warn-bg: #fff6e6;
  --warn-ink: #8a5a00;
  --hero-from: #0b3a2a;
  --hero-to: #0e7a55;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4fd1a0;
    --brand-strong: #7fe0bb;
    --brand-soft: #16302a;
    --bg: #0f1513;
    --surface: #18211d;
    --ink: #e8efeb;
    --muted: #9aaba2;
    --line: #26312c;
    --warn-bg: #2d2412;
    --warn-ink: #f0c36d;
    --hero-from: #08261c;
    --hero-to: #0d4a35;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #4fd1a0;
  --brand-strong: #7fe0bb;
  --brand-soft: #16302a;
  --bg: #0f1513;
  --surface: #18211d;
  --ink: #e8efeb;
  --muted: #9aaba2;
  --line: #26312c;
  --warn-bg: #2d2412;
  --warn-ink: #f0c36d;
  --hero-from: #08261c;
  --hero-to: #0d4a35;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

/* One language at a time. Arabic shows without JavaScript. */
[data-l="en"] { display: none !important; }
html[lang="en"] [data-l="ar"] { display: none !important; }
html[lang="en"] [data-l="en"] { display: revert !important; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* ------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.top nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 15px;
}
.top nav a:hover { color: var(--ink); background: var(--brand-soft); }
.lang-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--brand); }
@media (max-width: 640px) {
  .top nav a.hide-sm { display: none; }
}

/* --------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
  color: #fff;
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.25;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: #d4efe3;
  margin: 0 0 26px;
  max-width: 34em;
}
.hero .art { display: flex; justify-content: center; }
.hero .art img {
  width: min(260px, 60vw);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 15px;
}
.badge svg { width: 18px; height: 18px; fill: currentColor; }
.soon { font-size: 13px; color: #a9dcc6; margin-top: 10px; }
@media (max-width: 760px) {
  .hero { padding: 40px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .badges { justify-content: center; }
  .hero .art { order: -1; }
  .hero .art img { width: 140px; }
}

/* ----------------------------------------------------------- sections */

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.35;
  margin: 0 0 8px;
}
.sub { color: var(--muted); margin: 0 0 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.card h3 { margin: 10px 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.who h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 20px; }
.who ul { margin: 0; padding-inline-start: 20px; color: var(--muted); }
.who li { margin: 6px 0; }

.steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 18px;
  inset-inline-start: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}

.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.plan { text-align: center; }
.plan .n { font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.plan .t { font-weight: 700; font-size: 17px; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.cta {
  background: var(--brand-soft);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cta h2 { margin: 0; }
.button {
  display: inline-block;
  background: var(--brand);
  color: var(--surface);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
}
.button:hover { background: var(--brand-strong); color: var(--surface); }

/* -------------------------------------------------------- legal pages */

.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.3; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.note {
  background: var(--brand-soft);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
}
.note.warn { background: var(--warn-bg); color: var(--warn-ink); }
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 8px;
}
.toc ol { margin: 0; columns: 2; column-gap: 28px; }
.toc li { margin: 2px 0; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15.5px;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
}
table.data th, table.data td {
  text-align: start;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.data th { background: var(--brand-soft); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14.5px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer a { color: var(--muted); }
footer .copy { margin-inline-start: auto; }
@media (max-width: 640px) { footer .copy { margin-inline-start: 0; width: 100%; } }
