:root {
  --ink: #101211;
  --ink-soft: #252a27;
  --cream: #f6f2e9;
  --paper: #fffdf8;
  --orange: #f47721;
  --orange-dark: #d95b0c;
  --green: #49b46d;
  --green-dark: #19743c;
  --line: rgba(16, 18, 17, 0.14);
  --muted: #646b66;
  --shadow: 0 28px 80px rgba(6, 28, 16, 0.15);
  --radius-lg: 32px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 119, 33, 0.1), transparent 28rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 12px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--ink);
  border-radius: 13px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -1px;
  place-items: center;
}

.brand-mark span {
  color: var(--orange);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presentation-toggle {
  display: flex;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.66);
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.presentation-toggle:hover,
.presentation-toggle[aria-pressed="true"] {
  color: white;
  background: var(--ink);
}

.presentation-toggle svg,
.primary-link svg,
.next-button svg,
.back-button svg,
.cta-button svg,
.pdf-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  padding: 76px 0 110px;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 24px;
  height: 3px;
  background: var(--orange);
  border-radius: 99px;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 860;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero-lead {
  max-width: 640px;
  margin: 28px 0;
  color: #454b47;
  font-size: 18px;
  line-height: 1.65;
}

.primary-link,
.cta-button {
  display: inline-flex;
  min-height: 56px;
  padding: 0 24px;
  color: white;
  background: var(--ink);
  border-radius: 14px;
  font-weight: 750;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-link:hover,
.cta-button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.time-note {
  display: inline-block;
  margin: 0 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-visual::before {
  position: absolute;
  width: 340px;
  height: 340px;
  top: 10px;
  right: 10px;
  border: 1px dashed rgba(16, 18, 17, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-visual::after {
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  right: -30px;
  bottom: 5px;
  background: var(--green);
  border-radius: 38% 62% 64% 36% / 44% 38% 62% 56%;
  content: "";
  opacity: 0.2;
}

.code-window {
  position: absolute;
  top: 42px;
  right: 0;
  width: min(470px, 94%);
  overflow: hidden;
  color: #eaf2ec;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.window-top {
  display: flex;
  height: 50px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  gap: 7px;
}

.window-top span {
  width: 9px;
  height: 9px;
  background: #59605c;
  border-radius: 50%;
}

.window-top span:first-child {
  background: var(--orange);
}

.window-top span:nth-child(2) {
  background: #eec756;
}

.window-top span:nth-child(3) {
  background: var(--green);
}

.window-top small {
  margin-left: auto;
  color: #89918c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-lines {
  padding: 36px 34px 44px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.8;
}

.code-lines p {
  margin: 0;
}

.code-lines b {
  color: var(--orange);
}

.code-lines i {
  color: #70d891;
  font-style: normal;
}

.code-lines .indent {
  padding-left: 32px;
  color: #c9d0cc;
}

.coverage-card {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 330px;
  right: 120px;
  bottom: 20px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid rgba(16, 18, 17, 0.08);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(16, 18, 17, 0.14);
  align-items: center;
  gap: 18px;
}

.coverage-ring {
  display: grid;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  background: conic-gradient(var(--orange) 0 40%, #e8e3da 40% 100%);
  border-radius: 50%;
  place-items: center;
}

.coverage-ring::before {
  width: 64px;
  height: 64px;
  background: var(--paper);
  border-radius: 50%;
  content: "";
  grid-area: 1 / 1;
}

.coverage-ring span {
  z-index: 1;
  font-size: 24px;
  font-weight: 850;
  grid-area: 1 / 1;
}

.coverage-ring small {
  font-size: 12px;
}

.coverage-card strong {
  font-size: 16px;
}

.coverage-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tool-section {
  padding: 96px 20px 110px;
  color: white;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 34px 34px;
}

.tool-intro,
.tool-shell,
.principle-section {
  width: min(1060px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.eyebrow.light {
  color: #8ce1a8;
}

.tool-intro {
  display: grid;
  margin-bottom: 38px;
  grid-template-columns: 1.25fr 0.75fr;
  column-gap: 80px;
  align-items: end;
}

.tool-intro .eyebrow {
  grid-column: 1 / -1;
}

.tool-intro h2,
.principle-section h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.tool-intro > p:last-child {
  margin: 0;
  color: #abb3ae;
  line-height: 1.65;
}

.tool-shell {
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.34);
}

.tool-progress {
  padding: 24px 36px 0;
}

.progress-copy {
  display: flex;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.03em;
  justify-content: space-between;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: #eae6dd;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ff9d5c);
  border-radius: inherit;
  transition: width 260ms ease;
}

#advisor-form {
  padding: 44px 36px 30px;
}

.question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  animation: question-in 260ms ease both;
}

@keyframes question-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.question legend {
  max-width: 810px;
  margin: 0 auto;
  padding: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 840;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-align: center;
}

.question-help {
  margin: 12px auto 30px;
  color: var(--muted);
  text-align: center;
}

.school-table-link {
  display: flex;
  width: fit-content;
  min-height: 42px;
  margin: 14px auto 0;
  padding: 9px 14px;
  border: 1px solid rgba(25, 116, 60, 0.22);
  border-radius: 12px;
  color: var(--green-dark);
  background: #edf8f0;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.school-table-link:hover {
  border-color: var(--green-dark);
  background: #e2f4e7;
  transform: translateY(-1px);
}

.school-table-link:focus-visible {
  outline: 3px solid rgba(244, 119, 33, 0.3);
  outline-offset: 3px;
}

.choice-grid {
  display: grid;
  gap: 14px;
}

.choice-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 185px;
  padding: 24px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: border 150ms ease, transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.choice-card:hover {
  border-color: rgba(244, 119, 33, 0.6);
  box-shadow: 0 10px 28px rgba(16, 18, 17, 0.08);
  transform: translateY(-2px);
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid rgba(244, 119, 33, 0.3);
  outline-offset: 3px;
}

.choice-card:has(input:checked) {
  border-color: var(--orange);
  background: #fff8f1;
  box-shadow: 0 0 0 3px rgba(244, 119, 33, 0.12);
}

.choice-card:has(input:checked)::after {
  position: absolute;
  display: grid;
  width: 25px;
  height: 25px;
  top: 12px;
  right: 12px;
  color: white;
  background: var(--orange);
  border-radius: 50%;
  content: "✓";
  font-size: 14px;
  font-weight: 900;
  place-items: center;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.choice-icon {
  display: grid;
  min-width: 66px;
  height: 58px;
  margin-bottom: 17px;
  padding: 0 8px;
  color: var(--orange-dark);
  background: #fff0e3;
  border-radius: 15px;
  font-size: 20px;
  font-weight: 900;
  place-items: center;
}

.score-band {
  display: grid;
  width: 100%;
  max-width: 230px;
  min-height: 58px;
  margin-bottom: 10px;
  padding: 10px 14px;
  color: var(--orange-dark);
  background: #fff0e3;
  border-radius: 15px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  place-items: center;
}

.choice-emoji {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 17px;
  color: var(--green-dark);
  background: #e8f6ec;
  border-radius: 15px;
  font-size: 26px;
  font-weight: 900;
  place-items: center;
}

.choice-card strong {
  font-size: 17px;
}

.choice-card small {
  max-width: 250px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.choice-card.wide {
  min-height: 112px;
  padding: 20px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
}

.choice-card.wide > span:last-child {
  display: grid;
}

.choice-symbol {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  color: var(--orange-dark);
  background: #fff0e3;
  border-radius: 14px;
  font-size: 24px;
  font-weight: 800;
  place-items: center;
}

.form-actions {
  display: grid;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  grid-template-columns: 130px 1fr 150px;
  align-items: center;
}

.form-actions button {
  display: flex;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.back-button {
  color: var(--ink);
  background: #eeeae2;
}

.next-button {
  color: white;
  background: var(--orange);
}

.form-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.result {
  padding: 46px;
  animation: result-in 430ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-top {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 44px;
  align-items: center;
}

.result-kicker {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result h3 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.result-summary {
  max-width: 760px;
  margin: 18px 0 0;
  color: #4e5550;
  font-size: 17px;
  line-height: 1.6;
}

.result-gauge {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  background: conic-gradient(var(--orange) 0 var(--gauge, 70%), #ebe7de var(--gauge, 70%) 100%);
  border-radius: 50%;
  place-items: center;
}

.result-gauge::before {
  width: 106px;
  height: 106px;
  background: var(--paper);
  border-radius: 50%;
  content: "";
  grid-area: 1 / 1;
}

.result-gauge span,
.result-gauge small {
  z-index: 1;
  grid-area: 1 / 1;
}

.result-gauge span {
  margin-top: -20px;
  font-size: 18px;
  font-weight: 900;
}

.result-gauge small {
  margin-top: 40px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.reason-grid {
  display: grid;
  margin: 34px 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.reason-card {
  display: grid;
  padding: 18px;
  background: #f4f1ea;
  border-radius: 15px;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.reason-card .reason-mark {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--green-dark);
  background: #dff1e5;
  border-radius: 10px;
  font-weight: 900;
  place-items: center;
}

.reason-card strong {
  font-size: 14px;
}

.reason-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.result-plan {
  display: flex;
  padding: 23px 24px;
  color: white;
  background: var(--ink);
  border-radius: 20px;
  align-items: center;
  gap: 20px;
}

.plan-number {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  color: white;
  background: var(--orange);
  border-radius: 19px;
  font-size: 36px;
  font-weight: 900;
  place-items: center;
}

.result-plan p {
  margin: 0 0 3px;
  color: #86dba2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-plan h4 {
  margin: 0 0 5px;
  font-size: 22px;
}

.result-plan span {
  color: #b7c0ba;
  font-size: 13px;
  line-height: 1.45;
}

.result-actions {
  display: flex;
  margin-top: 24px;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-button {
  min-height: 50px;
  background: var(--orange);
}

.pdf-button,
.restart-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  font-weight: 700;
}

.pdf-button {
  display: flex;
  align-items: center;
  gap: 7px;
}

.restart-button {
  margin-left: auto;
  color: var(--ink);
  border-color: var(--ink);
}

.pdf-report {
  display: none;
}

.result-disclaimer {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.estimate-modal {
  width: min(860px, calc(100% - 32px));
  max-height: min(90vh, 920px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 30px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.estimate-modal::backdrop {
  background: rgba(5, 12, 8, 0.78);
  backdrop-filter: blur(6px);
}

.estimate-modal[open] {
  animation: estimate-modal-in 220ms ease-out;
}

.estimate-modal [hidden] {
  display: none !important;
}

.estimate-modal-inner {
  position: relative;
  min-height: 540px;
  padding: 52px;
}

.estimate-modal-close {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  top: 18px;
  right: 18px;
  padding: 0;
  color: var(--muted);
  background: #f2eee6;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
  place-items: center;
}

.estimate-modal-close:hover,
.estimate-modal-close:focus-visible {
  color: white;
  background: var(--ink);
}

.estimate-loading {
  display: grid;
  min-height: 436px;
  text-align: center;
  align-content: center;
  justify-items: center;
}

.estimate-kicker,
.scenario-label,
.estimate-result-level {
  margin: 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.estimate-loading h2,
.estimate-final h2 {
  margin: 16px 0 0;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.estimate-loading h2 {
  max-width: 620px;
  font-size: clamp(42px, 6vw, 64px);
}

.estimate-loading > p:nth-of-type(2) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.scenario-roulette {
  display: flex;
  width: 190px;
  min-height: 132px;
  margin-top: 34px;
  padding: 16px;
  color: white;
  background: var(--ink);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(16, 18, 17, 0.2);
  align-items: baseline;
  justify-content: center;
}

.scenario-roulette strong {
  min-width: 100px;
  font-size: 76px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.07em;
  line-height: 1.2;
}

.scenario-roulette span {
  color: #8ce1a8;
  font-size: 17px;
  font-weight: 850;
}

.scenario-roulette-caption {
  margin: 12px 0 0 !important;
  color: var(--muted);
  font-size: 13px !important;
  font-weight: 700;
}

.estimate-progress {
  width: min(420px, 100%);
  height: 7px;
  margin-top: 24px;
  overflow: hidden;
  background: #e8e3da;
  border-radius: 99px;
}

.estimate-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ffab67);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
}

.estimate-progress span.is-running {
  animation: estimate-progress 12s linear forwards;
}

.estimate-final {
  padding: 16px 0 0;
}

.scenario-label {
  display: inline-flex;
  padding: 9px 13px;
  color: var(--orange-dark);
  background: #fff0e3;
  border-radius: 999px;
  gap: 6px;
}

.estimate-result-level {
  margin-top: 22px;
}

.estimate-final h2 {
  max-width: 700px;
  font-size: clamp(36px, 5vw, 52px);
}

.estimate-final h2:focus {
  outline: none;
}

.estimate-result-summary {
  max-width: 720px;
  margin: 18px 0 0;
  color: #4e5550;
  font-size: 16px;
  line-height: 1.65;
}

.estimate-reasons {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.estimate-reasons .reason-card {
  padding: 15px;
}

.estimate-modal-plan {
  margin-top: 24px;
  padding: 20px 22px;
  color: white;
  background: var(--ink);
  border-radius: 18px;
}

.estimate-modal-plan strong {
  font-size: 20px;
}

.estimate-modal-plan p {
  margin: 6px 0 0;
  color: #b7c0ba;
  font-size: 13px;
  line-height: 1.5;
}

.estimate-done-button {
  min-height: 48px;
  margin-top: 22px;
  padding: 0 22px;
  color: white;
  background: var(--orange);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 850;
}

@keyframes estimate-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes estimate-progress {
  to {
    transform: scaleX(1);
  }
}

.principle-section {
  display: block;
  padding: 120px 20px;
}

.principle-heading {
  max-width: 780px;
}

.principle-opening {
  display: grid;
  margin-top: 34px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 76px;
  align-items: start;
}

.principle-body {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.principle-body-opening {
  max-width: 630px;
}

.principle-body-continuation {
  max-width: 1000px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.principle-body p {
  margin: 0;
}

.principle-body p + p {
  margin-top: 16px;
}

.principle-body strong {
  color: var(--orange-dark);
}

.principle-note {
  position: relative;
  display: grid;
  padding: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(16, 18, 17, 0.09);
  gap: 10px;
}

.principle-note::before {
  position: absolute;
  width: 10px;
  top: 24px;
  bottom: 24px;
  left: -5px;
  background: linear-gradient(var(--orange) 50%, var(--green) 50%);
  border-radius: 99px;
  content: "";
}

.principle-note span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.principle-note del {
  margin-bottom: 16px;
  color: #747a76;
  font-size: 16px;
}

.principle-note strong {
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

footer {
  display: flex;
  padding: 26px max(20px, calc((100% - 1180px) / 2));
  color: #aeb7b1;
  background: var(--ink);
  font-size: 12px;
  justify-content: space-between;
  gap: 20px;
}

footer p {
  margin: 0;
}

.privacy-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  background: var(--green);
  border-radius: 50%;
}

body.present-mode .site-header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 13px max(20px, calc((100% - 1180px) / 2));
  background: rgba(246, 242, 233, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

body.present-mode .hero,
body.present-mode .principle-section,
body.present-mode footer {
  display: none;
}

body.present-mode .tool-section {
  display: grid;
  min-height: calc(100vh - 72px);
  padding-top: 40px;
  align-content: start;
}

body.present-mode .tool-intro {
  display: block;
  margin-bottom: 24px;
  text-align: center;
}

body.present-mode .tool-intro > p:last-child,
body.present-mode .tool-intro .eyebrow {
  display: none;
}

body.present-mode .tool-intro h2 {
  font-size: clamp(34px, 4vw, 52px);
}

/*
 * The active WordPress theme applies global heading typography with greater
 * specificity. Keep the advisor's visual system intact without affecting the
 * rest of the website.
 */
body.expertin-advisor-page .hero h1,
body.expertin-advisor-page .tool-intro h2,
body.expertin-advisor-page .question legend,
body.expertin-advisor-page .result h3,
body.expertin-advisor-page .result-plan h4,
body.expertin-advisor-page .estimate-modal h2,
body.expertin-advisor-page .principle-section h2,
body.expertin-advisor-page .pdf-report h1,
body.expertin-advisor-page .pdf-report h2,
body.expertin-advisor-page .pdf-report h3 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-transform: none !important;
}

body.expertin-advisor-page .hero h1,
body.expertin-advisor-page .principle-section h2,
body.expertin-advisor-page .result h3,
body.expertin-advisor-page .estimate-modal h2,
body.expertin-advisor-page .pdf-report h1,
body.expertin-advisor-page .pdf-report h2,
body.expertin-advisor-page .pdf-report h3 {
  color: var(--ink) !important;
}

body.expertin-advisor-page .tool-intro h2,
body.expertin-advisor-page .result-plan h4 {
  color: white !important;
}

body.expertin-advisor-page a.primary-link,
body.expertin-advisor-page a.primary-link:link,
body.expertin-advisor-page a.primary-link:visited,
body.expertin-advisor-page a.primary-link:hover,
body.expertin-advisor-page a.primary-link:focus,
body.expertin-advisor-page a.primary-link:active,
body.expertin-advisor-page a.cta-button,
body.expertin-advisor-page a.cta-button:link,
body.expertin-advisor-page a.cta-button:visited,
body.expertin-advisor-page a.cta-button:hover,
body.expertin-advisor-page a.cta-button:focus,
body.expertin-advisor-page a.cta-button:active {
  color: white !important;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 52px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-visual {
    width: min(620px, 100%);
    min-height: 460px;
    margin: 0 auto;
  }

  .tool-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tool-intro > p:last-child {
    max-width: 680px;
  }

  .principle-section {
    width: min(760px, 100%);
  }

  .principle-opening {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .principle-body-opening,
  .principle-body-continuation {
    max-width: 680px;
  }

  .principle-body-continuation {
    margin-top: 30px;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: calc(100% - 28px);
    padding: 18px 0;
  }

  .brand-copy small,
  .presentation-toggle span {
    display: none;
  }

  .presentation-toggle {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .hero {
    width: calc(100% - 32px);
    padding: 42px 0 76px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .primary-link {
    width: 100%;
  }

  .time-note {
    display: block;
    margin: 10px 0 0;
    text-align: center;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-visual::before {
    width: 280px;
    height: 280px;
  }

  .hero-visual::after {
    right: 0;
  }

  .code-window {
    width: 96%;
  }

  .code-lines {
    padding: 28px 20px 36px;
    font-size: 14px;
  }

  .coverage-card {
    width: min(310px, 92%);
    right: auto;
    bottom: 8px;
    left: 0;
  }

  .tool-section {
    padding: 72px 12px 78px;
  }

  .tool-intro {
    padding: 0 8px;
  }

  .tool-intro h2,
  .principle-section h2 {
    font-size: 38px;
  }

  .tool-shell {
    border-radius: 24px;
  }

  .tool-progress {
    padding: 20px 20px 0;
  }

  #advisor-form {
    padding: 34px 18px 22px;
  }

  .question legend {
    font-size: 28px;
  }

  .question-help {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .school-table-link {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
  }

  .choice-grid.three,
  .choice-grid.two {
    grid-template-columns: 1fr;
  }

  .choice-card,
  .choice-card.wide {
    min-height: 88px;
    padding: 15px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
  }

  .choice-card:not(.wide) {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 2px 14px;
  }

  .choice-card:not(.wide) > .choice-icon,
  .choice-card:not(.wide) > .choice-emoji {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .choice-card:not(.wide) > strong,
  .choice-card:not(.wide) > small {
    grid-column: 2;
  }

  .choice-icon,
  .choice-emoji,
  .choice-symbol {
    width: 50px;
    min-width: 50px;
    height: 50px;
    margin: 0;
    flex: 0 0 50px;
    font-size: 17px;
  }

  .choice-card strong,
  .choice-card small {
    display: block;
  }

  .choice-card small {
    margin-top: 3px;
  }

  .choice-card.score-choice {
    display: flex;
    min-height: 110px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .choice-card.score-choice .score-band {
    width: 100%;
    max-width: none;
    min-height: auto;
    margin: 0;
    padding: 10px 12px;
    font-size: 16px;
    place-items: start;
  }

  .choice-card.score-choice small {
    max-width: none;
    margin-top: 2px;
  }

  .form-actions {
    grid-template-columns: 48px 1fr 116px;
    gap: 8px;
  }

  .back-button {
    width: 48px;
    padding: 0 !important;
    font-size: 0;
  }

  .form-actions p {
    display: none;
  }

  .form-actions .next-button {
    grid-column: 3;
    padding: 0 12px;
  }

  .result {
    padding: 28px 20px 24px;
  }

  .result-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .result h3 {
    font-size: 38px;
  }

  .result-gauge {
    width: 110px;
    height: 110px;
  }

  .result-gauge::before {
    width: 84px;
    height: 84px;
  }

  .result-gauge span {
    font-size: 15px;
  }

  .reason-grid {
    grid-template-columns: 1fr;
  }

  .result-plan {
    padding: 18px;
    align-items: flex-start;
  }

  .plan-number {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 15px;
    font-size: 28px;
  }

  .result-actions,
  .result-actions > * {
    width: 100%;
  }

  .restart-button {
    margin-left: 0;
  }

  .pdf-button {
    justify-content: center;
  }

  .estimate-modal {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .estimate-modal-inner {
    min-height: 520px;
    padding: 52px 20px 24px;
  }

  .estimate-modal-close {
    width: 38px;
    height: 38px;
    top: 12px;
    right: 12px;
  }

  .estimate-loading {
    min-height: 420px;
  }

  .estimate-loading h2 {
    font-size: 38px;
  }

  .estimate-loading > p:nth-of-type(2) {
    font-size: 16px;
  }

  .scenario-roulette {
    width: 164px;
    min-height: 116px;
    margin-top: 28px;
  }

  .scenario-roulette strong {
    min-width: 86px;
    font-size: 64px;
  }

  .estimate-final {
    padding-top: 4px;
  }

  .estimate-final h2 {
    font-size: 34px;
  }

  .estimate-reasons {
    grid-template-columns: 1fr;
  }

  .estimate-modal-plan {
    padding: 18px;
  }

  .estimate-done-button {
    width: 100%;
  }

  .principle-section {
    padding: 78px 20px;
  }

  .principle-note {
    padding: 28px;
  }

  footer {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  body.present-mode .site-header {
    padding: 12px 16px;
  }

  body.present-mode .tool-section {
    min-height: calc(100vh - 68px);
    padding-top: 24px;
  }

  body.present-mode .tool-intro h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  html,
  body {
    width: auto;
    min-height: auto;
    color: #101211;
    background: white !important;
  }

  body > .site-header,
  body > main,
  body > footer,
  body > dialog,
  #wpadminbar,
  .skip-link {
    display: none !important;
  }

  .pdf-report {
    display: block !important;
    color: #101211;
    background: white;
    font-family: Inter, Arial, sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .pdf-report-header {
    display: flex;
    padding-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }

  .pdf-report-header img {
    display: block;
    width: 230px;
    height: auto;
  }

  .pdf-report-header div {
    text-align: right;
  }

  .pdf-report-header p {
    margin: 0 0 4px;
    color: #19743c;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.12em;
  }

  .pdf-report-header h1 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.025em;
  }

  .pdf-report-rule {
    height: 5px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #f47721 0 68%, #49b46d 68% 100%);
    border-radius: 99px;
  }

  .pdf-scenario-label {
    display: inline-flex;
    margin: 0 0 11px;
    padding: 6px 10px;
    color: #d95b0c;
    background: #fff0e3;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.12em;
    gap: 5px;
  }

  .pdf-result-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 24px;
    align-items: center;
  }

  .pdf-result-level {
    margin: 0 0 5px;
    color: #19743c;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .pdf-result-copy h2 {
    max-width: 640px;
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.035em;
    line-height: 1.08;
  }

  .pdf-result-summary {
    max-width: 680px;
    margin: 10px 0 0;
    color: #4e5550;
    font-size: 11px;
    line-height: 1.5;
  }

  .pdf-result-gauge {
    position: relative;
    display: grid;
    width: 104px;
    height: 104px;
    background: conic-gradient(#f47721 0 var(--gauge, 70%), #ebe7de var(--gauge, 70%) 100%);
    border-radius: 50%;
    place-items: center;
  }

  .pdf-result-gauge::before {
    width: 78px;
    height: 78px;
    background: white;
    border-radius: 50%;
    content: "";
    grid-area: 1 / 1;
  }

  .pdf-result-gauge span,
  .pdf-result-gauge small {
    z-index: 1;
    grid-area: 1 / 1;
    text-align: center;
  }

  .pdf-result-gauge span {
    margin-top: -17px;
    font-size: 12px;
    font-weight: 900;
  }

  .pdf-result-gauge small {
    margin-top: 24px;
    color: #646b66;
    font-size: 6px;
    font-weight: 750;
    line-height: 1.15;
  }

  .pdf-reasons {
    display: grid;
    margin-top: 15px;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .pdf-reasons .reason-card {
    min-height: 76px;
    padding: 10px;
    background: #f4f1ea;
    border: 1px solid #e6e1d8;
    border-radius: 10px;
    grid-template-columns: 26px 1fr;
    gap: 8px;
    break-inside: avoid;
  }

  .pdf-reasons .reason-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 11px;
  }

  .pdf-reasons .reason-card strong {
    font-size: 9.5px;
  }

  .pdf-reasons .reason-card p {
    margin-top: 3px;
    font-size: 8.5px;
    line-height: 1.38;
  }

  .pdf-plan {
    margin-top: 14px;
    padding: 13px 15px;
    background: #f7f5ef;
    border: 2px solid #101211;
    border-radius: 12px;
    break-inside: avoid;
  }

  .pdf-plan p {
    margin: 0 0 3px;
    color: #19743c;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .pdf-plan h3 {
    margin: 0 0 4px;
    font-size: 15px;
  }

  .pdf-plan span {
    color: #4e5550;
    font-size: 9px;
    line-height: 1.4;
  }

  .pdf-report-bottom {
    display: block;
    margin-top: 17px;
    padding-top: 12px;
    border-top: 1px solid #d9d5cc;
    break-inside: avoid;
  }

  .pdf-disclaimer {
    max-width: 430px;
    margin: 0;
    color: #646b66;
    font-size: 8px;
    line-height: 1.45;
  }

  .pdf-signature {
    display: grid;
    width: 185px;
    margin: 30px 0 0 auto;
    text-align: center;
    gap: 2px;
  }

  .pdf-signature strong {
    font-size: 10px;
  }

  .pdf-signature span {
    color: #646b66;
    font-size: 8.5px;
  }
}
