/* CODR landing — Hero feature tiles + geometric product mock (L6). Requires tokens/base/primitives/hero.
   The mock is an illustration of the product UI (role="img"). Motion lives in hero-motion.css. LTR in every language. */

/* ============ Feature tiles ============ */
.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.hero__feature {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2);
  font: 700 0.9375rem/1.2 var(--font-display);
  color: var(--petrol);
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-0);
}
.hero__feature::before {          /* notch on the top-right corner */
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border: var(--notch-weight) solid var(--notch-color);
  border-left: 0;
  border-bottom: 0;
  pointer-events: none;
}
.hero__feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  color: #FFFFFF;
  background: var(--petrol);
}
.hero__feature-icon svg { width: 20px; height: 20px; }
@media (max-width: 479px) {
  .hero__features { flex-direction: column; }
}

/* ============ Product mock ============ */
.hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  min-width: 0;
}

.win { padding: 0; overflow: visible; }
.win__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font: 600 var(--text-xs)/1.4 var(--font-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.win__body { display: grid; gap: var(--space-3); padding: var(--space-4); }
.win__title { font: 700 var(--text-base)/1.25 var(--font-display); color: var(--petrol); }
.win__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.win__note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px dashed var(--muted);
}
.win__note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.win__note--plain { padding: 0; background: none; border: 0; color: var(--muted); }
.win__foot { padding: 0 var(--space-4) var(--space-4); font-size: var(--text-sm); line-height: 1.4; color: var(--muted); }
.avatar {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  font: 700 var(--text-xs)/1 var(--font-mono);
  color: #FFFFFF;
  background: var(--area-fe);
}

/* Modules grid */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); padding: var(--space-4); }
.mods__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 4.5rem;
  padding: var(--space-2) var(--space-3);
  font: 700 0.8125rem/1.2 var(--font-display);
  color: #FFFFFF;
  overflow-wrap: anywhere;
}
.mods__item small { font: 500 var(--text-xs)/1.3 var(--font-mono); }
.mods__item--1 { background: var(--p7); }
.mods__item--2 { background: var(--area-fe); }
.mods__item--3 { background: var(--orange); color: var(--ink); }
.mods__item--4 { background: var(--p6); }
.mods__item--5 { background: var(--p5); }
.mods__item--6 { background: var(--ink); }

/* Delivery readiness */
.ready { grid-template-columns: auto minmax(8rem, 1fr); align-items: center; gap: var(--space-4); }
.donut {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;             /* functional circle (progress), not decoration */
  background: conic-gradient(var(--orange) calc(var(--pct) * 1%), var(--concrete) 0);
}
.donut span {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  font: 800 1.375rem/1 var(--font-display);
  color: var(--petrol);
  background: var(--paper);
}
.ready__bars { display: grid; gap: var(--space-3); }
.ready__label { display: flex; justify-content: space-between; gap: var(--space-2); font-size: var(--text-sm); line-height: 1.3; color: var(--ink-2); }
.ready__label b { font: 600 var(--text-sm)/1.3 var(--font-mono); color: var(--petrol); }
.ready__bars .bar { position: relative; height: 8px; margin-top: var(--space-1); background: var(--concrete); }
.ready__bars .bar i { position: absolute; inset: 0 auto 0 0; background: var(--c, var(--p7)); }

/* Review choices: three choices across, note beside them (wraps under on narrow widths) */
.win--review .win__body { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: center; }
.review__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.review__choices .badge { justify-content: center; padding-inline: var(--space-1); }

/* Arabic glyphs read small at 12px: lift the small labels a little (size only; direction/tracking unchanged) */
:root:lang(ar) .win__head,
:root:lang(ar) .mods__item small { font-size: 0.875rem; }
:root:lang(ar) .win__note,
:root:lang(ar) .win__foot,
:root:lang(ar) .ready__label { font-size: 0.9375rem; }

/* ---- Composition ---- */
@media (max-width: 639px) {
  .win--task, .win--review { display: none; }      /* keep the mobile hero short: modules + readiness stay */
}
@media (min-width: 640px) {
  .hero__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); }
  .win--modules { grid-column: 1 / -1; grid-row: 1; }
  .win--task { grid-column: 1; grid-row: 2; align-self: start; }
  .win--ready { grid-column: 2; grid-row: 2; margin-top: var(--space-6); }   /* staggered, like floating windows */
  .win--review { grid-column: 1 / -1; grid-row: 3; }
}
