:root {
  --green: #00aa13;
  --accent: #008a00;
  --navy: #1d252d;
  --slate: #4f758b;
  --bg: #edf1f4;
  --surface: #fff;
  --surface2: #f4f7f9;
  --sel: #e4f5e6;
  --ink: #1d252d;
  --muted: #4f5e68;
  --line: #cbd7df;
  --panel: #1d252d;
  --onpanel: #fff;
  --panelmuted: #b7c9d3;
  --warn: #b86e00;
  --crit: #c0392b;
  --track: #dbe3e9;
  --display: "Titillium Web", "Source Sans 3", sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif
}
@media(prefers-color-scheme:dark) {
  :root {
    --bg: #0f151a;
    --surface: #1d252d;
    --surface2: #232e37;
    --sel: #173022;
    --ink: #f3f6f8;
    --muted: #fff;
    --line: #35444f;
    --panel: #161d23;
    --warn: #f2a93b;
    --crit: #ff7f72;
    --track: #2d3a44;
    color-scheme: dark
  }
}
* {
  box-sizing: border-box
}
[hidden] {
  display: none !important
}
html {
  scroll-behavior: smooth
}
body {
  margin: 0;
  padding: 0 16px 64px;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.5 var(--body)
}
button {
  font: inherit;
  cursor: pointer
}
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0
}
.brand-logo{
    display:block;
    height:60px;
    width:auto;
}

.brand-logo-light {
  display: block;
}

.brand-logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .brand-logo-light {
    display: none;
  }

  .brand-logo-dark {
    display: block;
  }
}

.hero-r{
    position:relative;
    overflow:hidden;
}

.hero-motion{
    position:absolute;
    top:-130px;
    right:-80px;
    width:400px;
    height:500px;
    margin:0;
    padding:0;
    z-index:1;
    pointer-events:none;
}

.hero-graphic{
    display:block;
    width:100%;
    height:100%;
}

.hero-r ul{
    position:relative;
    z-index:2;
    margin-top:340px; /* pushes bullets below graphic */
    padding:0 0 0 20px;
}
.top{
    position:relative;
    overflow:hidden;
}


.motion-block{
    position:absolute;
    background:rgba(255,255,255,.08);
    transform:rotate(35deg);
}

.block-1{
    width:180px;
    height:180px;
    top:-90px;
    right:5%;
}

.block-2{
    width:120px;
    height:120px;
    top:40px;
    right:18%;
}

.block-3{
    width:240px;
    height:240px;
    bottom:-120px;
    right:-40px;
}

.block-4{
    width:140px;
    height:140px;
    bottom:-70px;
    right:20%;
}
.wrap {
  max-width: 920px;
  margin: auto
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -16px;
  padding: 22px 16px 10px 16px;
  background: var(--bg)
}
.top .wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px
}
.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font: 700 26px var(--display);
  letter-spacing: .04em
}
.brand i {
  color: var(--green);
  font-style: normal
}
.hdr-r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px
}
.prog {
  width: min(280px, 35vw)
}
.prog-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px
}
.bar{
    position:relative;
    height:10px;
    background:#25313a;
    overflow:hidden;

    clip-path:polygon(
        10px 0,
        100% 0,
        calc(100% - 10px) 100%,
        0 100%
    );
}

.bar i{
    display:block;
    height:100%;
    width:0;
    background:#00aa13;
    transition:width .5s ease;

    clip-path:polygon(
        10px 0,
        100% 0,
        calc(100% - 10px) 100%,
        0 100%
    );

    box-shadow:0 0 10px rgba(0,170,19,.3);
}
.link {
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  font-weight: 600
}
.reset {
  font-size: 16px
}
#stage {
  padding-top: 12px;
  min-height: 60vh
}
.screen:focus {
  outline: 0
}
.card, .hero, .mile, .res-hero, .formcard {
  border-radius: 4px
}
.card {
  padding: clamp(20px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line)
}
.head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px
}
.head h2 {
  font-size: clamp(30px, 5vw, 44px)
}
.eyebrow {
  font-weight: 600;
  color: var(--accent)
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}
.stack {
  display: grid;
  gap: 12px
}
.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 4px
}
.tile.big {
  padding: 20px;
  min-height: 84px
}
.tile input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer
}
.box {
  flex: none;
  width: 26px;
  height: 26px;
  background: var(--surface);
  border: 1px solid var(--slate);
  border-radius: 4px
}
.tile:has(input:checked) {
  background: var(--sel);
  border-color: var(--accent)
}
.tile:has(input:checked) .box {
  background: var(--accent);
  box-shadow: inset 0 0 0 6px var(--accent);
  position: relative
}
.tile:has(input:checked) .box:after {
  content: "✓";
  position: absolute;
  inset: -2px 0 0;
  color: #fff;
  text-align: center;
  font-weight: 700
}
.sub {
  display: block;
  font-size: 15px;
  color: var(--muted)
}
.tools, .nav, .facts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}
.tools {
  margin-bottom: 16px
}
.tools .sp {
  flex: 1
}
.nav {
  justify-content: space-between;
  margin-top: 28px
}
.result-actions {
  justify-content: flex-start;
  gap: 12px;
}
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn.ghost.onpanel {
  color: #fff;
  border-color: #b7c9d3;
  background: transparent;
}

.btn.ghost.onpanel:hover,
.btn.ghost.onpanel:focus-visible {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.readiness-label {
  color: var(--ring, var(--green));
}
.download-icon {
  display: block;
  flex: 0 0 auto;
}
.level-attention {
  --ring: #ff6b63;
}

.level-improving {
  --ring: #f2a93b;
}

.level-ready {
  --ring: #00aa13;
}
.btn {
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 600
}
.primary {
  background: var(--accent);
  color: #fff
}
.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink)
}
.onpanel {
  color: #fff;
  border-color: var(--panelmuted)
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface)
}
.hero-l, .hero-r {
  padding: clamp(24px, 5vw, 56px)
}
.hero-l h1 {
  font-size: clamp(36px, 6.5vw, 60px);
  margin: 8px 0 20px
}
.hero-r, .mile, .res-hero {
  background: var(--panel);
  color: var(--onpanel)
}
.hero-r ul, .formcard ul {
  list-style: none;
  padding: 0
}
.hero-r li, .formcard li {
  display: flex;
  gap: 10px;
  margin: 12px 0
}
.hero-r li:before, .formcard li:before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 7px;
  background: var(--green);
  flex: none
}
.mile, .res-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(24px, 5vw, 52px)
}
.ring {
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  border: 14px solid rgba(255, 255, 255, .14);
  border-top-color: var(--ring, var(--green));
  border-radius: 50%;
  font: 700 42px var(--display);
  transition:none;
}
.ring.animating{
    animation:ringGrow 1.2s ease-out forwards;
}

@keyframes ringGrow{
    from{
        filter:brightness(1.4);
    }
    to{
        filter:brightness(1);
    }
}
.res-hero .ring {
  width: 210px;
  height: 210px;
  font-size: 54px
}
.lvl {
  font-size: clamp(32px, 5.5vw, 52px);
  margin: 8px 0
}
.chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, .1);
  border-radius: 4px;
  font-size: 15px
}
.res {
  display: grid;
  gap: 24px
}
.rows, .recs {
  display: grid;
  gap: 14px
}
.row {
  display: grid;
  grid-template-columns: 200px 1fr 56px;
  gap: 14px;
  align-items: center
}
.row .p {
  text-align: right;
  font-weight: 700
}
.rec {
  padding: 20px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 4px
}
.pri {
  display: inline-block;
  padding: 3px 10px;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700
}
.p3 {
  background: var(--crit)
}
.p2 {
  background: var(--warn)
}
.p1 {
  background: var(--slate)
}
.miss {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0
}
.miss li {
  padding: 3px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px
}
.formcard {
  color-scheme: light;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  padding: clamp(24px, 5vw, 48px);
  background: #fff;
  color: #1d252d;
  border: 1px solid #cbd7df;
  scroll-margin-top: 96px
}
.formcard h3 {
  font-size: 36px;
  margin: 8px 0 12px
}
.formcard p, .formcard ul, .formcard label {
  color: #1d252d
}
.thanks {
  min-height: 240px;
  display: grid;
  align-content: center
}
.disc {
  font-size: 13px;
  color: var(--muted);
	padding-top: 14px;
}

/* =========================================
   Detailed assessment results
   ========================================= */

.result-summary {
  min-width: 0;
}

.result-summary > p {
  max-width: 640px;
}

.ring {
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  border: 0;
  background:
    conic-gradient(
      var(--ring, var(--green))
      calc(var(--pct, 0) * 1%),
      rgba(255, 255, 255, .18) 0
    );
}

.ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: var(--panel);
  border-radius: 50%;
}

.ring-score,
.ring-label {
  position: relative;
  z-index: 1;
}

.ring-score {
  display: block;
  font: 700 1em/1 var(--display);
}

.ring-label {
  display: block;
  margin-top: 5px;
  color: var(--panelmuted);
  font: 600 12px/1.2 var(--body);
}

.result-alert {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--warn);
  border-left: 4px solid var(--warn);
  border-radius: 4px;
  color: var(--ink);
  font-size: 15px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h3 {
  font-size: clamp(26px, 4vw, 34px);
}

.section-heading > span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.readiness-card .rows {
  gap: 17px;
}

.readiness-card .row {
  grid-template-columns:
    minmax(180px, 220px)
    minmax(160px, 1fr)
    52px;
}

.row-label {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.row-label strong {
  font-size: 15px;
}

.row-label span {
  color: var(--muted);
  font-size: 12px;
}

.readiness-card .bar {
  position: relative;
  height: 11px;
  background: var(--track);
  overflow: hidden;
  clip-path: polygon(
    10px 0,
    100% 0,
    calc(100% - 10px) 100%,
    0 100%
  );
}

.readiness-card .bar i {
  display: block;
  height: 100%;
  min-width: 0;
  transition: width .5s ease;
  clip-path: polygon(
    10px 0,
    100% 0,
    calc(100% - 10px) 100%,
    0 100%
  );
}

.recommendation-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.recommendation-legend span {
  position: relative;
  padding-left: 12px;
}

.recommendation-legend span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
}

.legend-critical::before {
  background: var(--crit);
}

.legend-other::before {
  background: var(--slate);
}

.recs {
  gap: 12px;
}

.rec {
  padding: 22px;
}

.rec-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.rec-heading h4 {
  font-size: 21px;
}

.rec-action,
.rec-impact {
  margin: 0 0 10px;
}

.rec-impact {
  color: var(--muted);
  font-size: 15px;
}

.open-label {
  display: block;
  margin: 15px 0 8px;
  font-size: 13px;
}

.miss {
  margin: 0;
}

.miss li {
  background: var(--surface);
  color: var(--ink);
}

.miss .critical-item {
  border-color: var(--crit);
}

.miss .other-item {
  border-color: var(--line);
}

.pdf-download-btn:disabled {
  cursor: wait;
  opacity: .7;
}

@media(max-width:760px) {
  .section-heading {
    display: grid;
  }

  .section-heading > span {
    text-align: left;
  }

  .readiness-card .row {
    grid-template-columns: 1fr 54px;
  }

  .readiness-card .row-label {
    grid-column: 1 / -1;
  }

  .recommendation-legend {
    flex-wrap: wrap;
  }

  .rec-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media(max-width:760px) {
  body {
    font-size: 17px
  }
  .grid, .hero, .mile, .res-hero, .formcard {
    grid-template-columns: 1fr
  }
  .row {
    grid-template-columns: 1fr 52px
  }
  .brand {
    position: static;
    transform: none
  }
  .top .wrap {
    justify-content: space-between
  }
  .hdr-r {
    margin-left: 0
  }
  .nav .btn {
    flex: 1
  }
}

/* Back button contrast: light cards vs dark panels */
.btn.ghost.onpanel[data-back] {
  color: var(--ink);
  border-color: var(--slate);
  background: transparent;
}
.btn.ghost.onpanel[data-back]:hover,
.btn.ghost.onpanel[data-back]:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(29, 37, 45, .06);
}
.mile .btn.ghost.onpanel[data-back],
.res-hero .btn.ghost.onpanel[data-back] {
  color: var(--onpanel);
  border-color: var(--panelmuted);
}
.mile .btn.ghost.onpanel[data-back]:hover,
.mile .btn.ghost.onpanel[data-back]:focus-visible,
.res-hero .btn.ghost.onpanel[data-back]:hover,
.res-hero .btn.ghost.onpanel[data-back]:focus-visible {
  color: var(--onpanel);
  border-color: var(--onpanel);
  background: rgba(255, 255, 255, .08);
}
