/* ESG landing. Colours from the app (ESG.Client/wwwroot/css/style.css and favicon): ink #394848, teal #28A2A4,
   red accent #802929, the "fresh air" mint-to-sky gradient. One stylesheet for RTL and LTR: logical properties only.
   Contrast: ink 9.1:1 and muted 5.1:1 on --bg; white on --primary 6.0:1; --primary-ink 5.4:1 on --tint. */
:root {
  --bg: #F3FBF9;
  --surface: #FFFFFF;
  --ink: #394848;
  --muted: #56706E;
  --primary: #0B6E70;
  --primary-ink: #0B6E70;
  --on-primary: #FFFFFF;
  --brand: #28A2A4;       /* logo teal, decorative only */
  --tint: #E3F5F3;
  --accent: #802929;
  --accent-soft: #FBEDED;
  --line: #D3E7E4;
  --fresh: linear-gradient(95deg, #DDFBF4 20%, #E2F2FB 70%);
  --shadow: 0 1px 2px rgba(57, 72, 72, .06), 0 12px 32px -12px rgba(57, 72, 72, .2);
  --radius: 18px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1A1A;
    --surface: #152222;
    --ink: #E4EFEE;
    --muted: #A9BDBB;
    --primary: #5FD0D2;
    --primary-ink: #5FD0D2;
    --on-primary: #0E1A1A;
    --tint: #16302F;
    --accent: #F2A9A9;
    --accent-soft: #3A1E1E;
    --line: #24393A;
    --fresh: linear-gradient(95deg, #10262A 20%, #112330 70%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 1.125rem; line-height: 1.75; overflow-x: clip;
}
body:lang(en) { line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); backdrop-filter: none; } }
.nav { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: none; gap: 4px; margin-inline-start: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 1rem; padding: 10px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--ink); background: var(--tint); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav-end .lang { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; white-space: nowrap; }
.nav-end .lang:hover { background: var(--tint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1.0625rem; text-decoration: none; white-space: nowrap; transition: transform .15s, background-color .15s, box-shadow .15s; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 85%, var(--ink)); }
.btn-ghost { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.btn:active { transform: scale(.98); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.soon { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9375rem; padding: 4px 14px; border-radius: 999px; }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Hero */
.hero { background: var(--fresh); padding-block: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 6fr 5fr; } }
.hero h1 { margin-top: 18px; font-size: clamp(2.25rem, 5.4vw, 3.75rem); max-width: 15ch; text-wrap: balance; }
.hero .lede { margin-top: 20px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--muted); max-width: 36em; text-wrap: pretty; }

/* Signature: the subject picker, as the app draws it */
.picker { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; max-width: 440px; justify-self: center; width: 100%; }
.picker header { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; }
.count { background: var(--tint); color: var(--primary-ink); border-radius: 999px; padding: 2px 12px; font-size: .9375rem; }
.year { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.year > b { display: block; padding: 8px 14px; background: var(--tint); }
.sem { display: flex; justify-content: space-between; padding: 8px 14px 0; font-size: .875rem; color: var(--muted); font-weight: 700; }
.year ul { padding: 6px 14px 12px; display: grid; gap: 4px; }
.year li { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.box { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--muted); }
.on .box { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--surface); }
.year.closed > b::after { content: "+"; float: inline-end; color: var(--muted); }

/* Sections */
.sec { padding-block: clamp(56px, 8vw, 96px); }
.band { background: var(--surface); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); text-wrap: balance; }
.section-head p { margin-top: 12px; color: var(--muted); }

.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--primary-ink); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.1875rem; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.steps .later { border-style: dashed; }
.steps .later .soon { margin-top: 12px; }

/* The 10 colour schemes, header / line / cell colours from SeedData/System/Designs.json */
.schemes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.scheme { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--c-bg); padding: 10px; }
.scheme i { display: block; height: 14px; border-radius: 4px; background: var(--c-head); }
.scheme span { display: block; height: 10px; margin-top: 6px; border-radius: 3px; background: var(--c-cell); box-shadow: inset 0 0 0 1px var(--c-line); }
.facts { display: grid; gap: 12px 32px; margin-top: 40px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li b { display: block; font-size: 1.25rem; }
.facts li { color: var(--muted); font-size: 1rem; }
.facts li b { color: var(--ink); }

/* Pricing */
.plan { max-width: 520px; margin-inline: auto; background: var(--surface); border-radius: 24px; padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow); border-top: 5px solid var(--brand); text-align: center; }
.plan h3 { font-size: 1.375rem; }
.plan .price { margin-top: 6px; color: var(--muted); }
.plan .price b { font-size: 3rem; color: var(--primary-ink); line-height: 1.2; }
.plan ul { margin-top: 20px; display: grid; gap: 10px; text-align: start; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--brand); transform: translateY(-2px); }
.plan .cta-row { justify-content: center; margin-top: 28px; }
.plan small { display: block; margin-top: 16px; color: var(--muted); font-size: .9375rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding-block: 18px; min-height: 44px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--primary-ink); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 46em; }

/* Final call to action */
.final .card { background: var(--fresh); border-radius: 28px; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); text-align: center; }
.final h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); max-width: 20ch; margin-inline: auto; text-wrap: balance; }
.final p { color: var(--muted); margin: 14px auto 0; max-width: 34em; }
.final .cta-row { justify-content: center; }

/* Footer */
.site-footer { padding-block: 48px 40px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.foot { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot { grid-template-columns: 1.2fr 2fr; } }
.foot h2 { font-size: .9375rem; color: var(--ink); margin-bottom: 4px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot a { color: var(--muted); text-decoration: none; display: inline-block; padding-block: 10px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .by a { color: var(--ink); font-weight: 700; }
.foot .brand { color: var(--ink); }
.legal { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; }
.legal a { color: var(--muted); display: inline-block; padding-block: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary-ink); font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--brand); }
