/* Baseer public page. Brand: flat deep teal, no gradients, no shadows.
   Scene: a shop owner opens the link from WhatsApp on a phone at midday in a bright store,
   or programme staff skim it on a laptop. Light body, teal-drenched opening. */

:root {
  --teal: #0F4C4A;
  --teal-deep: #0A3533;
  --teal-soft: #E3EFEE;
  --teal-mid: #2F6F6C;
  --paper: #F6F8F8;
  --sheet: #FBFCFC;
  --ink: #111A19;
  --ink-2: #44524F;
  --line: #D9E2E1;
  --on-teal: #F1F6F5;
  --on-teal-2: #B9D0CE;
  --amber: #8A5A0B;
  --amber-soft: #F6ECD9;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
}
html[lang="en"] body { line-height: 1.65; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Language: both languages live in the DOM; show the active one. */
html[lang="ar"] [data-l="en"], html[lang="en"] [data-l="ar"] { display: none; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--sheet); color: var(--teal); padding: 0.5rem 1rem; border-radius: 0.5rem; z-index: 10;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--teal-mid); outline-offset: 3px; border-radius: 0.25rem; }
.top :focus-visible, .hero :focus-visible, .foot :focus-visible { outline-color: var(--on-teal); }

/* ---------- Top bar (teal) ---------- */
.top {
  background: var(--teal); color: var(--on-teal);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img:first-child { width: 2.5rem; height: 2.5rem; }
.brand img:last-child { width: 4.6rem; height: auto; }
.top-actions { display: flex; align-items: center; gap: 0.4rem; }
.top-link, .lang {
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--on-teal);
  text-decoration: none; background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 0.45rem 1rem; min-height: 2.75rem; display: inline-flex; align-items: center; cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lang { border-color: var(--teal-mid); }
.top-link:hover, .lang:hover { background: var(--teal-deep); }

/* ---------- Hero (teal drench) ---------- */
.hero {
  background: var(--teal); color: var(--on-teal);
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3.5rem, 9vw, 7rem);
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  font-weight: 700; line-height: 1.32; letter-spacing: 0;
  max-width: 17ch;
  text-wrap: balance;
}
html[lang="en"] .hero h1 { line-height: 1.12; letter-spacing: -0.02em; max-width: 15ch; }
.hero-sub {
  margin-top: 1.5rem; max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-teal-2); line-height: 1.85;
}
.cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.7rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1.02rem; text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--on-teal); color: var(--teal-deep); }
.btn-solid:hover { background: var(--sheet); }
.btn-line { border: 1.5px solid var(--on-teal-2); color: var(--on-teal); }
.btn-line:hover { background: var(--teal-deep); }

/* The report: the product itself, shown as the message the owner receives. */
.report { justify-self: end; width: 100%; max-width: 25rem; }
html[lang="en"] .report { justify-self: end; }
.report-head {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--teal-deep); color: var(--on-teal);
  padding: 0.8rem 1rem; border-radius: 1.1rem 1.1rem 0 0;
}
.report-head img { background: var(--sheet); border-radius: 50%; padding: 3px; width: 2.4rem; height: 2.4rem; }
.report-head strong { display: block; font-weight: 600; line-height: 1.3; }
.report-head span { display: block; font-size: 0.8rem; color: var(--on-teal-2); line-height: 1.3; }
.bubble {
  position: relative;
  background: var(--sheet); color: var(--ink);
  padding: 1.1rem 1.15rem 1.9rem; border-radius: 0 0 1.1rem 1.1rem;
  font-size: 0.95rem; line-height: 1.75; text-align: right;
}
.b-title { font-weight: 600; color: var(--teal-deep); margin-bottom: 0.85rem; }
.b-item { display: grid; grid-template-columns: 1.7rem 1fr; gap: 0.65rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.b-num {
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--teal); color: var(--on-teal);
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; margin-top: 0.15rem;
}
.b-item strong { color: var(--ink); }
.b-item em { font-style: normal; color: var(--teal); font-weight: 500; }
.b-time { position: absolute; bottom: 0.5rem; left: 1rem; font-size: 0.75rem; color: var(--ink-2); }
.report figcaption { margin-top: 0.8rem; font-size: 0.85rem; color: var(--on-teal-2); line-height: 1.6; }

/* One orchestrated page-load: the message arrives line by line. */
@media (prefers-reduced-motion: no-preference) {
  .report-head, .b-title, .b-item, .b-time { opacity: 0; transform: translateY(0.6rem); animation: arrive 0.7s var(--ease) forwards; }
  .report-head { animation-delay: 0.15s; }
  .b-title { animation-delay: 0.45s; }
  .b-item:nth-of-type(1) { animation-delay: 0.75s; }
  .b-item:nth-of-type(2) { animation-delay: 1.05s; }
  .b-item:nth-of-type(3) { animation-delay: 1.35s; }
  .b-time { animation-delay: 1.6s; transform: none; }
}
@keyframes arrive { to { opacity: 1; transform: none; } }

/* ---------- Shared section frame ---------- */
section:not(.hero) { padding-inline: var(--gutter); }
.problem, .how, .covers, .contact { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.4; color: var(--teal-deep); }
html[lang="en"] h2 { letter-spacing: -0.01em; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.5; }

/* ---------- Problem: one large statement ---------- */
.problem { padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 7vw, 5rem); }
.statement {
  font-size: clamp(1.7rem, 4.2vw, 3.1rem); font-weight: 600; line-height: 1.5; color: var(--teal);
  max-width: 22ch; text-wrap: balance;
}
html[lang="en"] .statement { line-height: 1.22; letter-spacing: -0.015em; max-width: 24ch; }
.problem-body {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  margin-inline-start: auto; max-width: 44rem;
  display: grid; gap: 1.25rem; color: var(--ink-2);
}

/* ---------- How it works: three steps on the scan line ---------- */
.how { padding-block: clamp(3rem, 7vw, 5rem); }
.steps {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
}
.steps::before { /* the aperture's scan line */
  content: ""; position: absolute; top: 1.5rem; inset-inline: 0; height: 2px; background: var(--teal);
}
.steps li { position: relative; padding-top: 4.25rem; }
.step-n {
  position: absolute; top: 0; inset-inline-start: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--teal); color: var(--teal);
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
}
.steps h3 { color: var(--teal-deep); margin-bottom: 0.4rem; font-size: 1.3rem; }
.steps p { color: var(--ink-2); max-width: 30ch; }

/* ---------- What the report covers: ruled rows with honest status ---------- */
.covers {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 9vw, 7rem);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.covers-head { position: sticky; top: 2rem; }
.covers-head p { margin-top: 0.75rem; color: var(--ink-2); max-width: 24ch; }
.rows li {
  display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: start;
  padding-block: 1.4rem; border-top: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows p { color: var(--ink-2); margin-top: 0.2rem; max-width: 46ch; }
.tag {
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  padding: 0.2rem 0.85rem; border-radius: 999px; margin-top: 0.2rem;
}
.tag-live { background: var(--teal); color: var(--on-teal); }
.tag-part { background: var(--amber-soft); color: var(--amber); }
.tag-next { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- Status + company: soft teal band ---------- */
.company { background: var(--teal-soft); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.company-in {
  max-width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 7vw, 6rem);
}
.company p { margin-top: 1rem; color: var(--ink); max-width: 48ch; }
.seek { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.seek li {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 0.9rem;
  padding: 0.9rem 1.15rem; font-weight: 500; color: var(--teal-deep);
}

/* ---------- Founder + contact ---------- */
.contact {
  padding-block: clamp(4rem, 9vw, 7rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.name { margin-top: 1.5rem; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.3; color: var(--ink); }
.title { font-size: 1.15rem; font-weight: 500; color: var(--teal); }
.does { margin-top: 1rem; color: var(--ink-2); max-width: 36ch; }
.links li {
  display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line); min-height: 4.25rem;
}
.links li:last-child { border-bottom: 1px solid var(--line); }
.links .k { font-size: 0.95rem; color: var(--ink-2); }
.links a {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 600; color: var(--teal-deep);
  text-decoration: none; padding-block: 0.9rem; overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}
.links a:hover { color: var(--teal-mid); text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- Footer ---------- */
.foot {
  background: var(--teal-deep); color: var(--on-teal-2);
  padding: 1.75rem var(--gutter); display: flex; align-items: center; gap: 0.9rem; font-size: 0.9rem;
}
.foot img { width: 1.75rem; height: 1.75rem; }

/* ---------- Small screens ---------- */
@media (max-width: 60rem) {
  .hero, .covers, .company-in, .contact { grid-template-columns: minmax(0, 1fr); }
  .report { justify-self: start; }
  .covers-head { position: static; }
  .covers-head p { max-width: none; }
}
@media (max-width: 44rem) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .steps::before { top: 0; bottom: 0; height: auto; width: 2px; inset-inline: auto; inset-inline-start: calc(1.5rem - 1px); }
  .steps li { padding-top: 0; padding-inline-start: 4.25rem; min-height: 3rem; }
  .steps p { max-width: none; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .tag { justify-self: start; }
  .links li { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0.8rem; min-height: 0; }
  .links a { padding-block: 0.2rem 0; }
  .top-link { display: none; }
  .btn { flex: 1 1 100%; }
}
