/* =============================================================
   SIH IDEA SCORER — design system + page styles
   ============================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --navy-900: #071429;
  --navy-800: #0b1f3f;
  --navy-700: #122a54;
  --navy-600: #1b3a70;

  --saffron: #ff6b1a;
  --saffron-dark: #e2560a;
  --saffron-light: #ff9552;
  --saffron-wash: #fff3ec;

  --green: #138808;
  --green-light: #e8f5e6;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --ink: #0f1b30;
  --grey-700: #3d4a61;
  --grey-600: #5a6880;
  --grey-500: #7b889e;
  --grey-400: #a3adbf;
  --grey-300: #cbd3e0;
  --grey-200: #dde4ee;
  --grey-100: #eef2f7;
  --grey-50: #f6f8fb;
  --white: #ffffff;

  --danger: #c62828;
  --danger-wash: #fdeaea;

  --font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --gutter: 24px;
  --max-w: 1120px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(11,31,63,.06), 0 1px 3px rgba(11,31,63,.08);
  --shadow-md: 0 4px 12px rgba(11,31,63,.08), 0 2px 4px rgba(11,31,63,.04);
  --shadow-lg: 0 12px 32px rgba(11,31,63,.12), 0 4px 8px rgba(11,31,63,.06);
  --shadow-xl: 0 24px 60px rgba(7,20,41,.28), 0 8px 20px rgba(7,20,41,.16);

  --header-h: 72px;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--saffron-dark); }

img, svg { max-width: 100%; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

.is-hidden { display: none !important; }

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 82px 0; }
.section--tight { padding: 56px 0; }
.section--grey { background: var(--grey-50); border-block: 1px solid var(--grey-100); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 38px); }
.lede { font-size: 17px; color: var(--grey-600); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--saffron-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--saffron); border-radius: 2px; }

.tricolour { display: flex; height: 4px; width: 78px; border-radius: 4px; overflow: hidden; }
.tricolour span { flex: 1; }
.tricolour span:nth-child(1) { background: var(--saffron); }
.tricolour span:nth-child(2) { background: var(--white); }
.tricolour span:nth-child(3) { background: var(--green); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 15px 28px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--saffron); color: var(--white); box-shadow: 0 4px 14px rgba(255,107,26,.32); }
.btn--primary:hover { background: var(--saffron-dark); color: var(--white); box-shadow: 0 8px 22px rgba(255,107,26,.38); }

.btn--outline { background: var(--white); color: var(--navy-700); border-color: var(--grey-300); }
.btn--outline:hover { border-color: var(--navy-600); color: var(--navy-800); }

.btn--whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 4px 14px rgba(37,211,102,.3); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); color: var(--white); box-shadow: 0 8px 22px rgba(37,211,102,.36); }

.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 13.5px; border-radius: 8px; }

.btn .spinner {
  width: 16px; height: 16px; border-radius: 50%; display: none;
  border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white);
  animation: spin .7s linear infinite;
}
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 5. HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow .25s ease;
}
.header.is-stuck { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 9px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--navy-800); letter-spacing: -.01em; }
.brand__sub { font-size: 11.5px; color: var(--grey-500); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-size: 14.5px; font-weight: 500;
  color: var(--grey-700); padding: 9px 14px; border-radius: 7px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--grey-100); color: var(--navy-800); }
.nav > .btn { display: none; }
.header__cta { margin-left: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--grey-300); background: var(--white);
  border-radius: 8px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy-800); position: relative; transition: background .2s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--navy-800); transition: transform .22s ease, top .22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 90px;
  background:
    radial-gradient(900px 420px at 82% -12%, rgba(255,107,26,.24), transparent 62%),
    radial-gradient(720px 400px at 8% 8%, rgba(42,79,143,.42), transparent 60%),
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 25%, #000 8%, transparent 70%);
}
.hero > .container { position: relative; z-index: 1; }

.hero__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); font-family: var(--font-head);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 100px; margin-bottom: 22px;
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25); animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
  50% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
}

.hero h1 {
  color: var(--white); font-size: clamp(31px, 5vw, 52px);
  line-height: 1.12; margin-bottom: 20px; letter-spacing: -.025em;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--saffron-light), var(--saffron));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: 17.5px; color: rgba(255,255,255,.74); max-width: 640px; margin: 0 auto; }

/* ---------- 7. THE TOOL ---------- */
.tool {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 34px 36px;
  max-width: 860px;
  margin: 0 auto;
}

.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600;
  color: var(--navy-700); margin-bottom: 7px;
}
.field label .req { color: var(--danger); margin-left: 2px; }
.field label .opt { color: var(--grey-400); font-weight: 500; margin-left: 5px; }

.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--grey-300);
  border-radius: 9px; padding: 12px 14px; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 190px; line-height: 1.62; }
.field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6880' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,107,26,.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--grey-400); }

.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--danger); background: var(--danger-wash);
}
.field__err { display: none; font-size: 13px; color: var(--danger); margin-top: 6px; font-weight: 500; }
.field.has-error .field__err { display: block; }

.field__hint { font-size: 12.8px; color: var(--grey-500); margin-top: 6px; }
.field__hint-tip { color: var(--grey-400); }
.counter { font-variant-numeric: tabular-nums; }
.counter.is-short { color: var(--danger); font-weight: 600; }
.counter.is-ok { color: var(--green); font-weight: 600; }

/* radio pills */
.pills { display: flex; gap: 12px; flex-wrap: wrap; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill span {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 14.5px; font-weight: 600;
  color: var(--grey-600); border: 1.5px solid var(--grey-300);
  border-radius: 9px; padding: 12px 22px; cursor: pointer; transition: all .16s ease;
}
.pill span::before {
  content: ''; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--grey-400); transition: all .16s ease;
}
.pill input:checked + span { border-color: var(--saffron); background: var(--saffron-wash); color: var(--saffron-dark); }
.pill input:checked + span::before { border-color: var(--saffron); border-width: 5px; }
.pill input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }

.tool__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--grey-200);
}
.tool__note { font-size: 12.8px; color: var(--grey-500); max-width: 420px; margin: 0; line-height: 1.55; }

/* alerts */
.alert {
  display: none; gap: 13px; align-items: flex-start;
  border-radius: var(--radius); padding: 15px 17px; font-size: 14.5px; margin-bottom: 20px;
}
.alert.is-visible { display: flex; }
.alert--error { background: var(--danger-wash); border: 1px solid #f3c2c2; color: #8e1f1f; }
.alert__icon { flex: 0 0 20px; margin-top: 1px; }

/* ---------- 8. PROCESSING STATE ---------- */
.processing { display: none; }
.processing.is-visible { display: block; animation: fadeUp .4s ease; }

.processing__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.processing__head h2 { font-size: 21px; margin: 0 0 3px; }
.processing__head p { font-size: 14px; color: var(--grey-500); margin: 0; }

.processing__spin {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--grey-200); border-top-color: var(--saffron);
  animation: spin .9s linear infinite;
}
.processing__timer {
  margin-left: auto; font-family: var(--font-head); font-size: 20px; font-weight: 700;
  color: var(--navy-800); font-variant-numeric: tabular-nums;
  background: var(--grey-50); border: 1px solid var(--grey-200);
  border-radius: 9px; padding: 8px 14px; line-height: 1;
}

.steps { list-style: none; margin: 0 0 24px; padding: 0; }
.step {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--font-head); font-size: 14.5px; font-weight: 500;
  color: var(--grey-400); padding: 9px 0; position: relative;
  transition: color .3s ease;
}
.step:not(:last-child)::after {
  content: ''; position: absolute; left: 9px; top: 30px; bottom: -4px;
  width: 2px; background: var(--grey-200);
}
.step__dot {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--grey-300); background: var(--white);
  position: relative; z-index: 1; transition: all .3s ease;
}
.step.is-done { color: var(--grey-600); }
.step.is-done .step__dot {
  border-color: var(--green); background: var(--green);
  box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 5px var(--green);
}
.step.is-done:not(:last-child)::after { background: var(--green); }
.step.is-active { color: var(--navy-800); font-weight: 600; }
.step.is-active .step__dot {
  border-color: var(--saffron); background: var(--saffron-wash);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,26,.4); }
  50% { box-shadow: 0 0 0 6px rgba(255,107,26,0); }
}

/* result link box, shown while waiting and again on the result */
.keeplink {
  background: var(--grey-50); border: 1px dashed var(--grey-300);
  border-radius: var(--radius); padding: 16px 18px;
}
.keeplink--result { margin-top: 24px; }
.keeplink__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.8px; font-weight: 600; color: var(--grey-600); margin-bottom: 10px;
}
.keeplink__label svg { color: var(--saffron); flex: 0 0 15px; }
.keeplink__row { display: flex; gap: 9px; }
.keeplink__row input {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: 13.5px; color: var(--grey-600);
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: 8px; padding: 10px 12px;
}
.keeplink__row input:focus { outline: none; border-color: var(--saffron); }
.keeplink__row .btn { flex: 0 0 auto; }

/* ---------- 8b. ANALYSIS MODAL ---------- */
.pm {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(7, 20, 41, .72);
  backdrop-filter: blur(6px);
}
.pm.is-open { display: flex; animation: pmIn .25s ease; }
@keyframes pmIn { from { opacity: 0; } to { opacity: 1; } }

.pm__card {
  width: 100%; max-width: 620px;
  background: #0a1526;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  overflow: hidden;
  animation: pmUp .3s cubic-bezier(.2, .8, .3, 1);
}
@keyframes pmUp { from { transform: translateY(16px) scale(.98); } to { transform: none; } }

.pm__head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.pm__dots { display: flex; gap: 6px; }
.pm__dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.pm__dots span:first-child { background: #ff5f56; }
.pm__dots span:nth-child(2) { background: #ffbd2e; }
.pm__dots span:nth-child(3) { background: #27c93f; }
.pm__title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: rgba(255, 255, 255, .5); letter-spacing: .03em;
}
.pm__elapsed {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--saffron-light); font-variant-numeric: tabular-nums;
}

.pm__console {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.6px; line-height: 1.85;
  padding: 18px 18px 14px;
  height: 232px; overflow-y: auto;
  color: rgba(255, 255, 255, .62);
  scrollbar-width: thin;
}
.pm__console::-webkit-scrollbar { width: 6px; }
.pm__console::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 3px; }

.pml { display: block; white-space: pre-wrap; animation: pmLine .22s ease; }
@keyframes pmLine { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.pml--cmd { color: #7dd3fc; }
.pml--key { color: rgba(255, 255, 255, .42); }
.pml--val { color: rgba(255, 255, 255, .82); }
.pml--ok { color: #4ade80; }
.pml--warn { color: #fbbf24; }
.pml--cursor::after {
  content: '▋'; color: var(--saffron);
  animation: pmBlink 1s step-end infinite; margin-left: 2px;
}
@keyframes pmBlink { 50% { opacity: 0; } }

.pm__criteria {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  padding: 0 18px 16px;
}
.pmc {
  height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .1);
  position: relative; overflow: hidden;
}
.pmc.is-on::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--saffron-light), var(--saffron));
  animation: pmFill .45s ease forwards;
}
@keyframes pmFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pmc.is-on::after { transform-origin: left; }

.pm__foot {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
}
.pm__bar { height: 4px; background: rgba(255, 255, 255, .1); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.pm__bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--saffron-light), var(--saffron));
  border-radius: 3px; transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.pm__status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: rgba(255, 255, 255, .48);
}

.pm__link { display: none; padding: 0 18px 18px; }
.pm__link.is-visible { display: block; }
.pm__link p { font-size: 12.8px; color: rgba(255, 255, 255, .6); margin-bottom: 10px; }
.pm__link input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); }

@media (max-width: 560px) {
  .pm__console { height: 200px; font-size: 11.6px; }
  .pm__criteria { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 9. RESULT + SHARE ---------- */
.result { display: none; }
.result.is-visible { display: block; animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.result__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.result__head h2 { font-size: 22px; margin: 0; }

.share {
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--grey-200);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.share__label { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--navy-700); }
.share__actions { display: flex; gap: 11px; flex-wrap: wrap; }

/* ---------- 10. SCORECARD ---------- */
.scorecard { display: none; }
.scorecard.is-visible { display: block; }

.sc-overall {
  display: flex; align-items: center; gap: 22px;
  background: var(--grey-50); border: 1px solid var(--grey-200);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px;
}
.sc-ring {
  --pct: 0; --ring: var(--saffron);
  position: relative; width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--grey-200) 0);
  display: grid; place-items: center;
}
.sc-ring::after { content: ''; position: absolute; inset: 8px; background: var(--white); border-radius: 50%; }
.sc-ring__val {
  position: relative; z-index: 1; font-family: var(--font-head);
  font-size: 26px; font-weight: 700; color: var(--navy-800);
  line-height: 1; font-variant-numeric: tabular-nums; text-align: center;
}
.sc-ring__val small { display: block; font-size: 10px; color: var(--grey-500); font-weight: 500; margin-top: 3px; }

.sc-overall__body { flex: 1; min-width: 200px; }
.sc-band {
  display: inline-block; font-family: var(--font-head);
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; margin-bottom: 9px;
}
.sc-band[data-band='strong'] { background: var(--green-light); color: #0f6b06; }
.sc-band[data-band='promising'] { background: var(--saffron-wash); color: var(--saffron-dark); }
.sc-band[data-band='needs-work'] { background: #fff2f2; color: #b3261e; }
.sc-verdict { font-size: 14.5px; color: var(--grey-700); margin: 0; }

.sc-factors { display: grid; gap: 11px; margin-bottom: 18px; }
.sc-factor { display: grid; grid-template-columns: 172px 1fr 42px; align-items: center; gap: 13px; }
.sc-factor__name {
  font-family: var(--font-head); font-size: 13.2px; font-weight: 600;
  color: var(--navy-700); display: flex; align-items: center; gap: 5px;
}
.sc-factor__wt { font-size: 10.5px; font-weight: 500; color: var(--grey-400); }

.sc-bar { height: 9px; background: var(--grey-200); border-radius: 100px; overflow: hidden; }
/* Width is written inline when the card renders; the grow is pure CSS so it
   never depends on a rAF callback that a backgrounded tab would skip. */
.sc-bar span {
  display: block; height: 100%; border-radius: 100px;
  transform-origin: left center; animation: barGrow .75s cubic-bezier(.4,0,.2,1);
}
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sc-bar span[data-band='strong'] { background: linear-gradient(90deg, #2fa81f, var(--green)); }
.sc-bar span[data-band='promising'] { background: linear-gradient(90deg, var(--saffron-light), var(--saffron)); }
.sc-bar span[data-band='needs-work'] { background: linear-gradient(90deg, #e06b6b, #c62828); }

.sc-factor__val {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700;
  color: var(--navy-800); text-align: right; font-variant-numeric: tabular-nums;
}

.sc-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sc-list { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 16px 17px; }
.sc-list h4 {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 11px;
}
.sc-list--good h4 { color: var(--green); }
.sc-list--gap h4 { color: #b3761e; }
.sc-list--fix h4 { color: var(--navy-600); }
.sc-list ul { margin: 0; padding-left: 17px; }
.sc-list li { font-size: 13.5px; color: var(--grey-600); margin-bottom: 8px; line-height: 1.55; }
.sc-list li:last-child { margin-bottom: 0; }

.sc-foot { font-size: 12.5px; color: var(--grey-500); margin-top: 14px; }

/* ---------- 11. RUBRIC ---------- */
.rubric { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.rubric__row {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius); padding: 18px 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rubric__row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--saffron-light); }
.rubric__weight {
  flex: 0 0 62px; width: 62px; height: 62px; display: grid; place-items: center;
  background: var(--saffron-wash); color: var(--saffron-dark); border-radius: 12px;
  font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1;
}
.rubric__weight small { font-size: 11px; font-weight: 600; }
.rubric__body h3 { font-size: 16.5px; margin-bottom: 3px; }
.rubric__body p { font-size: 14.2px; color: var(--grey-600); margin: 0; }

/* ---------- 12. CARDS ---------- */
.card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 26px 26px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--grey-300); }
.card__tag {
  display: inline-block; font-family: var(--font-head);
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--saffron-dark); background: var(--saffron-wash);
  padding: 4px 10px; border-radius: 100px; margin-bottom: 12px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.35; }
.card p { font-size: 14.5px; color: var(--grey-600); }

/* ---------- 13. FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
  border: 1px solid var(--grey-200); border-radius: var(--radius);
  margin-bottom: 12px; background: var(--white); overflow: hidden;
}
.faq__item.is-open { border-color: var(--saffron-light); box-shadow: var(--shadow-md); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; text-align: left; background: none; border: 0; padding: 19px 22px; cursor: pointer;
  font-family: var(--font-head); font-size: 15.5px; font-weight: 600; color: var(--navy-800); line-height: 1.45;
}
.faq__q .chev { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--saffron); transition: transform .25s ease; }
.faq__item.is-open .chev { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a > div { padding: 0 22px 20px; font-size: 14.8px; color: var(--grey-600); }

/* ---------- 14. CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg); padding: 52px 46px; text-align: center;
  color: rgba(255,255,255,.78); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; width: 340px; height: 340px; right: -90px; top: -140px;
  background: radial-gradient(circle, rgba(255,107,26,.34), transparent 68%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); font-size: clamp(25px, 3.4vw, 33px); }
.cta-band p { max-width: 520px; margin: 0 auto 28px; }

/* ---------- 15. FOOTER ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.6); font-size: 14.2px; }
.footer__top { padding: 54px 0 38px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--white); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.62); display: block; margin-bottom: 9px; }
.footer a:hover { color: var(--saffron-light); }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand .brand__name { color: var(--white); }
.footer__brand .brand__sub { color: rgba(255,255,255,.5); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.8px; color: rgba(255,255,255,.45);
}
.footer__bottom span:last-child { max-width: 480px; text-align: right; }

/* ---------- 16. REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .grid--2 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom span:last-child { text-align: left; max-width: none; }
}

@media (max-width: 820px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; display: none;
    background: var(--white); border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-lg); padding: 10px 16px 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 12px; border-radius: 8px; font-size: 15.5px; }
  .nav > .btn { display: inline-flex; margin-top: 10px; color: var(--white); }
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .header__inner { position: relative; }
}

@media (max-width: 760px) {
  .sc-factor { grid-template-columns: 1fr 44px; grid-template-areas: 'name val' 'bar bar'; row-gap: 6px; }
  .sc-factor__name { grid-area: name; }
  .sc-factor__val { grid-area: val; }
  .sc-bar { grid-area: bar; }
  .sc-lists { grid-template-columns: 1fr; }
  .sc-overall { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 66px; }
  .tool { padding: 24px 20px; border-radius: 14px; }
  .field-grid { grid-template-columns: 1fr; }
  .tool__foot { flex-direction: column; align-items: stretch; }
  .tool__foot .btn { width: 100%; order: 1; }
  .tool__note { order: 2; max-width: none; text-align: center; }
  .share { flex-direction: column; align-items: stretch; }
  .share__actions .btn { flex: 1; }
  .processing__head { flex-wrap: wrap; }
  .processing__timer { margin-left: 0; width: 100%; text-align: center; }
  .keeplink__row { flex-direction: column; }
  .keeplink__row .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 40px 22px; }
  .rubric__row { gap: 15px; padding: 16px; }
  .rubric__weight { flex: 0 0 52px; width: 52px; height: 52px; font-size: 19px; }
  .brand__sub { display: none; }
  .result__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .pills { flex-direction: column; }
  .pill span { justify-content: flex-start; }
  .share__actions { flex-direction: column; }
}
