:root {
  --success: #2c8e5a;
  --shadow: 0 18px 42px rgba(13, 30, 52, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 24px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, var(--color-bg-page-top) 0%, var(--color-bg-page) 32%, var(--color-bg-page-bottom) 100%);
  line-height: var(--line-height-body);
}

main {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  width: auto;
  height: 28px;
  max-width: min(240px, 32vw);
}

.page-flow {
  display: grid;
  gap: 24px;
}

.content-card,
.calculator {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.content-card {
  padding: 32px;
}

.calculator {
  overflow: hidden;
}

.hero-card,
.solution-card,
.proof-card,
.cta-section {
  position: relative;
}

.section,
.content-card {
  position: relative;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.section-heading,
.result-title,
.inline-result-annual,
.yearly,
.pdf-document .pdf-intro-title,
.pdf-document .section-heading,
.pdf-document .result-title {
  font-family: var(--font-heading);
}

h1 {
  margin-bottom: 14px;
  max-width: 19ch;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: var(--font-weight-heading-heavy);
  line-height: var(--line-height-heading);
  letter-spacing: var(--tracking-heading-tight);
  text-wrap: balance;
}

.lead {
  margin-bottom: 0;
  max-width: 43rem;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: var(--line-height-body);
  color: var(--muted);
}

.lead strong {
  color: var(--text);
}

.source-mark {
  margin-left: 4px;
  vertical-align: super;
}

.source-mark a {
  color: var(--color-link);
  text-decoration: none;
  font-size: 0.7em;
  font-weight: 700;
  opacity: 0.72;
}

.source-mark a:hover,
.source-mark a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: var(--font-weight-body-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-heading-accent);
}

.section-heading {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: var(--font-weight-heading-bold);
  line-height: 1.12;
  letter-spacing: var(--tracking-heading-medium);
  text-wrap: balance;
}

.section-copy {
  margin-bottom: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.section-header {
  display: grid;
  gap: 0;
}

.hero-shell,
.solution-layout,
.result-overview,
.calculator-workbench {
  display: grid;
  gap: 24px;
}

.result-header {
  display: grid;
  gap: 12px;
}

.result-actions {
  display: grid;
  gap: 10px;
  align-items: stretch;
  padding: 18px 20px;
  border: 1px solid var(--color-secondary-border-soft);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--color-bg-surface) 0%, var(--color-bg-surface-muted) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.pdf-download-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

.result-action-group {
  display: grid;
  gap: 8px;
}

.result-action-hint {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.result-action-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.pdf-feedback {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #b42318;
  font-weight: 700;
}

.pdf-download-btn:hover:not(:disabled) {
  filter: brightness(1.03);
}

.pdf-download-btn:disabled {
  cursor: not-allowed;
  opacity: 1;
  transform: none;
  filter: none;
  background: #d7dce7;
  color: #5c6279;
  box-shadow: none;
}

.hero-shell {
  gap: 28px;
}

.hero-copy {
  display: grid;
  gap: 0;
  justify-items: center;
  text-align: center;
}

.media-placeholder,
.video-placeholder {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
}

.phase-media {
  min-height: 100%;
}

.placeholder-label,
.proof-label,
.phase-index {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--color-heading-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy .lead,
.hero-video-copy {
  margin-inline: auto;
}

.context-card p,
.result-explainer p,
.interpretation-item p,
.phase-card p,
.proof-block p,
.video-placeholder p {
  margin-bottom: 0;
  color: var(--muted);
}

.hero-video-block {
  display: grid;
  gap: 14px;
}

.hero-video-header {
  display: grid;
  justify-items: center;
}

.hero-video-title {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.16rem, 2vw, 1.62rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  text-align: center;
}

.hero-video-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(91, 73, 22, 0.16);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 48%),
    linear-gradient(135deg, var(--secondary) 0%, var(--secondary-soft) 48%, #493a12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 54px rgba(19, 18, 37, 0.26);
}

.hero-video-embed {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(8, 10, 24, 0.26);
}

.hero-video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-frame::before,
.hero-video-frame::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.hero-video-frame::before {
  width: 320px;
  height: 320px;
  top: -110px;
  right: -70px;
  background: radial-gradient(circle, rgba(214, 186, 85, 0.3) 0%, rgba(214, 186, 85, 0) 72%);
}

.hero-video-frame::after {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(214, 186, 85, 0.18) 0%, rgba(214, 186, 85, 0) 72%);
}

.hero-video-copy {
  max-width: 44rem;
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  text-align: center;
  color: var(--muted);
}

.hero-video-cta {
  display: flex;
  justify-content: center;
}

.phase-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
}

.phase-figure {
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
}

.phase-image-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.phase-image-trigger:disabled {
  opacity: 1;
}

.phase-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.phase-image-zoom-badge {
  display: none;
}

body.has-open-lightbox {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 22, 0.78);
  backdrop-filter: blur(10px);
}

.image-lightbox-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  width: min(1120px, 100%);
  max-height: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(13, 16, 34, 0.92);
  box-shadow: 0 32px 80px rgba(2, 4, 12, 0.45);
}

.image-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.image-lightbox-title {
  margin: 0;
  color: rgba(244, 247, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 700;
}

.image-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.image-lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.image-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 168px);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.calculator-intro {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, #fcfbff 0%, #f7f8fc 100%);
}

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

.context-card,
.interpretation-item,
.phase-card,
.proof-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfbfe 0%, var(--surface-soft) 100%);
}

.context-card h3,
.interpretation-item h3,
.phase-card h3,
.proof-block h3,
.video-placeholder h3,
.result-explainer h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.3;
}

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

.calculator-panel {
  padding: 24px 28px 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.calculator-support-copy,
.calculator-cta-note {
  margin: 0;
  color: var(--muted);
}

.calculator-support-copy {
  max-width: 46rem;
  font-size: 0.96rem;
  line-height: 1.55;
}

.calculator-cta-note {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

label {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(1.12rem, 2vw, 1.56rem);
  font-weight: 800;
  line-height: 1.2;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

input {
  flex: 1 1 280px;
  min-width: 0;
  min-height: 54px;
  padding: 15px 16px;
  border: 1px solid rgba(142, 116, 38, 0.34);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 235, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(91, 73, 22, 0.06);
  appearance: textfield;
  -webkit-appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:hover {
  border-color: rgba(111, 0, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 244, 255, 0.94) 100%);
}

input::placeholder {
  color: rgba(33, 29, 19, 0.52);
  font-weight: var(--font-weight-body-medium);
}

input:focus,
button:focus,
.cta:focus {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

input:focus {
  border-color: var(--color-interactive-selected-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 239, 255, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 4px rgba(111, 0, 255, 0.08),
    0 10px 24px rgba(83, 0, 200, 0.1);
}

button {
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-bold);
  transition: transform 0.15s ease, filter 0.15s ease;
}

input,
select,
textarea {
  font-family: var(--font-body);
}

button:hover,
.cta:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.calculate,
.pdf-download-btn,
.cta {
  min-height: 54px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  box-shadow: 0 12px 24px var(--color-primary-shadow);
  font-size: 1rem;
  font-weight: var(--font-weight-body-bold);
}

.calculate {
  min-width: 220px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 360px);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

.basis-selector {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.basis-selector legend {
  margin-bottom: 8px;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: var(--font-weight-body-bold);
  color: var(--text);
}

.basis-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.basis-option {
  display: grid;
  gap: 0;
  min-width: 0;
}

.basis-option-control {
  display: block;
  cursor: pointer;
  min-width: 0;
}

.basis-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.basis-option-body {
  position: relative;
  display: block;
  height: 100%;
  min-height: 72px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--color-bg-surface) 0%, var(--color-bg-surface-soft) 100%);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.basis-option-body::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--color-interactive-selected-accent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.basis-option-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.basis-option-label,
.basis-option-amount {
  display: block;
}

.basis-option-label {
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: var(--font-weight-body-bold);
  color: var(--text);
  line-height: 1.15;
}

.basis-option-amount {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--font-weight-body-bold);
  color: var(--color-heading-accent);
  line-height: 1.15;
}

.basis-option-control:hover .basis-option-body {
  border-color: var(--color-interactive-hover-border);
  background: linear-gradient(180deg, var(--color-bg-surface) 0%, rgba(245, 239, 255, 0.68) 100%);
  box-shadow: var(--shadow-interactive-hover);
  transform: translateY(-1px);
}

.basis-option-control:hover .basis-option-body::before,
.basis-option-control:focus-within .basis-option-body::before {
  opacity: 0.48;
}

.basis-option input:checked + .basis-option-body {
  border-color: var(--color-interactive-selected-border);
  background: var(--color-interactive-selected-bg);
  box-shadow:
    inset 0 0 0 1px var(--color-primary-border-soft),
    var(--shadow-interactive-selected);
}

.basis-option.is-info-open .basis-option-body {
  border-color: var(--color-interactive-selected-border);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow:
    inset 0 0 0 1px var(--color-primary-border-soft),
    var(--shadow-interactive-selected);
}

.basis-option input:checked + .basis-option-body::before,
.basis-option.is-info-open .basis-option-body::before {
  opacity: 1;
}

.basis-option input:checked + .basis-option-body .basis-option-label,
.basis-option.is-info-open .basis-option-body .basis-option-label {
  color: var(--color-link);
}

.basis-option input:checked + .basis-option-body .basis-option-amount,
.basis-option.is-info-open .basis-option-body .basis-option-amount {
  color: var(--color-link-hover);
}

.basis-option input:focus-visible + .basis-option-body {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.basis-option-panel-slot {
  min-height: 0;
}

.basis-info-panel {
  margin-top: 4px;
  padding: 10px 12px 11px;
  border: 1px solid var(--color-secondary-border-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(252, 248, 235, 0.98) 0%, rgba(245, 237, 208, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.basis-info-title {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: var(--font-weight-body-bold);
  line-height: 1.25;
  color: var(--text);
}

.basis-info-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.basis-info-link {
  display: inline;
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: var(--font-weight-body-bold);
  color: var(--color-link);
  text-decoration: none;
}

.basis-info-link:hover,
.basis-info-link:focus-visible {
  text-decoration: underline;
}

.basis-info-panel[data-basis-info="cautious"] {
  border-color: var(--color-primary-border-soft);
}

.basis-info-panel[data-basis-info="core"] {
  border-color: var(--color-primary-border-strong);
}

.basis-info-panel[data-basis-info="expanded"] {
  border-color: var(--color-primary-border);
}

.basis-trust-line {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
}

.error {
  min-height: 24px;
  margin-top: 12px;
  margin-bottom: 0;
  font-weight: 700;
  color: #a73720;
}

.inline-result-summary {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--color-primary-border-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--color-bg-surface) 0%, var(--color-bg-surface-muted) 100%);
  opacity: 0.7;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-result-summary.is-visible {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--color-primary-border);
  box-shadow: 0 10px 22px rgba(83, 0, 200, 0.08);
}

.inline-result-link {
  margin: 0;
}

.inline-result-main {
  display: grid;
  gap: 2px;
}

.inline-result-annual {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: var(--font-weight-heading-heavy);
  color: var(--surface-strong);
}

.inline-result-value {
  margin: 0;
  font-size: clamp(0.98rem, 2.3vw, 1.14rem);
  font-weight: var(--font-weight-body-bold);
  line-height: 1.15;
  color: var(--muted);
}

.inline-result-link {
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--color-link);
  font-weight: var(--font-weight-body-bold);
  text-decoration: none;
}

.inline-result-link:hover {
  text-decoration: underline;
}

.result-card {
  background:
    linear-gradient(180deg, var(--color-bg-surface) 0%, var(--color-bg-surface-soft) 100%);
}

.result-header {
  margin-bottom: 22px;
}

.result-overview {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: stretch;
}

.result-primary {
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, var(--color-secondary-glow), transparent 42%),
    linear-gradient(160deg, var(--secondary) 0%, var(--secondary-soft) 100%);
  color: #fff;
}

.result-eyebrow {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.result-title {
  margin-bottom: 12px;
  font-size: clamp(1.72rem, 2.75vw, 2.38rem);
  line-height: 1.1;
  font-weight: var(--font-weight-heading-bold);
  letter-spacing: var(--tracking-heading-medium);
  text-wrap: balance;
}

.result-header .section-copy {
  max-width: 100%;
}

.result-basis-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-heading-accent-soft);
  font-weight: 700;
}

.yearly {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.98;
  color: var(--brand-secondary-100);
  font-weight: var(--font-weight-heading-heavy);
  letter-spacing: -0.05em;
}

.sub-results {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.sub-row {
  padding: 14px 16px;
  font-size: clamp(1.18rem, 2.6vw, 1.92rem);
  font-weight: 800;
}

.sub-row + .sub-row {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.result-supporting-copy,
.result-decision-line {
  margin: 16px 0 0;
  max-width: 40rem;
}

.result-supporting-copy {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.result-decision-line {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--brand-secondary-100);
}

.result-primary .result-actions {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.result-booking-cta {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.result-action-group-primary .result-action-hint {
  color: rgba(255, 255, 255, 0.82);
}

.result-action-group-secondary {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.result-action-group-secondary .result-action-hint,
.result-action-group-secondary .result-action-note {
  color: rgba(255, 255, 255, 0.78);
}

.result-action-group-secondary .pdf-download-btn {
  background: var(--color-cta-bg);
  box-shadow: 0 12px 24px var(--color-primary-shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.result-action-group-secondary .pdf-download-btn:hover:not(:disabled) {
  background: var(--color-cta-bg-hover);
}

.result-action-group-secondary .pdf-download-btn:disabled {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.64);
  border-color: rgba(255, 255, 255, 0.1);
}

.result-explainer {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-soft);
}

.result-explainer p {
  line-height: 1.6;
}

.result-explainer p + p {
  margin-top: 12px;
}

.next-step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.next-step-list li {
  line-height: 1.6;
}

.next-step-list strong {
  color: var(--text);
}

.interpretation-grid,
.phase-grid,
.proof-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.interpretation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.interpretation-item {
  display: grid;
  align-content: start;
  gap: 4px;
}

.phase-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.phase-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.phase-card-priority {
  border-color: var(--color-secondary-border);
  background:
    radial-gradient(circle at top right, var(--color-secondary-glow-soft), transparent 42%),
    linear-gradient(180deg, var(--color-bg-surface) 0%, var(--color-bg-surface-muted) 100%);
  box-shadow: 0 14px 28px rgba(142, 116, 38, 0.12);
}

.phase-card-emphasis {
  margin: 0;
  font-weight: 800;
  color: var(--text);
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  margin-top: 22px;
  align-items: start;
  gap: 20px;
}

.phase-cta-band {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  padding: 20px;
  border: 1px solid var(--color-secondary-border-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(252, 248, 235, 0.98) 0%, rgba(245, 237, 208, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.phase-cta-content {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 20px;
  width: 100%;
}

.phase-cta-copy {
  margin: 0;
  max-width: 30rem;
  color: var(--muted);
}

.proof-header {
  display: grid;
  gap: 14px;
}

.proof-intro .section-copy {
  max-width: 100%;
}

.calculator-intro .section-heading,
.calculator-intro .section-copy,
.result-header .result-title,
.solution-card .section-heading,
.solution-card .section-copy,
.proof-card .section-heading,
.proof-card .section-copy,
.cta-section .section-heading,
.cta-section .section-copy {
  max-width: 100%;
}

.method-accordion {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.method-item {
  border: 1px solid var(--color-secondary-border-soft);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 250, 240, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.method-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: var(--font-weight-body-bold);
  line-height: 1.3;
  color: var(--text);
}

.method-item summary::-webkit-details-marker {
  display: none;
}

.method-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-primary-border);
  border-radius: 999px;
  color: var(--color-link);
  font-size: 1.05rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.method-item[open] summary::after {
  content: "\2212";
  background: var(--brand-primary-50);
  border-color: var(--color-primary-border);
}

.method-item summary:hover::after,
.method-item summary:focus-visible::after {
  transform: scale(1.04);
}

.method-panel {
  padding: 0 20px 20px;
  border-top: 1px solid var(--color-secondary-border-soft);
}

.method-panel p {
  margin-bottom: 0;
  max-width: 54rem;
  color: var(--muted);
}

.method-panel p + p {
  margin-top: 12px;
}

.method-copy {
  max-width: 54rem;
}

.method-bullets {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.method-bullets li::marker {
  color: var(--color-link);
}

.levels-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-secondary-border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.levels-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.levels-table th,
.levels-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-secondary-border-soft);
  text-align: left;
  vertical-align: top;
}

.levels-table thead th {
  padding-top: 12px;
  font-family: var(--font-body);
  color: var(--color-heading-accent);
  font-size: 0.78rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(214, 186, 85, 0.1);
}

.levels-table tbody th {
  color: var(--text);
  font-weight: var(--font-weight-body-bold);
}

.levels-table tbody td {
  color: var(--muted);
}

.levels-table tbody tr {
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.levels-table tbody tr.is-selected {
  background:
    linear-gradient(180deg, rgba(245, 239, 255, 0.78), rgba(245, 239, 255, 0.78)),
    linear-gradient(180deg, rgba(214, 186, 85, 0.08), rgba(214, 186, 85, 0.08));
  box-shadow: inset 3px 0 0 var(--color-interactive-selected-accent);
}

.levels-table tbody tr.is-selected th,
.levels-table tbody tr.is-selected td {
  color: var(--text);
}

.levels-table-level {
  display: inline-block;
}

.levels-table-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(214, 186, 85, 0.18);
  color: var(--color-heading-accent);
  font-size: 0.68rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.levels-table tbody tr.is-selected .levels-table-badge {
  background: var(--color-interactive-selected-accent-soft);
  color: var(--color-link);
}

.levels-table tbody tr:last-child th,
.levels-table tbody tr:last-child td {
  border-bottom: 0;
}

.method-highlight {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-secondary-border-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(214, 186, 85, 0.12), rgba(214, 186, 85, 0.05));
}

.method-highlight-title {
  margin: 0;
  color: var(--color-heading-accent);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.method-highlight-body {
  margin-top: 8px;
}

.method-highlight-body p {
  color: var(--muted);
}

.source-list {
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.source-list li + li {
  margin-top: 12px;
}

.cta-section {
  text-align: center;
  padding-block: 40px;
}

.cta-section .section-copy {
  margin-inline: auto;
}

.cta-wrap {
  padding-top: 22px;
}

.pdf-export-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 794px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.pdf-export-stage {
  width: 794px;
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.pdf-document {
  width: 794px;
  margin: 0;
  padding: 24px;
  color: var(--text);
  background: #ffffff;
  font-family: var(--font-body);
}

.pdf-document,
.pdf-document *,
.pdf-document *::before,
.pdf-document *::after {
  box-sizing: border-box;
}

.pdf-document a {
  color: var(--color-link);
  text-decoration: none;
}

.pdf-document .pdf-intro {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(214, 186, 85, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--color-bg-surface-soft) 100%);
}

.pdf-document .pdf-intro-header {
  display: grid;
  gap: 14px;
}

.pdf-document .pdf-intro-logo {
  display: block;
  width: auto;
  height: 28px;
}

.pdf-document .pdf-intro-copy {
  display: grid;
  gap: 6px;
}

.pdf-document .pdf-intro-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-heading-accent);
}

.pdf-document .pdf-intro-title {
  margin: 0;
  max-width: 18ch;
  font-size: 2rem;
  line-height: 1.06;
  font-weight: var(--font-weight-heading-heavy);
  letter-spacing: var(--tracking-heading-tight);
  color: var(--text);
}

.pdf-document .pdf-intro-highlight {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px 20px;
  border: 1px solid var(--color-secondary-border-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--secondary-soft) 0%, var(--secondary) 100%);
  box-shadow: 0 16px 30px rgba(91, 73, 22, 0.18);
}

.pdf-document .pdf-intro-highlight-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 237, 208, 0.84);
}

.pdf-document .pdf-intro-highlight-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  line-height: 1.08;
  font-weight: var(--font-weight-heading-heavy);
  letter-spacing: var(--tracking-heading-tight);
  color: var(--brand-secondary-50);
}

.pdf-document [data-pdf-section] {
  margin: 0 0 16px;
  break-inside: auto;
  page-break-inside: auto;
}

.pdf-document .content-card {
  padding: 18px;
  border: 1px solid #d7dce7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

.pdf-document .section-kicker {
  margin-bottom: 8px;
  font-size: 0.64rem;
}

.pdf-document .section-heading,
.pdf-document .result-title {
  margin-bottom: 10px;
  font-size: 1.55rem;
  font-weight: var(--font-weight-heading-bold);
}

.pdf-document .section-copy,
.pdf-document p,
.pdf-document li,
.pdf-document td,
.pdf-document th {
  font-size: 0.82rem;
  line-height: 1.38;
}

.pdf-document .result-header,
.pdf-document .proof-header {
  margin-bottom: 12px;
}

.pdf-document .result-overview,
.pdf-document .solution-layout {
  gap: 12px;
}

.pdf-document .result-overview {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
}

.pdf-document .result-primary,
.pdf-document .result-explainer,
.pdf-document .interpretation-item,
.pdf-document .phase-card {
  padding: 14px;
  border-radius: 16px;
}

.pdf-document .yearly {
  margin-bottom: 10px;
  font-size: 2.35rem;
}

.pdf-document .sub-row {
  padding: 8px 12px;
  font-size: 0.94rem;
}

.pdf-document .interpretation-grid,
.pdf-document .phase-grid {
  gap: 10px;
}

.pdf-document .interpretation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdf-document .phase-grid {
  grid-template-columns: 1fr;
}

.pdf-document .phase-figure {
  padding: 10px;
}

.pdf-document .phase-image-trigger,
.pdf-document [data-pdf-static="true"] {
  display: block;
  cursor: default;
  pointer-events: none;
}

.pdf-document .phase-image-zoom-badge,
.pdf-document [aria-hidden="true"] {
  display: none !important;
}

.pdf-document .phase-image {
  max-height: 220px;
  object-fit: contain;
}

.pdf-document .method-accordion {
  gap: 6px;
  margin-top: 12px;
}

.pdf-document .method-item {
  box-shadow: none;
}

.pdf-document .levels-table-wrap {
  margin-top: 12px;
  overflow: visible;
}

.pdf-document .levels-table {
  min-width: 0;
  font-size: 0.78rem;
}

.pdf-document .method-highlight {
  margin-top: 10px;
  padding: 10px 12px;
}

.pdf-document .method-highlight-title {
  font-size: 0.76rem;
}

.pdf-document .source-list {
  font-size: 0.8rem;
}

.pdf-document .result-basis-summary {
  font-size: 0.8rem;
}

.pdf-document .source-list li,
.pdf-document .phase-card,
.pdf-document .interpretation-item {
  break-inside: avoid;
  page-break-inside: avoid;
}

.pdf-document .source-list li + li {
  margin-top: 6px;
}

.pdf-document .cta,
.pdf-document button {
  box-shadow: none;
}

.pdf-document .pdf-static-details {
  padding: 0;
  border: 1px solid #d7dce7;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.pdf-document .pdf-static-summary {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #e6eaf3;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.pdf-document .pdf-static-details > :not(.pdf-static-summary) {
  padding: 0 14px 14px;
}

.pdf-document .pdf-static-details > .method-panel {
  padding-top: 14px;
}

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

@media print {
  html,
  body {
    margin: 0;
    padding: 0;
    background: #ffffff;
  }

  .pdf-export-stage {
    width: auto;
  }

  .pdf-document {
    width: auto;
    padding: 0;
  }

  .pdf-document [data-pdf-section] {
    margin: 0 0 10mm;
  }

  .pdf-document .content-card {
    break-inside: auto;
    page-break-inside: auto;
  }

  .pdf-document .result-overview,
  .pdf-document .solution-layout,
  .pdf-document .interpretation-grid {
    break-inside: auto;
    page-break-inside: auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  .phase-image-trigger.is-desktop-lightbox-enabled {
    cursor: zoom-in;
    overflow: hidden;
    box-shadow: 0 0 0 1px transparent;
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .phase-image-trigger.is-desktop-lightbox-enabled::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8, 10, 22, 0) 42%, rgba(8, 10, 22, 0.18) 100%);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
  }

  .phase-image-trigger.is-desktop-lightbox-enabled:hover,
  .phase-image-trigger.is-desktop-lightbox-enabled:focus-visible {
    box-shadow: 0 0 0 1px var(--color-primary-border), 0 18px 34px rgba(91, 73, 22, 0.14);
    transform: translateY(-1px);
  }

  .phase-image-trigger.is-desktop-lightbox-enabled:hover::after,
  .phase-image-trigger.is-desktop-lightbox-enabled:focus-visible::after {
    opacity: 1;
  }

  .phase-image-trigger.is-desktop-lightbox-enabled:hover .phase-image-zoom-badge,
  .phase-image-trigger.is-desktop-lightbox-enabled:focus-visible .phase-image-zoom-badge {
    transform: translateY(0);
    opacity: 1;
  }

  .phase-image-zoom-badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(11, 14, 30, 0.74);
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(7, 11, 22, 0.28);
    opacity: 0.96;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
    pointer-events: none;
  }

  .phase-image-zoom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(126, 56, 255, 0.92);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
  }

  .phase-image-zoom-label {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
  }
}

.cta-compact {
  min-width: 0;
  padding: 14px 20px;
  font-size: 0.96rem;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 8px 14px;
  border: 1px solid rgba(31, 34, 60, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.lang-switch span {
  color: var(--text);
  font-weight: var(--font-weight-body-bold);
}

.lang-switch a {
  color: var(--color-link);
  font-weight: var(--font-weight-body-bold);
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

@media (max-width: 960px) {
  .calculator-workbench,
  .result-overview,
  .solution-layout,
  .interpretation-grid,
  .phase-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .phase-visual {
    min-height: auto;
  }

  .phase-cta-band {
    flex: initial;
  }

  .phase-media,
  .video-placeholder {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  main {
    padding: 18px 14px 48px;
  }

  .content-card {
    padding: 24px 18px;
  }

  .section {
    padding: 24px 18px;
  }

  .hero-shell {
    gap: 24px;
  }

  .hero-video-frame {
    padding: 18px;
    border-radius: 22px;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 14px;
  }

  .brand-mark img {
    height: 32px;
  }

  .calculator-context {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
  }

  .controls input,
  .controls .calculate {
    width: 100%;
  }

  .basis-options {
    gap: 6px;
  }

  .calculator-panel {
    padding: 22px 18px;
  }

  .inline-result-summary,
  .result-primary,
  .result-explainer {
    padding: 18px;
  }

  .calculate,
  .cta {
    width: 100%;
  }

  .result-actions,
  .pdf-download-btn {
    width: 100%;
  }

  .result-primary .result-actions {
    padding: 16px;
  }

  .cta-compact {
    white-space: normal;
  }

  .phase-cta-content {
    justify-items: stretch;
  }

  .lang-switch {
    flex-shrink: 0;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .controls input {
    flex: initial;
    align-self: stretch;
    width: 100%;
    height: 52px;
    min-height: 0;
    padding: 0 16px;
    line-height: normal;
    font-size: 16px;
  }

  .calculate {
    min-height: 52px;
    font-size: 1rem;
  }

  .inline-result-main {
    align-items: start;
  }

  .basis-option-body {
    min-height: 68px;
    padding: 10px 9px;
    gap: 8px;
  }

  .basis-option-label {
    font-size: 0.78rem;
  }

  .basis-option-amount {
    font-size: 0.72rem;
  }

  .basis-info-panel {
    padding: 8px 9px;
  }

  .basis-info-title,
  .basis-info-copy,
  .basis-trust-line {
    font-size: 0.76rem;
  }

  .method-item summary,
  .method-panel {
    padding-inline: 18px;
  }

  .levels-table {
    min-width: 560px;
  }

  .yearly {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }
}
