:root {
  --ink: #172033;
  --muted: #647084;
  --line: #e6eaf2;
  --surface: #ffffff;
  --soft: #f6f8fc;
  --primary: #5a2ce2;
  --primary-dark: #331397;
  --blue: #1597d4;
  --green: #0b9f7a;
  --risk-green: #10B981;
  --risk-orange: #F59E0B;
  --risk-red: #EF4444;
  --amber: #f4a11a;
  --rose: #e84b7a;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img,
canvas {
  max-width: 100%;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  overflow: visible;
  min-height: 720px;
  padding: 18px clamp(18px, 4vw, 64px) 92px;
  color: #fff;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 72px;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(70, 202, 255, 0.5), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(255, 78, 154, 0.35), transparent 24%),
    linear-gradient(132deg, #351391 0%, #6127df 48%, #087fc1 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 76px), 0 100%);
}

.legal-hero {
  min-height: 220px;
  padding-bottom: 96px;
}

.legal-hero::before {
  inset: 0;
  clip-path: none;
}

.topbar,
.hero-grid,
.ad-slot-hero,
.result-summary {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: min(288px, 58vw);
  height: auto;
  display: block;
}

.brand span {
  font-size: 0.95rem;
}

.nav-link {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(620px, 1.25fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.intro {
  padding-bottom: 44px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9eeff;
  font-size: 1.2rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.trust-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-list span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.calculator-shell-single {
  grid-template-columns: minmax(320px, 540px);
  justify-content: end;
}

.calculator-card,
.result-card,
.panel,
.suggestion-card,
.seo-content article,
.faq details {
  border: 1px solid rgba(230, 234, 242, 0.9);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calculator-card,
.result-card {
  color: var(--ink);
}

.calculator-card {
  padding: clamp(18px, 3vw, 28px);
}

.result-card {
  padding: clamp(18px, 2.4vw, 24px);
}

.result-card-highlight {
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.2);
  border-width: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.result-card-highlight.risk-green {
  border-color: var(--risk-green);
}

.result-card-highlight.risk-orange {
  border-color: var(--risk-orange);
}

.result-card-highlight.risk-red {
  border-color: var(--risk-red);
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: var(--risk-green);
  font-size: 0.82rem;
  font-weight: 900;
}

.risk-badge[hidden] {
  display: none;
}

.risk-orange .risk-badge {
  background: var(--risk-orange);
}

.risk-red .risk-badge {
  background: var(--risk-red);
}

.result-hero {
  min-height: 560px;
}

.result-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ghost-button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--primary-dark);
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

.section-heading,
.panel-header,
.content-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-heading {
  display: block;
}

.section-heading span {
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading strong {
  display: block;
  font-size: 1.45rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #324057;
  font-size: 0.9rem;
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

.loan-only {
  display: none;
}

.calculator-card.loan-mode .loan-only {
  display: grid;
}

.calculator-card.loan-mode .hide-on-loan {
  display: none;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9e0ec;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(21, 151, 212, 0.35);
  outline-offset: 2px;
}

button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 18px;
}

.primary-button {
  width: 100%;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 14px 30px rgba(90, 44, 226, 0.28);
}

.secondary-button {
  color: #fff;
  background: var(--primary-dark);
}

.result-topline {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.result-topline span,
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.result-topline strong {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: clamp(1.95rem, 3.4vw, 2.65rem);
  line-height: 1.05;
}

.contracted-subtext {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.risk-green .result-topline strong {
  color: var(--risk-green);
}

.risk-orange .result-topline strong {
  color: var(--risk-orange);
}

.risk-red .result-topline strong {
  color: var(--risk-red);
}

.impact-block {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
}

.impact-block small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.impact-block span,
.market-rates span,
.summary-list dt {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.impact-block strong {
  display: block;
  margin-top: 0;
  color: var(--primary);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1;
  text-align: right;
}

.impact-block p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.impact-block b {
  color: var(--ink);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 16px;
  margin: 12px 0 0;
}

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

.loan-result-mode .result-card-highlight .metric-grid.metric-grid-two {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.loan-result-mode .result-card-highlight .investment-metric {
  display: none;
}

.metric-grid strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.18;
}

.loan-result-only {
  display: none;
}

.result-page.loan-result-mode .loan-result-only {
  display: block;
}

.decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.result-page.loan-result-mode .decision-grid {
  display: grid;
}

.result-page.loan-result-mode .growth-chart-panel {
  display: none;
}

.decision-card,
.seo-explanation {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 24px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.decision-card h3,
.seo-explanation h2 {
  margin: 0;
  line-height: 1.2;
}

.gauge-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.risk-gauge {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 2 / 1;
  margin: 6px auto 0;
  overflow: hidden;
}

.gauge-track {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, var(--risk-green) 0deg 60deg, var(--risk-orange) 60deg 120deg, var(--risk-red) 120deg 180deg, transparent 180deg);
}

.gauge-track::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 76%;
  border-radius: 999px 999px 0 0;
  background: #fff;
}

.gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 76%;
  border-radius: 999px;
  background: #111827;
  transform: translateX(-50%) rotate(-72deg);
  transform-origin: 50% 100%;
  transition: transform 0.35s ease;
  z-index: 2;
}

.gauge-center {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 26px;
  height: 26px;
  border: 5px solid #111827;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 3;
}

.gauge-card > strong {
  display: block;
  text-align: center;
  font-size: 1.35rem;
}

.gauge-card.risk-green > strong {
  color: var(--risk-green);
}

.gauge-card.risk-orange > strong {
  color: var(--risk-orange);
}

.gauge-card.risk-red > strong {
  color: var(--risk-red);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.market-rates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 12px;
}

.market-rates div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.market-rates strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
}

.market-card {
  transition: border-color 160ms ease, background 160ms ease;
}

.market-card.market-green {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(180deg, #fff, #ecfdf5);
}

.market-card.market-orange {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, #fff, #fffbeb);
}

.market-card.market-red {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(180deg, #fff, #fef2f2);
}

.market-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: var(--risk-green);
  font-size: 0.85rem;
  font-weight: 900;
}

.market-status.status-green {
  background: var(--risk-green);
}

.market-status.status-orange {
  background: var(--risk-orange);
}

.market-status.status-red {
  background: var(--risk-red);
}

.market-note {
  font-weight: 800;
}

.market-card a {
  color: var(--primary-dark);
  font-weight: 900;
}

.market-explainer {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.market-explainer summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 900;
}

.market-explainer p {
  margin-top: 10px;
}

.market-card p,
.seo-explanation p {
  margin: 0;
  color: var(--muted);
}

.market-card .eyebrow {
  color: var(--primary);
}

.inline-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--primary-dark);
  font-weight: 900;
}

.executive-summary-card,
.debt-evolution-panel,
.dynamic-faq {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 24px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.executive-summary-card {
  margin: 18px 0;
}

.executive-summary-card h3,
.debt-evolution-panel h3,
.dynamic-faq h2 {
  margin: 0;
  line-height: 1.2;
}

.debt-evolution-panel .panel-header p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
}

.loan-visual-grid {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.result-page.loan-result-mode .loan-visual-grid {
  display: grid;
}

.debt-composition-card,
.installment-composition-card,
.operation-insights-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 24px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.debt-composition-card h3,
.installment-composition-card h3,
.operation-insights-card h3 {
  margin: 0 0 14px;
}

.donut-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: center;
}

.donut-wrap {
  position: relative;
  min-height: 220px;
}

.composition-list,
.installment-grid dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.composition-list div,
.installment-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.composition-list dt,
.installment-grid span,
.installment-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.composition-list dd,
.installment-grid dd {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.composition-list span {
  color: var(--primary-dark);
}

.debt-composition-card p,
.installment-composition-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.loan-visual-grid .eyebrow {
  color: var(--primary);
}

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

.operation-insights-card {
  grid-column: 1 / -1;
}

.operation-insights-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.operation-insights-card li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--soft);
  font-weight: 800;
}

.operation-insights-card li::before {
  content: "✓ ";
  color: var(--risk-green);
}

.executive-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.executive-summary-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.executive-summary-grid dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.executive-summary-grid dd {
  margin: 4px 0 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.compact-header {
  align-items: center;
}

.segmented-control {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.segmented-control button {
  min-height: 38px;
  border-radius: 0;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
}

.segmented-control button.active {
  color: #fff;
  background: var(--primary-dark);
}

.chart-wrap-small {
  height: 320px;
  margin-bottom: 0;
}

.dynamic-faq {
  max-width: 1180px;
  margin: 48px auto 0;
}

.dynamic-faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.dynamic-faq details:first-of-type {
  margin-top: 14px;
}

.dynamic-faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.dynamic-faq p {
  margin: 8px 0 0;
  color: var(--muted);
}

.interest-cost-card,
.interest-cost-card.risk-green {
  border-color: rgba(16, 185, 129, 0.28);
  background: #ecfdf5;
}

.interest-cost-card.risk-orange {
  border-color: rgba(245, 158, 11, 0.34);
  background: #fffbeb;
}

.interest-cost-card.risk-red,
.interest-cost-card.interest-high {
  border-color: rgba(239, 68, 68, 0.28);
  background: #fef2f2;
}

.interest-cost-card h3 {
  margin-bottom: 12px;
}

.interest-cost-card > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--risk-green);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.interest-cost-card.risk-orange > strong {
  color: var(--risk-orange);
}

.interest-cost-card.risk-red > strong,
.interest-cost-card.interest-high > strong {
  color: var(--risk-red);
}

.cost-visual-section {
  margin-top: 14px;
}

.cost-visual-section h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.cost-visual-bars {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  gap: 14px;
}

.cost-visual-bars span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.cost-visual-bars b {
  display: block;
  width: var(--bar-size);
  max-width: 100%;
  min-width: 8px;
  height: 14px;
  margin: 8px 0 4px;
  border-radius: 3px;
}

.cost-visual-bars .borrowed-bar {
  background: var(--primary);
}

.cost-visual-bars .interest-bar {
  background: var(--risk-red);
}

.cost-visual-bars strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.interest-cost-card.risk-green .cost-visual-bars {
  border-color: rgba(16, 185, 129, 0.2);
}

.interest-cost-card.risk-orange .cost-visual-bars {
  border-color: rgba(245, 158, 11, 0.26);
}

.interest-cost-card.risk-red .cost-visual-bars,
.interest-cost-card.interest-high .cost-visual-bars {
  border-color: rgba(239, 68, 68, 0.22);
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 76px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #8290a4;
  background: rgba(248, 250, 252, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
}

.ad-slot-hero {
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

main {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding: 0 clamp(18px, 4vw, 64px) 56px;
}

.panel,
.suggestions,
.seo-content,
.faq,
.ad-slot-wide {
  max-width: 1180px;
  margin-inline: auto;
}

.panel {
  padding: clamp(18px, 3vw, 30px);
}

.panel h2,
.content-heading h2,
.seo-content h2,
.faq h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.chart-wrap {
  position: relative;
  height: 390px;
  margin: 10px 0 18px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.analysis-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

.analysis-grid article:only-child {
  grid-column: 1 / -1;
}

.consultant-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.consultant-avatar {
  width: 98px;
  height: 98px;
  padding: 3px;
  overflow: hidden;
  border: 3px solid rgba(90, 44, 226, 0.18);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 26px rgba(90, 44, 226, 0.22);
}

.consultant-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.consultant-name {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.analysis-grid .consultant-name {
  color: var(--primary);
}

.consultant-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.28rem, 2vw, 1.6rem);
  line-height: 1.2;
}

.consultant-blocks {
  display: grid;
  gap: 12px;
}

.consultant-blocks section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.consultant-blocks h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.consultant-blocks ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 750;
}

.professor-analysis {
  gap: 12px;
}

.consultant-blocks .professor-section {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.professor-section h4 {
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.professor-section p {
  line-height: 1.6;
  text-align: left;
}

.professor-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.professor-impact-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f7fb;
}

.professor-impact-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.professor-impact-grid strong {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 950;
}

.professor-status,
.professor-grade span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0 0 10px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 950;
}

.professor-status.status-green,
.professor-grade span.status-green {
  color: #047857;
  background: #dcfce7;
}

.professor-status.status-yellow,
.professor-grade span.status-yellow {
  color: #92400e;
  background: #fef3c7;
}

.professor-status.status-red,
.professor-grade span.status-red {
  color: #b42318;
  background: #fee2e2;
}

.professor-section ul {
  gap: 8px;
}

.professor-section li {
  position: relative;
  padding-left: 18px;
  line-height: 1.45;
  text-align: left;
}

.professor-section li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
}

.professor-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 10px 20px rgba(90, 44, 226, 0.18);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.professor-conclusion {
  border-color: rgba(90, 44, 226, 0.22);
  background: linear-gradient(180deg, #fff, #f8f6ff);
}

.professor-grade {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.professor-grade strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
  line-height: 1;
}

.professor-grade span {
  margin: 0;
}

.professor-grade-section {
  border-color: rgba(90, 44, 226, 0.18);
}

.professor-conclusion .professor-icon {
  background: linear-gradient(135deg, var(--primary), #09b970);
}

.summary-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.summary-list div {
  display: grid;
  gap: 2px;
}

.summary-list dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.analysis-grid h3,
.suggestion-card h3,
.seo-content h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.analysis-grid p,
.suggestion-card p,
.seo-content p,
.faq p,
footer p {
  margin: 0;
  color: var(--muted);
}

.analysis-grid p,
.suggestion-card p,
.seo-content p,
.faq p,
.dynamic-faq p,
.seo-explanation p,
.market-card p,
.interest-cost-card p,
.consultant-blocks li,
.guide-section p,
.guide-section li,
.resource-grid p,
.compound-power-card p,
.formula-card p,
.link-cloud a {
  text-align: justify;
}

.suggestions,
.ad-slot-wide,
.seo-explanation {
  margin-top: 48px;
}

.faq {
  margin-top: 48px;
  border: 1px solid rgba(230, 234, 242, 0.9);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.faq .content-heading {
  display: block;
  margin-bottom: 20px;
}

.faq .content-heading .eyebrow {
  margin-bottom: 10px;
}

.faq h2 {
  font-size: 1.5em;
  line-height: 1.25;
}

.seo-content {
  margin-top: 12px;
}

.seo-content h2 {
  margin-bottom: 14px;
}

.seo-content h2 + p {
  margin-top: 0;
}

.guide-section {
  max-width: 1180px;
  margin: 34px auto 0;
}

.guide-section > article,
.formula-card,
.guide-grid > article,
.resource-grid article,
.section-card-heading {
  border: 1px solid rgba(230, 234, 242, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.guide-section > article,
.formula-card,
.guide-grid > article,
.resource-grid article,
.section-card-heading {
  padding: clamp(18px, 3vw, 28px);
}

.section-card-heading {
  margin-bottom: 18px;
}

.guide-section h2,
.guide-section h3 {
  margin-top: 0;
}

.guide-section p,
.guide-section li,
.data-table {
  color: var(--muted);
}

.guide-section .eyebrow,
.content-heading .eyebrow {
  color: var(--primary);
  font-size: 1.08rem;
}

.professor-feature-section {
  max-width: 1180px;
  margin: 34px auto 0;
}

.professor-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(90, 44, 226, 0.18);
  border-radius: 8px;
  padding: clamp(20px, 3.2vw, 34px);
  background:
    linear-gradient(135deg, rgba(90, 44, 226, 0.08), rgba(255, 255, 255, 0) 42%),
    #fff;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
}

.professor-feature-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.22;
}

.professor-feature-copy .eyebrow {
  color: var(--primary);
}

.professor-feature-subtitle {
  display: block;
  margin: 10px 0 14px;
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: #f8f6ff;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  font-weight: 850;
  line-height: 1.28;
}

.professor-feature-copy p {
  color: var(--muted);
  text-align: justify;
}

.professor-feature-lead {
  color: var(--ink);
  font-weight: 850;
}

.professor-exclusive-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  margin: 0 0 12px;
  border: 1px solid rgba(90, 44, 226, 0.22);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--primary);
  background: #fff;
  box-shadow: 0 10px 24px rgba(90, 44, 226, 0.1);
  font-size: 0.82rem;
  font-weight: 950;
}

.professor-exclusive-badge::before {
  content: "★";
  margin-right: 7px;
}

.seo-inline {
  font-size: 0.92rem;
}

.professor-feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.professor-feature-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(90, 44, 226, 0.16);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--primary);
  background: #f8f6ff;
  font-size: 0.8rem;
  font-weight: 950;
}

.professor-analysis-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.professor-analysis-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 850;
}

.professor-analysis-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #09b970;
  font-weight: 950;
}

.professor-feature-visual {
  display: grid;
  gap: 16px;
}

.professor-reaction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.professor-reaction-grid figure {
  display: grid;
  gap: 8px;
  align-items: end;
  min-height: 178px;
  margin: 0;
  border: 1px solid rgba(90, 44, 226, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #fbfaff, #fff);
  text-align: center;
}

.professor-reaction-grid img {
  width: 100%;
  max-width: 108px;
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(90, 44, 226, 0.16));
}

.professor-reaction-grid figcaption {
  min-height: 34px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
}

.reaction-green {
  color: #09b970;
}

.reaction-yellow {
  color: #f59e0b;
}

.reaction-red {
  color: #ef4444;
}

.professor-highlight-card {
  border: 1px solid rgba(90, 44, 226, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f6ff, #fff);
}

.professor-highlight-card strong {
  display: block;
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 950;
}

.professor-highlight-card .professor-analysis-list {
  margin-top: 12px;
}

.professor-quote {
  margin: 0;
  border: 1px solid rgba(90, 44, 226, 0.2);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  color: #fff;
  box-shadow: 0 16px 34px rgba(90, 44, 226, 0.2);
}

.professor-quote strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 950;
}

.professor-quote strong::before {
  content: "“";
  margin-right: 4px;
}

.professor-quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.5;
}

.professor-feature-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  text-align: justify;
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.guide-grid > article {
  height: 100%;
}

.check-list,
.error-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.error-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--soft);
  font-weight: 800;
}

.check-list li::before {
  content: "✓ ";
  color: var(--risk-green);
}

.error-list li::before {
  content: "✕ ";
  color: var(--risk-red);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  font-size: 0.92rem;
}

.example-callout {
  margin-bottom: 18px;
  padding: 0;
}

.example-callout p + p {
  margin-top: 4px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 6px 12px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--ink);
  background: var(--soft);
  font-weight: 900;
}

.comparison-example,
.comparison-timeline,
.comparison-uses,
.comparison-curiosity {
  margin-top: 18px;
}

.comparison-example h3,
.comparison-timeline h3,
.comparison-uses h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.comparison-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.comparison-inputs span,
.comparison-results div,
.comparison-use-grid div,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.comparison-inputs span {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.comparison-inputs strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.comparison-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.comparison-results div {
  display: grid;
  align-content: start;
  height: 100%;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f8f6ff);
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.06);
}

.comparison-results span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.comparison-results strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  line-height: 1.1;
}

.comparison-difference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid rgba(11, 159, 122, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  color: #06674f;
  background: rgba(16, 185, 129, 0.1);
  line-height: 1.3;
}

.comparison-difference span {
  color: var(--risk-green);
  font-size: 1.25rem;
  white-space: nowrap;
}

.timeline-stack {
  display: grid;
  gap: 8px;
}

.timeline-stack > i {
  width: 28px;
  height: 22px;
  margin-left: 18px;
  color: var(--primary);
  font-style: normal;
}

.timeline-stack > i::before {
  content: "↓";
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  border-radius: 8px;
  background: rgba(90, 44, 226, 0.1);
  font-weight: 900;
}

.timeline-item {
  padding: 11px 12px;
}

.timeline-item span {
  display: block;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-item > strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
}

.timeline-item p {
  margin: 2px 0 0;
  color: var(--muted);
  text-align: left;
}

.timeline-item p strong {
  color: var(--ink);
}

.comparison-use-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.comparison-use-grid div {
  display: grid;
  align-content: start;
  height: 100%;
  padding: 12px;
  background: #fff;
}

.comparison-use-grid strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.comparison-use-grid ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.comparison-use-grid li {
  color: var(--muted);
  font-size: 0.92rem;
}

.comparison-curiosity {
  border: 1px solid rgba(90, 44, 226, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(90, 44, 226, 0.08), rgba(21, 151, 212, 0.08));
}

.comparison-curiosity strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.comparison-curiosity p {
  margin: 0;
}

.formula-card {
  display: grid;
  gap: 16px;
}

.formula-card > p {
  margin: 0;
}

.formula-display {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px solid rgba(90, 44, 226, 0.16);
  border-radius: 8px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(90, 44, 226, 0.08), rgba(21, 151, 212, 0.08));
  text-align: center;
  overflow: hidden;
}

.formula {
  color: #3b189b;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.formula sup {
  position: relative;
  top: -0.8em;
  margin-left: 0.05em;
  font-size: 0.45em;
  line-height: 0;
}

.formula-parts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.formula-parts article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
  text-align: center;
  box-shadow: none;
}

.formula-parts span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  font-weight: 900;
}

.formula-parts strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.55rem;
  line-height: 1;
}

.formula-parts p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.compound-power-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.compound-power-header h2 {
  margin-bottom: 0;
}

.compound-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compound-metrics div {
  min-width: 0;
  border: 1px solid rgba(90, 44, 226, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #f8f6ff);
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.07);
}

.compound-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.compound-metrics strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.15;
}

.compound-chart-wrap {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(90, 44, 226, 0.04), rgba(21, 151, 212, 0.04)),
    #fff;
}

.compound-chart {
  display: block;
  width: 100%;
  height: 300px;
}

.compound-grid line {
  stroke: #e7ebf3;
  stroke-width: 1;
}

.compound-axis text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compound-axis .axis-title {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.compound-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.invested-line {
  stroke: #98a2b3;
}

.wealth-line {
  stroke: var(--primary);
  filter: drop-shadow(0 8px 10px rgba(90, 44, 226, 0.22));
}

.compound-points circle {
  fill: transparent;
  cursor: pointer;
}

.compound-points circle:focus {
  outline: none;
}

.compound-points circle:focus + circle,
.compound-points circle:hover + circle {
  r: 5;
}

.compound-marker {
  pointer-events: none;
  fill: var(--primary);
  stroke: #fff;
  stroke-width: 2;
}

.compound-tooltip {
  position: absolute;
  z-index: 2;
  width: 210px;
  border: 1px solid rgba(90, 44, 226, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.16);
  font-size: 0.86rem;
  transform: translate(-50%, calc(-100% - 12px));
}

.compound-tooltip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.compound-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.compound-tooltip b {
  color: var(--ink);
}

.compound-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.compound-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.compound-legend i {
  width: 28px;
  height: 4px;
  border-radius: 999px;
}

.invested-key {
  background: #98a2b3;
}

.wealth-key {
  background: var(--primary);
}

.compound-highlight {
  display: block;
  border: 1px solid rgba(11, 159, 122, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  color: #06674f;
  background: rgba(16, 185, 129, 0.1);
  font-size: 1rem;
  line-height: 1.35;
}

.compound-ready-simulations {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  border: 1px solid rgba(90, 44, 226, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f8f6ff);
}

.compound-ready-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.compound-ready-heading .eyebrow {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.compound-ready-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.compound-ready-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compound-ready-grid a {
  display: grid;
  align-content: start;
  min-width: 0;
  height: 100%;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.compound-ready-grid a:hover,
.compound-ready-grid a:focus {
  border-color: rgba(90, 44, 226, 0.34);
  box-shadow: 0 10px 22px rgba(90, 44, 226, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.compound-ready-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.compound-ready-grid small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.compound-ready-grid strong {
  color: var(--primary-dark);
  font-size: 0.95rem;
  line-height: 1.15;
}

.compound-ready-grid em {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  margin-top: 4px;
  border-radius: 8px;
  padding: 0 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.compound-ready-simulations .note {
  margin: 0;
  font-size: 0.78rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.resource-grid.five-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.resource-grid article {
  display: grid;
  align-content: start;
  height: 100%;
  gap: 10px;
}

.resource-grid h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.resource-grid p {
  margin: 0;
}

.resource-grid a,
.link-cloud a {
  color: var(--primary-dark);
  font-weight: 900;
}

.resource-grid a.mini-button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(90, 44, 226, 0.18);
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-cloud a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.05);
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.suggestion-card {
  min-height: 190px;
  padding: 22px;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.08);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.icon-badge.clock {
  background: var(--amber);
}

.icon-badge.percent {
  background: var(--rose);
}

.seo-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.seo-content article {
  height: 100%;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.seo-content article:first-child {
  grid-column: 1 / -1;
}

.seo-content-secondary article:first-child {
  grid-column: auto;
}

.faq details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--soft);
  box-shadow: none;
}

.faq summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 900;
}

.faq summary::marker {
  color: var(--risk-green);
}

.faq p {
  margin-top: 10px;
  color: var(--muted);
}

.legal-card {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(230, 234, 242, 0.9);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 42px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.legal-card h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.5em;
  line-height: 1.25;
}

.legal-card h2 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card .eyebrow {
  color: var(--primary);
}

.legal-card p {
  margin: 0 0 12px;
  text-align: justify;
}

.legal-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-card a {
  color: var(--primary-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.privacy-cards {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.privacy-intro-card,
.privacy-section {
  overflow: hidden;
  border: 1px solid rgba(230, 234, 242, 0.9);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.privacy-intro-card .eyebrow {
  color: var(--primary);
  font-size: 1.08rem;
}

.privacy-intro-card h1 {
  max-width: none;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
}

.privacy-section h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.privacy-intro-card p,
.privacy-section p,
.privacy-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.privacy-intro-card p,
.privacy-section p {
  margin: 0 0 12px;
  text-align: justify;
}

.privacy-intro-card p:last-child,
.privacy-section p:last-child,
.privacy-section ul:last-child {
  margin-bottom: 0;
}

.privacy-section ul {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding-left: 22px;
}

.privacy-section a {
  color: var(--primary-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.privacy-section code {
  color: var(--ink);
  font-size: 0.92em;
}

.privacy-warning {
  border-color: rgba(244, 161, 26, 0.42);
  border-left: 5px solid var(--amber);
  background: linear-gradient(135deg, #fff8e8, #fffdf8);
  box-shadow: 0 16px 36px rgba(172, 102, 0, 0.09);
}

.terms-cards {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.terms-intro-card,
.terms-section,
.terms-important {
  overflow: hidden;
  border: 1px solid rgba(230, 234, 242, 0.9);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.terms-intro-card .eyebrow,
.terms-important .eyebrow {
  color: var(--primary);
  font-size: 1.08rem;
}

.terms-intro-card h1 {
  max-width: none;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
}

.terms-section h2,
.terms-important h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.terms-intro-card p,
.terms-section p,
.terms-important p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.terms-intro-card p:last-child,
.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-important {
  border-color: rgba(244, 161, 26, 0.42);
  border-left: 5px solid var(--amber);
  background: linear-gradient(135deg, #fff8e8, #fffdf8);
  box-shadow: 0 16px 36px rgba(172, 102, 0, 0.09);
}

.terms-important .eyebrow {
  color: #a85f00;
}

.terms-important p strong {
  color: #5a3a08;
}

.terms-back-button {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  margin-top: 8px;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 12px 24px rgba(90, 44, 226, 0.2);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.terms-back-button:hover,
.terms-back-button:focus-visible {
  box-shadow: 0 16px 30px rgba(90, 44, 226, 0.28);
  transform: translateY(-1px);
}

.terms-section a {
  color: var(--primary-dark);
  font-weight: 900;
}

.contact-cards {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.contact-intro-card,
.contact-email-card,
.contact-important {
  overflow: hidden;
  border: 1px solid rgba(230, 234, 242, 0.9);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.contact-intro-card .eyebrow,
.contact-email-card .eyebrow,
.contact-important .eyebrow {
  color: var(--primary);
  font-size: 1.08rem;
}

.contact-intro-card h1 {
  max-width: none;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
}

.contact-email-card h2,
.contact-important h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.contact-intro-card p,
.contact-important p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.contact-intro-card p:last-child {
  margin-bottom: 0;
}

.contact-email-card > a {
  display: inline-flex;
  max-width: 100%;
  color: var(--primary-dark);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-important {
  border-color: rgba(244, 161, 26, 0.42);
  border-left: 5px solid var(--amber);
  background: linear-gradient(135deg, #fff8e8, #fffdf8);
  box-shadow: 0 16px 36px rgba(172, 102, 0, 0.09);
}

.contact-important .eyebrow {
  color: #a85f00;
}

.contact-important p strong {
  color: #5a3a08;
}

.contact-back-button {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  margin-top: 8px;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 12px 24px rgba(90, 44, 226, 0.2);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-back-button:hover,
.contact-back-button:focus-visible {
  box-shadow: 0 16px 30px rgba(90, 44, 226, 0.28);
  transform: translateY(-1px);
}

.error-page-card {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(230, 234, 242, 0.9);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 64px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
  text-align: center;
}

.error-code {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.error-page-card .eyebrow {
  margin-top: 20px;
  color: var(--primary);
  font-size: 1.08rem;
}

.error-page-card h1 {
  max-width: none;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
}

.error-page-card > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.error-home-button {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  margin-top: 14px;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 12px 24px rgba(90, 44, 226, 0.2);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.error-home-button:hover,
.error-home-button:focus-visible {
  box-shadow: 0 16px 30px rgba(90, 44, 226, 0.28);
  transform: translateY(-1px);
}

.about-card {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  background: transparent;
}

.about-intro,
.about-section,
.about-notice {
  overflow: hidden;
  border: 1px solid rgba(230, 234, 242, 0.9);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 32, 51, 0.06);
}

.about-intro {
  background: #fff;
}

.about-intro h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
}

.about-intro > .eyebrow {
  color: var(--primary);
}

.about-intro p,
.about-section > p {
  max-width: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.about-intro p {
  margin: 14px 0 0;
}

.about-intro .about-lead {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.about-section-heading {
  margin-bottom: 22px;
}

.about-section-heading .eyebrow,
.about-notice .eyebrow {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.about-section-heading h2,
.about-notice h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.about-section > p {
  margin: 0;
}

.about-section > p + p {
  margin-top: 12px;
}

.about-section .about-statement {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.about-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-benefits li {
  position: relative;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 14px 48px;
  color: var(--ink);
  background: var(--soft);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.about-benefits li::before {
  content: "✓";
  position: absolute;
  top: 15px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 0.75rem;
}

.about-notice {
  margin: 0;
  border-color: rgba(244, 161, 26, 0.42);
  border-left: 5px solid var(--amber);
  background: linear-gradient(135deg, #fff8e8, #fffdf8);
  box-shadow: 0 16px 36px rgba(172, 102, 0, 0.09);
}

.about-notice .eyebrow {
  color: #a85f00;
}

.about-notice p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.about-notice p strong {
  color: #5a3a08;
}

.about-transparency {
  background: #fff;
}

.about-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-trust span {
  border: 1px solid rgba(90, 44, 226, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--primary-dark);
  background: #f8f6ff;
  font-size: 0.85rem;
  font-weight: 900;
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  border: 1px solid rgba(90, 44, 226, 0.16);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 24px);
  background: linear-gradient(135deg, rgba(90, 44, 226, 0.08), rgba(21, 151, 212, 0.08));
}

.about-cta p {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: justify;
}

.about-cta a {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 12px 24px rgba(90, 44, 226, 0.2);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.about-cta a:hover,
.about-cta a:focus-visible {
  box-shadow: 0 16px 30px rgba(90, 44, 226, 0.28);
  transform: translateY(-1px);
}

footer {
  display: grid;
  gap: 4px;
  padding: 34px 18px;
  text-align: center;
  background: #111827;
}

footer a {
  color: #fff;
  font-weight: 900;
}

footer p:first-child {
  color: #fff;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 8px;
}

.footer-links a {
  font-size: 0.9rem;
}

@media (max-width: 1020px) {
  .hero-grid,
  .calculator-shell,
  .analysis-grid,
  .result-summary {
    grid-template-columns: 1fr;
  }

  .calculator-shell-single {
    justify-content: stretch;
  }

  .intro {
    padding-bottom: 0;
  }

  .result-card {
    order: -1;
  }

  .resource-grid,
  .resource-grid.five-grid,
  .compound-metrics,
  .comparison-inputs,
  .compound-ready-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 0;
    padding-bottom: 86px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand span {
    max-width: 190px;
    line-height: 1.2;
  }

  .form-grid,
  .decision-grid,
  .guide-grid,
  .formula-parts,
  .market-rates,
  .metric-grid-two,
  .executive-summary-grid,
  .suggestion-grid,
  .seo-content,
  .resource-grid,
  .resource-grid.five-grid,
  .compound-metrics,
  .loan-visual-grid,
  .donut-layout,
  .professor-feature-card,
  .comparison-inputs,
  .comparison-results,
  .comparison-use-grid,
  .installment-grid,
  .professor-impact-grid {
    grid-template-columns: 1fr;
  }

  .comparison-difference {
    display: grid;
  }

  .comparison-difference span {
    white-space: normal;
  }

  .compound-ready-heading {
    display: grid;
    align-items: start;
  }

  .compound-ready-grid {
    grid-template-columns: 1fr;
  }

  .professor-reaction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .professor-analysis-list {
    grid-template-columns: 1fr;
  }

  .about-benefits {
    grid-template-columns: 1fr;
  }

  .about-notice {
    grid-template-columns: 1fr;
  }

  .about-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .about-cta a {
    width: 100%;
  }

  .seo-content article:first-child {
    grid-column: auto;
  }

  .panel-header,
  .content-heading {
    display: grid;
    align-items: start;
  }

  .secondary-button {
    width: 100%;
  }

  .result-actions,
  .ghost-button {
    width: 100%;
  }

  .chart-wrap {
    height: 310px;
  }

  .compound-chart-wrap {
    min-height: 260px;
  }

  .compound-chart {
    height: 260px;
  }

  .compound-axis text {
    font-size: 10px;
  }

  .compound-tooltip {
    width: min(210px, calc(100% - 24px));
  }

  .loan-result-mode .result-card-highlight .metric-grid.metric-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 1.85rem;
  }

  .trust-list {
    flex-wrap: wrap;
  }

  .consultant-card {
    grid-template-columns: 1fr;
  }

  .impact-block {
    grid-template-columns: 1fr;
  }

  .impact-block strong {
    text-align: left;
  }

  .professor-reaction-grid {
    grid-template-columns: 1fr;
  }

  .professor-reaction-grid figure {
    min-height: auto;
  }

  .formula {
    font-size: clamp(2.2rem, 13vw, 3.2rem);
    letter-spacing: -0.05em;
  }

  .calculator-card,
  .result-card,
  .panel {
    padding: 16px;
  }

  main {
    padding-inline: 14px;
  }
}
