/* Silk Clinic landing page.
   Same look as the staff app: cool grey canvas, big rounded white cards, a
   black pill for the main action, periwinkle and coral accents. Urbanist for
   Latin, Noto Sans Arabic for Arabic. */

:root {
  --bg: #e8ebf1;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --border: #e1e5ee;
  --text: #121418;
  --muted: #5f6877;
  --faint: #9aa2b1;
  --ink: #111215;
  --ink-2: #2a2c31;
  --blue: #8ba3dd;
  --blue-strong: #6c88cf;
  --blue-soft: #e6ecf9;
  --blue-text: #3f5ca8;
  --coral: #ec8b85;
  --coral-soft: #fce8e6;
  --coral-text: #b8433c;
  --wa: #dcf8c6;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius: 20px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(18, 20, 24, 0.03), 0 10px 32px rgba(40, 52, 80, 0.07);
  --shadow-pop: 0 18px 50px rgba(40, 52, 80, 0.16);
  --font: "Urbanist", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 450 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[dir="rtl"] body, [lang="ar"] body { font-family: "Noto Sans Arabic", "Urbanist", -apple-system, "Segoe UI", Tahoma, sans-serif; line-height: 1.75; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.skip { position: absolute; inset-inline-start: 12px; top: -80px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--pill); z-index: 200; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: var(--pill);
  font-weight: 650; font-size: 15.5px; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, transform .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { border-color: #c9d0dd; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef1f7; }
.btn-outline-light { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-outline-light:hover { border-color: rgba(255,255,255,.6); }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 100; padding: 14px var(--gutter) 0; }
.nav {
  max-width: var(--max); margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 14px; border-radius: var(--pill);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.7);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: none; }
.brand-mark img { filter: invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; }
.brand-text small { font-size: 11.5px; color: var(--muted); font-weight: 550; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: var(--pill); font-weight: 600; font-size: 14.5px; color: var(--muted); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { height: 40px; min-width: 52px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--border); background: var(--surface); font-weight: 650; font-size: 14px; }
.lang:hover { border-color: #c9d0dd; }
[lang="ar"] .lang { font-family: "Urbanist", sans-serif; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- layout ---------- */
main { padding: 0 var(--gutter); }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 112px) 0 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 12px; }
[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 720; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
[lang="ar"] h1 { font-size: clamp(34px, 5.2vw, 60px); }
[lang="ar"] h2 { font-size: clamp(26px, 3.6vw, 42px); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 88px) 0 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 650; margin-bottom: 22px; }
[dir="rtl"] .pill-tag { padding: 7px 10px 7px 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.hl { background: linear-gradient(transparent 62%, var(--blue-soft) 62%, var(--blue-soft) 92%, transparent 92%); padding: 0 .06em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin-top: 22px; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 580px; }
.hero-facts li { background: var(--surface); border-radius: var(--radius); padding: 16px 16px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.hero-facts b { font-size: 28px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.hero-facts span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }

.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 0; }
.demo-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow); }
.demo-tabs button { border: 0; background: none; height: 36px; padding: 0 16px; border-radius: var(--pill); font-weight: 650; font-size: 14px; color: var(--muted); }
.demo-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.phone {
  width: min(360px, 100%); height: 540px; border-radius: 42px; background: #efeae2;
  border: 10px solid var(--ink); box-shadow: var(--shadow-pop); overflow: hidden; display: flex; flex-direction: column;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #ece7df; }
.phone-top b { font-size: 15px; display: block; line-height: 1.2; }
.phone-top small { font-size: 12px; color: #4f8a5b; font-weight: 600; }
.phone-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.phone-avatar img { filter: invert(1); }
.chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.msg {
  max-width: 82%; padding: 8px 12px 6px; border-radius: 14px; font-size: 14.2px; line-height: 1.42; box-shadow: 0 1px 1px rgba(0,0,0,.06);
  animation: pop .28s cubic-bezier(.2, .9, .3, 1.2) both; transform-origin: bottom;
}
.msg time { display: block; font-size: 10.5px; color: #8b8f94; text-align: end; margin-top: 2px; }
.msg-in { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.msg-out { align-self: flex-end; background: var(--wa); border-start-end-radius: 4px; }
.msg[dir="rtl"] { font-family: "Noto Sans Arabic", sans-serif; }
.msg-chips { align-self: flex-start; display: flex; flex-direction: column; gap: 6px; width: 82%; animation: pop .28s cubic-bezier(.2,.9,.3,1.2) both; }
.msg-chips span { background: #fff; border-radius: 12px; text-align: center; padding: 8px 10px; font-size: 13.5px; font-weight: 650; color: #1f7aa8; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.msg-chips span.picked { background: var(--blue-soft); color: var(--blue-text); }
.typing { align-self: flex-start; background: #fff; border-radius: 14px; padding: 10px 14px; display: flex; gap: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #a3a8ae; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.hero-notes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.float-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-pop); max-width: 240px;
}
.float-card b { display: block; font-size: 14.5px; line-height: 1.2; }
.float-card small { font-size: 12.5px; color: var(--muted); line-height: 1.3; display: block; }
.ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; }
.ic-blue { background: var(--blue-soft); color: var(--blue-text); }
.ic-coral { background: var(--coral-soft); color: var(--coral-text); }

/* ---------- problem band ---------- */
.band { max-width: var(--max); margin: clamp(56px, 8vw, 96px) auto 0; }
.band-inner { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 56px); }
.band-inner h2 { max-width: 760px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.problem { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 22px; }
.num-big { display: block; font-size: 30px; font-weight: 750; letter-spacing: -.02em; color: var(--coral); margin-bottom: 8px; line-height: 1.15; }
.problem p { color: rgba(255,255,255,.72); font-size: 15.5px; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-wide { grid-column: span 2; }
.card-ic { width: 46px; height: 46px; border-radius: 15px; background: var(--surface-2); display: grid; place-items: center; font-size: 21px; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { padding: 6px 12px; border-radius: var(--pill); background: var(--blue-soft); color: var(--blue-text); font-weight: 650; font-size: 13.5px; }
.chips span:nth-child(2) { background: var(--coral-soft); color: var(--coral-text); font-family: "Noto Sans Arabic", sans-serif; }
.chips span:nth-child(3) { background: var(--surface-2); color: var(--text); }
.card-dash { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.card-dash > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.mini-dash { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-kpi, .mini-donut { background: var(--surface-2); border-radius: var(--radius); padding: 16px; }
.mini-kpi small, .mini-donut small { color: var(--muted); font-size: 13px; display: block; }
.mini-kpi b { font-size: 34px; font-weight: 750; letter-spacing: -.02em; }
.mini-donut { grid-column: span 2; display: flex; align-items: center; gap: 16px; }
.mini-donut svg { width: 72px; height: 72px; transform: rotate(-90deg); flex: none; }
.sample-note { font-size: 12.5px; color: var(--faint); margin-top: 10px; text-align: end; }

.next { margin-top: 26px; background: transparent; border: 1.5px dashed #c8cfdc; border-radius: var(--radius-lg); padding: 22px 26px; }
.next .eyebrow { color: var(--muted); margin-bottom: 8px; }
.next ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.next li { padding: 6px 14px; background: var(--surface); border-radius: var(--pill); font-size: 14px; font-weight: 550; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { background: var(--surface); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 750; margin-bottom: 6px; }

/* ---------- privacy ---------- */
.privacy-card { background: linear-gradient(140deg, #34509a, #4766b4 55%, #5f7ec6); color: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); }
.eyebrow-light { color: rgba(255,255,255,.85); }
.privacy-copy p { margin-top: 16px; color: rgba(255,255,255,.88); font-size: 17px; }
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.privacy-list li { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.privacy-list b { font-size: 16.5px; }
.privacy-list span { color: rgba(255,255,255,.88); font-size: 15px; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan { background: var(--surface); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-size: 26px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-inline-start: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%233f5ca8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan .btn { align-self: flex-start; }
.plan-dark { background: var(--ink); color: #fff; }
.plan-dark p { color: rgba(255,255,255,.7); }
.plan-dark li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plans-note { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 760px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 680; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 600; font-size: 19px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; margin-top: -6px; }

/* ---------- final cta ---------- */
.cta-final { padding-bottom: clamp(56px, 8vw, 96px); }
.cta-card { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(36px, 6vw, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-card p { color: rgba(255,255,255,.72); margin-top: 14px; font-size: 17.5px; max-width: 520px; }
.cta-card .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.footer { padding: 0 var(--gutter) 36px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; border-top: 1px solid #d5dbe6; padding-top: 26px; }
.brand-foot .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
.footer-links { display: flex; gap: 6px 20px; flex-wrap: wrap; font-weight: 600; font-size: 14.5px; }
.footer-links a:hover { color: var(--blue-text); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; background: #fff; border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow-pop); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 16px; color: var(--text); }
  .nav { position: relative; }
  .menu-btn { display: block; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 680px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-dash { grid-column: span 2; }
  .privacy-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .nav { height: 58px; padding: 0 8px 0 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .nav-right .btn-sm { display: none; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts li { flex-direction: row; align-items: baseline; gap: 10px; padding: 12px 16px; }
  .hero-facts b { font-size: 22px; min-width: 44px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .phone { height: 500px; }
  .float-card { flex: 1 1 100%; max-width: none; }
  .problem-grid, .cards, .steps, .plans, .mini-dash { grid-template-columns: minmax(0, 1fr); }
  .card-wide, .card-dash { grid-column: auto; }
  .card-dash { grid-template-columns: minmax(0, 1fr); }
  .mini-donut { grid-column: auto; }
  .card, .step, .plan { padding: 22px; }
  .plan .btn { align-self: stretch; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
