
:root {
  --bg: #f43a06;
  --pink: #ff72b8;
  --cream: #fff7dc;
  --yellow: #ffd61a;
  --green: #40c978;
  --blue: #3977ec;
  --ink: #0a0a0a;
  --white: #ffffff;
}
* { box-sizing: border-box; }
.top-ad-space {
  width: 100%;
  height: 112px;
  background: var(--bg);
}


html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px 24px 24px;
}

.blob {
  position: absolute;
  z-index: 0;
  border-radius: 44% 56% 60% 40% / 48% 42% 58% 52%;
}
.blob-a {
  width: 240px; height: 180px;
  background: var(--pink);
  top: -182px; left: -55px;
  transform: rotate(-18deg);
}
.blob-b {
  width: 230px; height: 170px;
  background: var(--yellow);
  top: -172px; right: -60px;
  transform: rotate(15deg);
}
.blob-c {
  width: 250px; height: 190px;
  background: var(--green);
  bottom: -95px; left: -65px;
  transform: rotate(12deg);
}
.blob-d {
  width: 245px; height: 190px;
  background: var(--blue);
  bottom: -95px; right: -60px;
  transform: rotate(-10deg);
}

.hero,
.calculator-card,
.result-card,
.info-strip,
.disclaimer {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}
.hero h1 {
  margin: 0 auto;
  max-width: 1100px;
  color: var(--ink);
  font-family: "Modak", system-ui, sans-serif;
  font-size: clamp(58px, 7.4vw, 110px);
  line-height: .82;
  letter-spacing: .005em;
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0,0,0,.03);
}
.hero p {
  margin: 20px auto 0;
  color: var(--white);
  max-width: 760px;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
}

.calculator-card {
  background: var(--cream);
  border-radius: 28px;
  padding: 24px 26px;
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}
.calculator-card form {
  display: grid;
  grid-template-columns: 1.15fr .8fr .8fr 1fr .9fr .9fr;
  gap: 16px;
  align-items: end;
}
.field {
  min-width: 0;
}
.field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 8px 4px;
  font-family: "Baloo 2", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.label-note {
  font-size: 11px;
  opacity: .62;
  letter-spacing: .02em;
}
.input-wrap {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid rgba(10,10,10,.34);
  border-radius: 14px;
  padding: 0 13px;
}
.input-wrap:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255,114,184,.24);
}
.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
}
.input-wrap select {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  flex: 0 0 auto;
}
.prefix, .suffix {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}
.calc-btn {
  height: 66px;
  border: 0;
  border-radius: 15px;
  background: var(--blue);
  color: var(--white);
  font-family: "Baloo 2", sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.calc-btn:hover { transform: translateY(-1px); }
.calc-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }

.result-card {
  margin-top: 26px;
  width: min(850px, 100%);
  background: var(--yellow);
  border-radius: 28px;
  padding: 26px 28px 24px;
  text-align: center;
  border: 3px solid rgba(10,10,10,.9);
  box-shadow: 10px 10px 0 rgba(0,0,0,.82);
}
.result-card[hidden] { display: none; }
.result-card p,
.result-card span {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
}
.result-card p {
  font-size: 21px;
  margin-bottom: 2px;
}
.result-card strong {
  display: block;
  color: var(--pink);
  font-family: "Modak", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 8vw, 102px);
  line-height: .9;
  margin: 2px 0 4px;
  letter-spacing: .01em;
}
.result-card span {
  display: block;
  font-size: 22px;
}

.info-strip {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255,255,255,.15);
  border-radius: 22px;
  color: var(--white);
}
.how {
  display: flex;
  align-items: center;
  gap: 18px;
}
.bulb {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 68px;
  background: #72abff;
  font-size: 39px;
}
.how h2 {
  margin: 0 0 2px;
  font-family: "Baloo 2", sans-serif;
  font-size: 23px;
  font-weight: 800;
}
.how p {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}
.ad-slot {
  width: 270px;
  min-height: 74px;
  border: 2px dashed rgba(255,255,255,.85);
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 10px;
  color: var(--yellow);
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
}
.ad-slot small {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}
.disclaimer {
  margin-top: 14px;
  text-align: center;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 1040px) {
  .calculator-card form {
    grid-template-columns: 1fr 1fr;
  }
  .calc-btn {
    grid-column: 1 / -1;
  }
  .field label { white-space: normal; }
}

@media (max-width: 680px) {
  .top-ad-space { height: 76px; }
  .page-shell {
    padding: 26px 14px 20px;
  }
  .hero h1 {
    font-size: 52px;
    line-height: .86;
  }
  .hero p {
    font-size: 17px;
    padding: 0 10px;
  }
  .calculator-card {
    padding: 16px;
  }
  .calculator-card form {
    grid-template-columns: 1fr;
  }
  .calc-btn {
    grid-column: auto;
  }
  .result-card {
    padding: 22px 16px 20px;
    box-shadow: 7px 7px 0 rgba(0,0,0,.82);
  }
  .result-card strong {
    font-size: 62px;
  }
  .result-card span {
    font-size: 18px;
  }
  .info-strip {
    grid-template-columns: 1fr;
  }
  .ad-slot {
    width: 100%;
  }
  .how {
    align-items: flex-start;
  }
  .blob-a, .blob-b {
    width: 150px;
    height: 115px;
  }
  .blob-a { top: -146px; }
  .blob-b { top: -136px; }
  .blob-c, .blob-d {
    width: 165px;
    height: 130px;
  }
}

.info-strip .how {
  justify-content: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.info-strip .how p {
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 10px auto 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer span { color: rgba(255,255,255,.45); margin: 0 8px; }
.policy-page { min-height: 100vh; padding: 48px 20px; background: var(--bg); }
.policy-card { width: min(820px, 100%); margin: 0 auto; background: var(--cream); border-radius: 28px; padding: 32px; box-shadow: 0 10px 22px rgba(0,0,0,.16); }
.policy-card h1 { margin: 0 0 18px; color: var(--blue); font-family: "Modak", system-ui, sans-serif; font-size: clamp(46px, 7vw, 72px); font-weight: 400; line-height: .95; }
.policy-card h2 { font-family: "Baloo 2", sans-serif; margin: 24px 0 6px; }
.policy-card p { line-height: 1.65; }
.policy-card a { color: var(--blue); font-weight: 800; }
