/* The public landing page (wwwroot/index.html). Same palette as the back office and the app (CLAUDE.md, brand/STORY.md):
   the Awiyid teal is the brand, the sand is a small warm accent (the lozenge band, the scene, the main call to action
   on dark teal), the page a light grey. Start/end properties only, so Arabic and Darija mirror (dir="rtl"). */

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/brand/fonts/IBMPlexSansArabic-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/brand/fonts/IBMPlexSansArabic-SemiBold.ttf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/brand/fonts/IBMPlexSansArabic-Bold.ttf"); font-weight: 700; font-display: swap; }

:root {
  --brand: #0e7490; --brand-dark: #155e75; --brand-deep: #083344; --brand-light: #e3f4f8;
  --sand: #e9b872; --clay: #c2703d; --sand-text: #9a5528;
  --page: #f3f5f9; --ink: #0f172a; --muted: #475569; --line: #e2e8f0; --white: #fff;
  --radius: 16px;
  --lozenges: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Cpath d='M8 1l3 3-3 3-3-3z' fill='none' stroke='%23e9b872' stroke-width='1.2'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 17px/1.65 "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; color: var(--ink); background: var(--page); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--brand-deep); }
h3 { font-size: 19px; color: var(--brand-deep); }
p { margin: 0 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--sand-text); margin-bottom: 8px; }
html[dir="rtl"] .kicker { text-transform: none; letter-spacing: 0; font-size: 15px; }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; }

/* Buttons */
.btn { display: inline-block; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 12px 22px; border: 2px solid transparent; }
.btn-sand { background: var(--sand); color: var(--brand-deep); }
.btn-sand:hover { background: #f0c88c; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo img { display: block; height: 35px; width: auto; }
.menu { display: flex; gap: 20px; margin-inline-start: auto; }
.menu a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.menu a:hover { color: var(--brand); }
.langs { display: flex; gap: 4px; }
.langs a { font-size: 14px; text-decoration: none; color: var(--muted); padding: 4px 8px; border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 55%, var(--brand-deep) 100%); }
.hero::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 8px; background: var(--lozenges) repeat-x; opacity: .7; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 8px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: #fff; margin-bottom: 16px; }
.hero .kicker { color: var(--sand); }
.hero .lead { color: #d7eef4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.free-line { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.free-line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 4px rgba(233, 184, 114, .25); }
.hero .scene { display: block; width: 100%; height: auto; margin-top: -60px; position: relative; }
html[dir="rtl"] .hero .scene { transform: scaleX(-1); }
.hero-phone { justify-self: center; position: relative; z-index: 2; margin-bottom: -40px; }

/* Phone frame around the app screenshots */
.phone { margin: 0; width: min(300px, 80vw); aspect-ratio: 1 / 2; border-radius: 36px; padding: 10px; background: #0b1f2a;
  box-shadow: 0 24px 60px rgba(8, 51, 68, .35), inset 0 0 0 2px #1f3b48; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }

/* The name */
.name { background: #fff; border-bottom: 1px solid var(--line); }
.name-in { display: flex; align-items: center; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.name .say { font-size: clamp(40px, 6vw, 64px); font-weight: 700; color: var(--brand); margin: 0; letter-spacing: -.02em; position: relative; padding-bottom: 10px; }
.name .say::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 8px; background: var(--lozenges) repeat-x; }
.name h2 { font-size: 24px; margin-bottom: 6px; }
.name p { color: var(--muted); margin: 0; }

/* Sections */
.block { padding: 72px 0; }
.block.tint { background: var(--brand-light); }
.block.deep { background: var(--brand-deep); color: #e6f3f6; }
.block.deep h2, .block.deep h3 { color: #fff; }
.block.deep .kicker { color: var(--sand); }
.grid { display: grid; gap: 18px; margin-top: 32px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card.glass { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.card.glass p { color: #cfe6ec; }
.card .more { display: inline-block; margin-top: 12px; color: var(--sand); font-weight: 600; }
.problem .icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fbf1e3; margin-bottom: 14px; }
.problem .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--clay); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Solution: screenshot + features */
.feature { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.feature.reverse { grid-template-columns: 1fr auto; }
.feature.reverse .phone { order: 2; }
.feature .phone { width: min(260px, 70vw); }
.feature-list { display: grid; gap: 14px; }
.item { background: #fff; border-radius: var(--radius); padding: 20px 22px; border: 1px solid #cfe6ec; }
.item p { margin: 0; color: var(--muted); }
.item.highlight { border-inline-start: 5px solid var(--sand); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Story */
.story { background: #fff; position: relative; }
.story::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 8px; background: var(--lozenges) repeat-x; }
.story-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.story p { color: #334155; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.values li { border-inline-start: 3px solid var(--sand); padding: 4px 18px; }
.values h3 { font-size: 17px; margin-bottom: 4px; }
.values p { margin: 0; color: var(--muted); font-size: 16px; }

/* FAQ */
details { background: #fff; border: 1px solid #cfe6ec; border-radius: 12px; padding: 0 20px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; color: var(--brand-deep); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }
details .more { display: inline-block; margin-bottom: 16px; font-weight: 600; }

/* Get the app */
.get { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; text-align: center; position: relative; }
.get::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 8px; background: var(--lozenges) repeat-x; opacity: .7; }
.get h2 { color: #fff; }
.get .lead { color: #d7eef4; margin: 0 auto 24px; }
.get .soon { display: inline-block; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 10px 20px; margin: 0; }

/* Footer */
.foot { background: var(--brand-deep); color: #b6d6de; padding: 28px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot img { height: 32px; width: auto; }
.foot .slogan { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-inline-start: auto; }
.foot a { color: #e6f3f6; font-size: 15px; }

/* Who is reading: workshop (default) or supplier. Each block says its audience; the other one is hidden. */
html[data-audience="supplier"] [data-audience="shop"],
html:not([data-audience="supplier"]) [data-audience="supplier"] { display: none !important; }
.audience { background: #fff; border-bottom: 1px solid var(--line); }
.audience-in { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.audience-label { font-weight: 600; color: var(--muted); font-size: 15px; }
.switch { display: inline-flex; background: var(--brand-light); border-radius: 999px; padding: 4px; gap: 4px; }
.switch a { text-decoration: none; color: var(--brand-dark); font-weight: 600; font-size: 15px; padding: 8px 18px; border-radius: 999px; }
.switch a[aria-current="true"] { background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(8, 51, 68, .25); }

/* Supplier hero: the chain from the workshops' orders to the delivery. */
.flow { list-style: none; margin: 0 0 24px; padding: 18px; display: grid; gap: 10px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px; position: relative; z-index: 2; }
.flow li { display: flex; gap: 14px; align-items: center; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; }
.flow li:nth-child(3) { box-shadow: inset 4px 0 0 var(--sand); }
html[dir="rtl"] .flow li:nth-child(3) { box-shadow: inset -4px 0 0 var(--sand); }
.flow strong { display: block; color: var(--brand-deep); }
.flow span:not(.ficon) { display: block; font-size: 15px; color: var(--muted); }
.ficon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-light); }
.ficon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sup-hero .hero-in { padding-bottom: 0; }
.sup-hero .scene { margin-top: -90px; }
#sup-solution .grid .item h3 { margin-bottom: 6px; }
.soon-card { display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding: 20px 22px; border-radius: var(--radius);
  background: #fff; border: 1px dashed var(--brand); }
.soon-card h3 { margin-bottom: 4px; }
.soon-card p { margin: 0; color: var(--muted); }
.badge { flex: none; background: var(--sand); color: var(--brand-deep); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }

/* "Become a supplier" form, on the dark teal band. */
.apply { max-width: 460px; margin: 0 auto; text-align: start; display: grid; gap: 14px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; padding: 22px; }
.apply label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: #fff; }
.apply input[type=text], .apply input[type=tel] { font: inherit; font-weight: 400; padding: 11px 14px; border-radius: 12px; border: 1px solid transparent;
  background: #fff; color: var(--ink); }
.apply input:focus { outline: 3px solid var(--sand); outline-offset: 1px; }
.apply input[readonly] { background: #e6f3f6; }
html[dir="rtl"] .apply input[type=tel] { text-align: end; }
.apply label.same { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.apply label.same input { width: 18px; height: 18px; accent-color: var(--sand); }
.apply button { font: inherit; font-weight: 700; border: 0; cursor: pointer; justify-self: start; }
.apply button:disabled { opacity: .6; cursor: default; }
.apply-result { margin: 0; font-weight: 600; min-height: 1.2em; }
.apply-result.ok { color: #bbf7d0; }
.apply-result.bad { color: #fecaca; }
.apply-note { margin: 0; font-size: 14px; color: #b6d6de; }

/* Smaller screens */
@media (max-width: 980px) {
  .menu { display: none; }
  .langs { margin-inline-start: auto; }
  .grid.four, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr; }
  .story-in { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-in { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-phone { width: min(240px, 70vw); margin-bottom: -30px; }
  .hero .scene { margin-top: -20px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature .phone, .feature.reverse .phone { order: 0; justify-self: center; width: min(220px, 64vw); }
  .name-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .block { padding: 52px 0; }
  .foot nav { margin-inline-start: 0; }
}
@media (max-width: 520px) {
  .switch a { padding: 7px 12px; font-size: 14px; }
  .audience-label { display: none; }
  .soon-card { flex-direction: column; }
  .grid.four, .steps { grid-template-columns: 1fr; }
  .top-in { gap: 10px; }
  .logo img { height: 28px; }
  .langs a { padding: 4px 6px; font-size: 13px; }
}
