/* =============================================================================
   dentx — dentx.pro public site
   Teal Aurora brand. Tokens mirror mobile/lib/core/theme/brand_palette.dart
   (auroraLight) and docs/UI_SPEC.md. Self-contained: no CDN, no runtime fetch.
   ========================================================================== */

/* ---------- Cairo, self-hosted (variable, 200-1000) ---------------------- */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4,
    U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24,
    U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47,
    U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59,
    U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A,
    U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89,
    U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --bg: #F4F8FA;
  --backdrop: #EAF3F5;
  --surface: #FFFFFF;
  --surface-variant: #EEF2F4;
  --line: #E2E8EC;
  --primary: #0EA5A5;
  --primary-dark: #0B8585;
  --accent: #22D3EE;
  --ink: #0F172A;
  --ink-2: #475569;
  --muted: #94A3B8;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #2563EB;
  --purple: #9333EA;

  --hero: linear-gradient(135deg, #0B8585 0%, #0EA5A5 52%, #22D3EE 100%);
  --shadow-sm: 0 1px 3px rgba(12, 42, 49, .06);
  --shadow: 0 6px 20px rgba(12, 42, 49, .07), 0 1px 2px rgba(12, 42, 49, .05);
  --shadow-lg: 0 18px 44px rgba(12, 42, 49, .13);

  --r-card: 20px;
  --r-chip: 14px;
  --r-pill: 999px;
  --pad: 16px;
  --maxw: 1160px;
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 800; }
p { margin: 0 0 10px; }
ul { margin: 0 0 10px; padding-inline-start: 22px; }
li { margin-bottom: 6px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* The top bar is sticky — keep anchor targets from hiding underneath it. */
section[id], [id^="s"].card, .card[id] { scroll-margin-top: 78px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 860px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   Top bar
   ========================================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 248, 250, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.brand span { letter-spacing: -.4px; }
.navlinks { display: none; gap: 20px; }
.navlinks a { color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.navlinks a:hover { color: var(--primary); text-decoration: none; }
/* Pushes the CTA to the far end whether or not the nav links are shown. */
.topbar .btn-ghost { margin-inline-start: auto; }

@media (min-width: 900px) {
  .navlinks { display: flex; margin-inline-start: auto; }
  .topbar .btn-ghost { margin-inline-start: 16px; }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-pill);
  font-family: inherit; font-size: 15.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(14, 165, 165, .28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-onhero { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 26px rgba(3, 44, 48, .22); }
.btn-onhero:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
  padding: 9px 18px; font-size: 14px; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero); color: #fff;
  padding: 46px 0 40px;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .10); pointer-events: none;
}
.hero::before { width: 380px; height: 380px; top: -170px; inset-inline-start: -110px; }
.hero::after  { width: 300px; height: 300px; bottom: -180px; inset-inline-end: -80px; }
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; border-radius: var(--r-pill);
  padding: 6px 15px; font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.eyebrow svg { width: 15px; height: 15px; }
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: #C9FBFF; }
.hero .lede { font-size: 16.5px; line-height: 1.9; color: rgba(255, 255, 255, .93); max-width: 640px; margin-bottom: 22px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero stat strip — real product facts, never invented traction numbers */
.hero-stats {
  display: flex; flex-wrap: wrap; margin-top: 30px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-card);
  padding: 16px 4px;
}
.hero-stat { flex: 1 1 33%; min-width: 96px; text-align: center; padding: 6px 10px; position: relative; }
.hero-stat + .hero-stat::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 14%; height: 72%;
  width: 1px; background: rgba(255, 255, 255, .28);
}
.hero-stat b { display: block; font-size: 25px; font-weight: 800; line-height: 1.25; }
.hero-stat span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .85); line-height: 1.5; }

/* =========================================================================
   Sections
   ========================================================================= */
section { padding: 46px 0; }
section.tint { background: var(--backdrop); }
.sec-head { max-width: 700px; margin-bottom: 26px; }
.sec-head.mid { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: 25px; letter-spacing: -.4px; margin-bottom: 8px; }
.sec-head p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.kicker {
  display: block; color: var(--primary); font-weight: 800;
  font-size: 13px; letter-spacing: .6px; margin-bottom: 6px;
}

/* ---------- Cards -------------------------------------------------------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.card p + p { margin-top: 8px; }

/* Tinted icon chip */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-chip);
  margin-bottom: 13px; flex: none;
}
.chip svg { width: 23px; height: 23px; }
.chip.c-primary { background: rgba(14, 165, 165, .12);  color: var(--primary); }
.chip.c-accent  { background: rgba(34, 211, 238, .16);  color: #0891B2; }
.chip.c-success { background: rgba(22, 163, 74, .12);   color: var(--success); }
.chip.c-warning { background: rgba(217, 119, 6, .12);   color: var(--warning); }
.chip.c-info    { background: rgba(37, 99, 235, .12);   color: var(--info); }
.chip.c-purple  { background: rgba(147, 51, 234, .12);  color: var(--purple); }
.chip.c-danger  { background: rgba(220, 38, 38, .10);   color: var(--danger); }

/* ---------- Steps -------------------------------------------------------- */
.step { position: relative; }
.step .num {
  position: absolute; top: 16px; inset-inline-end: 18px;
  font-size: 34px; font-weight: 800; color: rgba(14, 165, 165, .16); line-height: 1;
}

/* ---------- Audience list ------------------------------------------------ */
.who { display: flex; align-items: flex-start; gap: 14px; }
.who .chip { margin-bottom: 0; width: 42px; height: 42px; }
.who .chip svg { width: 21px; height: 21px; }
.who div { min-width: 0; }
.who h3 { font-size: 16px; margin-bottom: 2px; }
.who p { font-size: 14px; }

/* =========================================================================
   Pricing
   ========================================================================= */
.plans { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured {
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(14, 165, 165, .18);
}
.plan-tag {
  position: absolute; top: -12px; inset-inline-start: 20px;
  background: var(--primary); color: #fff; border-radius: var(--r-pill);
  padding: 3px 14px; font-size: 12px; font-weight: 700;
}
.plan h3 { font-size: 16px; color: var(--ink-2); font-weight: 700; margin-bottom: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price b { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.price span { font-size: 15px; color: var(--ink-2); font-weight: 700; }
.price-note { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.feat { list-style: none; padding: 0; margin: 0 0 4px; }
.feat li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14.5px; color: var(--ink-2); margin-bottom: 9px;
}
.feat li svg { width: 17px; height: 17px; color: var(--success); flex: none; margin-top: 5px; }
.feat li.off { color: var(--muted); }
.feat li.off svg { color: var(--muted); }

/* =========================================================================
   Callout / notes
   ========================================================================= */
.note {
  border-radius: var(--r-chip); padding: 15px 17px; margin: 14px 0;
  border: 1px solid; font-size: 14.5px;
}
.note p:last-child { margin-bottom: 0; }
.note-warn  { background: #FFF7ED; border-color: #FED7AA; }
.note-warn strong { color: var(--warning); }
.note-info  { background: #EFF6FF; border-color: #BFDBFE; }
.note-info strong { color: var(--info); }
.note-teal  { background: #ECFEFF; border-color: #A5F3FC; }
.note-teal strong { color: var(--primary-dark); }

/* =========================================================================
   Store badges — disabled until the apps are published
   ========================================================================= */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: #0F172A; color: #fff;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 15px;
  padding: 10px 20px; min-width: 200px; position: relative;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.store-btn:hover { text-decoration: none; }
.store-btn .glyph { width: 27px; height: 27px; flex: none; }
.store-btn .txt { display: flex; flex-direction: column; line-height: 1.35; text-align: start; }
.store-btn .txt small { font-size: 11px; opacity: .82; font-weight: 500; }
.store-btn .txt strong { font-size: 16px; font-weight: 700; letter-spacing: .1px; }
.store-btn:not(.is-disabled):hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.store-btn.is-disabled {
  background: #94A3B8; color: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .25);
  cursor: not-allowed; filter: grayscale(1); opacity: .78;
}
.store-btn.is-disabled .soon {
  position: absolute; top: -10px; inset-inline-end: 12px;
  background: var(--warning); color: #fff; border-radius: var(--r-pill);
  padding: 1px 11px; font-size: 11.5px; font-weight: 700; filter: none;
}
/* Live badges hide the "قريبًا" pill entirely. */
.store-btn:not(.is-disabled) .soon { display: none; }

.stores.on-hero .store-btn.is-disabled {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .34);
  filter: none; opacity: 1; color: #fff;
}
/* Desaturate the store glyph too, so a full-colour logo never reads as "live". */
.stores.on-hero .store-btn.is-disabled .glyph { filter: grayscale(1); opacity: .72; }
.stores.on-hero .store-btn:not(.is-disabled) { background: #fff; color: var(--primary-dark); filter: none; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px;
  font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
/* Physical borders on purpose: a chevron must point DOWN when closed and UP
   when open in both directions — it is not a directional affordance. */
.faq summary::after {
  content: ''; width: 9px; height: 9px; margin-inline-start: auto; flex: none;
  border-right: 2.4px solid var(--primary); border-bottom: 2.4px solid var(--primary);
  transform: rotate(45deg); transition: transform .2s ease; margin-bottom: 5px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-bottom: 0; margin-top: 5px; }
.faq details[open] summary { color: var(--primary-dark); }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* =========================================================================
   Final CTA band
   ========================================================================= */
.cta-band {
  background: var(--hero); color: #fff;
  border-radius: 26px; padding: 34px 24px; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band h2 { font-size: 24px; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .93); font-size: 15.5px; max-width: 560px; margin-inline: auto; margin-bottom: 20px; }
.cta-band .stores { justify-content: center; }

/* =========================================================================
   English block (LTR island inside an RTL page)
   ========================================================================= */
.en-block { direction: ltr; text-align: left; }
.en-block h2 { font-size: 21px; margin-bottom: 10px; }
.en-block p { color: var(--ink-2); font-size: 14.5px; }
.en-block ul { padding-inline-start: 20px; }
.en-block li { color: var(--ink-2); font-size: 14.5px; }

/* =========================================================================
   Footer
   ========================================================================= */
footer.site {
  background: #0B2530; color: #CBD5E1; padding: 34px 0 26px; margin-top: 8px;
}
footer.site .brand { color: #fff; margin-bottom: 10px; }
footer.site p { font-size: 14px; color: #94A3B8; max-width: 420px; }
footer.site a { color: #7FE3E3; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.foot-col h4 { font-size: 14px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 7px; font-size: 14px; }
.foot-col a { color: #CBD5E1; }
.foot-col a:hover { color: #7FE3E3; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 13px; color: #7B8FA3;
}
.foot-bottom span:last-child { margin-inline-start: auto; }

/* =========================================================================
   Legal pages (privacy / terms)
   ========================================================================= */
.legal-hero { background: var(--hero); color: #fff; padding: 34px 0 30px; }
.legal-hero h1 { font-size: 27px; margin-bottom: 6px; }
.legal-hero p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .92); }
.legal { padding: 26px 0 46px; }
.legal .card { margin-bottom: 14px; padding: 22px; }
.legal .card > h2 { font-size: 19px; margin-bottom: 12px; }
.legal .card h3 { font-size: 15px; margin: 18px 0 6px; font-weight: 700; color: var(--primary); }
.legal .card p, .legal .card li { color: var(--ink-2); font-size: 15px; }
.legal .card > p:last-child { margin-bottom: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.legal th, .legal td { padding: 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 700; background: var(--surface-variant); }
.legal tr:last-child td { border-bottom: 0; }
.legal code {
  background: var(--surface-variant); border-radius: 6px; padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; direction: ltr;
  display: inline-block;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 420px; }

/* A wide table has no good scrolling story on a 360px phone. `.stack-table`
   drops the header row and re-labels each cell from data-label instead. */
@media (max-width: 599px) {
  .stack-table { overflow-x: visible; }
  .stack-table table { min-width: 0; }
  .stack-table thead { display: none; }
  .stack-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table td { display: flex; gap: 10px; border: 0; padding: 3px 0; }
  .stack-table td::before {
    content: attr(data-label) ':'; font-weight: 700; color: var(--ink);
    min-width: 104px; flex: none;
  }
  .stack-table td:first-child { font-weight: 800; color: var(--ink); font-size: 16px; padding-bottom: 6px; }
  .stack-table td:first-child::before { content: none; }
}
.toc { list-style: none; padding: 0; margin: 0; column-gap: 26px; }
.toc li { margin-bottom: 6px; font-size: 14.5px; }
.legal .en { direction: ltr; text-align: left; }
.legal-note {
  background: #FFF7ED; border: 1px solid #FED7AA; border-radius: var(--r-card);
  padding: 16px 18px; margin-bottom: 14px; font-size: 14.5px; color: var(--ink-2);
}
.legal-note strong { color: var(--warning); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (min-width: 600px) {
  .grid.g-2, .grid.g-3, .grid.g-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
  .hero-stat b { font-size: 28px; }
  .toc { column-count: 2; }
}

@media (min-width: 900px) {
  :root { --pad: 24px; }
  section { padding: 62px 0; }
  .hero { padding: 68px 0 60px; }
  .hero h1 { font-size: 44px; line-height: 1.32; }
  .hero .lede { font-size: 18px; }
  .hero-stat b { font-size: 31px; }
  .sec-head h2 { font-size: 30px; }
  .grid { gap: 16px; }
  .grid.g-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.g-4 { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .cta-band { padding: 48px 40px; }
  .cta-band h2 { font-size: 30px; }
  .legal-hero { padding: 46px 0 40px; }
  .legal-hero h1 { font-size: 32px; }
  .legal .card { padding: 26px 28px; }
}

@media (min-width: 1100px) {
  .hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
  .hero-stats { padding: 30px 8px; margin-top: 0; }
  .hero-stat { padding: 10px 14px; }
  .hero-stat b { font-size: 36px; }
  .hero-stat span { font-size: 13.5px; }
}

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