/* Awsel — أوصل · design system
   Concept: "from chat to ledger entry". Ledger ruling, tabular figures,
   debit/credit color logic, official stamp. Ink on cool paper. */

:root {
  --ink: #16202f;
  --ink-soft: #3c4759;
  --paper: #f6f7f4;
  --paper-raise: #ffffff;
  --line: #d9ddd4;
  --line-soft: #e7eae2;
  --green: #0e7a5f;
  --green-deep: #0a5c48;
  --red: #b3382e;
  --gold: #c9972c;
  --radius: 10px;
  --maxw: 1080px;
  --font-display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

[lang="en"] body, body[lang="en"] { line-height: 1.65; }

a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

img, video { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- header: an account header ---------- */
.site-head {
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.site-head .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem; color: var(--ink);
  display: flex; align-items: baseline; gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand .latin { font-size: .78rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; align-items: center; font-size: .95rem; }
.nav a { color: var(--ink); }
.lang-switch {
  font-family: var(--font-mono); font-size: .8rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px; color: var(--ink-soft); background: var(--paper-raise);
}
.lang-switch:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }

/* ---------- ledger ruling: section chrome ---------- */
.ledger-rule {
  border: 0; border-top: 1px solid var(--line);
  position: relative; margin: 0;
}
section { padding-block: 72px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem; letter-spacing: .12em;
  color: var(--green-deep); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--green); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-bottom: 14px; }
h3 { font-size: 1.12rem; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 36em; }

/* ---------- hero ---------- */
.hero { padding-block: 64px 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .accent { color: var(--green-deep); }
.hero .lede { margin-block: 18px 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 12px 26px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green-deep); text-decoration: none; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--paper-raise); text-decoration: none; }
.hero-note { font-size: .88rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- signature: chat → journal entry ---------- */
.ledger-demo {
  background: var(--paper-raise);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 26px 24px 60px;
  box-shadow: 6px 6px 0 var(--line);
  position: relative;
}
[dir="rtl"] .ledger-demo { box-shadow: -6px 6px 0 var(--line); }

.chat-msg {
  background: var(--ink); color: var(--paper);
  border-radius: 16px; border-end-end-radius: 4px;
  padding: 12px 18px; font-size: .98rem;
  max-width: 92%; width: fit-content;
  margin-inline-start: auto;
  opacity: 0; animation: msg-in .5s ease .3s forwards;
}
.chat-meta { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-soft); text-align: end; margin-top: 6px; opacity: 0; animation: msg-in .4s ease .6s forwards; }

.entry {
  margin-top: 22px; border-top: 1.5px solid var(--line);
  padding-top: 16px;
  opacity: 0; animation: msg-in .6s ease 1.15s forwards;
}
.entry-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft);
  margin-bottom: 10px;
}
.entry-rows { width: 100%; border-collapse: collapse; font-size: .92rem; }
.entry-rows td { padding: 7px 4px; border-bottom: 1px solid var(--line-soft); }
.entry-rows .amt { font-family: var(--font-mono); font-size: .88rem; text-align: end; white-space: nowrap; }
.entry-rows .debit .amt { color: var(--red); }
.entry-rows .credit .amt { color: var(--green-deep); }
.entry-rows tr { opacity: 0; animation: row-in .45s ease forwards; }
.entry-rows tr:nth-child(1) { animation-delay: 1.5s; }
.entry-rows tr:nth-child(2) { animation-delay: 1.75s; }
.entry-rows tr:nth-child(3) { animation-delay: 2s; }

.stamp {
  position: absolute; bottom: 18px; inset-inline-start: 22px;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  color: var(--gold); border: 2px solid var(--gold);
  border-radius: 6px; padding: 3px 12px;
  transform: rotate(8deg) scale(1.6); opacity: 0;
  animation: stamp-in .35s cubic-bezier(.2, 1.6, .4, 1) 2.5s forwards;
}
[dir="ltr"] .stamp { transform: rotate(-8deg) scale(1.6); }

@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes stamp-in { to { opacity: 1; transform: rotate(8deg) scale(1); } }
[dir="ltr"] .stamp { animation-name: stamp-in-ltr; }
@keyframes stamp-in-ltr { to { opacity: 1; transform: rotate(-8deg) scale(1); } }

/* ---------- connector cards: three accounts ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card {
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card .sys { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; }
.card h3 { font-size: 1.3rem; }
.card p { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.card .status { font-size: .78rem; font-family: var(--font-mono); color: var(--green-deep); }
.card .status.soon { color: var(--gold); }
.card-link { font-weight: 600; }

/* ---------- capability ledger (feature table) ---------- */
.cap-table { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap-table th, .cap-table td { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); text-align: start; font-size: .95rem; }
.cap-table th { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; color: var(--ink-soft); text-transform: uppercase; background: var(--paper); }
.cap-table td.yes { color: var(--green-deep); font-weight: 600; }
.cap-table td.no { color: var(--ink-soft); }

/* ---------- feature list ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin-top: 30px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .tick {
  flex: none; width: 26px; height: 26px; margin-top: 4px;
  border: 1.5px solid var(--green); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--green-deep); font-size: .8rem; font-weight: 700;
}
.feature h3 { margin-bottom: 2px; }
.feature p { font-size: .93rem; color: var(--ink-soft); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.step { background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-mono); font-size: .85rem; font-weight: 600;
  color: var(--paper); background: var(--ink);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--ink-soft); }

/* ---------- video slot ---------- */
.video-slot {
  margin-top: 34px; border: 1.5px solid var(--ink); border-radius: 14px;
  background: var(--ink); aspect-ratio: 16 / 9; overflow: hidden;
  display: grid; place-items: center; position: relative;
}
.video-slot video, .video-slot iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-placeholder { text-align: center; color: var(--paper); padding: 24px; }
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; margin: 0 auto 14px;
  font-size: 1.3rem;
}
.video-placeholder p { font-size: .9rem; opacity: .75; }

/* ---------- pricing ---------- */
.pricing-line {
  background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; margin-top: 10px;
}
.pricing-line .price { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.pricing-line .price small { font-size: 1rem; font-weight: 400; opacity: .7; }
.pricing-line ul { list-style: none; font-size: .95rem; opacity: .9; }
.pricing-line li { padding-block: 3px; }
.pricing-line li::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.pricing-line .btn-primary { background: var(--gold); color: var(--ink); }
.pricing-line .btn-primary:hover { background: var(--paper); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 4px; font-weight: 600; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--green-deep); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 4px 20px; color: var(--ink-soft); font-size: .97rem; max-width: 60ch; }

/* ---------- capability groups (product pages) ---------- */
.cap-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.cap-group { background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.cap-group h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.cap-group h3 .count { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); font-weight: 400; }
.cap-group ul { list-style: none; font-size: .93rem; color: var(--ink-soft); }
.cap-group li { padding-block: 4px; border-bottom: 1px solid var(--line-soft); }
.cap-group li:last-child { border-bottom: 0; }
.cap-group .warn { color: var(--red); font-size: .85rem; margin-top: 8px; }

/* ---------- example prompts ---------- */
.prompt-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; max-width: 700px; }
.prompt-list li {
  background: var(--ink); color: var(--paper);
  border-radius: 16px; border-end-end-radius: 4px;
  padding: 11px 20px; font-size: .97rem; width: fit-content; max-width: 100%;
  margin-inline-start: auto;
}

/* ---------- product hero badge ---------- */
.sys-badge {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-deep);
  border: 1px solid var(--green); border-radius: 999px; padding: 4px 14px;
  display: inline-block; margin-bottom: 16px; background: var(--paper-raise);
}

@media (max-width: 880px) { .cap-groups { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1.5px solid var(--ink); padding-block: 36px; margin-top: 40px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-foot p, .site-foot a { font-size: .88rem; color: var(--ink-soft); }
.foot-links { display: flex; gap: 20px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav .hide-m { display: none; }
  section { padding-block: 52px; }
}


/* ----- Awsel 2026: coherent product-detail styling (homepage uses awsel-2026.css) ----- */
:root {
  --ink: #203b2c;
  --ink-soft: #617166;
  --paper: #e0e9dc;
  --paper-raise: #ffffff;
  --line: #dce7d9;
  --line-soft: #e9f0e5;
  --green: #376d49;
  --green-deep: #275b3d;
  --gold: #bed59b;
  --radius: 18px;
  --maxw: 1160px;
}
body { background: #e2e9de; color: #25382b; }
.site-head { border: 0; background: #203b2c; box-shadow: 0 4px 16px #193b2613; }
.site-head .wrap { min-height: 76px; }
.brand, .nav a { color: #f6fbf2; }
.brand .latin { color: #b9cbb7; }
.nav a:hover { color: #d6ecbb; }
.nav .lang-switch { background: transparent; border-color: #789780; color: #f3f9ef; }
.nav .lang-switch:hover { background: #34533d; color: white; }
body > section { max-width: 1376px; margin: 12px auto 0; padding: 66px 32px; border-radius: 26px; background: #fafcf8; }
body > section.hero { border: 10px solid #203b2c; padding: 74px 38px; background: #fbfcf8; }
.ledger-rule { display: none; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font-size: clamp(2.2rem,4.4vw,4rem); line-height: 1.33; }
h2 { font-size: clamp(1.7rem,3.1vw,2.7rem); line-height: 1.35; }
.hero .lede, .lede { color: #657368; line-height: 1.95; }
.eyebrow { font-family: "IBM Plex Sans Arabic","IBM Plex Sans",sans-serif; font-weight: 700; letter-spacing: .02em; }
.eyebrow::before { width: 9px; height: 9px; border-radius: 100%; background: #86ac70; }
.btn { border-radius: 99px; padding: 13px 25px; font-weight: 700; }
.btn-primary { background: #23442f; color: white; }
.btn-primary:hover { background: #326b45; }
.btn-ghost { border: 1px solid #d2e1d0; background: white; }
.ledger-demo { background: linear-gradient(130deg,#e8f0db,#c5d9b7); border: 0; padding: 32px 28px 68px; border-radius: 22px; box-shadow: 0 23px 55px #294e3120; }
[dir="rtl"] .ledger-demo { box-shadow: 0 23px 55px #294e3120; }
.chat-msg { background: #24432f; color: white; border-radius: 15px 15px 4px 15px; }
.entry { padding: 20px; margin-top: 18px; border: 1px solid #e1e9dc; background: #fff; border-radius: 14px; box-shadow: 0 8px 30px #24452a13; }
.entry-head { font-family: "IBM Plex Sans Arabic","IBM Plex Sans",sans-serif; }
.entry-rows .debit .amt { color: #a3544d; }
.stamp { color: #236640; border-color: #236640; border-radius: 99px; background: #ffffffd9; bottom: 12px; font-size: .78rem; }
.sys-badge { background: #eaf3e3; border-color: #cbdcc3; color: #366b45; font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; letter-spacing: 0; }
.hero-note { font-size: .86rem; }
.cap-groups { gap: 15px; }
.cap-group, .step, .card { border: 1px solid #e3e9e0; border-radius: 18px; padding: 26px; background: #f5f8f1; }
.cap-group:nth-child(even) { background: #f8f6ef; }
.cap-group h3, .step h3 { font-size: 1.1rem; }
.cap-group li { padding-block: 7px; }
.cap-group .warn { color: #a0524d; }
.count, .card .sys { font-family: "IBM Plex Sans",sans-serif; }
.step::before { background: #2f6041; border-radius: 10px; width: 35px; height: 35px; }
.step:nth-child(2) { background: #eaf0e2; }
.step:nth-child(3) { background: #f6efe6; }
.prompt-list li { background: #24432f; border-radius: 14px 14px 4px 14px; }
.pricing-line { background: #213e2d; border-radius: 20px; }
.pricing-line .btn-primary { background: #f2f7e9; color: #23432e; }
.pricing-line .btn-primary:hover { background: #d8edc7; }
.pricing-line li::before { color: #c8e5a5; }
.video-slot { border-radius: 20px; border: 1px solid #d4e0d4; background: #203b2c; }
.faq details { border-bottom-color: #e2e8e0; }
.faq summary { font-size: 1.05rem; }
.site-foot { max-width: 1376px; margin: 12px auto 0; padding: 40px 32px; background: #203b2c; border: 0; border-radius: 25px 25px 0 0; }
.site-foot p, .site-foot a { color: #d0e3cf; }
.site-foot a:hover { color: white; }
@media (max-width:880px) {
 .site-head .wrap { min-height: 65px; }
 body > section { padding: 45px 19px; margin: 8px; border-radius: 19px; }
 body > section.hero { padding: 38px 14px; border-width: 6px; }
 .ledger-demo { padding: 23px 17px 57px; }
 .entry { padding: 14px; }
 .cap-group,.step { padding: 20px; }
 .site-foot { margin: 8px; padding: 29px 20px; border-radius: 17px 17px 0 0; }
 .pricing-line { padding: 30px 23px; }
}


/* Brand family — connector details */
.site-brand-icon{width:34px;height:34px;border-radius:8px;object-fit:contain;flex:none}
.brand{align-items:center;gap:8px}
.product-hero-logo{width:118px;height:118px;display:block;margin-bottom:20px;border-radius:24px;box-shadow:0 18px 42px #1d453121}
@media(max-width:600px){.product-hero-logo{width:94px;height:94px;margin-bottom:16px}.site-brand-icon{width:29px;height:29px}}
