/* Hadhir public landing page — brand navy/blue with WhatsApp green */
:root {
  --navy: #0a3f6d; --ink: #10253f; --blue: #2076b9; --green: #12a160; --green-d: #0d7a4a;
  --bg: #f6fafd; --soft: #eef4f9; --line: #d8e7f2; --muted: #5c7389; --card: #fff;
  --radius: 16px; --shadow: 0 18px 50px rgba(10,63,109,.12);
  --font: "Noto Kufi Arabic", system-ui, Tahoma, sans-serif;
}
* { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
.top, .btn, button, .demo, .nav, .logo, .ticks, .mini-steps, summary, .who { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.9; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.45; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246,250,253,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.logo-mark { display: block; width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto; }
.nav { display: flex; gap: 26px; font-size: .92rem; color: var(--muted); }
.nav a:hover { color: var(--navy); }
.top-act { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(18,161,96,.25); }
.btn-main:hover { background: var(--green-d); }
.btn-line { border-color: var(--line); background: #fff; color: var(--navy); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--navy); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }

/* Hero */
.hero { padding: 22px 0 36px; background: radial-gradient(60% 70% at 85% 10%, rgba(32,118,185,.12), transparent 70%), radial-gradient(50% 60% at 10% 90%, rgba(18,161,96,.1), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.hero-copy { padding-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #e7f5ee; color: var(--green-d); font-size: .8rem; font-weight: 600; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18,161,96,.18); }
.hero h1 { margin: 14px 0 12px; font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--green); }
.lead { margin: 0 0 22px; max-width: 560px; color: var(--muted); font-size: 1.05rem; }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.ticks li::before { content: "✓"; margin-inline-end: 6px; color: var(--green); font-weight: 700; }

/* Phone chat demo — Galaxy S style frame with WhatsApp (Android) UI */
.demo { margin: 0; justify-self: center; display: grid; justify-items: center; gap: 14px; }
.demo figcaption { font-size: .78rem; color: var(--muted); text-align: center; max-width: 300px; }
.galaxy { position: relative; width: min(318px, 84vw); aspect-ratio: 9 / 19.2; padding: 8px; border-radius: 48px;
  background: linear-gradient(150deg, #3a3f47, #15171b 45%, #2a2e34); box-shadow: inset 0 0 0 1.5px #5b6169, inset 0 0 0 3px #0b0c0e, 0 40px 80px -20px rgba(10,30,55,.45), 0 18px 36px -18px rgba(10,30,55,.4); }
.g-btn { position: absolute; right: -3px; width: 4px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #2a2e34, #5b6169); }
.g-vol { top: 20%; height: 13%; }
.g-pwr { top: 37%; height: 7%; }
.screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; display: flex; flex-direction: column; background: #efe7de; }
.cam { position: absolute; z-index: 3; top: 9px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a66 0 18%, #07080a 30%); box-shadow: 0 0 0 1.5px #1b1d22; }
.sbar { direction: ltr; display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 2px 22px 0; background: #00715d; color: #fff; font: 600 11.5px/1 system-ui, sans-serif; }
.sb-icons { display: flex; align-items: center; gap: 5px; }
.sb-icons svg { width: 13px; height: 10px; fill: #fff; }
.sb-icons b { font-weight: 600; }
.batt { position: relative; width: 19px; height: 9px; border: 1.3px solid #fff; border-radius: 3px; }
.batt::after { content: ""; position: absolute; right: -3.5px; top: 2px; width: 2px; height: 3px; border-radius: 0 1px 1px 0; background: #fff; }
.batt i { position: absolute; inset: 1px; right: 3px; border-radius: 1px; background: #fff; }
.wa-hd { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px; background: #008069; color: #fff; }
.wa-hd svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.wa-hd .dots { fill: #fff; stroke: none; }
.wa-av { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; transition: opacity .3s; }
.wa-who { flex: 1; min-width: 0; line-height: 1.35; }
.wa-who b { display: block; font-size: .86rem; }
.wa-who small { display: block; font-size: .7rem; opacity: .85; }
.wa-icons { display: flex; gap: 14px; }
.chat { flex: 1; min-height: 0; padding: 10px 9px 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; overflow: hidden;
  background: #efe7de url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%23e3d8ca' stroke-width='1'%3E%3Ccircle cx='10' cy='12' r='4'/%3E%3Cpath d='M38 8l6 6M44 8l-6 6M22 40h10M27 35v10M48 42a5 5 0 1 0 0.1 0'/%3E%3C/g%3E%3C/svg%3E"); }
.msg { position: relative; max-width: 80%; padding: 5px 8px 3px; border-radius: 9px; font-size: .73rem; line-height: 1.65; color: #111b21; box-shadow: 0 1px .5px rgba(11,20,26,.13); animation: pop .3s ease both; }
.msg.in { align-self: flex-start; background: #fff; border-top-right-radius: 2px; }
.msg.out { align-self: flex-end; background: #d9fdd3; border-top-left-radius: 2px; }
.msg small { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 1px; font-size: .6rem; color: #667781; }
.msg.out small::after { content: "✓✓"; letter-spacing: -3px; padding-inline-end: 3px; color: #53bdeb; font-size: .62rem; }
.msg.typing { color: #667781; font-style: italic; }
.msg.photo { padding: 3px; width: 72%; }
.msg.photo img { display: block; width: 100%; border-radius: 7px; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; background: #ddd; }
.msg.photo p { margin: 0; padding: 4px 6px 0; }
.msg.photo small { padding: 0 6px 2px; }
.dots3 { display: inline-flex; gap: 3px; padding: 4px 2px; }
.dots3 i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: blink 1.2s infinite; }
.dots3 i:nth-child(2) { animation-delay: .2s; } .dots3 i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.wa-in { display: flex; align-items: center; gap: 6px; padding: 5px 6px 4px; }
.wa-box { flex: 1; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 999px; background: #fff; color: #8696a0; font-size: .82rem; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-box span { flex: 1; }
.wa-box svg { width: 20px; height: 20px; fill: none; stroke: #8696a0; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-mic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #00a884; flex: 0 0 auto; }
.wa-mic svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.gesture { display: block; width: 34%; height: 4px; margin: 6px auto 8px; border-radius: 99px; background: #1b1d22; opacity: .55; }

/* Strip */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in div { padding: 20px 18px; border-inline-start: 1px solid var(--line); }
.strip-in div:first-child { border-inline-start: 0; }
.strip b { display: block; color: var(--navy); font-size: 1.1rem; }
.strip span { color: var(--muted); font-size: .84rem; }

/* Sections */
.sec { padding: 52px 0; }
.sec-tight { padding: 36px 0 52px; }
.sec-soft { background: var(--soft); }
.kicker { margin: 0 0 6px; color: var(--green-d); font-weight: 700; font-size: .85rem; }
.sec h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--navy); margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { position: relative; padding: 20px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; }
.steps h3, .feats h3 { margin: 16px 0 6px; font-size: 1.05rem; color: var(--navy); }
.steps p, .feats p { margin: 0; color: var(--muted); font-size: .9rem; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feats article { padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.feats article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eaf3fa; }
.fi svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.who span { padding: 7px 14px; font-size: .88rem !important; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; }
details { margin-bottom: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-size: 1.3rem; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Request */
.cta { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; padding: 44px; border-radius: 26px; background: linear-gradient(150deg, var(--navy), #082f52); color: #fff; }
.cta .kicker { color: #7fe0b0; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta-copy p { color: rgba(255,255,255,.78); }
.login-hint { display: inline-block; margin-top: 16px; color: #9fd0f5; font-size: .9rem; }
.form { display: grid; gap: 14px; padding: 26px; border-radius: 20px; background: #fff; color: var(--ink); }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.form small { color: var(--muted); font-weight: 400; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font: inherit; font-size: .95rem; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,118,185,.15); }
.form .invalid { border-color: #c2410c; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.status { margin: 0; min-height: 1.4em; font-size: .88rem; }
.status.ok { padding: 10px 14px; border-radius: 10px; background: #e7f5ee; color: var(--green-d); }
.status.err { color: #b4232f; }
.form button[disabled] { opacity: .6; cursor: progress; }

.start-box { align-content: start; }
.start-gift { display: block; padding: 10px 14px; border-radius: 12px; background: #e7f5ee; color: var(--green-d); }
.start-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink); font-size: .95rem; }
.start-list li::before { content: "✓"; margin-inline-end: 8px; color: var(--green); font-weight: 700; }
.help { text-align: center; color: var(--blue); font-size: .88rem; }

.cta-slim { grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 30px 36px; }
.cta-slim h2 { margin-bottom: 6px; }
.cta-slim .cta-copy p { margin: 0; }
.cta-act { display: grid; gap: 8px; justify-items: center; }
.cta-act .login-hint { margin: 0; }
.chat.fade { opacity: 0; transition: opacity .35s; }
.chat { transition: opacity .35s; }

.sec-how { padding: 40px 0 44px; }
.pill-dark { background: rgba(127,224,176,.14); color: #7fe0b0; margin-bottom: 10px; }

.need { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.need h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--navy); }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-steps li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.mini-steps span { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 4px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; }
.mini-steps b { color: var(--navy); font-size: .9rem; }
.mini-steps small { color: var(--muted); font-size: .78rem; line-height: 1.6; }
@media (max-width: 560px) { .mini-steps { grid-template-columns: 1fr; } .mini-steps li { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; } .mini-steps span { grid-row: span 2; margin: 0; } .hero-copy { padding-top: 6px; } }

/* Footer */
.foot { padding: 26px 0; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .85rem; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-in, .cta, .cta-slim { grid-template-columns: 1fr; }
  .steps, .feats { grid-template-columns: 1fr 1fr; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-in div:nth-child(3) { border-inline-start: 0; }
  .strip-in div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .top-act .btn-line { display: none; }
  .hero { padding: 18px 0 32px; }
  .hero-act .btn { flex: 1 1 100%; }
  .sec { padding: 56px 0; }
  .steps, .feats { grid-template-columns: 1fr; }
  .cta { padding: 24px 18px; border-radius: 20px; }
  .form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Mobile hero: mini live chat beside the headline (customer asks → agent replies, older bubbles drift up and fade) */
.hero-head { display: block; }
.h-chat { display: none; }
@media (max-width: 560px) {
  .hero-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px; margin: 10px 0 12px; }
  .hero-head h1 { margin: 0; font-size: clamp(1.75rem, 8.4vw, 2.2rem); line-height: 1.4; }
  .h-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 128px; overflow: hidden; padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 46%); mask-image: linear-gradient(to bottom, transparent 0, #000 46%); }
  .hb { max-width: 100%; padding: 5px 9px; border-radius: 12px; font-size: .68rem; line-height: 1.55; color: #111b21; box-shadow: 0 1px 2px rgba(11,20,26,.1); will-change: transform, opacity; }
  .hb.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-top-right-radius: 3px; }
  .hb.out { align-self: flex-end; background: #d9fdd3; border-top-left-radius: 3px; }
  .hb.out::before { content: "حاضر"; display: block; font-size: .56rem; font-weight: 700; color: var(--green-d); line-height: 1.3; }
  .hb.typing { padding: 6px 10px; }
  .hb .dots3 { padding: 2px 0; } .hb .dots3 i { width: 5px; height: 5px; }
  .hb-new { animation: hbIn .45s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes hbIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }

  /* tidy */
  .lead { font-size: .97rem; line-height: 1.85; margin-bottom: 18px; }
  .ticks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; font-size: .74rem; text-align: center; }
  .ticks li { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); line-height: 1.5; color: var(--ink); }
  .ticks li::before { margin: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e7f5ee; font-size: .7rem; }
  .need { margin-top: 22px; padding-top: 18px; }
  .demo { margin-top: 6px; }
  .who { gap: 6px; }
  .who span { padding: 6px 12px; font-size: .82rem !important; }
  .foot-in { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .sec { padding: 40px 0; }
  .sec-tight { padding: 8px 0 36px; }
  .sec h2 { margin-bottom: 16px; }
  .feats { gap: 10px; }
  .feats article { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; }
  .feats .fi { grid-row: span 2; width: 40px; height: 40px; }
  .feats h3 { margin: 0; font-size: .98rem; }
  .feats p { font-size: .84rem; line-height: 1.7; }
  .cta-slim { padding: 26px 20px; gap: 18px; text-align: center; }
  .cta-slim .pill { margin-inline: auto; }
  .cta-act { justify-items: stretch; }
  .cta-act .btn { width: 100%; }
  .cta-act .login-hint { text-align: center; }
  details summary { padding: 14px 16px; }
  details p { padding: 0 16px 16px; font-size: .9rem; }
}

/* Install-the-app button: beside the main CTA on desktop, under it on phones; hidden inside the installed app */
.btn-install { gap: 8px; color: var(--navy); background: #fff; border-color: var(--line); }
.btn-install:hover { border-color: var(--green); color: var(--green-d); }
.btn-install svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-app .btn-install { display: none; }
.install-tip { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #eaf3fa; color: var(--navy); font-size: .82rem; }

/* Brand blue accents (logo = blue + green): blue for structure/trust, green stays for actions */
.kicker { color: var(--blue); }
.btn-line, .btn-install { color: var(--blue); border-color: #bcd6ec; background: #fff; }
.btn-line:hover, .btn-install:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.top::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--green), var(--blue)); opacity: .9; }
.cta { position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--blue)); }
@media (max-width: 560px) {
  .hb.in { background: #e8f2fb; border-color: #cfe3f4; }
}
