@font-face {
  font-family: 'General Sans';
  src: url('./assets/GeneralSans-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('./assets/Cormorant-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('./assets/Cormorant-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --mist: #f7f8f3;
  --paper: #fff;
  --porcelain: #eaebe6;
  --hairline: #cdceca;
  --ink: #171717;
  --muted: #555650;
  --blue: #b1ceee;
  --blue-light: #d5e4f1;
  --blue-dark: #203040;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  cursor: pointer;
}
::selection {
  background: var(--blue-light);
}
:focus-visible {
  outline: 2px solid var(--blue-dark);
  outline-offset: 4px;
}
.shell {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 64px;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 10;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  border-bottom: 1px solid var(--porcelain);
}
.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand a {
  display: flex;
  align-items: center;
}
.wordmark {
  display: block;
  width: 133px;
  height: 38px;
}
.header-label {
  border-left: 1px solid var(--hairline);
  padding-left: 24px;
  font-size: 12px;
  color: var(--muted);
}
.text-link {
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.text-link:hover {
  text-decoration: underline;
}
.hero {
  padding-block: 54px 48px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: end;
  gap: 60px;
}
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  margin: 16px 0 0;
  font:
    400 clamp(48px, 4.8vw, 68px)/0.98 'Cormorant',
    Georgia,
    serif;
  letter-spacing: -0.035em;
}
h1 em {
  font-weight: 400;
}
.hero-intro {
  max-width: 358px;
  margin: 0 0 4px auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.workspace {
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
}
.input-section {
  padding: 30px 32px 32px 0;
  border-right: 1px solid var(--hairline);
}
.section-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
.section-description {
  margin: 9px 0 24px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.radio-group {
  display: flex;
  border-radius: 5px;
  padding: 3px;
  gap: 3px;
  margin: 0 0 24px;
  background: var(--porcelain);
}
.radio-group label {
  flex: 1;
  position: relative;
  cursor: pointer;
  text-align: center;
}
.radio-group input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.radio-group span {
  display: block;
  padding: 8px 4px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--muted);
}
.radio-group input:checked + span {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px #1717170b;
}
.radio-group input:focus-visible + span {
  outline: 2px solid var(--blue-dark);
  outline-offset: 1px;
}
.input-grid {
  display: grid;
  gap: 22px;
}
.input-group label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
}
.optional {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.field {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--paper);
  transition: border-color 0.15s;
}
.field:focus-within {
  outline: 2px solid var(--blue-dark);
  outline-offset: 2px;
  border-color: var(--blue-dark);
}
.field-affix {
  flex-shrink: 0;
  padding-left: 14px;
  font-size: 14px;
  color: var(--muted);
}
.field-affix:last-child {
  padding-right: 14px;
  padding-left: 0;
}
.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 10px 14px;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.field:has(.field-affix:first-child) input {
  padding-left: 8px;
}
.field input::placeholder {
  color: #8a8b85;
  opacity: 1;
}
.input-group small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.additional-inputs {
  border-top: 1px solid var(--porcelain);
  margin-top: 24px;
}
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.additional-inputs summary {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.disclosure-mark::before {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}
details[open] > summary .disclosure-mark::before {
  content: '−';
}
.additional-inputs .input-grid {
  padding: 4px 0 8px;
}
.calculate-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: var(--ink);
  color: var(--mist);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s;
}
.calculate-btn:hover {
  background: #34352f;
}
.calculate-btn .arrow {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.ownership-display {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--porcelain);
  font-size: 11px;
  color: var(--muted);
}
.ownership-display strong {
  color: var(--ink);
  font-weight: 500;
}
.output-section {
  padding-top: 30px;
  min-width: 0;
  padding-bottom: 36px;
}
.output-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.unit-label {
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 2px;
}
.empty-state {
  min-height: 340px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.empty-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 26px;
  text-align: center;
}
.empty-mark {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-template-rows: repeat(3, 8px);
  gap: 5px;
  margin-bottom: 24px;
  transform: rotate(-8deg);
}
.empty-mark span {
  background: var(--blue);
}
.empty-mark span:nth-child(2n) {
  background: var(--blue-light);
}
.empty-mark span:nth-child(5) {
  background: var(--blue-dark);
}
.empty-body h3 {
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.empty-body p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.scenario-strip {
  border-top: 1px solid var(--porcelain);
  padding: 16px 22px;
}
.scenario-strip .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
  display: block;
}
.scenario-values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue-dark);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.table-scroll-hint {
  display: none;
}
.output-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.table-wrapper {
  overflow-x: auto;
  width: 100%;
  scrollbar-color: var(--hairline) transparent;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 14px 10px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--porcelain);
}
thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: transparent;
}
th:first-child,
td:first-child {
  text-align: left;
  padding-left: 12px;
}
tbody th {
  font-weight: 400;
  white-space: normal;
  min-width: 142px;
}
tbody td:last-child,
thead th:last-child {
  padding-right: 12px;
}
.highlight-row {
  background: var(--blue-light);
}
.highlight-row th,
.highlight-row td {
  color: var(--blue-dark);
  border-bottom-color: var(--blue-light);
  font-weight: 500;
}
tbody tr:not(.highlight-row):hover {
  background: #eaebe64d;
}
.chart-block {
  border-top: 1px solid var(--hairline);
  margin-top: 32px;
  padding-top: 23px;
}
.chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.chart-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.chart-heading p {
  color: var(--muted);
  font-size: 10px;
  margin: 6px 0 0;
}
.chart-container {
  position: relative;
  height: 240px;
  margin-top: 18px;
}
.model-assumptions {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.model-assumptions summary {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-block: 20px;
  font-size: 12px;
}
.assumptions-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.assumptions-hint {
  color: var(--muted);
  font-size: 10px;
}
.assumption-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 20px;
  margin: 0;
}
.assumption-grid dt {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.assumption-grid dd {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.assumptions-note {
  max-width: 680px;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.7;
}
.footer {
  padding-block: 25px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
}
.footer p {
  margin: 0;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.hidden {
  display: none !important;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 56px;
  }
  .workspace {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 48px;
  }
}
@media (max-width: 1100px) {
  .shell {
    padding-inline: 32px;
  }
  .workspace {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
  }
  .input-section {
    padding-right: 24px;
  }
  .hero {
    gap: 32px;
  }
  table {
    min-width: 680px;
  }
  thead th:first-child,
  tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--mist);
    box-shadow: 1px 0 0 var(--hairline);
  }
  .highlight-row th {
    background: var(--blue-light);
  }
}
@media (max-width: 760px) {
  .shell {
    padding-inline: 22px;
  }
  .header-inner {
    min-height: 68px;
    gap: 12px;
  }
  .wordmark {
    width: 113px;
    height: 33px;
  }
  .header-label {
    display: none;
  }
  .text-link {
    font-size: 11px;
    gap: 7px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 36px 30px;
  }
  h1 {
    font-size: 56px;
    margin-top: 12px;
  }
  .hero-intro {
    margin: 0;
    max-width: 430px;
    font-size: 14px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .input-section {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 25px 0 30px;
  }
  .input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .input-group small {
    font-size: 10px;
  }
  .radio-group {
    max-width: 300px;
    margin-bottom: 20px;
  }
  .additional-inputs {
    margin-top: 20px;
  }
  .calculate-btn {
    max-width: 100%;
  }
  .output-section {
    padding-block: 25px 28px;
  }
  .output-heading {
    margin-bottom: 20px;
  }
  h2 {
    font-size: 21px;
  }
  .empty-state {
    min-height: 300px;
  }
  .empty-body {
    padding-block: 28px;
  }
  .empty-mark {
    margin-bottom: 18px;
  }
  .scenario-strip {
    padding: 14px 18px;
  }
  .scenario-values {
    font-size: 12px;
  }
  .chart-container {
    height: 220px;
  }
  .table-scroll-hint {
    display: block;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 10px;
  }
  .assumptions-hint {
    display: none;
  }
  .assumption-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .assumption-grid dd {
    font-size: 18px;
  }
  .footer {
    flex-direction: column;
    gap: 8px;
    padding-block: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--blue-dark);
  font-size: 11px;
}
.share-btn:hover {
  background: var(--porcelain);
}
.share-status {
  min-height: 1.5em;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.share-link-field {
  margin-top: 14px;
}
.share-link-field input {
  font-size: 11px;
}
