:root {
  --ink: #132b26;
  --muted: #66756f;
  --green: #143e35;
  --green-2: #1e6655;
  --mint: #d9f5e9;
  --mint-2: #effaf6;
  --cream: #f5f2e9;
  --orange: #f29654;
  --line: #dde5e1;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 62, 53, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fbfcfa;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 650px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 126px 24px 76px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 65px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 245, 233, 0.9), rgba(217, 245, 233, 0));
  content: "";
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 67px);
  line-height: 1.13;
  letter-spacing: -0.055em;
}

h1 em,
h2 em {
  color: var(--green-2);
  font-style: normal;
}

.hero-description {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 18px;
  word-break: keep-all;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(20, 62, 53, 0.18);
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.button:hover,
.calculate-button:hover {
  transform: translateY(-1px);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.trust-list li::before {
  margin-right: 7px;
  color: var(--green-2);
  content: "✓";
  font-weight: 900;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 460px;
  place-items: center;
}

.balance-card {
  position: relative;
  width: min(100%, 440px);
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(20, 62, 53, 0.08);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.balance-card::after {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(217, 245, 233, 0.62);
  content: "";
}

.balance-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  padding: 5px 10px;
  border-radius: 999px;
  color: #146749;
  background: var(--mint);
  font-size: 12px;
}

.balance-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 42px 0 38px;
  text-align: center;
}

.balance-equation > span {
  color: var(--orange);
  font-size: 32px;
  font-weight: 900;
}

.balance-equation small,
.balance-equation strong {
  display: block;
}

.balance-equation small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.balance-equation strong {
  font-size: 20px;
}

.mini-timeline {
  position: relative;
  z-index: 1;
  display: flex;
  height: 92px;
  align-items: end;
  justify-content: space-between;
  gap: 9px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.mini-timeline span {
  width: 12%;
  border-radius: 8px 8px 2px 2px;
}

.mini-timeline .early {
  height: var(--size);
  background: var(--green-2);
}

.mini-timeline .late {
  height: var(--size);
  background: #efaa75;
}

.mini-timeline .today {
  height: 100%;
  width: 2px;
  border-radius: 0;
  background: var(--ink);
}

.balance-card > p {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.floating-note {
  position: absolute;
  padding: 11px 16px;
  border: 1px solid rgba(20, 62, 53, 0.08);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(20, 62, 53, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.note-one {
  top: 48px;
  left: -8px;
  color: var(--green-2);
  transform: rotate(-3deg);
}

.note-two {
  right: -6px;
  bottom: 42px;
  color: #b65c23;
  transform: rotate(3deg);
}

.ad-slot {
  display: none;
  place-items: center;
  border: 1px dashed #cbd5d0;
  border-radius: 16px;
  color: #98a39e;
  background: #f8faf8;
  text-align: center;
}

.ad-slot[data-ad-active="true"] {
  display: grid;
}

.ad-content {
  display: grid;
  width: 100%;
  min-height: inherit;
  place-items: center;
  gap: 8px;
  padding: 10px;
}

.ad-label,
.ad-slot span {
  font-size: 9px;
  letter-spacing: 0.18em;
}

.ad-slot p {
  margin: 4px 0 0;
  font-size: 12px;
}

.ad-slot-wide {
  max-width: 970px;
  min-height: 100px;
  margin: 0 auto 86px;
}

.calculator-section {
  position: relative;
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
  background: var(--cream);
  scroll-margin-top: 70px;
}

.jump-banner {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 50%;
  display: flex;
  max-width: min(calc(100vw - 32px), 760px);
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(20, 62, 53, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(20, 62, 53, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.jump-banner button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #d9e3de;
  border-radius: 999px;
  color: var(--green);
  background: #fbfdfc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.jump-banner button:hover {
  border-color: rgba(30, 102, 85, 0.28);
  background: var(--mint-2);
}

.jump-banner button.is-active {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
  box-shadow: 0 7px 18px rgba(20, 62, 53, 0.18);
}

.jump-banner button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 360px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  align-items: start;
  gap: 28px;
}

.form-column {
  position: relative;
  display: grid;
  gap: 18px;
}

.form-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(20, 62, 53, 0.08);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(20, 62, 53, 0.035);
}

.step-card::after {
  position: absolute;
  z-index: 2;
  bottom: -19px;
  left: 56px;
  width: 3px;
  height: 19px;
  background: var(--green-2);
  content: "";
}

.step-card-final::after {
  display: none;
}

.step-card,
.result-column {
  scroll-margin-top: 82px;
}

.card-heading,
.heading-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-heading {
  margin-bottom: 24px;
}

.card-heading.split {
  justify-content: space-between;
  gap: 24px;
}

.step {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  align-content: center;
  gap: 0;
  border: 4px solid #c8eddf;
  border-radius: 18px;
  color: var(--white);
  background: var(--green-2);
  box-shadow: 0 8px 18px rgba(30, 102, 85, 0.18);
  font-weight: 900;
}

.step small,
.step strong {
  display: block;
  line-height: 1;
}

.step small {
  margin-bottom: 3px;
  color: #cce9df;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.step strong {
  font-size: 23px;
}

.card-heading h3 {
  margin: 3px 0 2px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.card-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field > span:first-child {
  color: #44534e;
  font-size: 12px;
  font-weight: 800;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label-row > label:first-child {
  color: #44534e;
  font-size: 12px;
  font-weight: 800;
}

.field input {
  width: 100%;
  height: 48px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fcfdfc;
  font-weight: 700;
}

.field input:disabled {
  color: #84918c;
  background: #f1f5f3;
  cursor: not-allowed;
}

.field input:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(30, 102, 85, 0.1);
}

.field input[aria-invalid="true"] {
  border-color: #d88363;
}

.field input[type="number"] {
  appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.date-segments {
  display: grid;
  grid-template-columns: minmax(88px, 1.25fr) minmax(66px, 0.8fr) minmax(66px, 0.8fr);
  gap: 8px;
}

.date-segments label {
  position: relative;
  min-width: 0;
}

.date-segments input {
  padding-right: 34px;
  text-align: right;
}

.date-segments small {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-with-unit {
  position: relative;
  display: block;
}

.input-with-unit input {
  padding-right: 44px;
  text-align: right;
}

.input-with-unit small {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.number-stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 6px;
}

.stepper-button {
  display: grid;
  height: 48px;
  place-items: center;
  border: 1px solid #cbd8d3;
  border-radius: 11px;
  color: var(--green);
  background: var(--mint-2);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.stepper-button:hover {
  border-color: rgba(30, 102, 85, 0.38);
  background: var(--mint);
}

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

.preset-button {
  min-height: 34px;
  border: 1px solid #d8e3de;
  border-radius: 999px;
  color: #50645d;
  background: #f8fbf9;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.preset-button.is-active {
  border-color: rgba(30, 102, 85, 0.42);
  color: var(--white);
  background: var(--green-2);
  box-shadow: 0 7px 16px rgba(30, 102, 85, 0.16);
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.maturity-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--green);
  background: var(--mint-2);
  font-size: 13px;
}

.text-button {
  padding: 7px 0;
  border: 0;
  color: var(--green-2);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.subsection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 12px;
}

.cash-source-block {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #e1e8e4;
  border-left: 4px solid rgba(30, 102, 85, 0.48);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(239, 250, 246, 0.72), #fbfcfb 42%);
}

.cash-source-block + .cash-source-block {
  margin-top: 16px;
}

.cash-source-block .subsection-heading {
  align-items: center;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7ede9;
}

.cash-source-block .subsection-heading > div {
  display: grid;
  gap: 3px;
}

.cash-source-block .text-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--white);
}

.monthly-source {
  border-color: #e1e8e4;
  border-left-color: rgba(242, 150, 84, 0.52);
  background: linear-gradient(90deg, rgba(255, 248, 232, 0.74), #fbfcfb 42%);
}

.source-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--green-2);
  background: #e5f4ee;
  font-size: 10px;
  font-weight: 900;
}

.monthly-source .source-pill {
  color: #9b4d18;
  background: #fff0df;
}

.subsection-heading h4 {
  display: block;
  margin: 0;
  font-size: 14px;
}

.lump-source .subsection-heading h4 {
  color: var(--green);
}

.monthly-source .subsection-heading h4 {
  color: #8f4a1e;
}

.subsection-heading span {
  color: var(--muted);
  font-size: 11px;
}

.subsection-heading .source-pill {
  color: var(--green-2);
  font-size: 10px;
}

.monthly-source .subsection-heading .source-pill {
  color: #9b4d18;
}

.recurring-heading {
  align-items: center;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.dynamic-list {
  display: grid;
  gap: 10px;
}

.cash-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e4eae7;
  border-radius: 14px;
  background: #fafcfb;
}

.cash-row.lump-row {
  border-color: #e4eae7;
  background: var(--white);
}

.cash-row.monthly-row {
  border-color: #e4eae7;
  background: var(--white);
}

.cash-row.lump-row::before,
.cash-row.monthly-row::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  content: "";
}

.cash-row.lump-row::before {
  background: rgba(30, 102, 85, 0.68);
}

.cash-row.monthly-row::before {
  background: rgba(242, 150, 84, 0.76);
}

.cash-row.monthly-row {
  grid-template-columns: 1fr 1fr 1.2fr auto;
}

.cash-row .field input {
  height: 42px;
  background: var(--white);
}

.remove-button {
  display: grid;
  width: 34px;
  height: 42px;
  place-items: center;
  border: 0;
  color: #8c9893;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.remove-button:hover {
  color: #bd542f;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch > span {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #ccd5d1;
  transition: 0.2s;
}

.switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  content: "";
  transition: 0.2s;
}

.switch input:checked + span {
  background: var(--green-2);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.switch small {
  font-weight: 800;
}

.compact-switch {
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
}

.compact-switch > span {
  width: 36px;
  height: 21px;
}

.compact-switch > span::after {
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
}

.compact-switch input:checked + span::after {
  transform: translateX(15px);
}

.helper-text {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.cash-warning {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #f2d4a2;
  border-radius: 12px;
  color: #76521a;
  background: #fff8e8;
  font-size: 12px;
  font-weight: 700;
  word-break: keep-all;
}

.calculate-button {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 24px rgba(20, 62, 53, 0.16);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  transition: 0.2s;
}

.form-error {
  padding: 13px 16px;
  border: 1px solid #f1c6b5;
  border-radius: 12px;
  color: #914827;
  background: #fff5f0;
  font-size: 13px;
}

.result-column {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

#result {
  scroll-margin-top: 86px;
}

.empty-result {
  display: grid;
  min-height: 440px;
  place-items: center;
  align-content: center;
  padding: 40px;
  border: 1px solid rgba(20, 62, 53, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 20px 20px 20px 6px;
  color: var(--green-2);
  background: var(--mint);
  font-size: 24px;
  font-weight: 900;
}

.empty-result h3 {
  margin-bottom: 8px;
}

.empty-result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.result-card {
  overflow: hidden;
  border: 1px solid rgba(20, 62, 53, 0.08);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 62, 53, 0.06);
}

.result-summary {
  padding: 27px;
  color: var(--white);
  background: var(--green);
}

.result-summary small {
  color: #b9d4cc;
  font-size: 12px;
}

.result-summary strong {
  display: block;
  margin: 3px 0 14px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.result-summary p {
  margin: 0;
  color: #d8e6e1;
  font-size: 12px;
}

.cap-limit-notice {
  padding: 13px 18px;
  border-bottom: 1px solid #f2d4a2;
  color: #76521a;
  background: #fff8e8;
  font-size: 12px;
  font-weight: 700;
  word-break: keep-all;
}

.result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.result-metrics > div {
  padding: 18px;
  background: var(--white);
}

.result-metrics > .net-profit-metric {
  grid-column: 1 / -1;
  background: #f7fbf8;
}

.result-metrics span,
.result-metrics strong {
  display: block;
}

.result-metrics span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.result-metrics strong {
  font-size: 16px;
}

.net-profit-metric strong {
  color: var(--green-2);
  font-size: 24px;
}

.net-profit-metric small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.balance-result {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
}

.comparison-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(20, 62, 53, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 62, 53, 0.05);
}

.comparison-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.comparison-heading span,
.comparison-option span,
.comparison-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.comparison-heading h3 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.comparison-heading > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

.comparison-heading > strong small {
  font-size: 11px;
  font-weight: 900;
}

.comparison-heading > strong.positive {
  color: var(--green-2);
  background: var(--mint-2);
}

.comparison-heading > strong.negative {
  color: #a13e26;
  background: #fff0e9;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.comparison-option {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.comparison-option.recommended {
  border-color: rgba(30, 102, 85, 0.24);
  background: #f7fbf8;
}

.comparison-option strong {
  color: var(--green);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.comparison-option p {
  margin: 0 0 8px;
  color: #5d6a65;
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
}

.comparison-option b {
  color: var(--green-2);
  font-size: 18px;
}

.comparison-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  word-break: keep-all;
}

.balance-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
}

.balance-result-top strong {
  color: var(--green-2);
}

.balance-bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

.balance-bar .advance {
  width: var(--advance-width);
  background: var(--green-2);
}

.balance-bar .delay {
  width: var(--delay-width);
  background: var(--orange);
}

.balance-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.chart-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(20, 62, 53, 0.08);
  border-radius: 22px;
  background: var(--white);
}

.chart-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.chart-heading h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.chart-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.chart-heading strong {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-2);
  background: var(--mint-2);
  font-size: 12px;
  white-space: nowrap;
}

.day-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid {
  stroke: #eef3f0;
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.planned {
  stroke: #aebbb5;
  stroke-dasharray: 7 7;
  stroke-width: 3;
}

.chart-line.actual {
  stroke-width: 4.5;
}

.chart-line.actual.own {
  stroke: var(--green-2);
}

.chart-line.actual.loan {
  stroke: var(--orange);
}

.planned-marker {
  fill: var(--white);
  stroke: #aebbb5;
  stroke-width: 2;
}

.actual-marker circle {
  stroke: var(--white);
  stroke-width: 3;
}

.actual-marker .own {
  fill: var(--green-2);
}

.actual-marker .loan {
  fill: var(--orange);
}

.actual-marker text {
  fill: var(--green);
  font-size: 13px;
  font-weight: 900;
  paint-order: stroke;
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 5px;
  text-anchor: middle;
}

.chart-y-label,
.chart-x-label,
.chart-axis-label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chart-x-label,
.chart-axis-label {
  text-anchor: middle;
}

.chart-axis-label {
  font-size: 12px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

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

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chart-legend .planned {
  border: 2px solid #aebbb5;
  background: var(--white);
}

.chart-legend .actual {
  background: var(--green-2);
}

.chart-legend .loan {
  background: var(--orange);
}

.chart-event-list {
  display: grid;
  max-height: 176px;
  overflow: auto;
  gap: 8px;
  margin-top: 14px;
  padding-right: 2px;
}

.chart-event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 10px 11px;
  border: 1px solid #edf2ef;
  border-radius: 12px;
  background: #fbfdfc;
}

.chart-event span {
  color: var(--green-2);
  font-size: 12px;
  font-weight: 900;
}

.chart-event strong {
  justify-self: end;
  font-size: 12px;
}

.chart-event small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  word-break: keep-all;
}

.schedule-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(20, 62, 53, 0.08);
  border-radius: 22px;
  background: var(--white);
}

.schedule-card h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.schedule-card > p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
}

.schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: start;
}

.schedule-item:not(:last-child)::after {
  position: absolute;
  top: 14px;
  bottom: -17px;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.schedule-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border: 3px solid #c7eade;
  border-radius: 50%;
  background: var(--green-2);
}

.schedule-item.loan .schedule-dot {
  border-color: #f8d7bd;
  background: var(--orange);
}

.schedule-info strong,
.schedule-info small {
  display: block;
}

.schedule-info strong {
  font-size: 13px;
}

.schedule-info small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.schedule-amount {
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.schedule-amount small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.result-notice {
  margin-top: 16px;
  padding: 13px;
  border-radius: 11px;
  color: #6f5826;
  background: #fff8e8;
  font-size: 10px;
}

.ad-slot-box {
  min-height: 220px;
}

.affiliate-section {
  padding: 78px max(24px, calc((100vw - 1180px) / 2));
  background: #fbfcfa;
}

.affiliate-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.affiliate-section .section-heading > p {
  max-width: 420px;
  color: #7b6650;
}

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

.affiliate-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(20, 62, 53, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 62, 53, 0.055);
}

.affiliate-card:hover {
  border-color: rgba(30, 102, 85, 0.32);
  transform: translateY(-1px);
}

.affiliate-card-media {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--green-2);
  background: var(--mint-2);
  font-size: 31px;
  font-weight: 900;
}

.affiliate-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.affiliate-card-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.affiliate-card-body small {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.affiliate-card-body strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.affiliate-card-body span {
  color: var(--muted);
  font-size: 13px;
  word-break: keep-all;
}

.guide-section {
  position: relative;
  overflow: hidden;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 245, 233, 0.18), transparent 34%),
    linear-gradient(135deg, #102d27 0%, #173f36 52%, #0e241f 100%);
  scroll-margin-top: 0;
}

.guide-section::before {
  display: block;
  height: 22px;
  background: linear-gradient(180deg, var(--cream), rgba(16, 45, 39, 0));
  content: "";
}

.guide-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px 110px;
}

.guide-label {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
  color: #b9d4cc;
  font-size: 12px;
  text-align: center;
}

.guide-label::before,
.guide-label::after {
  height: 1px;
  background: rgba(217, 245, 233, 0.22);
  content: "";
}

.guide-label span {
  padding: 7px 12px;
  border: 1px solid rgba(217, 245, 233, 0.28);
  border-radius: 999px;
  color: #9ee3c7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.guide-label strong {
  font-size: 12px;
}

.guide-section .eyebrow {
  color: #9ee3c7;
}

.guide-section h2 {
  color: var(--white);
}

.guide-section h2 em {
  color: #9ee3c7;
}

.section-heading.centered {
  display: block;
  margin-bottom: 48px;
  text-align: center;
}

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

.guide-grid article {
  padding: 28px;
  border: 1px solid rgba(217, 245, 233, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

.guide-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 50%;
  color: #12372f;
  background: #9ee3c7;
  font-size: 12px;
  font-weight: 900;
}

.guide-grid h3 {
  margin-bottom: 9px;
  font-size: 18px;
}

.guide-grid p {
  margin-bottom: 0;
  color: #c8d9d3;
  font-size: 13px;
  word-break: keep-all;
}

.formula-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 25px 30px;
  border-radius: 18px;
  color: var(--ink);
  background: #f7f2e8;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.formula-band > span {
  color: var(--green-2);
  font-size: 11px;
  font-weight: 800;
}

.formula-band strong {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.formula-band p {
  margin: 0;
  color: #697772;
  font-size: 11px;
  text-align: right;
}

.seo-section {
  padding: 86px max(24px, calc((100vw - 1180px) / 2));
  background: #fbfcfa;
}

.seo-shell,
.faq-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.seo-section .section-heading > p {
  max-width: 430px;
}

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

.seo-grid article {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(20, 62, 53, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 62, 53, 0.05);
}

.seo-grid article > span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-2);
  background: var(--mint-2);
  font-size: 11px;
  font-weight: 900;
}

.seo-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.seo-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  word-break: keep-all;
}

.strategy-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 26px 30px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
}

.strategy-band span,
.strategy-band strong {
  display: block;
}

.strategy-band span {
  margin-bottom: 5px;
  color: #b9d4cc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.strategy-band strong {
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.strategy-band a {
  display: inline-flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--green);
  background: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.faq-section {
  padding: 84px max(24px, calc((100vw - 1180px) / 2));
  background: var(--mint-2);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid rgba(20, 62, 53, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(20, 62, 53, 0.035);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

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

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 13px;
  word-break: keep-all;
}

.caution-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  padding: 80px max(24px, calc((100vw - 1180px) / 2));
  background: var(--mint-2);
  scroll-margin-top: 60px;
}

.caution-section h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.caution-section ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  color: #4f625b;
  font-size: 13px;
  list-style: none;
}

.caution-section li {
  position: relative;
  padding-left: 22px;
}

.caution-section li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px max(24px, calc((100vw - 1180px) / 2));
  color: #8b9893;
  background: #102d27;
  font-size: 10px;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

footer a {
  color: #d9eee6;
  font-weight: 800;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.policy-page {
  background:
    radial-gradient(circle at top left, rgba(187, 231, 215, 0.55), transparent 32%),
    var(--cream);
}

.policy-hero {
  display: grid;
  gap: 18px;
  padding: 88px max(24px, calc((100vw - 920px) / 2)) 48px;
}

.policy-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--green);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.95;
}

.policy-hero p {
  max-width: 680px;
  margin: 0;
  color: #52635d;
  font-size: 17px;
  line-height: 1.75;
}

.policy-hero .button {
  width: max-content;
}

.policy-content {
  display: grid;
  gap: 18px;
  padding: 0 max(24px, calc((100vw - 920px) / 2)) 96px;
}

.policy-content article {
  padding: 28px;
  border: 1px solid #dce8e3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.policy-content h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 21px;
}

.policy-content p {
  margin: 0;
  color: #52635d;
  font-size: 15px;
  line-height: 1.8;
}

.policy-content p + p {
  margin-top: 10px;
}

[hidden] {
  display: none !important;
}

.disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 108px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .trust-list {
    justify-content: center;
  }

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

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

  .result-column {
    position: static;
  }

  .empty-result {
    min-height: 260px;
  }

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

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

  .strategy-band {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .formula-band {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .formula-band p {
    text-align: center;
  }

  footer {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .jump-banner {
    top: 8px;
    right: 10px;
    left: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    border-radius: 14px;
    transform: none;
  }

  .jump-banner button {
    flex: 0 0 auto;
  }

  .hero {
    min-height: auto;
    gap: 40px;
    padding: 104px 18px 52px;
  }

  .hero::before {
    right: 0;
    width: 340px;
    height: 340px;
  }

  h1 {
    font-size: 42px;
  }

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

  .hero-actions {
    display: grid;
  }

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

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

  .floating-note {
    display: none;
  }

  .ad-slot-wide {
    min-height: 82px;
    margin: 0 18px 56px;
  }

  .calculator-section,
  .affiliate-section,
  .seo-section,
  .faq-section,
  .caution-section {
    padding: 64px 18px;
  }

  .guide-shell {
    padding: 58px 18px 70px;
  }

  .guide-label {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 34px;
  }

  .guide-label::before,
  .guide-label::after {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 12px;
    text-align: left;
  }

  .form-card {
    padding: 22px 17px;
    border-radius: 18px;
  }

  .step-card::after {
    left: 47px;
  }

  .step {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .card-heading.split {
    align-items: flex-start;
  }

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

  .cash-row,
  .cash-row.monthly-row {
    grid-template-columns: 1fr;
    padding: 16px 46px 16px 14px;
  }

  .remove-button {
    position: absolute;
    top: 8px;
    right: 7px;
  }

  .subsection-heading {
    display: block;
  }

  .subsection-heading .text-button,
  .recurring-heading .text-button {
    margin-top: 8px;
  }

  .result-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .comparison-heading {
    display: grid;
  }

  .comparison-heading > strong {
    justify-self: start;
  }

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

  .affiliate-card {
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .affiliate-card-media {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .guide-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .caution-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
