/* STARS public website — starsrad.org. English and Arabic pages share this stylesheet.
   Identity: charcoal and blue from the logo, a calibration-strip along the top (the grey steps
   on a radiology monitor), scan-wave arcs from the logo mark, and an editorial two-column layout. */
:root {
  --ink: #14171a;
  --text: #3b4148;
  --muted: #65707c;
  --line: #dfe4ea;
  --soft: #f3f5f8;
  --white: #ffffff;
  --brand: #0a6ebe;
  --brand-dark: #08528e;
  --brand-tint: #e6f2fb;
  --sky: #5bb6f0;
  --char-1: #101316;
  --char-2: #1b2026;
  --note-bg: #fff6d6;
  --note-line: #b8921a;
  --radius: 10px;
  --measure: 62ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --shadow: 0 1px 2px rgba(20, 23, 26, .05), 0 6px 18px rgba(20, 23, 26, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: "Inter", "Readex Pro", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.65; overflow-x: clip; }
:lang(ar) body, body:lang(ar) { line-height: 1.85; }
h1, h2, h3, .brand, .eyebrow, .button, .kicker { font-family: "Outfit", "Readex Pro", "Inter", system-ui, sans-serif; }
h1, h2, h3 { color: var(--ink); }
a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* The calibration strip: eleven grey steps, black to white, along the top of every page. */
body::before {
  content: ""; display: block; height: 8px;
  background: linear-gradient(90deg, #000 0 9.09%, #1a1a1a 0 18.18%, #333 0 27.27%, #4d4d4d 0 36.36%, #666 0 45.45%, #808080 0 54.54%, #999 0 63.63%, #b3b3b3 0 72.72%, #ccc 0 81.81%, #e6e6e6 0 90.9%, #fff 0);
}

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.bleed { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }

/* ---------- Header ---------- */
header.site { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.35rem; letter-spacing: 0.08em; color: var(--brand); text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
header.site nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
header.site nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
header.site nav a:hover { color: var(--brand); }
header.site nav a.button { color: #fff; background: var(--brand); border-color: var(--brand); }
header.site nav a.button:hover { background: var(--brand-dark); color: #fff; }
header.site.on-dark .brand { color: #fff; }
header.site.on-dark nav a { color: #d5dbe2; }
header.site.on-dark nav a:hover { color: #fff; }
header.site.on-dark nav a.button { color: #fff; background: transparent; border-color: rgba(255,255,255,.5); }
header.site.on-dark nav a.button:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Buttons ---------- */
.button { display: inline-block; padding: 0.7rem 1.3rem; border: 1px solid var(--brand); border-radius: 8px; color: var(--brand); text-decoration: none; font-weight: 600; white-space: nowrap; background: transparent; transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.button:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.button.solid { background: var(--brand); color: #fff; }
.button.solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.hero .button.solid { background: #fff; border-color: #fff; color: var(--ink); }
.hero .button.solid:hover { background: #e6eaef; border-color: #e6eaef; color: var(--ink); }
.hero .button.ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.hero .button.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Hero: charcoal, two columns, scan-wave arcs ---------- */
.hero-shell {
  margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%);
  background: radial-gradient(45% 70% at 82% 45%, rgba(10, 110, 190, .32), transparent 70%), linear-gradient(135deg, var(--char-1) 0%, var(--char-2) 100%);
  color: #c4ccd5;
}
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.kicker { margin: 0 0 1.1rem; display: flex; align-items: center; gap: 0.75rem; color: var(--sky); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.03em; }
.kicker::before { content: ""; width: 2.2rem; height: 2px; background: var(--sky); }
.hero h1 { margin: 0; color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; max-width: 16ch; }
:lang(ar) .hero h1 { line-height: 1.4; letter-spacing: 0; max-width: 20ch; }
.grad { display: block; color: var(--sky); }
.hero p.lead { max-width: 50ch; margin: 1.4rem 0 1.9rem; font-size: 1.15rem; color: #c4ccd5; }
.facts { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.facts li { padding-top: 0.8rem; border-top: 2px solid rgba(255,255,255,.2); font-size: 0.92rem; line-height: 1.45; }
.facts strong { display: block; color: #fff; font-family: "Outfit", "Readex Pro", sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.15rem; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; display: grid; place-items: center; }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.arcs path { fill: none; stroke: var(--sky); stroke-linecap: round; stroke-width: 14; }
.arcs path:nth-child(1) { opacity: .95; }
.arcs path:nth-child(2) { opacity: .7; }
.arcs path:nth-child(3) { opacity: .48; }
.arcs path:nth-child(4) { opacity: .3; }
.hero-visual .hero-logo { position: relative; width: 52%; height: auto; margin-right: 38%; }

/* ---------- Sections: editorial two columns ---------- */
section.block { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.block-grid { display: grid; grid-template-columns: minmax(13rem, 1fr) 3fr; column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.block-grid > .eyebrow { grid-column: 1; grid-row: 1; align-self: end; margin: 0 0 0.4rem; }
.block-grid > h2 { grid-column: 1; grid-row: 2; margin: 0; }
.block-grid > :last-child:not(h2):not(.eyebrow) { grid-column: 2; grid-row: 1 / span 2; }
.block-grid.stack { display: block; }
.service .block-grid > .service-head { grid-column: 1; grid-row: 1; }
.service .block-grid > div:last-child, .band-dark .block-grid > div:last-child { grid-column: 2; grid-row: 1; }
.service-head, .band-dark .service-head { position: sticky; top: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { margin: 0 0 0.5rem; color: var(--brand); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
:lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.block h2, .band-dark h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
:lang(ar) .block h2, :lang(ar) .band-dark h2 { line-height: 1.4; letter-spacing: 0; }
.block h3 { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 600; }
.block p { margin: 0 0 1rem; }
.block .intro, .band-dark .intro { max-width: var(--measure); font-size: 1.15rem; color: var(--text); }
.chip { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--brand-tint); margin-bottom: 1rem; }
.icon { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alt { background: var(--soft); }

/* What we do: five bordered tiles */
.section-title { margin: 0 0 2rem; max-width: 22ch; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.15; }
:lang(ar) .section-title { line-height: 1.4; }
.overview { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 3px solid var(--ink); }
.overview li { border-bottom: 1px solid var(--line); }
.overview li + li { border-inline-start: 1px solid var(--line); }
.overview a { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 1.4rem 1.2rem 1.6rem; color: var(--text); text-decoration: none; font-size: 0.93rem; transition: background-color 200ms ease; }
.overview a:hover { background: var(--soft); }
.overview a:hover strong { color: var(--brand); }
.overview strong { color: var(--ink); font-family: "Outfit", "Readex Pro", sans-serif; font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.overview .icon { margin-bottom: 0.4rem; }

/* Checklist */
.checklist { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.75rem; max-width: var(--measure); }
.checklist li { position: relative; padding-inline-start: 1.9rem; }
.checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.35em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6ebe' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Benefits: numbered-free tiles with a blue left edge */
.benefits { list-style: none; margin: 1.75rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.benefits li { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); border-radius: var(--radius); padding: 1.2rem 1.3rem 1.35rem; color: var(--muted); font-size: 0.97rem; box-shadow: var(--shadow); transition: transform 200ms ease, box-shadow 200ms ease; }
.benefits li:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(10, 110, 190, .14); }
.benefits strong { display: block; color: var(--ink); font-family: "Outfit", "Readex Pro", sans-serif; font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.4rem; }

/* How it works: a horizontal line of four stops */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: 1.1rem 0 0; border-top: 3px solid var(--brand); color: var(--muted); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 0.3rem; color: var(--brand); font-family: "Outfit", sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1; }
.steps strong { display: block; color: var(--ink); font-family: "Outfit", "Readex Pro", sans-serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 0.25rem; }

/* AI band: brand blue */
.band-dark { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); padding-block: clamp(3.5rem, 8vw, 5.5rem); background: linear-gradient(135deg, #08528e 0%, #0a6ebe 60%, #1186d6 100%); color: #e3f0fb; }
.band-dark h2 { color: #fff; }
.band-dark .eyebrow { color: #bfe3fb; }
.band-dark .intro { color: #e3f0fb; }
.band-dark .chip { background: rgba(255,255,255,.16); }
.band-dark .icon { stroke: #fff; }
.band-dark p { max-width: var(--measure); }
.band-dark .checklist li::before { background: rgba(255,255,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.band-dark .principle { padding: 1rem 1.25rem; border-inline-start: 4px solid #fff; background: rgba(255,255,255,.12); border-radius: 0 var(--radius) var(--radius) 0; color: #fff; font-weight: 600; }
:lang(ar) .band-dark .principle { border-radius: var(--radius) 0 0 var(--radius); }

/* Learning, audience */
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.75rem 0 1.25rem; }
.learn-grid > div { padding-top: 1rem; border-top: 3px solid var(--charcoal, #3a3b3d); }
.learn-grid p { color: var(--muted); margin: 0; }
.audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.audience li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem; color: var(--muted); box-shadow: var(--shadow); }
.audience strong { display: block; color: var(--ink); font-family: "Outfit", "Readex Pro", sans-serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 0.25rem; }

/* Compare: on your own vs with STARS */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare .col { padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare h3 { margin: 0 0 1rem; font-size: 1.25rem; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.compare li { position: relative; padding-inline-start: 1.9rem; }
.compare li::before { position: absolute; inset-inline-start: 0; top: 0.05em; width: 1.3rem; height: 1.3rem; display: grid; place-items: center; border-radius: 50%; font-size: 0.8rem; font-weight: 700; line-height: 1.3rem; text-align: center; }
.compare .alone { color: var(--muted); }
.compare .alone h3 { color: var(--muted); }
.compare .alone li::before { content: "✕"; background: #eceff3; color: #7b8794; }
.compare .stars { border: 2px solid var(--brand); box-shadow: 0 16px 36px rgba(10, 110, 190, .16); }
.compare .stars li { color: var(--ink); }
.compare .stars h3 { color: var(--brand); }
.compare .stars li::before { content: "✓"; background: var(--brand); color: #fff; }

/* Contact */
dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 2rem; margin: 1.25rem 0 0; padding: 0; }
dl.contact dt { color: var(--muted); }
dl.contact dd { margin: 0; font-weight: 600; }

/* Placeholders (removed from the live build) */
.todo { display: block; margin: 1rem 0; padding: 0.75rem 1rem; max-width: var(--measure); background: var(--note-bg); border: 2px dashed var(--note-line); border-radius: 8px; color: #5a4600; font-size: 0.95rem; }
.todo::before { content: "To be provided by STARS: "; font-weight: 600; }
:lang(ar) .todo::before { content: "تقدّمه STARS: "; }

/* Support / legal pages */
.draft-banner { margin-block: 1.5rem 2rem; padding: 1rem 1.25rem; border: 2px solid #9b2c2c; background: #fdecec; color: #6b1d1d; border-radius: 8px; max-width: var(--measure); font-weight: 500; }
article.doc { padding-block: 2.5rem 4rem; }
article.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; font-weight: 700; line-height: 1.2; }
article.doc h2 { font-size: 1.2rem; margin: 2.25rem 0 0.5rem; font-weight: 600; }
article.doc p, article.doc li { max-width: var(--measure); }

/* ---------- Footer: charcoal ---------- */
footer.site { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); padding-block: 2.5rem 3rem; background: var(--char-1); color: #8f99a5; font-size: 0.95rem; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
footer.site a { color: #c4ccd5; }
footer.site a:hover { color: #fff; }
footer.site p { margin: 0.5rem 0 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(70%, 300px); justify-self: start; }
  .overview { grid-template-columns: repeat(2, 1fr); }
  .overview li:nth-child(odd) { border-inline-start: 0; }
  .block-grid { display: block; }
  .service-head, .band-dark .service-head { position: static; flex-direction: row; align-items: center; gap: 0.9rem; margin-bottom: 0.5rem; }
  .service-head .chip { margin-bottom: 0; }
  .block-grid > .eyebrow { margin-top: 0; }
  .facts, .learn-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .benefits, .audience, .steps { grid-template-columns: 1fr; }
  dl.contact { grid-template-columns: 1fr; gap: 0.15rem; }
  dl.contact dd { margin-bottom: 0.7rem; }
}

/* ---------- Motion (off for visitors who ask for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 700ms cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .hero-copy > :nth-child(5) { animation-delay: 320ms; }
  .hero-visual .hero-logo { animation: settle 900ms cubic-bezier(.2,.7,.2,1) 150ms both; }
  .arcs path { animation: scan 3.6s ease-in-out infinite; }
  .arcs path:nth-child(2) { animation-delay: .25s; }
  .arcs path:nth-child(3) { animation-delay: .5s; }
  .arcs path:nth-child(4) { animation-delay: .75s; }
  .motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .motion .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes scan { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .25; } }
