@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;
  }
}
