/* =====================================================================
   Solazur Readiness Scan, styles.
   Brand colour and type come from tokens via style.css; this file only
   styles the scan UI inside .assess-app.
   ===================================================================== */

.assess-app {
  --lay-f: var(--blue);
  --lay-o: var(--orange);
  --lay-i: var(--green);
  max-width: 880px;
}

.as-screen { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .as-screen { animation: asIn 0.38s ease both; }
  @keyframes asIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
.assess-app [tabindex="-1"]:focus { outline: none; }

/* ===== Intro ===== */
.as-intro-label { font-size: 12px; font-weight: var(--w-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.as-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .as-layers { grid-template-columns: 1fr; } }
.as-layer { display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; overflow: hidden; }
.as-layer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.as-layer.lay-f::before { background: var(--lay-f); }
.as-layer.lay-o::before { background: var(--lay-o); }
.as-layer.lay-i::before { background: var(--lay-i); }
.as-layer .lnum { font-size: 12px; font-weight: var(--w-semibold); letter-spacing: 0.18em; color: var(--muted-2); }
.as-layer strong { font-size: 18px; font-weight: var(--w-semibold); color: var(--ink); }
.as-layer .lsub { font-size: 13px; color: var(--muted); }

.as-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 28px; }
.as-meta span { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); font-weight: var(--w-medium); }
.as-meta svg { width: 18px; height: 18px; color: var(--orange); }
.as-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.as-privacy { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ===== Progress ===== */
.as-progress { display: flex; gap: 6px; margin-bottom: 30px; }
.as-progress .seg { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background 0.3s; }
.as-progress .seg.answered.lay-f { background: var(--lay-f); }
.as-progress .seg.answered.lay-o { background: var(--lay-o); }
.as-progress .seg.answered.lay-i { background: var(--lay-i); }
.as-progress .seg.current { box-shadow: 0 0 0 2px var(--blue-soft); background: var(--blue-soft); }
.as-progress .seg.current.answered { background: var(--blue); }

/* ===== Question ===== */
.assess-app .meta-pill { display: inline-flex; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: var(--w-semibold); letter-spacing: 0.08em; text-transform: uppercase; background: var(--blue-soft); color: var(--blue); }
.assess-app .meta-pill.orange { background: var(--orange-soft); color: var(--orange-deep); }
.assess-app .meta-pill.teal { background: var(--teal-soft); color: var(--teal); }
.as-qmeta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.as-qcount { font-size: 13px; color: var(--muted); font-weight: var(--w-medium); }
.as-q { font-size: clamp(22px, 2.7vw, 31px); font-weight: var(--w-semibold); letter-spacing: -0.015em; line-height: 1.25; margin: 18px 0 26px; max-width: 30ch; text-wrap: pretty; }
.as-options { display: grid; gap: 12px; }
.as-opt { display: flex; align-items: flex-start; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-family: inherit; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.as-opt:hover { border-color: rgba(13, 71, 161, 0.4); transform: translateY(-1px); }
.as-opt .key { flex: none; width: 26px; height: 26px; border-radius: 99px; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: var(--w-semibold); color: var(--blue); margin-top: 1px; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.as-opt.selected { border-color: var(--blue); background: var(--blue-soft-2); color: var(--ink); }
.as-opt.selected .key { background: var(--blue); border-color: var(--blue); color: #fff; }
.as-opt.locked { pointer-events: none; }
.as-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.as-back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 2px; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: var(--w-medium); color: var(--muted); transition: color 0.15s; }
.as-back:hover { color: var(--blue); }
.as-back svg { width: 15px; height: 15px; }

/* ===== Results ===== */
.as-result-head h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.02em; margin-top: 18px; color: var(--blue); }
.as-stage-blurb { margin-top: 14px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; max-width: 58ch; color: var(--ink-soft); text-wrap: pretty; }

.as-result-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 38px; }
@media (max-width: 820px) { .as-result-grid { grid-template-columns: 1fr; } }

.as-radar-svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.as-radar-svg .grid { fill: none; stroke: var(--line); stroke-width: 1; }
.as-radar-svg .grid.outer { stroke: #D8DCE3; stroke-width: 1.3; }
.as-radar-svg .spoke { stroke: var(--line-2); stroke-width: 1; }
.as-radar-svg .rv { fill: rgba(13, 71, 161, 0.14); stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.as-radar-svg .rd { fill: var(--orange); stroke: #fff; stroke-width: 1.5; }
.as-radar-svg .rl { font-family: var(--font-sans); font-size: 12px; font-weight: var(--w-semibold); letter-spacing: 0.12em; fill: var(--ink); }
.as-radar-svg .rp { font-size: 13.5px; font-weight: var(--w-semibold); letter-spacing: 0; fill: var(--blue); }

.as-overall { display: flex; flex-direction: column; gap: 4px; }
.as-overall .num { font-size: clamp(44px, 5vw, 60px); font-weight: var(--w-semibold); color: var(--blue); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.as-overall .lbl { font-size: 13px; color: var(--muted); font-weight: var(--w-medium); }

/* Stage rail: numbered stepper, only the active stage is labelled so
   long stage names (NL, FR) never truncate. */
.as-rail { display: flex; margin-top: 24px; }
.as-rail .cell { flex: 1; position: relative; text-align: center; }
.as-rail .cell:not(:first-child)::before { content: ""; position: absolute; top: 12px; left: calc(-50% + 16px); width: calc(100% - 32px); height: 1.5px; background: var(--line); }
.as-rail .cell.passed:not(:first-child)::before, .as-rail .cell.active:not(:first-child)::before { background: var(--blue-soft); }
.as-rail .cell i { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-style: normal; font-size: 11px; font-weight: var(--w-semibold); color: var(--muted-2); position: relative; z-index: 1; }
.as-rail .cell.passed i { border-color: var(--blue-soft); background: var(--blue-soft-2); color: var(--blue); }
.as-rail .cell.active i { border-color: var(--blue); background: var(--blue); color: #fff; }
.as-rail .cell em { display: none; font-style: normal; margin-top: 7px; font-size: 10.5px; font-weight: var(--w-semibold); letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue); line-height: 1.3; }
.as-rail .cell.active em { display: block; }

.as-lbars { display: grid; gap: 18px; margin-top: 28px; }
.as-lrow .lhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.as-lrow .lname { font-size: 14px; font-weight: var(--w-semibold); color: var(--ink); }
.as-lrow .lstage { font-size: 12.5px; color: var(--muted); font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }
.as-bar { display: flex; gap: 4px; margin-top: 7px; }
.as-bar span { flex: 1; height: 8px; border-radius: 4px; background: var(--line-2); }
.as-lrow.lay-f .as-bar span.on { background: var(--lay-f); }
.as-lrow.lay-o .as-bar span.on { background: var(--lay-o); }
.as-lrow.lay-i .as-bar span.on { background: var(--lay-i); }
.as-lrow .lsub { display: block; margin-top: 6px; font-size: 12px; color: var(--muted-2); }

/* ===== Recommendations ===== */
.as-recs { margin-top: clamp(44px, 6vw, 64px); }
.as-recs h3 { font-size: clamp(20px, 2.2vw, 26px); }
.as-recs .lede-sm { margin-top: 10px; font-size: 15px; color: var(--ink-soft); max-width: 60ch; }
.as-rec-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 22px; }
.as-rec { display: grid; grid-template-columns: 44px 1fr auto; gap: 20px; align-items: center; background: #fff; padding: 24px 26px; transition: background 0.2s; }
.as-rec:hover { background: var(--bg-soft); }
.as-rec .idx { font-size: 13px; font-weight: var(--w-semibold); color: var(--orange); letter-spacing: 0.14em; }
.as-rec .body { display: flex; flex-direction: column; gap: 3px; }
.as-rec .body strong { font-size: 16.5px; font-weight: var(--w-semibold); color: var(--ink); }
.as-rec .why { font-size: 12.5px; color: var(--blue); font-weight: var(--w-medium); }
.as-rec .blurb { font-size: 13.5px; color: var(--muted); }
.as-rec .go { font-size: 13px; font-weight: var(--w-semibold); color: var(--blue); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.as-rec .go .arrow { width: 14px; height: 14px; transition: transform 0.15s; }
.as-rec:hover .go .arrow { transform: translateX(3px); }
@media (max-width: 620px) { .as-rec { grid-template-columns: 1fr; gap: 10px; } .as-rec .idx { display: none; } }

.as-subsidy { margin-top: 26px; }

/* ===== Keep / share ===== */
.as-keep { margin-top: 26px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: 28px 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
@media (max-width: 760px) { .as-keep { grid-template-columns: 1fr; } }
.as-keep h3 { font-size: 18px; }
.as-keep p { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); max-width: 44ch; }
.keep-actions { display: grid; gap: 12px; justify-items: start; }
.keep-mail { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; width: 100%; }
.keep-mail input { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; font-family: inherit; font-size: 14px; color: var(--ink); background: #fff; transition: border-color 0.15s; }
.keep-mail input:focus { outline: none; border-color: var(--blue); }
.keep-mail input.invalid { border-color: var(--red); }
.keep-err { font-size: 12.5px; color: var(--red); }
.keep-actions .btn svg { width: 15px; height: 15px; }

/* ===== CTA + retake ===== */
.as-cta { margin-top: 26px; }
.as-retake { margin-top: 26px; display: flex; justify-content: center; }
.as-retake svg { width: 15px; height: 15px; }

/* ===== Print ===== */
@media print {
  .as-keep, .as-retake, .as-cta, .site-header, .site-footer { display: none !important; }
}
