:root {
  --coral: #e87461;
  --coral-dark: #c95848;
  --ink: #1d2027;
  --mist: #fff8f6;
  --line: #eadfdc;
  --violet: #554a72;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fffdfc; font-family: "Plus Jakarta Sans", sans-serif; }
a { color: var(--coral-dark); }
.tool-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.tool-nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.tool-brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font: 700 24px "Outfit", sans-serif; }
.tool-brand img { width: 40px; height: 40px; border-radius: 12px; }
.tool-back { font-weight: 700; text-decoration: none; }
.tool-hero { padding: 64px 0 36px; text-align: center; }
.tool-kicker { color: var(--coral-dark); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.tool-hero h1 { max-width: 850px; margin: 12px auto 18px; font: 800 clamp(38px, 7vw, 68px)/1.02 "Outfit", sans-serif; }
.tool-lead { max-width: 720px; margin: 0 auto; color: #5d626d; font-size: 18px; line-height: 1.7; }
.byline { margin-top: 18px; color: #777b84; font-size: 14px; }
.calculator { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; margin: 32px auto 72px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 18px 50px rgba(66, 40, 34, .08); padding: clamp(22px, 4vw, 36px); }
.panel h2 { margin: 0 0 24px; font: 750 27px "Outfit", sans-serif; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 750; }
.field small { color: #70747c; line-height: 1.45; }
.field input { width: 100%; min-height: 52px; border: 1px solid #cdc5c2; border-radius: 14px; padding: 12px 14px; color: var(--ink); background: white; font-family: inherit; font-size: 17px; font-weight: 650; }
.field input:focus { outline: 3px solid rgba(232, 116, 97, .23); border-color: var(--coral); }
.privacy-note { margin: 24px 0 0; padding: 14px 16px; background: var(--mist); border-radius: 14px; color: #665e5c; font-size: 13px; line-height: 1.55; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.result { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fffaf8; }
.result-label { display: block; color: #6c7079; font-size: 13px; margin-bottom: 8px; }
.result strong { font: 800 clamp(23px, 4vw, 34px) "Outfit", sans-serif; }
.journey { margin-top: 24px; padding: 22px; color: white; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, #343044, var(--violet)); }
.journey-title { margin: 0 0 7px; font: 750 20px "Outfit", sans-serif; }
.journey-copy { margin: 0 0 22px; color: #ded9ea; font-size: 14px; }
.trail { position: relative; height: 12px; margin: 34px 10px 14px; border-radius: 99px; background: rgba(255,255,255,.18); }
.trail-progress { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb48f, #e87461); transition: width .25s ease; }
.trail-marker { position: absolute; top: 50%; width: 30px; height: 30px; border: 3px solid white; border-radius: 50%; background: #e87461; transform: translate(-50%, -50%); transition: left .25s ease; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.trail-labels { display: flex; justify-content: space-between; color: #ded9ea; font-size: 12px; }
.content { max-width: 780px; margin: 0 auto 80px; font-size: 17px; line-height: 1.75; }
.content h2 { margin-top: 54px; font: 800 34px/1.2 "Outfit", sans-serif; }
.content h3 { margin-top: 30px; font: 750 22px "Outfit", sans-serif; }
.formula { padding: 20px 24px; border-left: 4px solid var(--coral); border-radius: 0 16px 16px 0; background: var(--mist); font-weight: 800; }
.source-note { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font-size: 14px; }
.tool-cta { margin-top: 44px; padding: 30px; border-radius: 24px; background: var(--ink); color: white; text-align: center; }
.tool-cta h2 { margin: 0 0 10px; }
.tool-cta p { color: #d7d8dc; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border-radius: 99px; background: var(--coral); color: white; font-weight: 800; text-decoration: none; }
.button.secondary { background: white; color: var(--ink); }
.tool-footer { padding: 38px 16px; border-top: 1px solid var(--line); background: var(--mist); text-align: center; color: #6c7079; font-size: 14px; }
.tool-footer a { margin: 0 8px; }

@media (max-width: 760px) {
  .tool-hero { padding-top: 36px; }
  .calculator { grid-template-columns: 1fr; margin-bottom: 52px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .tool-back { font-size: 14px; }
}

@media (max-width: 430px) {
  .result-grid { grid-template-columns: 1fr; }
  .tool-shell { width: min(100% - 22px, 1120px); }
}

@media (prefers-reduced-motion: reduce) {
  .trail-progress, .trail-marker { transition: none; }
}
