/* Amplify Inc. — brand values from the official brandbook (p.19, p.22) */
@font-face { font-family: 'Fira Sans'; src: url('/fonts/FiraSans-Light.woff') format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('/fonts/FiraSans-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('/fonts/FiraSans-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('/fonts/FiraSans-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }

:root {
  --green: #345950;      /* primary */
  --cream: #F4EDD7;      /* primary */
  --orange: #CE592E;     /* secondary — accents and large display only */
  --grey: #505150;       /* secondary — long-form text */
  --paper: #F7F4EC;      /* very light warm neutral for alternating sections */
  --white: #FFFFFF;
  --track: #ECE8DE;
  --line: rgba(52, 89, 80, .18);
  --line-strong: rgba(52, 89, 80, .35);
  --cream-70: rgba(244, 237, 215, .78);
  --font: 'Fira Sans', 'Aller', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'VIP Hakm', 'SF Arabic', 'Geeza Pro', 'Segoe UI', 'Noto Sans Arabic', Tahoma, 'Fira Sans', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--grey); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="ar"] body { font-family: var(--font-ar); font-size: 1.125rem; line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
h1, h2, h3, h4 { color: var(--green); margin: 0 0 .5em; font-weight: 300; line-height: 1.12; letter-spacing: -.01em; }
html[lang="ar"] :is(h1, h2, h3, h4) { font-weight: 500; letter-spacing: 0; line-height: 1.35; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.tone-green :focus-visible, .site-footer :focus-visible, .dark :focus-visible, .cta-band :focus-visible { outline-color: var(--cream); }
::selection { background: var(--green); color: var(--cream); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--green); color: var(--cream); padding: 12px 18px; border-radius: var(--radius); font-weight: 500; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow > * { max-width: 820px; }
.narrow-text { max-width: 760px; margin-top: 2rem; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sm { padding-block: clamp(36px, 5vw, 64px); }
.tone-paper { background: var(--paper); }
.tone-green { background: var(--green); color: var(--cream-70); }
.tone-green :is(h1, h2, h3, h4) { color: var(--cream); }

/* type scale */
.display { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 300; }
html[lang="ar"] .display { font-size: clamp(2.2rem, 5.2vw, 4rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.h4 { font-size: 1.25rem; font-weight: 400; }
html[lang="ar"] .h4 { font-weight: 600; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--grey); max-width: 46ch; }
html[lang="ar"] .lead { line-height: 1.8; }
.tone-green .lead { color: var(--cream-70); }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 1.25rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--orange); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.tone-green .eyebrow { color: var(--cream); }
.small-note { font-size: .9rem; color: var(--grey); opacity: .9; }
.tone-green .small-note { color: var(--cream-70); }
.segments { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-top: 2rem; }
html[lang="ar"] .segments { letter-spacing: 0; text-transform: none; font-size: .95rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: var(--radius); font: 500 1rem/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { text-decoration: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: #2a4a42; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--green); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: var(--cream); border-color: var(--cream-70); }
.btn-outline-light:hover { background: var(--cream); color: var(--green); }
.btn-text { padding-inline: 0; min-height: 44px; color: var(--green); background: none; border: 0; border-bottom: 1.5px solid var(--orange); border-radius: 0; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 2rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; color: var(--green); flex: none; padding: 8px 0; }
.brand svg { height: 34px; width: auto; }
.nav-desktop { margin-inline-start: auto; }
.nav-desktop ul { display: flex; gap: 4px; list-style: none; }
.nav-link { display: block; padding: 10px 10px; color: var(--green); text-decoration: none; font-size: .93rem; white-space: nowrap; border-bottom: 2px solid transparent; }
html[lang="ar"] .nav-link { font-size: 1rem; }
.nav-link:hover { border-bottom-color: var(--line-strong); }
.nav-link[aria-current="page"] { border-bottom-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px; color: var(--green); text-decoration: none; font-size: .95rem; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.lang-switch:hover { background: var(--paper); border-color: var(--green); }
.lang-switch [lang="ar"], .lang-switch:lang(ar) { font-family: var(--font-ar); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--green); font: inherit; font-size: .95rem; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; inset-inline-start: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--white); max-height: calc(100vh - 76px); overflow-y: auto; }
.mobile-menu ul { list-style: none; padding-block: 12px; }
.mobile-link { display: block; padding: 14px 0; font-size: 1.25rem; color: var(--green); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-link[aria-current="page"] { color: var(--orange); }
.mobile-ctas { display: grid; gap: 12px; padding-block: 16px 32px; }

@media (max-width: 1180px) {
  .nav-desktop { display: none; }
  .header-actions { margin-inline-start: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand svg { height: 28px; }
  .menu-label { display: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; min-height: min(760px, calc(100vh - 76px)); }
.hero-copy { padding-block: clamp(56px, 8vw, 112px); align-self: center; }
.hero-title { max-width: 14ch; }
.hero-sub { max-width: 52ch; margin-top: 1rem; }
.hero-art { position: relative; background: var(--green); overflow: hidden; margin-inline-end: calc(-1 * var(--gutter)); }
.hero-art .pattern { position: absolute; inset: 0; background: var(--cream); opacity: .12; -webkit-mask: url('/img/pattern.svg') center / cover no-repeat; mask: url('/img/pattern.svg') center / cover no-repeat; animation: drift 40s linear infinite alternate; }
.hero-mark { position: absolute; inset-inline-start: 12%; bottom: 12%; width: 58%; color: var(--cream); }
.hero-art::after { content: ''; position: absolute; inset-inline-end: 0; top: 0; width: 6px; height: 34%; background: var(--orange); }
@keyframes drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.06) translate3d(-2%, 2%, 0); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 220px; margin-inline: calc(-1 * var(--gutter)); }
  .hero-mark { width: 40%; bottom: 18%; }
}

/* page hero */
.page-hero { position: relative; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero-inner { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.page-hero .lead { margin-top: 1rem; max-width: 60ch; }
.page-hero-art { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(38vw, 460px); background: var(--green); }
.page-hero-art .pattern { position: absolute; inset: 0; background: var(--cream); opacity: .14; -webkit-mask: url('/img/pattern.svg') center / cover no-repeat; mask: url('/img/pattern.svg') center / cover no-repeat; }
.page-hero .display { max-width: 18ch; }
@media (min-width: 901px) { .page-hero-inner > * { max-width: calc(100% - min(38vw, 460px) - 40px); } }
@media (max-width: 900px) { .page-hero-art { position: relative; width: auto; height: 10px; background: var(--green); } .page-hero-art .pattern { display: none; } .page-hero-art::after { content: ''; position: absolute; inset-inline-start: 0; top: 0; height: 100%; width: 30%; background: var(--orange); } .page-hero { display: flex; flex-direction: column-reverse; } }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .88rem; margin-bottom: 2rem; }
.breadcrumbs li + li::before { content: '/'; margin-inline-end: 6px; opacity: .5; }
.breadcrumbs a { color: var(--grey); }

/* sections */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow { flex-basis: 100%; margin-bottom: 0; }
.section-head .h2 { margin: 0; flex: 1 1 420px; max-width: 22ch; }
.statement { max-width: 24ch; }
.purpose .lead { margin-top: 1.5rem; }

/* capability cards */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.cap-card { border-inline-end: 1px solid var(--line); }
.cap-card:last-child { border-inline-end: 0; }
.cap-link { display: flex; flex-direction: column; height: 100%; padding: 32px 28px 36px; color: inherit; text-decoration: none; transition: background .25s var(--ease); }
.cap-link:hover { background: var(--paper); }
.tone-paper .cap-link:hover { background: var(--white); }
.cap-num { font-size: .85rem; font-weight: 500; color: var(--orange); letter-spacing: .08em; }
.cap-icon svg { width: 44px; height: 44px; margin: 28px 0 24px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cap-title { font-size: 1.45rem; font-weight: 400; margin-bottom: .5rem; }
html[lang="ar"] .cap-title { font-weight: 600; }
.cap-short { color: var(--grey); margin-bottom: 1.5rem; }
.cap-more { margin-top: auto; display: inline-flex; gap: .5em; color: var(--green); font-weight: 500; font-size: .95rem; }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: 1fr 1fr; } .cap-card:nth-child(2) { border-inline-end: 0; } .cap-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } .cap-card { border-inline-end: 0; border-bottom: 1px solid var(--line); } }

/* who */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); list-style: none; }
.who-card { padding: 32px; background: var(--white); border: 1px solid var(--line); border-top-width: 3px; border-top: 3px solid var(--green); }
.who-card:nth-child(2) { border-top-color: var(--orange); }
.who-key { display: block; font-size: 2rem; font-weight: 300; color: var(--green); margin-bottom: 1rem; }
html[lang="ar"] .who-key { font-weight: 500; }
@media (max-width: 800px) { .who-grid { grid-template-columns: 1fr; } }

/* experience */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.stats { display: grid; gap: 0; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; padding: 22px 0; border-bottom: 1px solid rgba(244, 237, 215, .25); }
.stat dd { margin: 0; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 300; color: var(--cream); line-height: 1; }
.stat dt { margin-top: .5rem; }
.exp-mark { color: var(--cream); opacity: .9; max-width: 320px; justify-self: center; width: 70%; }
@media (max-width: 800px) { .exp-grid { grid-template-columns: 1fr; } .exp-mark { width: 50%; } }

/* AI teaser */
.ai-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.signal-list { display: grid; gap: 12px; list-style: none; }
.signal { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: var(--green); color: var(--cream); font-size: 1.2rem; border-radius: var(--radius); }
.signal:nth-child(2) { margin-inline-start: 8%; } .signal:nth-child(3) { margin-inline-start: 16%; }
.signal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(206, 89, 46, .25); flex: none; }
@media (max-width: 800px) { .ai-grid { grid-template-columns: 1fr; } .signal:nth-child(n) { margin-inline-start: 0; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 28px 28px 8px 0; border-top: 2px solid var(--green); }
html[dir="rtl"] .step { padding: 28px 0 8px 28px; }
.step::before { content: ''; position: absolute; top: -7px; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.step-num { display: block; font-size: .85rem; color: var(--orange); font-weight: 500; margin-bottom: .75rem; }
.step-title { font-size: 1.6rem; font-weight: 300; }
html[lang="ar"] .step-title { font-weight: 600; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* dual cta */
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.dual-card { padding: clamp(32px, 4vw, 56px); background: var(--white); border: 1px solid var(--line); }
.dual-card.dark, .info-card.dark { background: var(--green); color: var(--cream-70); border-color: var(--green); }
.dual-card.dark :is(h2, h3), .info-card.dark :is(h2, h3) { color: var(--cream); }
.dual-card .btn { margin-top: 1rem; }
@media (max-width: 800px) { .dual-grid { grid-template-columns: 1fr; } }

/* cta band */
.cta-band { position: relative; overflow: hidden; background: var(--green); color: var(--cream-70); padding-block: clamp(56px, 8vw, 96px); }
.cta-band .h2 { color: var(--cream); max-width: 20ch; }
.cta-pattern { position: absolute; inset-block: 0; inset-inline-end: 0; width: 40%; background: var(--cream); opacity: .08; -webkit-mask: url('/img/pattern.svg') center / cover no-repeat; mask: url('/img/pattern.svg') center / cover no-repeat; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.cta-inner .btn-row { margin-top: 0; }
.cta-body { max-width: 52ch; margin: 0; }

/* about / detail */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.mv .lead { max-width: 30ch; }
.principles { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 24px); list-style: none; }
.principles.four { grid-template-columns: repeat(4, 1fr); }
.principle { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.principle .h4 { margin-top: .75rem; }
@media (max-width: 1000px) { .principles, .principles.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles, .principles.four { grid-template-columns: 1fr; } }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.tick-list { list-style: none; display: grid; gap: 0; }
.tick-list li { position: relative; padding: 16px 0; padding-inline-start: 36px; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--green); }
.tick-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 1.45em; width: 18px; height: 2px; background: var(--orange); }
.tick-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 560px) { .tick-grid { grid-template-columns: 1fr; } }
.info-card { padding: 28px 32px; background: var(--white); border: 1px solid var(--line); margin-bottom: 16px; }
.info-card p:last-child { margin-bottom: 0; }
.related-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); color: var(--green); text-decoration: none; }
.related-link:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .related-link:hover .arrow { transform: scaleX(-1) translateX(4px); }
.more-list { list-style: none; margin-top: 1rem; }

.pager { border-top: 1px solid var(--line); }
.pager-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pager-link, .pager-all { display: inline-flex; gap: .6em; align-items: center; color: var(--green); text-decoration: none; padding: 10px 0; }
.pager-all { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
html[lang="ar"] .pager-all { text-transform: none; letter-spacing: 0; }
html[dir="rtl"] .arrow.back { transform: scaleX(-1); }

/* insights */
.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); list-style: none; }
.article-card a { display: flex; flex-direction: column; height: 100%; padding: 32px; background: var(--white); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.article-card a:hover { border-color: var(--green); transform: translateY(-3px); }
.article-card .h3 { margin-top: 1rem; }
@media (max-width: 900px) { .article-list { grid-template-columns: 1fr; } }
.prose { font-size: 1.15rem; }
.prose p { max-width: 68ch; }
.prose > p:first-child { font-size: 1.35rem; color: var(--green); line-height: 1.5; }
.legal.prose > p:first-child { font-size: inherit; color: inherit; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-inline-start: 1.25em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.takeaways { margin-top: 3rem; padding: 32px; background: var(--paper); border-inline-start: 3px solid var(--orange); }
.takeaways ul { padding-inline-start: 1.2em; }

/* forms */
.form { margin-top: 1.5rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; color: var(--green); margin-bottom: 6px; font-size: .95rem; }
.opt { font-weight: 400; color: var(--grey); }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 1rem; color: #23302c; background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
.field textarea { resize: vertical; min-height: 120px; }
.field :is(input, select, textarea):focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: #a33a16; }
.field-error { color: #9a3412; font-size: .9rem; margin: 6px 0 0; font-weight: 500; }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--green); }
.field-check label { font-weight: 400; color: var(--grey); }
.field-check .field-error { grid-column: 2; }
.form-note { font-size: .92rem; }
.form-summary { padding: 14px 18px; border: 1.5px solid #9a3412; color: #7c2d12; background: #fff5ee; margin-bottom: 18px; border-radius: var(--radius); }
.form-status { margin-top: 16px; }
.form-status .ok { padding: 18px 20px; background: var(--green); color: var(--cream); border-radius: var(--radius); }
.form-status .err { padding: 14px 18px; background: #fff5ee; color: #7c2d12; border: 1.5px solid #9a3412; border-radius: var(--radius); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 8px; }
.form.is-sent .field-grid, .form.is-sent .field, .form.is-sent .form-actions, .form.is-sent .form-note { display: none; }

.book-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
.book-action .btn { margin-bottom: 1rem; }
.email-link { font-size: 1.25rem; }

/* health check chooser */
.choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.5rem 0; }
.choose-card { padding: 28px 32px; background: var(--white); border: 1.5px solid var(--line); }
.choose-card.selected { border-color: var(--green); }
@media (max-width: 760px) { .choose-grid { grid-template-columns: 1fr; } }

/* assessment */
.assessment-section { padding-top: 0; }
.assessment-app, .results { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 56px); }
.a-progress { margin-bottom: 28px; }
.a-progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; margin-bottom: 8px; color: var(--green); }
.a-bar { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; }
.a-bar > span { display: block; height: 100%; background: var(--green); transition: width .4s var(--ease); }
.a-dim-title { margin-bottom: .25rem; }
.a-scale-hint { margin-bottom: 1.5rem; }
.q { border: 0; padding: 0; margin: 0 0 28px; }
.q legend { font-size: 1.15rem; color: var(--green); margin-bottom: 12px; padding: 0; font-weight: 400; }
html[lang="ar"] .q legend { font-weight: 500; }
.q-options { display: grid; grid-template-columns: repeat(5, 1fr) 1.2fr; gap: 8px; }
.q-opt { position: relative; }
.q-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.q-opt span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; height: 100%; padding: 10px; text-align: center; font-size: .82rem; line-height: 1.25; border: 1.5px solid var(--line-strong); border-radius: var(--radius); color: var(--grey); background: var(--white); transition: all .15s; }
html[lang="ar"] .q-opt span { font-size: .9rem; }
.q-opt strong { font-size: 1.2rem; font-weight: 500; color: var(--green); }
.q-opt input:checked + span { background: var(--green); border-color: var(--green); color: var(--cream); }
.q-opt input:checked + span strong { color: var(--cream); }
.q-opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.q-opt.na span { font-style: normal; }
@media (max-width: 760px) { .q-options { grid-template-columns: repeat(5, 1fr); } .q-opt.na { grid-column: 1 / -1; } .q-opt span { min-height: 56px; padding: 6px; font-size: .72rem; } .q-opt span em { display: none; } }
.q-opt span em { font-style: normal; }
.a-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.a-error { color: #9a3412; font-weight: 500; }
.review-list { list-style: none; }
.review-dim { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-dim-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-dim ul { list-style: none; margin-top: 8px; }
.review-dim li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: .95rem; }
.review-dim li b { font-weight: 500; color: var(--green); white-space: nowrap; }

.r-overall { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.r-score { font-size: clamp(4rem, 10vw, 6.5rem); font-weight: 300; line-height: .9; color: var(--green); }
.r-score small { display: block; font-size: .95rem; margin-top: 8px; color: var(--grey); }
.r-band { display: inline-block; padding: 6px 14px; background: var(--green); color: var(--cream); border-radius: 999px; font-size: .95rem; margin-bottom: 10px; }
.r-bars { list-style: none; margin: 28px 0; display: grid; gap: 18px; }
.r-bar-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--green); }
.r-bar-head b { font-weight: 500; }
.r-track { position: relative; height: 12px; background: var(--track); border-radius: 6px; overflow: hidden; }
.r-fill { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--green); border-radius: 6px; }
.r-bars li.low .r-fill { background: var(--orange); }
.r-bars li.na .r-track { background: repeating-linear-gradient(45deg, var(--track), var(--track) 6px, var(--white) 6px, var(--white) 12px); }
.r-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 24px; list-style: none; }
.r-focus li { padding: 24px; background: var(--paper); border-top: 3px solid var(--orange); }
.r-focus h4 { margin-bottom: .4rem; }
@media (max-width: 700px) { .r-focus { grid-template-columns: 1fr; } .r-overall { grid-template-columns: 1fr; gap: 12px; } }
.r-caveat { font-size: .92rem; padding: 16px 20px; border-inline-start: 3px solid var(--line-strong); background: var(--paper); }
.results-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 28px; }
.report-box { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.notice { padding: 16px; background: var(--paper); border: 1px solid var(--line); }

/* footer */
.site-footer { position: relative; overflow: hidden; background: var(--green); color: var(--cream-70); padding-top: clamp(56px, 7vw, 88px); }
.footer-pattern { position: absolute; inset-block: 0; inset-inline-end: -5%; width: 34%; background: var(--cream); opacity: .06; -webkit-mask: url('/img/pattern.svg') center / cover no-repeat; mask: url('/img/pattern.svg') center / cover no-repeat; }
.footer-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.brand-footer { color: var(--cream); }
.brand-footer svg { height: 44px; }
.footer-tagline { margin-top: 1.5rem; color: var(--cream); font-size: 1.1rem; }
.footer-segments { font-size: .9rem; }
.site-footer a { color: var(--cream); }
.footer-nav ul { list-style: none; columns: 2; column-gap: 32px; }
.footer-nav li { break-inside: avoid; padding: 6px 0; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 20px 28px; border-top: 1px solid rgba(244, 237, 215, .2); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.nf-ar { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-family: var(--font-ar); }

/* motion */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* print: results only */
@media print {
  .site-header, .site-footer, .page-hero-art, .cta-band, .no-print, .choose, .skip-link, .assessment-app { display: none !important; }
  body { background: #fff; color: #000; }
  .results { border: 0; padding: 0; }
  .page-hero { border: 0; }
  .r-track { border: 1px solid #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .r-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* white-first rhythm: tinted bands only where they separate content */
.dual-cta { background: var(--white); }
.assessment-section { background: var(--paper); padding-top: clamp(40px, 5vw, 64px); }
.page-healthCheck .choose, .page-launch .section-sm { background: var(--paper); }
.page-hero { background: linear-gradient(180deg, var(--white), var(--white)); }
.hero { background: var(--white); }
.who-card:nth-child(3) { border-top-color: var(--green); }
.purpose { background: var(--white); }

/* scale legend: shown on small screens where option labels are hidden */
.a-legend { display: none; margin: -0.75rem 0 1.5rem; padding: 12px 16px; padding-inline-start: 2.4em; background: var(--paper); font-size: .88rem; color: var(--green); }
.a-legend li { padding: 2px 0; }
.a-legend li::marker { font-weight: 600; }
@media (max-width: 760px) { .a-legend { display: block; } .q-opt.na span em { display: inline; } .q-opt.na span { min-height: 48px; font-size: .9rem; } }
