:root {
  color-scheme: light;
  --charcoal: #151715;
  --ink: #262b25;
  --muted: #6e756d;
  --paper: #f4f0e8;
  --paper-deep: #e7ddcf;
  --panel: #fffaf1;
  --line: #d6cab8;
  --green: #5c744f;
  --green-dark: #354b39;
  --terracotta: #b95f45;
  --terracotta-dark: #8f432f;
  --blue: #496f87;
  --shadow: 0 24px 70px rgba(21, 23, 21, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(21, 23, 21, 0.04), rgba(185, 95, 69, 0.08) 54%, rgba(244, 240, 232, 0)),
    var(--paper);
  color: var(--ink);
  font-family:
    ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.preview-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: 0 12px 26px rgba(21, 23, 21, 0.16);
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong,
.header-link,
.site-footer,
.eyebrow,
.hero__text,
.hero__note,
.tool-button,
.section-intro,
.method-grid,
.pathway-card,
.scenario-card,
.table-card,
.advisory-note,
.source-note,
.cta-section,
.assumption-grid {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 760;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.header-link,
.site-footer a {
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.header-link:hover,
.site-footer a:hover {
  color: var(--terracotta-dark);
}

.preview-shell {
  padding: 56px 0 64px;
}

.preview-hero {
  position: relative;
  max-width: 1060px;
  border-bottom: 1px solid rgba(21, 23, 21, 0.16);
}

.preview-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(360px, 38vw);
  height: 1px;
  background: var(--terracotta);
  content: "";
}

.preview-hero__content {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 42px 0 58px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--terracotta-dark);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1060px;
  margin-bottom: 18px;
  color: var(--charcoal);
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--charcoal);
  font-family:
    ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 520;
  line-height: 1.04;
}

h3 {
  color: var(--charcoal);
}

.hero__text {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.45vw, 1.18rem);
  line-height: 1.68;
}

.hero__note {
  max-width: 820px;
  margin: 18px 0 24px;
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 780;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.tool-button--primary {
  background: var(--charcoal);
  color: var(--paper);
}

.tool-button--primary:hover {
  border-color: var(--terracotta);
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.tool-button--quiet {
  border-color: rgba(21, 23, 21, 0.24);
  background: rgba(255, 250, 241, 0.54);
  color: var(--green-dark);
}

.tool-button--quiet:hover {
  border-color: var(--green);
  background: rgba(255, 250, 241, 0.9);
}

.preview-section {
  margin-top: 64px;
}

.currency-panel {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  border: 1px solid rgba(21, 23, 21, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(231, 221, 207, 0.5)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
}

.currency-panel--compact {
  margin: 0 0 20px;
}

.currency-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.currency-panel__heading h2,
.currency-panel__heading h3 {
  margin: 0;
}

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

.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 820;
}

.toggle-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-dark);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.35;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(21, 23, 21, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  color: var(--ink);
  padding: 0 12px;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(92, 116, 79, 0.28);
  outline-offset: 1px;
}

.field small,
.currency-panel__helper,
.currency-panel__note {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 620;
  line-height: 1.52;
}

.field small {
  margin-top: -4px;
}

.currency-panel__helper,
.currency-panel__note {
  margin: 0;
  max-width: 860px;
}

.currency-panel__note {
  color: var(--green-dark);
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 860px;
  margin-bottom: 20px;
}

.section-intro {
  max-width: 800px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.section-intro--secondary {
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 0.94rem;
  font-weight: 650;
}

.method-grid,
.pathway-grid,
.scenario-grid,
.assumption-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.method-grid article,
.pathway-card,
.scenario-card,
.assumption-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 23, 21, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  padding: 24px;
}

.method-grid article::before,
.pathway-card::before,
.scenario-card::before,
.assumption-grid article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
  content: "";
}

.method-grid span,
.card-meta {
  display: block;
  margin-bottom: 14px;
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 840;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.method-grid h3,
.pathway-card h3,
.scenario-card h3,
.assumption-grid h3 {
  margin-bottom: 10px;
  font-family:
    ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 560;
  line-height: 1.18;
}

.method-grid p,
.pathway-card p:not(.card-meta),
.scenario-card p:not(.card-meta),
.assumption-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.pathway-card--active,
.scenario-card--highlighted {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(231, 221, 207, 0.64)),
    var(--panel);
  box-shadow: var(--shadow);
}

.pathway-card--active::before,
.scenario-card--highlighted::before {
  background: var(--terracotta);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green-dark);
  font-weight: 820;
  text-decoration: none;
}

.text-link:hover {
  color: var(--terracotta-dark);
}

.text-link--disabled {
  color: rgba(53, 75, 57, 0.7);
}

.context-note {
  margin: 0 0 20px;
  border: 1px solid rgba(21, 23, 21, 0.12);
  border-left: 4px solid rgba(73, 111, 135, 0.64);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.46);
  padding: 18px 20px;
}

.context-note p {
  max-width: 960px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.64;
}

.table-card {
  overflow: hidden;
  border: 1px solid rgba(21, 23, 21, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(231, 221, 207, 0.5)),
    var(--panel);
  box-shadow: var(--shadow);
}

.table-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 0;
}

.table-card__heading h3 {
  margin-bottom: 0;
  font-family:
    ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 560;
}

.table-card__heading p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.table-card > .table-wrap:first-child {
  margin-top: 0;
}

.table-note {
  margin: 0;
  border-top: 1px solid rgba(21, 23, 21, 0.1);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 620;
  line-height: 1.58;
  padding: 16px 24px 20px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-top: 1px solid rgba(21, 23, 21, 0.1);
  padding: 14px 24px;
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody th {
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 820;
}

td {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 680;
  line-height: 1.5;
}

td span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 620;
}

.idr-value {
  display: block;
}

.converted-value {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.money-line {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 680;
  line-height: 1.5;
}

.money-line:not(:first-child) {
  margin-top: 12px;
}

.money-line strong {
  color: var(--green-dark);
  font-weight: 820;
}

.scenario-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0 0;
}

.scenario-facts dt {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scenario-facts dd {
  margin: -6px 0 0;
  color: var(--charcoal);
  font-size: 1rem;
  font-weight: 760;
}

.source-note,
.advisory-note {
  margin-top: 34px;
  border: 1px solid rgba(21, 23, 21, 0.12);
  border-left: 4px solid rgba(92, 116, 79, 0.52);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.42);
  padding: 20px 22px;
}

.source-note p,
.advisory-note p {
  max-width: 980px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  border-top: 1px solid rgba(21, 23, 21, 0.16);
  padding-top: 30px;
}

.cta-section h2 {
  max-width: 720px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(21, 23, 21, 0.16);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
  padding: 24px 0 32px;
}

@media (max-width: 980px) {
  .method-grid,
  .pathway-grid,
  .scenario-grid,
  .assumption-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .preview-hero,
  .preview-hero__content {
    min-height: auto;
  }

  .preview-hero__content {
    padding-bottom: 42px;
  }

  .method-grid,
  .pathway-grid,
  .scenario-grid,
  .assumption-grid,
  .currency-panel__controls {
    grid-template-columns: 1fr;
  }

  .table-card__heading,
  .currency-panel__heading,
  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .preview-shell {
    width: min(100% - 24px, 1160px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-shell {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .method-grid article,
  .pathway-card,
  .scenario-card,
  .assumption-grid article {
    padding: 22px;
  }
}
