@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #eef5fc;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --line: #dfeaf5;
  --ink: #102f63;
  --ink-2: #173f7a;
  --muted: #6d829d;
  --navy: #0b326b;
  --navy-2: #082754;
  --blue: #1677e8;
  --blue-2: #0d63d4;
  --blue-soft: #eaf4ff;
  --green: #16a36a;
  --amber: #f2a20a;
  --red: #e45656;
  --shadow: 0 14px 40px rgba(25, 76, 132, .10);
  --shadow-soft: 0 6px 20px rgba(25, 76, 132, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(95, 168, 235, .13), transparent 30%),
    linear-gradient(180deg, #f4f9fe 0%, #edf5fc 100%);
  color: var(--ink);
}

button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

#app { width: 100%; margin: 0; min-height: 100vh; }

/* ---------- Shared header ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 0 30px;
  background-color: rgba(255,255,255,.96);
  background-image:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    url("../img/topnav-pattern.svg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215,228,242,.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(25,76,132,.04);
}

.brand-wrap { display:flex; align-items:center; gap:10px; }
.brand-mark {
  width:34px; height:34px; border-radius:10px; display:grid; place-items:center;
  background: linear-gradient(145deg, #1677e8, #0b4fae);
  color:#fff; box-shadow: 0 6px 14px rgba(22,119,232,.24);
}
.brand-mark svg { width:21px; height:21px; }
.topnav .brand { color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.2px; font-family: "Manrope", sans-serif; }
.topnav .nav-links { display:flex; align-items:center; gap:24px; margin-left:auto; margin-right:26px; }
.topnav .nav-link { color:#7890ab; font-size:18px; font-weight:700; }
.topnav .nav-link.active { color:var(--blue); position:relative; }
.topnav .nav-link.active::after { content:""; position:absolute; left:0; right:0; bottom:-25px; height:2px; background:var(--blue); border-radius:2px; }
.nav-status { display:flex; align-items:center; gap:7px; font-size:16px; font-weight:700; color:var(--blue); background:var(--blue-soft); border:1px solid #d5e9fc; padding:7px 10px; border-radius:999px; }
.nav-dot { width:6px; height:6px; border-radius:50%; background:#21a66d; box-shadow:0 0 0 3px rgba(33,166,109,.10); }

.page { padding: 30px 34px 55px; }

/* ---------- Stepper ---------- */
.stepper {
  display:grid; grid-template-columns:repeat(4,1fr); align-items:start;
  margin: 0 0 28px; padding: 0 20px;
}
.step-item { position:relative; text-align:center; color:#8ba0b8; font-size:16px; font-weight:700; }
.step-item:not(:last-child)::after { content:""; position:absolute; top:14px; left:50%; width:100%; height:2px; background:#dbe7f3; z-index:0; }
.step-item.done:not(:last-child)::after, .step-item.active:not(:last-child)::after { background:#9ac9f7; }
.step-circle { position:relative; z-index:1; margin:0 auto 7px; width:29px; height:29px; border-radius:50%; display:grid; place-items:center; border:1px solid #d5e2ef; background:#fff; color:#9aacc0; font-size:16px; }
.step-item.done .step-circle, .step-item.active .step-circle { border-color:var(--blue); background:var(--blue); color:#fff; box-shadow:0 5px 12px rgba(22,119,232,.20); }
.step-item.active { color:var(--ink); }

.eyebrow { font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: #3e83c7; font-weight: 800; margin: 0 0 8px; }
h1 { font-size: 34px; margin: 0; line-height: 1.12; letter-spacing: -.8px; color:var(--ink); }
h2 { font-size: 25px; margin: 0; letter-spacing:-.45px; color:var(--ink); }
.lede { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 64ch; margin: 10px 0 20px; }

/* ---------- Hero / intro ---------- */
.hero {
  position:relative; overflow:hidden; border-radius:22px; min-height:300px; margin-bottom:24px;
  background:
    radial-gradient(circle at 88% 30%, rgba(255,255,255,.90), transparent 18%),
    linear-gradient(115deg, #dceeff 0%, #eff7ff 48%, #c9e3f8 100%);
  border:1px solid #d7e7f5; box-shadow:var(--shadow);
  padding:40px 42% 38px 38px;
}
.hero::before { content:""; position:absolute; right:-30px; bottom:-48px; width:52%; height:90%; border-radius:50%; background:radial-gradient(circle at 50% 40%, rgba(255,255,255,.98), rgba(205,229,247,.15) 60%, transparent 70%); }
.hero::after { content:""; position:absolute; right:6%; top:14%; width:30%; height:64%; background:linear-gradient(145deg, rgba(14,74,131,.17), rgba(255,255,255,.55)); clip-path:polygon(8% 88%, 16% 25%, 31% 25%, 31% 5%, 43% 5%, 43% 32%, 56% 32%, 56% 12%, 69% 12%, 69% 41%, 84% 41%, 84% 72%, 100% 72%, 100% 100%, 0 100%); opacity:.7; }
.hero-content { position:relative; z-index:2; }
.hero h1 { max-width:570px; }
.hero .lede { max-width:520px; }
.hero-pills { display:flex; flex-wrap:wrap; gap:8px; margin:17px 0 22px; }
.hero-pill { font-size:16px; font-weight:700; color:var(--ink-2); background:rgba(255,255,255,.78); border:1px solid rgba(199,221,241,.9); border-radius:999px; padding:7px 10px; }
.hero-compact { min-height:auto; padding:28px 38px; }
.hero-compact::before, .hero-compact::after { display:none; }

.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:0 0 24px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: .3s ease;

  /* Floating Effect */
  animation: cardFloat 4s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(25,76,132,.18);
  border-color: #c7def2;
}
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 8px 22px rgba(25,76,132,.10);
  }

  50% {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(25,76,132,.16);
  }
}
.feature-card:nth-child(1) {
  animation-delay: 0s;
}

.feature-card:nth-child(2) {
  animation-delay: .4s;
}

.feature-card:nth-child(3) {
  animation-delay: .8s;
}
.feature-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:#c7def2; }
.feature-icon { width:35px; height:35px; border-radius:11px; background:var(--blue-soft); color:var(--blue); display:grid; place-items:center; margin-bottom:12px; }
.feature-icon svg { width:19px; height:19px; }
.feature-card h3 { margin:0 0 5px; font-size:16px; color:var(--ink); }
.feature-card p { margin:0; color:var(--muted); font-size:16px; line-height:1.5; }

/* ---------- Cards / forms ---------- */
.card {
  background: rgba(255,255,255,.96); border:1px solid var(--line); border-radius:15px;
  padding:22px; margin-bottom:16px; box-shadow:var(--shadow-soft);
}
.card.section-card { padding:0; overflow:hidden; }
.card-head { padding:20px 22px 13px; border-bottom:1px solid #edf3f8; }
.card-head h3 { margin:0; font-size:18px; color:var(--ink); }
.card-head p { margin:4px 0 0; font-size:16px; color:var(--muted); }

.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { margin-bottom:16px; }
.field:last-of-type { margin-bottom:0; }
.field label { display:block; font-size:16px; color:#5f7895; margin-bottom:7px; font-weight:800; }
.field label::after { content:""; }
.field input, .field select, select, input[type="text"], input[type="email"], input[type="number"] {
  width:100%; font-family:inherit; font-size:15px; padding:12px 13px; min-height:43px;
  border:1px solid #d5e3ef; border-radius:9px; background:#fff; color:var(--ink);
  transition:border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder, .field select:invalid { color:#9aabc0; }
.field input:focus, .field select:focus { outline:none; border-color:#6daeea; box-shadow:0 0 0 3px rgba(22,119,232,.10); }
.field input.input-error { border-color:#e45b5b; box-shadow:0 0 0 3px rgba(228,91,91,.08); }
.field-error { display:none; color:#e45b5b; font-size:16px; margin-top:5px; }
.field-error.show { display:block; }

.btn {
  font-family:inherit; font-size:18px; font-weight:800; padding:12px 18px; min-height:42px;
  border-radius:9px; border:1px solid transparent; cursor:pointer; background:linear-gradient(135deg,#1680ef,#0c62d0); color:#fff;
  box-shadow:0 7px 16px rgba(22,119,232,.18); transition:transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform:translateY(-1px); box-shadow:0 9px 20px rgba(22,119,232,.24); filter:brightness(1.02); }
.btn:active { transform:translateY(0); }
.btn:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; transform:none; }
.btn-ghost { background:#fff; color:var(--ink-2); border-color:#d4e1ed; box-shadow:none; }
.btn-ghost:hover { border-color:#b8d2e9; box-shadow:var(--shadow-soft); }
.row-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:20px; }
.pdf-download-wrap { margin:16px 0; }

/* ---------- Category accordion ---------- */
.cat { background:var(--surface); border:1px solid var(--line); border-radius:13px; margin-bottom:10px; overflow:hidden; box-shadow:0 3px 12px rgba(25,76,132,.035); }
.cat-head { display:flex; justify-content:space-between; align-items:center; padding:15px 17px; cursor:pointer; transition:background .15s; }
.cat-head:hover { background:#f8fbff; }
.cat-title { font-size:15px; font-weight:800; color:var(--ink); }
.cat-meta { display:flex; align-items:center; gap:10px; }
.badge { font-size:15px; color:#5e7896; background:#eef5fb; border:1px solid #dce9f4; padding:3px 8px; border-radius:999px; font-weight:700; }
.chevron { color:var(--blue); transition:transform .15s ease; font-size:16px; }
.chevron.open { transform:rotate(180deg); }
.cat-body { padding:6px 17px 15px; border-top:1px solid #edf3f8; background:#fcfdff; }
.kpi-row { display:grid; grid-template-columns:1fr 120px 90px; gap:10px; align-items:center; padding:10px 0; border-bottom:1px solid #eef3f7; }
.kpi-row:last-child { border-bottom:none; }
.kpi-label { font-size:18px; color:#31547f; }
.kpi-row input { font-size:18px; padding:8px 9px; min-height:35px; }
.kpi-unit { font-size:15px; color:#8297ad; }

.progress-meta { display:flex; justify-content:space-between; font-size:15px; color:#7690aa; font-weight:700; margin-bottom:7px; }
.progress-bar { height:7px; background:#e4edf6; border-radius:5px; overflow:hidden; margin-bottom:18px; }
.progress-fill { height:100%; background:linear-gradient(90deg,#197ee9,#49a5f4); transition:width .2s ease; }

/* ---------- Dashboard ---------- */
.overall-card { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:18px; }
.score-ring { position:relative; width:92px; height:92px; flex:none; }
.overall-tag { font-size:17px; font-weight:800; color:var(--ink); }
.overall-sub { font-size:18px; color:var(--muted); margin-top:4px; line-height:1.5; }

.benchmark-note { background:#f4f9fe; border:1px solid #d9e8f4; border-left:3px solid var(--blue); border-radius:10px; padding:13px 15px; margin:-2px 0 18px; font-size:16px; line-height:1.55; color:#71859d; }
.benchmark-note b { color:var(--ink); }
.benchmark-note span { display:block; margin-top:5px; font-size:15px; }

.section-title { font-size:18px; font-weight:800; margin:18px 0 10px; color:var(--ink); }
.chip-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:20px; }
.chip { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:13px; min-height:91px; box-shadow:var(--shadow-soft); }
.chip-label { font-size:15px; color:#7188a2; margin-bottom:7px; font-weight:700; }
.chip-score { font-size:20px; font-weight:850; color:var(--ink); }
.chip-tag { font-size:15px; font-weight:800; margin-top:2px; }
.chip-best { color:#16a36a; } .chip-good { color:#239b6b; } .chip-average { color:var(--amber); } .chip-below-average { color:var(--red); } .chip-none { color:var(--muted); }

/* ---------- Percentile legend card ---------- */
.legend-card { background:var(--surface); border:1px solid var(--line); border-radius:15px; padding:20px 22px; margin-bottom:20px; box-shadow:var(--shadow-soft); }
.legend-title { font-size:16px; font-weight:800; color:var(--ink); margin-bottom:4px; }
.legend-sub { font-size:14px; color:var(--muted); margin-bottom:16px; line-height:1.5; }
.range-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px; }
.range-item { border-radius:10px; padding:10px 12px; border:1px solid var(--line); background:#fbfdff; }
.range-dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.range-dot-below{
    background:#E45757;
}

.range-dot-average{
    background:#F59E0B;
}

.range-dot-good{
    background:#1677E8;
}

.range-dot-best{
    background:#16A36A;
}
.range-name { font-size:14px; font-weight:800; color:var(--ink); vertical-align:middle; }
.range-range { font-size:13px; color:var(--muted); margin-top:3px; font-weight:600; }
.scale-wrap { margin-bottom:14px; }
.scale-bar { position:relative; height:12px; border-radius:999px; overflow:hidden; display:flex; }
/* New Percentile Scale */

.scale-bar{
    position:relative;
    height:14px;
    border-radius:999px;
    overflow:hidden;
    display:flex;
}

.scale-seg-below{
    flex:50;
    background:#E45757;
}

.scale-seg-average{
    flex:25;
    background:#F59E0B;
}

.scale-seg-good{
    flex:15;
    background:#1677E8;
}

.scale-seg-best{
    flex:10;
    background:#16A36A;
}
.scale-ticks {
  position: relative;
  height: 22px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.scale-ticks span {
  position: absolute;
  top: 0;
}

/* Exact positions */
.scale-ticks span:nth-child(1) { left: 0%; }

.scale-ticks span:nth-child(2) {
  left: 50%;
  transform: translateX(-50%);
}

.scale-ticks span:nth-child(3) {
  left: 75%;
  transform: translateX(-50%);
}

.scale-ticks span:nth-child(4) {
  left: 90%;
  transform: translateX(-50%);
}

.scale-ticks span:nth-child(5) { right: 0%; }
.definition-box { background:#f4f9fe; border:1px solid #d9e8f4; border-left:3px solid var(--blue); border-radius:10px; padding:13px 15px; font-size:14px; line-height:1.55; color:#45577a; }
.definition-box b { color:var(--ink); }
.definition-box .example { display:block; margin-top:6px; font-size:13px; color:var(--muted); }
@media (max-width:640px){
    .range-row{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }
}

.curve-grid { display:grid; grid-template-columns:repeat(2, minmax(320px,1fr)); gap:16px; margin-bottom:18px; }
@media (min-width:1400px) { .curve-grid { grid-template-columns:repeat(3, minmax(320px,1fr)); } }
.curve-card { margin-bottom:0; padding:12px; }
.curve-card.clickable { cursor:pointer; transition:box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.curve-card.clickable:hover { box-shadow:var(--shadow); transform:translateY(-2px); border-color:#bdd9f0; }
.curve-title { font-size:18px; font-weight:800; color:var(--ink); margin-bottom:2px; }
.curve-title-row { display:flex; align-items:center; justify-content:space-between; }
.curve-open-hint { font-size:15px; color:#7891aa; font-weight:700; }
.curve-card.clickable:hover .curve-open-hint { color:var(--blue); }
.curve-sub { font-size:15px; color:var(--muted); margin-bottom:7px; }
.percentile-curve { width:100%; }

.curve-legend { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:8px; }
.curve-legend-item { display:flex; align-items:center; gap:5px; font-size:15px; font-weight:700; color:var(--ink-2); }
.curve-dot { width:8px; height:8px; border-radius:50%; display:inline-block; flex:none; }
.curve-dot-value { background:var(--blue); }
.curve-dot-avg { background:#ffffff; border:1.6px solid #6d829d; width:6px; height:6px; }
.curve-dot-best { background:var(--green); }

.curve-body { display:flex; align-items:stretch; gap:12px; }
.curve-chart { flex:1 1 auto; min-width:0; }
.curve-chart svg { display:block; overflow:visible; width:100%; }

.curve-stats { display:flex; flex-direction:column; gap:7px; flex:0 0 118px; min-width:118px; }
.curve-stat { border-radius:10px; padding:9px 10px; background:var(--surface-soft); border:1px solid var(--line); }
.curve-stat-label { font-size:11px; white-space:nowrap; font-weight:800; color:var(--muted); }
.curve-stat-num { font-size:17px; font-weight:850; line-height:1.25; }
.curve-stat-sub { font-size:10px; color:var(--muted); }
.curve-stat-value { background:var(--blue-soft); border-color:#bdd9f0; }
.curve-stat-value .curve-stat-label, .curve-stat-value .curve-stat-num { color:var(--blue-2); }
.curve-stat-avg .curve-stat-num { color:var(--ink); }
.curve-stat-best { background:#eafbf2; border-color:#bdeed1; }
.curve-stat-best .curve-stat-label, .curve-stat-best .curve-stat-num { color:var(--green); }

@media (max-width:480px) {
  .curve-body { flex-direction:column; }
  .curve-stats { flex-direction:row; flex:none; }
  .curve-stat { flex:1 1 0; }
}
/* Percentile Cards Responsive */

@media (max-width:768px){
  .range-row{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:480px){
  .range-row{
    grid-template-columns:1fr;
  }
}

.results-insights-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; margin:0 0 20px; }
.list-card { margin-bottom:0; }
.list-card .list-title { font-size:15px; font-weight:800; margin-bottom:10px; color:var(--ink); }
.list-row { display:flex; justify-content:space-between; font-size:16px; padding:8px 0; border-bottom:1px solid #eef3f7; color:#4f6d8e; }
.list-row:last-child { border-bottom:none; }
.list-good { font-weight:800; color:var(--green); } .list-bad { font-weight:800; color:var(--red); }

@media (max-width:700px) {
  .results-insights-grid { grid-template-columns:1fr; gap:12px; }
}

.empty-hint { padding:16px; border:1px dashed #cbddea; border-radius:10px; background:#f9fcff; color:#7890a8; font-size:16px; }



/* ---------- Interactive top navigation ---------- */
/* Mill Compass Branding */

.brand-button{
  display:flex;
  align-items:center;
  gap:14px;
  background:transparent;
  border:none;
  cursor:pointer;
}

.brand-divider{
  width:2px;
  height:42px;
  background:#c8d9ea;
  border-radius:2px;
}

.brand-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.1;
}

.brand-title{
  font-size:22px;
  font-weight:800;
  color:#123b70;
  letter-spacing:-0.5px;
}

.brand-subtitle{
  font-size:11px;
  color:#6d829d;
  margin-top:4px;
}

.acg-logo{
  width:105px;
  height:auto;
  display:block;
}
.brand-button:hover .brand-mark { transform:translateY(-1px); box-shadow:0 8px 18px rgba(22,119,232,.28); }
.brand-button .brand-mark { transition:transform .15s ease, box-shadow .15s ease; }

.topnav .nav-link {
  appearance:none;
  border:0;
  background:transparent;
  padding:8px 2px;
  cursor:pointer;
  transition:color .15s ease, transform .15s ease;
}
.topnav .nav-link:hover {
  color:var(--blue);
  transform:translateY(-1px);
}
.topnav .nav-link:focus-visible,
.brand-button:focus-visible {
  outline:3px solid rgba(22,119,232,.22);
  outline-offset:4px;
  border-radius:7px;
}

/* ---------- Informational pages ---------- */
.info-page { padding-top:42px; }
.info-hero {
  max-width:820px;
  margin:0 auto 30px;
  text-align:center;
}
.info-hero h1 { margin:8px 0 12px; }
.info-hero .lede { max-width:760px; margin:0 auto; }

.info-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:18px;
}
.info-card { padding:22px; }
.info-card h3 { margin:12px 0 7px; font-size:18px; }
.info-card p { margin:0; color:var(--muted); line-height:1.65; }
.info-icon, .method-number, .results-empty-icon {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:11px;
  background:var(--blue-soft);
  color:var(--blue-2);
  font-size:13px;
  font-weight:900;
}
.info-section { padding:24px; margin-top:18px; }
.info-section h2 { margin:7px 0 18px; }

.contact-profile-card { max-width:640px; margin:0 auto 16px; padding:30px; }
.contact-profile-head { display:flex; align-items:center; gap:16px; margin-bottom:22px; padding-bottom:20px; border-bottom:1px solid #edf3f8; }
.contact-avatar {
  width:60px; height:60px; border-radius:50%; flex:0 0 auto;
  display:grid; place-items:center;
  background:linear-gradient(135deg, var(--blue, #1677e8), var(--blue-2, #0d63d4));
  color:#fff; font-size:20px; font-weight:800; letter-spacing:.02em;
  box-shadow:0 6px 16px rgba(22,119,232,.28);
}
.contact-profile-name { margin:0 0 3px; font-size:19px; }
.contact-profile-role { margin:0; color:var(--muted); font-style:italic; }
.contact-tile-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.contact-tile {
  display:flex; align-items:flex-start; gap:12px;
  padding:14px; border-radius:12px; background:#f7fafd;
  border:1px solid var(--line); color:inherit; text-decoration:none;
  transition:border-color .15s ease, background .15s ease;
}
a.contact-tile:hover { border-color:var(--blue-2, #0d63d4); background:var(--blue-soft, #eaf4ff); }
.contact-tile-icon {
  width:34px; height:34px; flex:0 0 auto; border-radius:9px;
  display:grid; place-items:center;
  background:var(--blue-soft, #eaf4ff); color:var(--blue-2, #0d63d4);
}
.contact-tile-icon svg { width:18px; height:18px; }
.contact-tile-body { display:flex; flex-direction:column; gap:2px; min-width:0; }
.contact-tile-label { font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--blue-2, #0d63d4); }
.contact-tile-value { font-size:14.5px; line-height:1.45; word-break:break-word; }
@media (max-width:520px) { .contact-tile-grid { grid-template-columns:1fr; } }
.tag-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}
.info-tag {
  display:flex;
  align-items:center;
  gap:11px;
  min-height:48px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-soft);
  color:var(--ink-2);
  font-weight:750;
}
.info-tag span {
  font-size:11px;
  color:var(--blue);
  background:#fff;
  border:1px solid #d7e8f7;
  border-radius:7px;
  padding:4px 6px;
}

.method-flow {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.method-card {
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:22px;
}
.method-card h3 { margin:2px 0 7px; }
.method-card p { margin:0; color:var(--muted); line-height:1.6; }
.method-number { flex:none; border-radius:50%; }
.method-note { margin:18px 0; }
.direction-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.direction-box {
  padding:15px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-soft);
}
.direction-box strong { display:block; color:var(--ink); margin-bottom:5px; }
.direction-box span { color:var(--muted); line-height:1.5; font-size:14px; }

.results-empty {
  max-width:760px;
  margin:65px auto;
  padding:46px;
  text-align:center;
}
.results-empty-icon { width:54px; height:54px; margin:0 auto 16px; border-radius:16px; font-size:22px; }
.results-empty h1 { margin:8px 0 12px; }
.results-empty .btn { margin-top:14px; }

/* Better readability when marker labels are close together. */
.curve-marker-label text { paint-order:stroke; stroke:#fff; stroke-width:2.4px; stroke-linejoin:round; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .info-grid { grid-template-columns:1fr; }
  .method-flow { grid-template-columns:1fr; }
  .tag-grid, .direction-grid { grid-template-columns:1fr; }
  #app { max-width:100%; }
  .topnav { padding:0 18px; }
  .topnav .nav-links { gap:14px; margin-right:12px; }
  .page { padding:24px 18px 42px; }
  .hero { padding:32px; }
  .hero { min-height:330px; }
  .hero::after { opacity:.35; width:42%; }
}

@media (max-width: 560px) {
  .info-page { padding-top:28px; }
  .info-card, .info-section, .method-card, .results-empty { padding:20px; }
  .topnav {
  padding: 10px 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.topnav .nav-links {
  display: flex;
  width: 100%;
  justify-content: space-around;
  gap: 8px;
  margin: 0;
  order: 3;
}

.topnav .nav-link {
  font-size: 14px;
  white-space: nowrap;
}

.nav-status {
  font-size: 13px;
  padding: 6px 10px;
}
  .nav-status { font-size:15px; }
  .page { padding:20px 13px 34px; }
  h1 { font-size:28px; }
  h2 { font-size:22px; }
  .hero { padding:27px 23px; min-height:360px; }
  .hero::after { width:72%; right:-16%; bottom:2%; opacity:.28; }
  .feature-grid, .form-grid, .curve-grid, .chip-row { grid-template-columns:1fr; }
  .stepper { padding:0; }
  .step-item { font-size:8px; }
  .step-circle { width:25px; height:25px; font-size:15px; }
  .step-item:not(:last-child)::after { top:12px; }
  .kpi-row { grid-template-columns:1fr 90px 65px; gap:6px; }
  .row-actions { align-items:stretch; }
  .row-actions .btn { flex:1; }
}

/* Benchmark percentile explanation */
.curve-formula{
  margin: 4px 0 10px;
  padding: 8px 10px;
  border: 1px solid #dbe8f6;
  border-radius: 10px;
  background: #f7fbff;
  display:flex;
  gap:8px;
  align-items:baseline;
  flex-wrap:wrap;
  font-size:12px;
}
.formula-title{font-weight:800;color:#123b70}
.formula-text{color:#607895;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.curve-marker-label text{paint-order:stroke;stroke:#fff;stroke-width:2px;stroke-linejoin:round}
.acg-logo {
  width: 120px;
  height: auto;
  display: block;
  object-fit: contain;
}
/* Hide benchmark formula from all graphs */
.curve-formula {
  display: none !important;
}
.hero {
    position: relative;
    overflow: hidden;

    /* Premium Floating Card Effect */
    animation: heroFloat 5s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, box-shadow;
}
/* Premium Floating Hero Box */
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 14px 40px rgba(25, 76, 132, 0.10);
    }

    50% {
        transform: translateY(-12px) scale(1.01);
        box-shadow: 0 28px 60px rgba(25, 76, 132, 0.18);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58%;
    max-width: 900px;
    z-index: 1;
    pointer-events: none;
}

/* Hero Image - Premium Floating Effect */
.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,.15));
}

/* Premium Floating Animation */
@keyframes premiumFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    }

    50% {
        transform: translateY(-18px) rotate(-1deg) scale(1.02);
        filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.08));
    }
}
/* Privacy & Download Reminder */

.privacy-note{
    margin-top:24px;
    padding:18px;
    background:rgba(255,255,255,.75);
    border:1px solid #d8e6f2;
    border-radius:14px;
}

.privacy-item{
    display:flex;
    gap:14px;
    align-items:flex-start;
}

.privacy-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    background:#eaf4ff;
    color:#1677e8;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    border:1px solid #cfe3f7;
}

.privacy-item h4{
    margin:0 0 6px;
    color:#123b70;
    font-size:16px;
    font-weight:800;
}

.privacy-item p{
    margin:0;
    color:#425b78;;
    font-size:14px;
    line-height:1.6;
}

.privacy-divider{
    height:1px;
    background:#d8e6f2;
    margin:16px 0;
}
/* PDF Download Reminder */

.pdf-download-wrap{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    margin-top:18px;
}

.download-note{
    flex:1;
    min-width:320px;
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 16px;
    background:rgba(255,255,255,.75);
    border:1px solid #d8e6f2;
    border-radius:14px;
}

.download-icon{
    width:38px;
    height:38px;
    border-radius:10px;
    background:#eaf4ff;
    color:#1677e8;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.download-note strong{
    display:block;
    color:#123b70;
    margin-bottom:4px;
}

.download-note p{
    margin:0;
    font-size:14px;
    line-height:1.5;
    color:#425b78;
}

@media(max-width:768px){
    .pdf-download-wrap{
        flex-direction:column;
        align-items:stretch;
    }
}
/* ==============================
   Responsive Layout
============================== */

/* Tablet */
@media (max-width: 992px){

  .feature-grid,
  .chip-row,
  .curve-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .hero{
    padding:30px;
    min-height:auto;
  }

  .hero-visual{
    width:48%;
  }
}

/* Mobile */
@media (max-width:768px){

  .page{
    padding:20px 16px 32px;
  }

  /* Hero */
  .hero{
    padding:24px;
    display:flex;
    flex-direction:column;
    gap:20px;
  }

  .hero-content{
    order:1;
  }

  .hero-visual{
    position:relative;
    width:100%;
    order:2;
  }

  .hero-visual img{
    width:100%;
  }

  h1{
    font-size:30px;
  }

  /* Cards */
  .feature-grid,
  .chip-row,
  .curve-grid,
  .form-grid,
  .info-grid,
  .method-flow{
    grid-template-columns:1fr;
  }

  /* KPI rows */
  .kpi-row{
    grid-template-columns:1fr;
  }

  .kpi-unit{
    text-align:right;
  }

  /* Graph stats */
  .curve-body{
    flex-direction:column;
  }

  .curve-stats{
    flex-direction:row;
  }

  .curve-stat{
    flex:1;
  }

  /* Buttons */
  .row-actions{
    flex-direction:column;
  }

  .row-actions .btn{
    width:100%;
  }

  /* PDF section */
  .pdf-download-wrap{
    flex-direction:column;
    align-items:stretch;
  }

  .download-note{
    min-width:100%;
  }
}

/* Small phones */
@media (max-width:480px){

  .stepper{
    display:flex;
    overflow-x:auto;
    gap:18px;
  }

  .step-item{
    min-width:70px;
  }

  .brand-title{
    font-size:18px;
  }

  .brand-subtitle{
    font-size:9px;
  }

  .acg-logo{
    width:80px;
  }
}

/* =========================================================
   MODERN SIDEBAR UI — keeps existing functionality intact
   ========================================================= */
.topnav {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  min-height: 100vh;
  height: 100vh;
  padding: 28px 18px 20px;
  background: rgba(255,255,255,.94);
  background-image: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,247,255,.96));
  border-right: 1px solid #dceaf7;
  border-bottom: 0;
  box-shadow: 8px 0 30px rgba(25,76,132,.055);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  backdrop-filter: blur(16px);
}
.brand-button {
  border: 0;
  background: transparent;
  padding: 2px 10px 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.acg-logo { width: 54px; height: auto; object-fit: contain; }
.brand-text { display:flex; flex-direction:column; min-width:0; }
.topnav .brand-title { font-size: 17px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.topnav .brand-subtitle { margin-top: 4px; font-size: 9px; line-height: 1.2; color: #7890ab; font-weight: 600; }
.sidebar-label { margin: 14px 11px 9px; font-size: 9px; letter-spacing: 1.6px; font-weight: 800; color: #9aacc0; }
.topnav .nav-links { display:flex; flex-direction:column; gap:6px; margin:0; }
.topnav .nav-link {
  width:100%; border:0; background:transparent; color:#6d829d; font-size:14px; font-weight:700;
  min-height:46px; padding:0 13px; border-radius:13px; display:flex; align-items:center; gap:12px; text-align:left; cursor:pointer;
  transition: .2s ease;
}
.topnav .nav-link:hover { background:#f0f7ff; color:var(--blue); transform:translateX(2px); }
.topnav .nav-link.active { color:var(--blue); background:linear-gradient(90deg,#e4f1ff,#f4f9ff); box-shadow: inset 3px 0 0 var(--blue); }
.topnav .nav-link.active::after { display:none; }
.nav-icon { width:21px; height:21px; display:grid; place-items:center; flex:none; }
.nav-icon svg { width:19px; height:19px; }
.sidebar-bottom { margin-top:auto; }
.sidebar-message {
  position:relative; overflow:hidden; margin:0 2px 14px; padding:17px 15px; border-radius:18px;
  background:linear-gradient(145deg,#eaf5ff,#f8fbff); border:1px solid #dcecf9;
}
.sidebar-message::after { content:""; position:absolute; width:100px; height:100px; right:-42px; bottom:-48px; border-radius:50%; border:18px solid rgba(22,119,232,.07); }
.sidebar-message-kicker { display:block; font-size:8px; letter-spacing:1.3px; font-weight:800; color:#4d8ccc; margin-bottom:8px; }
.sidebar-message strong { display:block; font-size:14px; line-height:1.4; color:var(--ink); }
.sidebar-message > span:last-child { display:block; margin-top:8px; font-size:9px; color:#7890ab; font-weight:700; }
.nav-status { align-self:stretch; justify-content:center; gap:7px; font-size:11px; color:var(--blue); background:#edf6ff; border:1px solid #d7eafb; padding:8px 10px; border-radius:999px; }

body { background: radial-gradient(circle at 25% 0%, rgba(95,168,235,.10), transparent 28%), linear-gradient(180deg,#f7fbff 0%,#eef6fd 100%); }
.page { margin-left:245px; padding:34px 42px 55px; max-width:none; }
.home-main { margin-left:245px; padding:34px 42px 55px; min-height:100vh; }

/* Home */
.home-hero {
  position:relative; min-height:425px; display:grid; grid-template-columns: .92fr 1.08fr; align-items:center; overflow:hidden;
  border:1px solid #d8e9f8; border-radius:28px; background:linear-gradient(120deg,#eef7ff 0%,#ffffff 48%,#e5f3ff 100%);
  box-shadow:0 18px 50px rgba(25,76,132,.10); padding:42px 44px; isolation:isolate;
}
.home-hero::before { content:""; position:absolute; width:430px; height:430px; right:10%; top:-220px; border-radius:50%; border:1px solid rgba(22,119,232,.10); box-shadow:0 0 0 30px rgba(22,119,232,.025),0 0 0 65px rgba(22,119,232,.018); z-index:-1; }
.home-hero-copy { position:relative; z-index:3; max-width:620px; }
.home-kicker { display:inline-flex; align-items:center; gap:9px; color:#2f80d4; background:rgba(255,255,255,.82); border:1px solid #d5e8f8; border-radius:999px; padding:8px 12px; font-size:10px; letter-spacing:1.2px; font-weight:800; }
.home-kicker i { width:3px; height:3px; background:#72a9d8; border-radius:50%; }
.kicker-icon { display:grid; place-items:center; width:18px; height:18px; border-radius:6px; background:#eaf4ff; color:var(--blue); font-size:12px; }
.home-hero h1 { margin:19px 0 13px; max-width:650px; font-size:48px; line-height:1.04; letter-spacing:-1.8px; color:#123b73; }
.home-hero h1 span { color:#1677e8; }
.home-hero-copy > p { max-width:590px; margin:0; color:#7188a3; font-size:14px; line-height:1.7; }
.home-actions { display:flex; align-items:center; gap:25px; margin-top:26px; }
.home-primary { border-radius:999px; padding:13px 22px; min-height:46px; }
.home-primary span { margin-left:8px; font-size:19px; }
.home-text-link { border:0; background:transparent; color:#176ac7; font-weight:800; font-size:13px; cursor:pointer; padding:10px 0; }
.home-text-link span { margin-left:7px; }
.home-mini-stats { display:flex; gap:0; margin-top:30px; }
.home-mini-stats > div { padding:0 20px; border-left:1px solid #d7e5f2; display:flex; flex-direction:column; gap:3px; }
.home-mini-stats > div:first-child { padding-left:0; border-left:0; }
.home-mini-stats strong { font-size:17px; color:var(--ink); }
.home-mini-stats span { font-size:9px; color:#7d92aa; font-weight:700; }
.home-hero-art { position:relative; min-height:330px; display:flex; align-items:center; justify-content:center; }
.hero-image-frame { position:relative; z-index:2; width:92%; border-radius:45% 24px 45% 24px; overflow:hidden; border:8px solid rgba(255,255,255,.75); box-shadow:0 22px 45px rgba(25,76,132,.16); transform:rotate(-2deg); }
.hero-image-frame img { width:100%; height:280px; display:block; object-fit:cover; }
.art-orbit { position:absolute; border:1px solid rgba(22,119,232,.16); border-radius:50%; z-index:1; }
.orbit-one { width:430px; height:230px; transform:rotate(-14deg); }
.orbit-two { width:330px; height:180px; transform:rotate(18deg); border-color:rgba(22,119,232,.10); }
.floating-metric { position:absolute; z-index:4; left:0; top:44px; display:flex; align-items:center; gap:9px; background:#fff; border:1px solid #dbeafa; border-radius:15px; padding:10px 13px; box-shadow:0 12px 28px rgba(25,76,132,.13); }
.metric-icon { width:31px; height:31px; display:grid; place-items:center; border-radius:10px; background:#eaf4ff; color:var(--blue); font-weight:900; }
.floating-metric small { display:block; color:#8195aa; font-size:8px; font-weight:700; }
.floating-metric strong { display:block; color:#1677e8; font-size:14px; margin-top:2px; }
.floating-note { position:absolute; z-index:4; right:-3px; bottom:30px; color:#245a92; font-size:10px; line-height:1.4; font-weight:800; transform:rotate(-4deg); }
.floating-note span { display:block; text-align:center; font-size:17px; }
.platform-section { margin-top:32px; }
.section-heading-row { display:flex; justify-content:space-between; align-items:flex-end; margin:0 2px 16px; }
.section-heading-row > div { position:relative; padding-left:28px; }
.section-line { position:absolute; left:0; top:5px; width:18px; height:3px; border-radius:5px; background:var(--blue); }
.section-kicker { font-size:9px; letter-spacing:1.5px; font-weight:800; color:#6e91b3; }
.section-heading-row h2 { margin-top:5px; font-size:21px; }
.section-count { color:#91a7bd; font-size:11px; font-weight:800; letter-spacing:1px; }
.home-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:17px; }
.home-feature-card { position:relative; min-height:215px; overflow:hidden; border:1px solid #dceaf7; border-radius:21px; padding:22px 22px 20px; background:#fff; box-shadow:0 10px 28px rgba(25,76,132,.07); cursor:pointer; transition:.25s ease; }
.home-feature-card:hover { transform:translateY(-7px); box-shadow:0 20px 38px rgba(25,76,132,.13); border-color:#c5ddf2; }
.home-feature-card:focus-visible { outline:3px solid rgba(22,119,232,.18); }
.card-blue { background:linear-gradient(145deg,#fff 20%,#f1f8ff); }
.card-sky { background:linear-gradient(145deg,#fff 20%,#eef8ff); }
.card-lilac { background:linear-gradient(145deg,#fff 20%,#f5f3ff); }
.feature-top { display:flex; justify-content:space-between; align-items:center; }
.big-feature-icon { width:39px; height:39px; border-radius:12px; display:grid; place-items:center; background:#eaf4ff; color:var(--blue); font-size:22px; font-weight:900; }
.feature-number { color:#a0b2c5; font-size:10px; font-weight:800; letter-spacing:1px; }
.home-feature-card h3 { margin:19px 0 6px; font-size:16px; color:var(--ink); }
.home-feature-card p { max-width:245px; margin:0; color:#7188a2; font-size:11px; line-height:1.6; }
.feature-link { position:absolute; left:22px; bottom:20px; color:#1677e8; font-size:10px; font-weight:800; }
.feature-link b { font-size:15px; margin-left:6px; }
.feature-visual { position:absolute; right:18px; bottom:10px; color:#a8cef1; opacity:.7; }
.bars { display:flex; align-items:flex-end; gap:5px; height:70px; }
.bars i { display:block; width:12px; border-radius:6px 6px 2px 2px; background:#b8daf7; }
.bars i:nth-child(1){height:20px}.bars i:nth-child(2){height:32px}.bars i:nth-child(3){height:47px}.bars i:nth-child(4){height:64px}
.line-chart { width:170px; height:68px; }
.line-chart svg { width:100%; height:100%; }
.target-mark { font-size:78px; line-height:1; }

/* Other pages use the same modern sidebar + compact content */
.info-page { max-width:1200px; }
.info-hero { position:relative; overflow:hidden; border:1px solid #dceaf7; border-radius:24px; padding:32px 34px; margin-bottom:20px; background:linear-gradient(120deg,#edf7ff,#fff); box-shadow:var(--shadow-soft); }
.info-hero::after { content:""; position:absolute; right:-90px; top:-110px; width:300px; height:300px; border-radius:50%; border:45px solid rgba(22,119,232,.035); }
.info-hero h1 { max-width:760px; font-size:38px; }
.info-grid { gap:17px; }
.info-card { border-radius:19px; min-height:165px; transition:.2s ease; }
.info-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.card, .cat, .legend-card { border-radius:18px; }
.btn { border-radius:12px; }
.stepper { background:#fff; border:1px solid #dceaf7; border-radius:18px; padding:13px 16px; box-shadow:0 7px 20px rgba(25,76,132,.05); margin-bottom:24px; }
.step-item { font-size:12px; }
.step-circle { width:27px; height:27px; font-size:12px; }

@media (max-width: 1000px) {
  .topnav { width:205px; }
  .page, .home-main { margin-left:205px; padding-left:25px; padding-right:25px; }
  .home-hero { grid-template-columns:1fr; padding:30px; }
  .home-hero-art { margin-top:18px; min-height:260px; }
  .home-feature-grid { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .topnav { position:relative; width:100%; height:auto; min-height:0; padding:12px; border-right:0; border-bottom:1px solid #dceaf7; }
  .brand-button { padding-bottom:12px; }
  .sidebar-label, .sidebar-message, .nav-status { display:none; }
  .topnav .nav-links { flex-direction:row; overflow-x:auto; }
  .topnav .nav-link { min-width:max-content; width:auto; padding:0 12px; }
  .page, .home-main { margin-left:0; padding:20px 14px 35px; }
  .home-hero { border-radius:20px; padding:25px 20px; }
  .home-hero h1 { font-size:34px; }
  .home-hero-art { min-height:220px; }
  .hero-image-frame img { height:210px; }
  .floating-metric { left:0; top:10px; }
  .floating-note { right:0; bottom:5px; }
  .home-mini-stats { gap:12px; flex-wrap:wrap; }
  .home-mini-stats > div { padding-left:12px; }
  .section-heading-row { align-items:flex-start; }
  .section-count { display:none; }
  .form-grid, .chip-row, .range-row { grid-template-columns:1fr; }
}
.kpi-note {
  margin: 10px 0 18px;
  padding: 10px 14px;
  border-left: 3px solid #1683f8;
  background: #f5f9ff;
  color: #5f7898;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
}

.kpi-note strong {
  color: #123f78;
}
