:root {
  --concrete: #e3e7e6;
  --concrete-2: #d5dbda;
  --asphalt: #1b1f22;
  --steel: #56626a;
  --hivis: #ffc52e;
  --paper: #ffffff;
  --stamp: #c4372c;
  --chat-bg: #ebe4d9;
  --bubble-in: #ffffff;
  --bubble-out: #d6f5c6;
  --chat-head: #10584f;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--asphalt);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--asphalt); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(44px, 6.6vw, 70px); max-width: 13ch; }
h2 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 14px; }
h3 { font-size: 26px; margin-bottom: 6px; }
p { margin: 0 0 12px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--asphalt); color: #fff; border: 0; border-radius: 10px;
  padding: 13px 20px; font-size: 16px; cursor: pointer;
}
.btn:hover { background: #000; }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn-ghost {
  background: none; border: 1.5px solid var(--asphalt); color: var(--asphalt);
  border-radius: 8px; padding: 8px 14px; font: 600 14px var(--body); cursor: pointer; margin-top: 12px;
}

/* header */
.top { border-bottom: 1px solid var(--concrete-2); }
.top-row { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 28px; text-decoration: none; letter-spacing: 0.01em; }
.brand-note { color: var(--steel); font-size: 14px; display: none; }
.top .btn { margin-left: auto; }
@media (min-width: 560px) { .brand-note { display: inline; } }

/* hero */
.hero { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 56px; }
.lede { font-size: 19px; max-width: 34em; margin-top: 18px; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.facts li { position: relative; padding-left: 22px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 10px; height: 10px; background: var(--hivis); outline: 2px solid var(--asphalt); }
.hint { color: var(--steel); font-size: 14px; margin-top: 22px; }
.stage { display: grid; gap: 18px; }
@media (min-width: 640px) { .stage { grid-template-columns: minmax(0, 350px) minmax(220px, 1fr); align-items: start; } }
@media (min-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr) 620px; align-items: start; padding-top: 52px; gap: 36px; }
  .stage { grid-template-columns: 345px 1fr; }
}

/* phone */
.phone {
  background: var(--chat-bg); border: 8px solid var(--asphalt); border-radius: 30px;
  overflow: hidden; display: flex; flex-direction: column; height: 600px; max-height: 82vh;
  box-shadow: 0 18px 40px -22px rgba(27, 31, 34, 0.55);
}
.chat-head { background: var(--chat-head); color: #fff; display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--hivis); color: var(--asphalt); display: grid; place-items: center; font: 700 15px var(--display); flex: none; }
.chat-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.chat-sub { font-size: 12px; opacity: 0.85; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px 10px 6px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.day { align-self: center; background: rgba(255,255,255,0.75); font-size: 12px; color: var(--steel); padding: 3px 10px; border-radius: 7px; margin: 4px 0; }
.msg { max-width: 84%; min-width: 96px; padding: 7px 10px 18px; border-radius: 10px; font-size: 14.5px; line-height: 1.42; position: relative; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
.msg.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 3px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 3px; }
.msg time { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: #6b7479; }
.msg.note { align-self: center; background: #fff6d6; font-size: 12.5px; padding: 6px 10px; max-width: 92%; min-width: 0; text-align: center; }
.typing { align-self: flex-start; background: var(--bubble-in); border-radius: 10px; padding: 10px 12px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3a8; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 8px; background: var(--chat-bg); }
.chips button { flex: none; border: 1px solid #c9c2b6; background: #fff; border-radius: 16px; padding: 5px 11px; font: 500 13px var(--body); cursor: pointer; color: var(--asphalt); }
.composer { display: flex; gap: 8px; padding: 8px; background: #f0f0f0; }
.composer input { flex: 1; min-width: 0; border: 0; border-radius: 20px; padding: 10px 14px; font: 15px var(--body); background: #fff; }
.composer input:disabled { background: #f7f7f7; }
.composer button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--chat-head); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.composer button:disabled { opacity: 0.45; cursor: default; }

/* owner side: job cards */
.owner-title { font-size: 24px; margin-bottom: 10px; }
.cards { display: grid; gap: 14px; }
.cards-empty { color: var(--steel); font-size: 14px; border: 1.5px dashed #aab4b8; border-radius: 10px; padding: 18px 14px; margin: 0; }
.job {
  background: var(--paper); position: relative; padding: 22px 16px 46px; border-radius: 4px;
  box-shadow: 0 10px 24px -16px rgba(27,31,34,0.6);
  transform-origin: top center;
}
.job::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--asphalt) 0 10px, var(--hivis) 10px 20px);
  border-radius: 4px 4px 0 0;
}
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1.5px solid var(--asphalt); padding-bottom: 6px; margin-bottom: 8px; }
.job-kind { font: 700 22px var(--display); }
.job-ref { font: 600 14px var(--body); color: var(--steel); }
.job dl { display: grid; grid-template-columns: 70px 1fr; gap: 3px 10px; margin: 0; font-size: 14px; }
.job dt { color: var(--steel); }
.job dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.stamp {
  position: absolute; right: 14px; bottom: 10px; transform: rotate(-7deg);
  border: 2.5px solid var(--stamp); color: var(--stamp); font: 700 18px var(--display);
  padding: 0 8px; border-radius: 4px; opacity: 0.85; letter-spacing: 0.04em;
}
.job.alert::before { background: repeating-linear-gradient(-45deg, var(--stamp) 0 10px, #fff 10px 20px); }
.job.alert .stamp { content: none; }
.job.enter { animation: drop 0.55s cubic-bezier(.2,.9,.3,1.2); }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }

/* handles */
.handles { background: var(--asphalt); color: #fff; padding: 56px 0; }
.handles .section-lede { color: #c7cfd3; }
.section-lede { max-width: 38em; font-size: 18px; }
.quotes { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quotes li { background: #262b2f; border-radius: 10px; padding: 14px 16px; display: grid; gap: 6px; }
.quotes q { quotes: none; font-size: 17px; }
.quotes span { color: var(--hivis); font-size: 14px; font-weight: 500; }
.quotes li.to-you { background: #3a2422; }
.quotes li.to-you span { color: #ffb4a8; }

/* what you get */
.get { padding-top: 56px; padding-bottom: 40px; }
.get-grid { display: grid; gap: 22px 36px; margin-top: 18px; }
@media (min-width: 760px) { .get-grid { grid-template-columns: 1fr 1fr; } }
.get-grid p { color: #3a444a; max-width: 32em; }

/* pricing */
.pricing { background: var(--hivis); padding: 56px 0; }
.pricing-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .pricing-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.plan { background: var(--paper); border: 2px solid var(--asphalt); border-radius: 12px; padding: 22px 20px; }
.plan-price { font: 700 64px/1 var(--display); }
.plan-price .cur { font-size: 26px; vertical-align: 0.9em; }
.plan-price .per { font: 500 17px var(--body); color: var(--steel); margin-left: 4px; }
.plan-setup { margin-top: 8px; font-weight: 500; }
.plan ul { padding-left: 20px; margin: 14px 0 20px; }
.plan li { margin-bottom: 4px; }
.plan-small { font-size: 13px; color: var(--steel); margin: 12px 0 0; }

/* steps, faq */
.steps { padding-top: 56px; }
.steps ol { padding-left: 24px; margin: 12px 0 0; max-width: 40em; display: grid; gap: 10px; font-size: 18px; }
.faq { padding-top: 48px; padding-bottom: 64px; }
.faq details { max-width: 780px; }
.faq details { border-top: 1.5px solid #b9c2c4; padding: 12px 0; }
.faq details:last-of-type { border-bottom: 1.5px solid #b9c2c4; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq details p { margin: 8px 0 0; color: #3a444a; }

.foot { border-top: 1px solid var(--concrete-2); padding: 22px 0 30px; color: var(--steel); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .job.enter, .typing i { animation: none; }
  .chat-body { scroll-behavior: auto; }
}
