/*
 * Copilot Reality Check: the quiz on copilot-reality-check/ (both sites).
 *
 * Ported from copilot.solidsystems.co.za/assets/css/reality-check.css (itself the Academy's styles) on 13 Nov 2026 and
 * fitted to the website: the phone frame and full-screen desktop page are gone; the quiz is a card inside the site's
 * header and footer, in the site's font (Inter) and the brand blues and navies, light only like the rest of the site.
 * Every rule is scoped under .crc so nothing leaks into the shared stylesheet. Breakpoints are the site's own
 * (900px layout, 560px phone).
 */

.crc {
  --screen: #ffffff; --ink: #15202b; --ink-soft: #56626d; --line: #dbe2e7; --card: #f3f8fa;
  --accent: #0b74a8;          /* site --blue-ink: fills, buttons and small accent text (readable on white) */
  --accent-bright: #29abe2;   /* Solid Cyan */
  --accent-ink: #133d50;      /* Deep Navy */
  --navy: #1d5d78;            /* Dark Navy */
  --muted: #8a99a3; --muted-soft: #d3dee4; --amber: #a8620f; --good: #17734a;
  --fs-hero: clamp(2.6rem, 15vw, 3.4rem);

  color: var(--ink);
  scroll-margin-top: calc(var(--head-h, 104px) + 12px);
}
.crc * { box-sizing: border-box; }

/* the card the quiz lives in */
.crc .crc-card {
  position: relative; max-width: 1120px; margin-inline: auto;
  background: var(--screen); border: 1px solid var(--line); border-radius: var(--radius, 18px);
  box-shadow: 0 18px 40px rgba(17, 24, 32, .08); overflow: hidden;
}

/* top bar: back button and the quiz's name */
.crc .crc-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.crc .crc-bar button.nav {
  all: unset; cursor: pointer; color: var(--ink-soft); font-size: 1.3rem;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
}
.crc .crc-bar button.nav:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.crc .crc-bar button.nav[disabled] { opacity: .35; cursor: default; }
.crc .crc-bar .wordmark {
  font-weight: 800; letter-spacing: -.02em; font-size: .98rem; flex: 1;
  display: flex; align-items: center; gap: 7px; min-width: 0;
}
.crc .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright); flex: 0 0 auto; }
.crc .crc-bar .wordmark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* screens */
.crc .screen {
  display: flex; flex-direction: column; padding: 22px 20px 28px;
  animation: crcRise .4s cubic-bezier(.2, .7, .2, 1);
}
@keyframes crcRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.crc .eyebrow {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); font-weight: 700; margin: 0 0 10px;
}
.crc h1 { font-size: clamp(1.7rem, 6vw, 2.1rem); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 800; }
.crc h2 { font-size: 1.42rem; line-height: 1.16; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.crc h3, .crc h4 { margin: 0; }
.crc p { margin: 0 0 14px; line-height: 1.55; color: var(--ink-soft); font-size: 1rem; }
.crc p strong, .crc .ink { color: var(--ink); }
.crc .spacer { flex: 1 1 auto; min-height: 14px; }

.crc .chiprow { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.crc .chip {
  font-size: .75rem; font-weight: 600; color: var(--ink-soft); background: var(--card);
  border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px;
}

/* buttons */
.crc .btn {
  all: unset; cursor: pointer; display: block; text-align: center; font-weight: 700; font-size: 1rem;
  padding: 15px 18px; border-radius: 999px; background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -14px var(--accent); transition: transform .12s, filter .12s;
}
.crc .btn:hover { background: var(--accent); transform: none; filter: brightness(1.08); }   /* the site's .btn:hover would turn every quiz button dark blue */
.crc .btn:active { transform: translateY(1px); }
.crc .btn:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; }
.crc .btn[disabled] { opacity: .55; cursor: default; }
.crc .btn.ghost, .crc .btn.ghost:hover { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.crc .btn.small { padding: 12px 16px; font-size: .92rem; }
.crc .stack { display: flex; flex-direction: column; gap: 10px; }

/* door cards */
.crc .doors { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.crc .door {
  all: unset; cursor: pointer; border: 1.5px solid var(--line); border-radius: 18px; padding: 16px;
  background: var(--card); display: flex; gap: 13px; align-items: center; transition: border-color .15s, transform .12s;
}
.crc .door:hover { border-color: var(--accent); transform: translateY(-1px); }
.crc .door[disabled] { cursor: default; transform: none; }
.crc .door:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.crc .door .ic {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--accent-bright); color: #fff; font-size: 1.3rem; font-weight: 800;
}
.crc .door .ic.alt { background: var(--accent-ink); }
.crc .door .door-h { display: block; margin: 0 0 3px; font-size: 1.04rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.crc .door small { color: var(--ink-soft); font-size: .84rem; line-height: 1.35; display: block; }
.crc .door .arr { margin-left: auto; color: var(--muted); font-size: 1.2rem; }

/* progress */
.crc .prog { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.crc .prog .track { flex: 1; height: 6px; border-radius: 999px; background: var(--muted-soft); overflow: hidden; }
.crc .prog .fill { display: block; height: 100%; background: var(--accent-bright); border-radius: 999px; transition: width .4s ease; }
.crc .prog .lbl { font-size: .75rem; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.crc .tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, transparent); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.crc .qmark {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 700; margin-bottom: 12px;
}

/* answer options */
.crc .opts { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.crc .opt {
  all: unset; cursor: pointer; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 15px;
  background: var(--screen); font-weight: 600; font-size: .98rem; display: flex; align-items: center; gap: 11px;
  transition: border-color .14s, background .14s, transform .1s;
}
.crc .opt:hover { border-color: var(--accent); background: #f6fbfe; }
.crc .opt:active { transform: scale(.99); }
.crc .opt:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.crc .opt .k {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--card); color: var(--ink-soft); font-size: .9rem; border: 1px solid var(--line);
}
.crc .opt.reveal-yes .k { background: var(--good); color: #fff; border-color: transparent; }
.crc .opt.reveal-no .k { background: var(--amber); color: #fff; border-color: transparent; }

/* slider */
.crc .rate-num {
  font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.03em; text-align: center;
  color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1;
}
.crc .rate-num b { color: var(--accent); }
.crc .rate-cap { text-align: center; font-size: .82rem; color: var(--ink-soft); margin: 6px 0 22px; }
.crc input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--p, 60%), var(--muted-soft) var(--p, 60%)); outline: none;
}
.crc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); box-shadow: 0 3px 8px rgba(0, 0, 0, .25); cursor: pointer;
}
.crc input[type=range]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer;
}
.crc input[type=range]:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 6px; }
.crc .ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-soft); margin-top: 8px; }

/* reveal */
.crc .gap { display: flex; gap: 12px; margin: 6px 0 8px; }
.crc .gcol { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 15px 12px; text-align: center; }
.crc .gcol .cap { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.crc .gcol .big { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.crc .gcol.self .big { color: var(--muted); }
.crc .gcol.real .big { color: var(--accent); }
.crc .gcol .u { font-size: .8rem; color: var(--ink-soft); margin-top: 3px; }
.crc .barwrap { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 15px; margin: 12px 0; }
.crc .barwrap .l { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.crc .meter { height: 12px; border-radius: 999px; background: var(--muted-soft); overflow: hidden; }
.crc .meter i {
  display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-bright), var(--accent-ink));
  border-radius: 999px; transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}
.crc .reclaim {
  background: color-mix(in srgb, var(--amber) 10%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
  border-radius: 16px; padding: 16px; margin: 6px 0 16px;
}
.crc .reclaim .h { font-size: 1.75rem; font-weight: 800; color: var(--amber); letter-spacing: -.02em; margin-bottom: 2px; }
.crc .reclaim p { margin: 0; color: var(--ink); }

.crc .flags { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.crc .flag {
  display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; font-size: .92rem; font-weight: 600;
}
.crc .flag .x { color: var(--amber); font-weight: 800; flex: 0 0 auto; }

/* share card */
.crc .sharecard {
  border-radius: 18px; padding: 18px; color: #fff; margin: 4px 0 8px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-ink), var(--navy) 120%); border: 1px solid rgba(255, 255, 255, .12);
}
.crc .sharecard .sc-brand { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.crc .sharecard .sc-score { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.crc .sharecard .sc-score small { font-size: 1.1rem; opacity: .7; }
.crc .sharecard .sc-line { font-size: .98rem; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.crc .sharecard .sc-foot { font-size: .75rem; opacity: .75; margin-top: 14px; }
.crc .sharecard .glow {
  position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 171, 226, .6), transparent 70%);
}

/* lock and email gate */
.crc .lock { border: 1.5px dashed var(--line); border-radius: 16px; padding: 16px; text-align: center; margin-top: 6px; position: relative; }
.crc .lock .ic { font-size: 1.3rem; }
.crc .lock h3 { margin: 6px 0 4px; font-size: 1.02rem; }
.crc .lock p { font-size: .88rem; margin-bottom: 12px; }
.crc .field {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; font-size: 1rem;
  background: var(--screen); color: var(--ink); margin-bottom: 10px; font-family: inherit;
}
.crc .field:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 1px; border-color: var(--accent); }
.crc .fineprint { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: 10px; line-height: 1.45; }
.crc .consent { display: flex; gap: 9px; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); text-align: left; margin: 2px 0 4px; cursor: pointer; }
.crc .consent input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--accent); width: 18px; height: 18px; }
.crc .err { color: var(--amber); font-size: .86rem; font-weight: 600; margin: 4px 0 0; text-align: center; }
.crc .err:empty { display: none; }

/* report */
.crc .ring {
  display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; margin-bottom: 16px;
}
.crc .ring .num { font-size: 2.4rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.crc .ring small { color: var(--ink-soft); font-size: .84rem; }
.crc .winlist { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 16px; }
.crc .win { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: var(--screen); }
.crc .win .app {
  font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: var(--accent-ink); padding: 4px 7px; border-radius: 6px; flex: 0 0 auto; margin-top: 2px;
}
.crc .win h4 { margin: 0 0 3px; font-size: .98rem; letter-spacing: -.01em; }
.crc .win small { color: var(--ink-soft); font-size: .84rem; line-height: 1.4; display: block; }
.crc .win .save { color: var(--good); font-weight: 700; font-size: .8rem; margin-top: 5px; display: block; }
.crc .pathcard { background: linear-gradient(135deg, var(--navy), var(--accent-ink)); color: #fff; border-radius: 18px; padding: 20px; margin-bottom: 14px; }
.crc .pathcard .e { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; opacity: .85; font-weight: 700; margin-bottom: 8px; }
.crc .pathcard h3 { margin: 0 0 6px; font-size: 1.22rem; color: #fff; }
.crc .pathcard p { color: rgba(255, 255, 255, .9); margin-bottom: 14px; font-size: .92rem; }
.crc .pathcard .btn, .crc .pathcard .btn:hover { background: #fff; color: var(--accent-ink); box-shadow: none; }
.crc .pathcard .btn.ghost, .crc .pathcard .btn.ghost:hover {
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45);
  font-size: .9rem; padding: 12px 16px;
}
.crc .pathcard .btn.ghost:hover { border-color: #fff; filter: none; }
.crc .statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 6px; }
.crc .stat { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.crc .stat b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.crc .stat small { font-size: .75rem; color: var(--ink-soft); line-height: 1.35; display: block; margin-top: 2px; }
.crc .src { font-size: .7rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.45; }

/* toast: fixed to the window, so it shows wherever the visitor has scrolled */
.crc .toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  transition: transform .25s, opacity .25s; z-index: 60; pointer-events: none;
  max-width: min(88%, 340px); text-align: center;
}
.crc .toast.show { transform: translateX(-50%); opacity: 1; }

/* Landing groups: no box of their own on phones (the landing stacks); the two columns of the split landing at 900px+ */
.crc .crc-story, .crc .crc-start { display: contents; }

.crc .modepill {
  display: inline-flex; align-self: flex-start; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 16px;
}
.crc .modepill span { font-size: .78rem; font-weight: 700; color: var(--ink-soft); padding: 6px 12px; border-radius: 999px; }
.crc .modepill span.active { background: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .crc * { animation: none !important; transition: none !important; }
}

/* Phones */
@media (max-width: 560px) {
  .crc .screen { padding: 20px 16px 24px; }
  .crc .crc-bar { padding: 8px 10px; }
  .crc .gcol .big { font-size: 2.2rem; }
}

/* Desktop (900px+): the landing becomes two columns (story left, navy "start the check" panel right); the other screens
   sit in a centred 640px column with the progress bar in the top bar */
@media (min-width: 900px) {
  .crc .crc-bar { padding-inline: 24px; }

  .crc .screen:has(> .crc-story) {
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
    gap: 44px; padding: 48px clamp(24px, 4vw, 48px);
  }
  .crc .crc-story, .crc .crc-start { display: block; }
  .crc .crc-story h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; }
  .crc .crc-story p { max-width: 46ch; font-size: 1.06rem; }

  .crc .crc-start {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
    background: linear-gradient(155deg, var(--accent-ink), var(--navy)); border-radius: 22px;
    padding: 40px 36px; box-shadow: 0 30px 70px -35px rgba(6, 20, 28, .55);
  }
  .crc .crc-start::before {
    content: ""; position: absolute; top: -70px; right: -90px; width: 280px; height: 280px;
    border-radius: 50%; background: radial-gradient(circle, rgba(41, 171, 226, .55), transparent 70%);
    pointer-events: none;
  }
  .crc .crc-start > * { position: relative; }
  .crc .crc-start p { color: rgba(255, 255, 255, .85); }
  .crc .crc-start .modepill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); margin-bottom: 2px; }
  .crc .crc-start .modepill span { color: rgba(255, 255, 255, .75); }
  .crc .crc-start .modepill span.active { background: var(--accent-bright); color: var(--accent-ink); }
  .crc .crc-start .door { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
  .crc .crc-start .door:hover { border-color: rgba(255, 255, 255, .45); }
  .crc .crc-start .door .door-h { color: #fff; }
  .crc .crc-start .door small { color: rgba(255, 255, 255, .78); }
  .crc .crc-start .door .arr { color: rgba(255, 255, 255, .55); }
  .crc .crc-start .spacer { min-height: 4px; }
  .crc .crc-start .err { color: #ffd38a; }
  .crc .crc-start .fineprint {
    text-align: left; color: rgba(255, 255, 255, .7);
    border-top: 1px solid rgba(255, 255, 255, .16); margin: 2px 0 0; padding-top: 14px;
  }
  .crc .crc-start .fineprint strong { color: #fff; }

  /* the other screens: a centred column on a light ground */
  .crc .body[data-screen]:not([data-screen="landing"]) { background: var(--card); padding: 40px 24px 48px; }
  .crc .screen:not(:has(> .crc-story)) {
    width: min(640px, 100%); margin-inline: auto;
    background: var(--screen); border: 1px solid var(--line); border-radius: 20px;
    padding: 36px 40px; box-shadow: 0 20px 50px -35px rgba(6, 20, 28, .35);
  }
  /* progress sits in the top bar, right of the quiz name (.crc-card is the positioned parent) */
  .crc .screen:not(:has(> .crc-story)) .prog {
    position: absolute; top: 17px; right: 24px; height: 34px;
    width: 260px; margin: 0; z-index: 2;
  }
  .crc .screen:not(:has(> .crc-story)) .prog .lbl { white-space: nowrap; }
}
