/* ab-windows-offer landing page (Figma: CCWD Kobzza LP 1).
   Mobile first. Step/card/option/button patterns follow the window price
   calculator (/calc-assets/css/styles.css) with the values from the design. */

:root {
  --red: #c52343;
  --red-soft: #e7afb8;
  --ink: #111;
  --text: #303034;
  --muted: #515156;
  --eyebrow: #66666b;
  --label: #4e4e52;
  --sub: #68686b;
  --placeholder: #9a9a9d;
  --line: #dedddc;
  --input-line: #d9d8d7;
  --divider: #e8e7e6;
  --surface: #f5f4f2;
  --white: #fff;
  --arial: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Archivo", sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}
ul,
ol {
  list-style: none;
}
:focus-visible {
  outline: 3px solid rgba(197, 35, 67, 0.45);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ HEADER (logo + tag; divider spans the content width) ============ */
.top__inner,
.check__shell {
  max-width: 1336px;
  margin: 0 auto;
  padding: 0 16px;
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  /* 1px divider inside the side padding, as in the design */
  background: linear-gradient(var(--divider), var(--divider)) left 16px bottom / calc(100% - 32px) 1px no-repeat;
}
.lp-logo {
  width: 124px;
  height: auto;
  flex: none;
}
.top__tag {
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  color: #5d5d61;
}

/* ============ REBATE & INCENTIVE CHECK ============ */
.check {
  padding: 20px 0 64px;
}

/* progress */
.progress {
  margin-bottom: 36px;
}
.progress[hidden] {
  display: none;
}
.progress__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #66666a;
  text-transform: uppercase;
}
.progress__rail {
  position: relative;
}
.progress__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: #c8c8ca;
}
.progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.35s ease;
}
.progress__track {
  position: relative;
  display: flex;
  justify-content: space-between;
}
.progress__dot {
  width: 28px;
  height: 28px;
  border: 2px solid #b8b8ba;
  border-radius: 50%;
  background: var(--white);
  color: #8d8d90;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s;
}
.progress__dot.is-current {
  border-color: var(--red);
  color: var(--red);
}
.progress__dot.is-done {
  border-color: var(--red);
  background: var(--red);
  color: transparent;
  position: relative;
}
.progress__dot.is-done::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  color: var(--white);
  font-family: var(--arial);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
}

/* steps */
.step {
  display: none;
  animation: fadeUp 0.35s ease both;
}
.step.is-active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.step--center {
  text-align: center;
}
.step--center .hint,
.step--center .navrow {
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.q {
  margin-bottom: 14px;
  font-size: clamp(28px, 7.4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.q:focus {
  outline: none;
}
.q--xl {
  max-width: 1038px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(30px, 8vw, 54px);
  line-height: 1.13;
}
.hint {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}
.hint--narrow {
  max-width: 560px;
}
.step--center .hint--narrow {
  margin-bottom: 32px;
}
.fine {
  margin-top: 12px;
  font-size: 14px;
  color: #707074;
}
.step[data-step="intro"] {
  padding-top: 28px;
}

/* inputs (lead styles from the calculator, sized to the design) */
.field label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--label);
}
.field input {
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1px solid var(--input-line);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
.field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(197, 35, 67, 0.1);
}
.field.is-invalid input {
  border-color: var(--red);
}
.field__err {
  min-height: 0;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}
.field__err:empty {
  display: none;
}
.field--postal {
  max-width: 520px;
}
.field--postal input {
  height: 66px;
  padding: 0 20px;
  font-size: 20px;
  text-transform: uppercase;
}
.field--postal input::placeholder {
  text-transform: none;
}

/* buttons (calculator .next / .back) */
.navrow {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 32px;
}
.navrow--center {
  justify-content: center;
}
.next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 34px;
  border-radius: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.12s, background-color 0.12s;
}
.next:hover {
  transform: translateY(-1px);
}
.next:disabled {
  background: var(--red-soft);
  cursor: default;
  transform: none;
}
.next.is-loading {
  cursor: progress;
}
.back {
  font-size: 18px;
  font-weight: 700;
  color: #57575b;
}
.back:hover {
  color: var(--ink);
}

/* home-type cards (calculator .cards/.card) */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1093px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 10px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  border-color: #c9c4c4;
  transform: translateY(-2px);
}
.card[aria-checked="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.card svg,
.card__icon {
  width: 64px;
  height: 48px;
  margin-bottom: 18px;
}
.card__icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.card__icon img {
  width: 51px;
  height: auto;
  margin-bottom: 3px;
}
.card .t {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.card .s {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--sub);
}

/* radio options (calculator .lead-actions .opt) */
.opts {
  display: grid;
  gap: 10px;
}
.opts--grid {
  max-width: 882px;
}
.opts--list {
  max-width: 860px;
}
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.opt:hover {
  border-color: #c9c4c4;
}
.opt[aria-checked="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.opt .ot {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.opt .dot {
  flex: none;
  width: 26px;
  height: 26px;
  border: 2px solid #c6c5c4;
  border-radius: 50%;
  background: var(--white);
}
.opt[aria-checked="true"] .dot {
  border-color: var(--red);
  background: radial-gradient(circle at center, var(--red) 42%, transparent 46%);
}

/* reviewing interstitial */
.spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 32px;
  border: 5px solid #e8e7e6;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.checklist {
  display: grid;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #e6e4e2;
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.45;
  transition: opacity 0.3s;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border: 2px solid #c6c5c4;
  border-radius: 50%;
  background: var(--white);
  font-family: var(--arial);
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  color: var(--white);
  transition: background-color 0.2s, border-color 0.2s;
}
.checklist li.is-done {
  opacity: 1;
}
.checklist li.is-done::before {
  content: "\2713";
  border-color: var(--red);
  background: var(--red);
}

/* contact step */
.hint--sm {
  max-width: 640px;
  margin-bottom: 14px;
  font-size: 16px;
}
.lead-strong {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
.pill {
  display: inline-block;
  margin-bottom: 24px;
  padding: 9px 20px;
  border: 1px solid #ddd9d7;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  color: #57575a;
}
.lead {
  max-width: 840px;
}
.lead__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 20px;
}
.consent {
  max-width: 840px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
}
.form-err {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fbeef1;
  font-size: 14px;
  font-weight: 600;
  color: #9e1b35;
}
.form-err:empty {
  display: none;
}
.lead .navrow {
  margin-top: 24px;
}

/* done */
.step[data-step="done"]:focus {
  outline: none;
}
.done-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--arial);
  font-size: 34px;
  line-height: 76px;
  text-align: center;
}
.next-box {
  max-width: 650px;
  margin: 40px auto 0;
  padding: 24px 20px;
  border-radius: 20px;
  background: var(--surface);
  text-align: left;
}
.next-box__title {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.next-box ul {
  display: grid;
  gap: 18px;
}
.next-box li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.next-box li::before {
  content: "\2713";
  flex: none;
  font-family: var(--arial);
  font-size: 19px;
  color: var(--red);
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 250px));
    gap: 20px;
  }
  .lead__grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--full {
    grid-column: 1 / -1;
  }
  .opts--grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 250px));
  }
}

/* desktop steps: design frames are 1440 wide with 76px gutters */
@media (min-width: 900px) {
  /* header: divider sits at y=86 in the 1440 frames */
  .top__inner {
    padding: 21px 24px 24px;
    background-position: left 24px bottom;
    background-size: calc(100% - 48px) 1px;
  }
  .lp-logo {
    width: 160px;
  }
  .top__tag {
    font-size: 14px;
  }
  .check {
    padding: 17px 0 96px;
  }
  .check__shell {
    padding: 0 24px;
  }
  .progress {
    margin-bottom: 68px;
  }
  .progress__meta {
    font-size: 13px;
  }
  .eyebrow {
    margin-bottom: 17px;
    font-size: 15px;
  }
  .q {
    margin-bottom: 22px;
    line-height: 1.08;
  }
  .hint {
    margin-bottom: 48px;
    font-size: 20px;
  }
  /* intro (Figma Step 1): eyebrow 127px below the header divider */
  .step[data-step="intro"] {
    padding: 110px 0 40px;
  }
  .step[data-step="intro"] .eyebrow {
    margin-bottom: 20px;
  }
  .step[data-step="intro"] .q--xl {
    margin-bottom: 30px;
  }
  .step[data-step="intro"] .hint {
    max-width: 616px;
    margin-bottom: 41px;
    font-size: 21px;
  }
  .step[data-step="intro"] .next {
    min-width: 276px;
  }
  .navrow {
    margin-top: 46px;
  }
  .next {
    padding: 0 47px;
  }
  .cards {
    gap: 31px;
  }
  .card {
    min-height: 206px;
    padding: 31px 12px 30px;
  }
  /* long questions: 46px / 44px in the design so they stay on one line */
  .step[data-step="windows_age"] .q {
    font-size: clamp(36px, 3.4vw, 46px);
  }
  .step[data-step="main_reason"] .q {
    font-size: clamp(32px, 2.9vw, 42px);
  }
  .card svg,
  .card__icon {
    width: 77px;
    height: 58px;
    margin-bottom: 30px;
  }
  .card__icon img {
    width: 61px;
    margin-bottom: 3.5px;
  }
  .card .t {
    font-size: 19px;
  }
  .card .s {
    margin-top: 11px;
    font-size: 15px;
  }
  .opts--grid .opt {
    min-height: 96px;
    padding: 0 21px 0 24px;
  }
  .opts--grid {
    gap: 20px 42px;
  }
  .opts--list .opt {
    min-height: 72px;
    padding: 0 21px 0 24px;
  }
  .opt .ot {
    font-size: 19px;
  }
  .opts--list .opt .ot {
    font-size: 18px;
  }
  .step[data-step="main_reason"] .hint {
    margin-bottom: 42px;
  }
  .step[data-step="reviewing"] {
    padding-top: 122px;
  }
  .step[data-step="reviewing"] .hint {
    font-size: 19px;
    max-width: 460px;
  }
  .step[data-step="contact"] {
    padding-top: 63px;
  }
  .step[data-step="contact"] .q {
    font-size: 44px;
  }
  .hint--sm,
  .lead-strong {
    font-size: 18px;
    max-width: 640px;
  }
  .hint--sm {
    margin-bottom: 23px;
  }
  .step[data-step="done"] {
    padding-top: 79px;
  }
  .step[data-step="done"] .hint {
    font-size: 19px;
  }
  .next-box {
    padding: 27px 35px 32px;
  }
  .next-box__title {
    font-size: 19px;
    margin-bottom: 24px;
  }
  .next-box ul {
    gap: 26px;
  }
  .next-box li {
    font-size: 16px;
  }
}
