:root {
  --ocean: #126c82;
  --ocean-dark: #0a3f50;
  --ocean-soft: #e6f4f6;
  --sand: #f3d7a7;
  --sand-soft: #fff6e8;
  --ink: #18323a;
  --muted: #62757b;
  --line: #d9e5e8;
  --page: #f7fbfc;
  --white: #ffffff;
  --danger: #9c3b3b;
  --shadow: 0 18px 45px rgba(15, 63, 78, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select {
  font: inherit;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ocean);
  color: var(--white);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

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

.top-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}

.top-nav a:hover,
.site-footer a:hover,
.top-nav a[aria-current="page"] {
  color: var(--ocean-dark);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 84px);
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
}

.hero-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(9, 58, 74, 0.28), rgba(9, 58, 74, 0.2)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(7, 43, 54, 0.2));
}

.route-line {
  position: absolute;
  inset: 15% 14%;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-left: 0;
  border-bottom: 0;
  border-radius: 50%;
  transform: rotate(-15deg);
  z-index: 1;
}

.hero-card {
  position: absolute;
  z-index: 2;
  width: min(230px, 72%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(10, 63, 80, 0.14);
  padding: 1rem;
}

.hero-card strong,
.hero-card small {
  display: block;
}

.hero-card small {
  color: var(--muted);
  margin-top: 0.15rem;
}

.hero-card-one {
  top: 1.2rem;
  left: 1.2rem;
}

.hero-card-two {
  right: 1.4rem;
  top: 44%;
}

.hero-card-three {
  left: 2rem;
  bottom: 1.5rem;
}

.mini-icon,
.tool-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: var(--radius);
  color: var(--ocean-dark);
  background: var(--ocean-soft);
  margin-bottom: 0.8rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--ocean);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h3 {
  font-size: 1.08rem;
}

.hero-subhead,
.calculator-hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button,
.ghost-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.78rem 1rem;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: var(--ocean);
  color: var(--white);
}

.button.secondary,
.ghost-button {
  background: var(--white);
  border-color: var(--line);
  color: var(--ocean-dark);
}

.button.danger {
  background: #fff5f5;
  border-color: #edc9c9;
  color: var(--danger);
}

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

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section.narrow {
  width: min(980px, calc(100% - 2rem));
}

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

.text-link {
  color: var(--ocean);
  font-weight: 800;
}

.steps-row,
.tool-grid,
.why-grid,
.metric-grid,
.scenario-grid {
  display: grid;
  gap: 1rem;
}

.steps-row {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
}

.steps-row article,
.tool-card,
.why-grid article,
.metric-grid article,
.scenario-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 63, 78, 0.07);
}

.steps-row article,
.why-grid article {
  padding: 1.2rem;
}

.steps-row span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: var(--radius);
  background: var(--sand-soft);
  color: var(--ocean-dark);
  font-weight: 900;
  margin-bottom: 1rem;
}

.steps-row p,
.tool-card p,
.why-grid p,
.scenario-card p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.tool-card {
  min-height: 15.5rem;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
  border-color: rgba(18, 108, 130, 0.45);
  transform: translateY(-2px);
}

.tool-card strong {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--ocean);
  font-size: 0.88rem;
}

.active-tool {
  border-color: rgba(18, 108, 130, 0.35);
  background: linear-gradient(180deg, var(--white), var(--ocean-soft));
}

.why-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
}

.why-grid {
  grid-template-columns: repeat(2, 1fr);
}

.site-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.calculator-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 2rem;
}

.calculator-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.currency-note {
  width: min(100%, 320px);
  align-self: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 63, 78, 0.07);
  padding: 1rem;
}

.currency-note label {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.currency-note p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.6rem 0 0;
}

.calculator-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.progress-panel,
.calculator-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.progress-panel {
  align-self: start;
  position: sticky;
  top: 1rem;
  padding: 1rem;
}

.progress-ring {
  display: grid;
  min-height: 8rem;
  place-items: center;
  border-radius: var(--radius);
  background: var(--sand-soft);
  text-align: center;
  margin-bottom: 1rem;
}

.progress-ring strong {
  display: block;
  color: var(--ocean-dark);
  font-size: 2rem;
}

.progress-ring span {
  color: var(--muted);
  font-weight: 700;
}

.step-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list button {
  display: flex;
  width: 100%;
  gap: 0.7rem;
  align-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 0.7rem;
  text-align: left;
  cursor: pointer;
  font-weight: 750;
}

.step-list button span {
  display: grid;
  flex: 0 0 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ocean-soft);
  color: var(--ocean-dark);
}

.step-list button.active {
  background: var(--ocean);
  color: var(--white);
}

.step-list button.active span {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.calculator-form {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.form-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.form-toolbar p {
  margin: 0;
  color: var(--ocean);
  font-weight: 900;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-intro {
  color: var(--muted);
  margin: 0.65rem 0 1.25rem;
}

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

label,
.segmented legend {
  position: relative;
  color: var(--ink);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  margin-top: 0.4rem;
  padding: 0.75rem 0.85rem;
}

input:focus,
select:focus {
  outline: 3px solid rgba(18, 108, 130, 0.16);
  border-color: var(--ocean);
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 4rem;
  padding-top: 1.3rem;
}

.inline-check input {
  width: 1.1rem;
  min-height: auto;
  margin: 0;
}

.tooltip {
  display: inline-grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border-radius: 999px;
  background: var(--ocean-soft);
  color: var(--ocean-dark);
  font-size: 0.78rem;
  cursor: help;
}

.tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 4;
  top: 1.7rem;
  left: 0;
  width: min(260px, 80vw);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.segmented legend {
  grid-column: 1 / -1;
  margin-bottom: 0.4rem;
}

.segmented label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.segmented input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.results-dashboard {
  display: grid;
  gap: 1rem;
}

.result-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-radius: var(--radius);
  background: var(--ocean-dark);
  color: var(--white);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.result-hero span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.result-hero strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  margin: 0.3rem 0;
}

.result-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.metric-grid {
  grid-template-columns: repeat(3, 1fr);
}

.metric-grid article,
.scenario-card {
  padding: 1rem;
}

.metric-grid span,
.scenario-card span {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.metric-grid strong,
.scenario-card strong {
  display: block;
  color: var(--ocean-dark);
  font-size: 1.6rem;
  margin-top: 0.35rem;
}

.breakdown-wrap,
.scenario-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.breakdown-wrap h3,
.scenario-wrap h3 {
  margin-bottom: 1rem;
}

.breakdown-bars {
  display: grid;
  gap: 0.75rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 110px;
  gap: 0.8rem;
  align-items: center;
}

.bar-track {
  height: 0.8rem;
  border-radius: 999px;
  background: var(--ocean-soft);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ocean), #6db3bd);
}

.bar-value {
  text-align: right;
  color: var(--muted);
  font-weight: 800;
}

.scenario-grid {
  grid-template-columns: repeat(3, 1fr);
}

.disclaimer-note {
  border-left: 4px solid var(--sand);
  background: var(--sand-soft);
  border-radius: var(--radius);
  color: #5c4a2a;
  margin: 0;
  padding: 1rem;
}

.seo-content {
  width: min(980px, calc(100% - 2rem));
}

details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.05rem;
}

details p {
  color: var(--muted);
  margin-bottom: 0;
}

.placeholder-main {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.placeholder-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.placeholder-panel p,
.placeholder-panel li {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .calculator-shell,
  .why-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .hero-media {
    grid-column: auto;
    grid-row: auto;
  }

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

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

  .progress-panel {
    position: static;
  }

  .step-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-hero {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .section-heading,
  .form-toolbar,
  .result-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav,
  .site-footer nav {
    gap: 0.75rem;
  }

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

  .hero-card {
    width: min(210px, 78%);
    padding: 0.85rem;
  }

  .steps-row,
  .tool-grid,
  .why-grid,
  .field-grid,
  .metric-grid,
  .scenario-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .calculator-form,
  .progress-panel {
    box-shadow: 0 8px 22px rgba(15, 63, 78, 0.08);
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .bar-value {
    text-align: left;
  }

  .form-actions .button {
    width: 100%;
  }
}

@media print {
  .site-header,
  .progress-panel,
  .form-toolbar,
  .form-actions,
  .seo-content,
  .site-footer,
  .currency-note,
  .button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .calculator-shell,
  .calculator-form {
    display: block;
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  .form-step {
    display: none !important;
  }

  .form-step[data-step="6"] {
    display: block !important;
  }
}
