:root {
  --bg: #f6f4f2;
  --card: #ffffff;
  --ink: #161719;
  --muted: #67696f;
  --line: #e4e0dc;
  --red: #cf1236;
  --red-dark: #a90d2c;
  --red-soft: #fff1f3;
  --cream: #fbfaf8;
  --shadow: 0 28px 80px rgba(22, 23, 25, .14);
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(207, 18, 54, .13), transparent 25%),
    radial-gradient(circle at 92% 88%, rgba(22, 23, 25, .06), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, var(--bg) 58%, #ece8e4 100%);
}
button, input { font: inherit; }
button { cursor: pointer; border: 0; }

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
}

.hero {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(440px, 560px);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
}

.shell {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 590px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand__mark {
  width: 96px;
  height: auto;
  color: var(--red);
  display: block;
  filter: drop-shadow(0 9px 16px rgba(207, 18, 54, .15));
}

.promise { max-width: 440px; }
.promise h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: .91;
  letter-spacing: -.07em;
  max-width: 10.5ch;
  margin-bottom: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(30px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  min-height: 384px;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--red), #f05b6e);
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.result .eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .18em;
}

.form-head {
  margin-bottom: 22px;
}
.form-head h2 {
  font-size: clamp(32px, 3.7vw, 44px);
  line-height: .98;
  letter-spacing: -.055em;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
  align-items: start;
}

.field {
  display: block;
  margin-bottom: 15px;
}
.field > span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 9px;
  letter-spacing: -.01em;
}
.hint {
  display: block;
  margin-top: 7px;
  color: #8a8d92;
  font-size: 11px;
  line-height: 1.25;
}
input, select {
  width: 100%;
  height: 58px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  padding: 0 17px;
  font-size: 18px;
  font-weight: 650;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
  background: white;
}
.money { position: relative; }
.money b {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.money input { padding-left: 35px; }

.selectwrap { position: relative; }
.selectwrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  color: var(--ink, #1c1d1f);
  cursor: pointer;
}
.selectwrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.choices label { position: relative; }
.choices input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.choices span {
  display: flex;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  padding: 10px 8px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-weight: 800;
  background: var(--cream);
}
.choices small {
  display: block;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.01em;
  opacity: .76;
}
.choices input:checked + span {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

.btn {
  width: 100%;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -.015em;
  box-shadow: 0 14px 28px rgba(207, 18, 54, .26);
}
.btn:hover { background: var(--red-dark); }

.fine {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.error {
  display: block;
  margin-top: 7px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}
[hidden] { display: none !important; }

.result {
  text-align: center;
  padding: 4px 0 0;
}
.result__card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fff8f9 100%);
  padding: clamp(22px, 4vw, 34px) clamp(14px, 3vw, 28px) clamp(20px, 3vw, 30px);
  margin-bottom: 18px;
}
.price {
  display: grid;
  grid-template-columns: minmax(0, auto) auto minmax(0, auto) auto;
  align-items: baseline;
  justify-content: center;
  column-gap: clamp(3px, .55vw, 8px);
  font-size: clamp(43px, 5vw, 64px);
  line-height: .86;
  letter-spacing: -.07em;
  color: var(--red);
  margin: 3px auto 12px;
  white-space: nowrap;
  font-weight: 900;
}
.price__amount {
  display: inline-block;
  min-width: 0;
}
.price__dash {
  display: inline-block;
  transform: translateY(-.06em);
  letter-spacing: -.02em;
}
.price__period {
  display: inline-block;
  margin-left: .06em;
  font-size: .34em;
  letter-spacing: -.02em;
  color: var(--red);
  font-weight: 900;
}
.context {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 32ch;
  margin: 0 auto;
}
.result .btn {
  width: min(420px, 100%);
  margin-inline: auto;
  min-height: 60px;
  font-size: 18px;
}

@media (max-width: 840px) {
  .page { place-items: start center; }
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .shell {
    min-height: auto;
    gap: 16px;
    padding-block: 0;
  }
  .brand {
    justify-content: flex-start;
  }
  .promise h1 {
    font-size: clamp(34px, 9vw, 54px);
    line-height: .96;
    max-width: 14ch;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .page { padding: 14px 12px 22px; }
  /* Keep the first viewport on the form: compact brand, small headline, then
     the panel. Hero copy is deliberately restrained so inputs sit high. */
  .hero { gap: 14px; }
  .shell { gap: 12px; }
  .brand__mark { width: 74px; }
  .promise { max-width: none; }
  .promise h1 {
    font-size: clamp(28px, 8.5vw, 38px);
    letter-spacing: -.05em;
    max-width: 18ch;
  }
  .eyebrow { margin-bottom: 8px; }

  .panel { padding: 22px 16px 20px; border-radius: 22px; min-height: 0; }
  .form-head { margin-bottom: 16px; }
  .form-head h2 { font-size: 30px; }

  .field { margin-bottom: 14px; }
  .field > span { margin-bottom: 7px; }
  /* Comfortable, non-zooming touch targets on iOS/Android (font >= 16px). */
  input, select { height: 56px; font-size: 16px; border-radius: 14px; }
  .choices { gap: 8px; }
  .choices span { min-height: 58px; font-size: 14px; padding: 9px 5px; border-radius: 14px; }
  .choices small { font-size: 10px; }
  .btn { min-height: 56px; font-size: 17px; }

  /* Result state: estimate + CTA stay tight and high, no extra spacing. */
  .result__card { padding: 20px 14px 18px; margin-bottom: 14px; }
  .price { font-size: clamp(38px, 11vw, 50px); margin-bottom: 10px; }
  .context { font-size: 16px; }
  .result .btn { min-height: 56px; }
}
