/* Extranet Systems interactive tools.
   All rules are scoped under #xt so nothing leaks into the site theme, and
   theme utility classes (Bootstrap .card/.container etc.) cannot restyle the
   tool. Palette and type are the site's own: Sora, teal #3a9f9f, #111820. */
#xt {
  --teal: #3a9f9f;
  --teal-soft: #258b9f;
  --dark: #111820;
  --tint: #f7f9fb;
  --tint-2: #e9f5f5;
  --amber: #f6ad55;
  --ink: #1a1d20;
  --ink-soft: #414951;
  --line: #d3e7eb;
  font-family: "Inter", "Raleway", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}
#xt * { box-sizing: border-box; }
#xt a { color: var(--teal); }
#xt .xt-wrap { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }
#xt section { padding: 56px 0; border: 0; margin: 0; }
#xt h1, #xt h2, #xt h3 { font-family: "Sora", sans-serif; color: var(--ink); margin: 0; }
#xt h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 14px; }
#xt p { margin: 0; }

/* hero */
#xt .xt-hero { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); padding: 60px 0 48px; }
#xt .xt-hero .xt-wrap { display: grid; gap: 40px; grid-template-columns: 1.25fr 1fr; align-items: center; }
#xt .xt-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15; max-width: 21ch; }
#xt .xt-hero img { width: 100%; border-radius: 20px; object-fit: cover; aspect-ratio: 4/3; }
#xt .xt-lead { color: var(--ink-soft); max-width: 60ch; margin-top: 18px; font-size: 1.08rem; }
#xt .xt-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
#xt .xt-pill { border: 1px solid var(--line); background: #fff; border-radius: 100px; padding: 7px 16px; font-size: .88rem; color: var(--ink-soft); }

/* cards */
#xt .xt-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
#xt .xt-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; display: flex; flex-direction: column; }
#xt .xt-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
#xt .xt-card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 18px; }
#xt .xt-card a.go { display: inline-block; margin-top: auto; align-self: flex-start; background: var(--teal); color: #fff; text-decoration: none; padding: 11px 26px; border-radius: 100px; font-weight: 600; font-size: .95rem; }
#xt .xt-card a.go:hover { background: var(--teal-soft); }
#xt .xt-soft { background: var(--tint); }

/* quiz */
#xt .quiz { max-width: 760px; margin-inline: auto; }
#xt .q-progress { height: 8px; background: var(--tint-2); border-radius: 100px; overflow: hidden; margin-bottom: 28px; }
#xt .q-progress i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 100px; transition: width .3s; }
#xt .q-step { display: none; }
#xt .q-step.xt-active { display: block; }
#xt .q-step .domain { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
#xt .q-step h3 { font-size: 1.35rem; margin: 10px 0 22px; }
#xt .q-opt { display: block; width: 100%; text-align: left; font: inherit; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
#xt .q-opt:hover { border-color: var(--teal); background: var(--tint); }
#xt .q-opt b { display: block; font-size: 1rem; }
#xt .q-opt span { color: var(--ink-soft); font-size: .9rem; }
#xt .q-nav { display: flex; justify-content: space-between; margin-top: 10px; }
#xt .q-back { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font: inherit; }

/* results + gate */
#xt .score-wrap { text-align: center; padding: 12px 0 4px; }
#xt .score-ring { width: 168px; height: 168px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: conic-gradient(var(--teal) calc(var(--pct) * 1%), var(--tint-2) 0); }
#xt .score-ring i { width: 132px; height: 132px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; }
#xt .score-ring b { font-family: "Sora", sans-serif; font-size: 2.4rem; }
#xt .score-label { font-family: "Sora", sans-serif; font-size: 1.3rem; }
#xt .score-label small { display: block; color: var(--ink-soft); font-family: "Inter", sans-serif; font-size: .95rem; margin-top: 6px; }
#xt .bars { max-width: 560px; margin: 26px auto 0; text-align: left; }
#xt .bar-row { margin-bottom: 14px; }
#xt .bar-row label { font-size: .9rem; font-weight: 600; display: flex; justify-content: space-between; }
#xt .bar { height: 9px; background: var(--tint-2); border-radius: 100px; overflow: hidden; margin-top: 5px; }
#xt .bar i { display: block; height: 100%; background: var(--teal); border-radius: 100px; }
#xt .bar.warn i { background: var(--amber); }

#xt .gate { background: var(--tint); border: 1px solid var(--line); border-radius: 20px; padding: 32px; max-width: 640px; margin: 34px auto 0; }
#xt .gate h3 { margin-bottom: 6px; }
#xt .gate p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 18px; }
#xt .gate form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
#xt .gate input, #xt .gate select { font: inherit; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; width: 100%; background: #fff; }
#xt .gate .full { grid-column: 1 / -1; }
#xt .gate .consent { display: flex; gap: 9px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
#xt .gate .consent input { width: auto; margin-top: 4px; }
#xt .gate button { grid-column: 1 / -1; font: inherit; font-weight: 700; background: var(--teal); color: #fff; border: 0; border-radius: 100px; padding: 14px; cursor: pointer; font-size: 1rem; }
#xt .gate button:hover { background: var(--teal-soft); }
#xt .gate .err { color: #c0392b; font-size: .88rem; grid-column: 1 / -1; display: none; }

#xt .report { display: none; }
#xt .report.xt-show { display: block; }
#xt .rec { border-left: 4px solid var(--teal); background: var(--tint); border-radius: 0 14px 14px 0; padding: 18px 22px; margin-bottom: 14px; }
#xt .rec.warn { border-left-color: var(--amber); }
#xt .rec b { font-family: "Sora", sans-serif; display: block; margin-bottom: 4px; }
#xt .rec p { font-size: .93rem; color: var(--ink-soft); }

/* cta band */
#xt .xt-cta { background: var(--teal); color: #fff; border-radius: 20px; padding: 44px 36px; text-align: center; }
#xt .xt-cta h2 { color: #fff; }
#xt .xt-cta p { color: #e9f5f5; max-width: 56ch; margin: 8px auto 22px; }
#xt .xt-cta a { display: inline-block; background: var(--dark); color: #fff; text-decoration: none; padding: 14px 34px; border-radius: 100px; font-weight: 700; margin: 4px 8px; }
#xt .xt-cta a.ghost { background: transparent; border: 2px solid rgba(255,255,255,.35); }

@media (max-width: 820px) {
  #xt .xt-hero .xt-wrap { grid-template-columns: 1fr; }
  #xt .xt-hero img { aspect-ratio: 16/9; }
  #xt .gate form { grid-template-columns: 1fr; }
}
