/* How the app works (docs/design/EstimateInHand.dc.html): the sample estimate, six steps, contractors,
   privacy, questions, and when it's ready. */


/* Hero */
.how-hero { padding: 32px 0 96px; overflow: hidden; }
.how-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; }
.how-hero-main { flex: 1 1 440px; min-width: 0; }
.crumbs { font-size: 15px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: #56616A; }
.crumbs a { font-weight: 600; }

.how-title {
  margin: 18px 0 0;
  font-family: var(--bricolage);
  font-weight: 800;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.how-title-alt { margin: 12px 0 0; font-family: var(--bricolage); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; color: #0F5C63; }
.how-lede { margin: 24px 0 0; max-width: 32em; font-size: 19px; line-height: 1.6; text-wrap: pretty; }

/* The sample estimate, on paper, with the other language's copy behind it */
.how-sample { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; }
.how-sample-stack { position: relative; width: 100%; max-width: 500px; padding: 56px 20px 12px 0; box-sizing: border-box; }

.sample-back {
  position: absolute;
  top: 0;
  right: 0;
  width: 92%;
  height: 90%;
  box-sizing: border-box;
  padding: 16px 28px;
  background: #E6E2D6;
  transform: rotate(3.5deg);
  transform-origin: top right;
  box-shadow: 0 18px 40px -26px rgba(34, 39, 43, 0.45);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.sample-back span { font-family: var(--bricolage); font-weight: 800; font-size: 24px; line-height: 1.2; color: #0F5C63; }

.sample {
  position: relative;
  background: #FFFFFF;
  padding: 30px 30px 24px;
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 2px rgba(34, 39, 43, 0.12), 0 28px 56px -30px rgba(34, 39, 43, 0.5);
}

.sample-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.sample-biz { font-family: var(--bricolage); font-weight: 800; font-size: 19px; line-height: 1.2; }
.sample-kicker { font-size: 13px; color: #56616A; }
.sample-label { font-family: var(--bricolage); font-weight: 800; font-size: 26px; line-height: 1; color: #0F5C63; }
.sample-rule { margin-top: 16px; border-top: 2px solid #0F5C63; }
.sample-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }
.sample-meta-key { font-weight: 700; color: #0F5C63; }
.sample-lines { list-style: none; margin: 18px 0 0; padding: 0; }
.sample-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid #D3DAD8; }
.sample-line:first-child { border-top: 1px solid #9CC8C2; }
.sample-line-text { min-width: 0; }
.sample-line-name { font-weight: 700; font-size: 16px; }
.sample-line-desc { font-size: 14px; line-height: 1.4; color: #56616A; }
.sample-line-price { font-family: var(--bricolage); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.sample-line-picked { position: relative; }
.sample-line-picked .sample-line-text, .sample-line-picked .sample-line-price { position: relative; }
.sample-highlight { position: absolute; left: -10px; right: -10px; top: 7px; bottom: 7px; background: #FBE08A; transform: rotate(-0.7deg); border-radius: 3px 8px 4px 10px; }
.sample-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; }
.sample-sign { flex: 1 1 200px; min-width: 0; max-width: 260px; }
.sample-sign svg { display: block; width: 100%; height: 52px; }
.sample-sign-label { border-top: 1.5px solid #22272B; padding-top: 6px; font-size: 13px; color: #56616A; }
.sample-accepted { flex: 0 0 auto; font-weight: 700; font-size: 15px; }

/* Section headings, with their line in the other language */
.how-h2 { margin: 0; font-family: var(--bricolage); font-weight: 800; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.015em; }
.how-alt { margin: 8px 0 0; font-family: var(--bricolage); font-weight: 600; font-size: clamp(19px, 2vw, 24px); line-height: 1.25; color: #0F5C63; }

/* Step by step */
.how-steps { padding: 96px 0; background: #FFFFFF; }
.how-steps .how-h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; }
.how-steps .how-alt { margin-top: 6px; font-size: clamp(20px, 2.2vw, 26px); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; }
.step { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 32px 0; border-top: 2px solid #D3DAD8; }
.step:last-child { border-bottom: 2px solid #D3DAD8; }
.step-head { flex: 1 1 280px; max-width: 360px; min-width: 0; }
.step-num { font-family: var(--bricolage); font-weight: 800; font-size: 60px; line-height: 1; color: #0F5C63; }
.step-title { margin: 12px 0 0; font-family: var(--bricolage); font-weight: 700; font-size: 24px; line-height: 1.2; }
.step-alt { margin: 4px 0 0; font-weight: 600; font-size: 17px; color: #0F5C63; }
.step-body { flex: 999 1 420px; min-width: 0; }
.step-text { margin: 0; max-width: 40em; font-size: 18px; line-height: 1.6; text-wrap: pretty; }

/* How the Better price adds up */
.breakdown { margin-top: 24px; max-width: 560px; border: 2px solid #0F5C63; border-radius: 14px; overflow: hidden; background: #FFFFFF; }
.breakdown table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.breakdown caption { caption-side: top; padding: 14px 18px; background: #EEF1F0; text-align: left; font-size: 15px; line-height: 1.5; color: #22272B; }
.breakdown tr { border-top: 1px solid #D3DAD8; }
.breakdown th { padding: 12px 12px 12px 18px; text-align: left; font-weight: 700; }
.breakdown td { padding: 12px 12px 12px 0; color: #56616A; }
.breakdown .amount { padding: 12px 18px 12px 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: #22272B; }
.breakdown .total { border-top: 2px solid #0F5C63; background: #F6C744; }
.breakdown .total th { padding: 14px 12px 14px 18px; font-family: var(--bricolage); font-weight: 800; }
.breakdown .total td { padding: 14px 12px 14px 0; color: #22272B; }
.breakdown .total .amount { padding: 14px 18px 14px 0; font-family: var(--bricolage); font-weight: 800; font-size: 18px; }

/* Working for a general contractor */
.how-gc { padding: 88px 0; background: #E6E2D6; }
.gc-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 40px; }
.gc-item { border-top: 3px solid #22272B; padding-top: 18px; }
.gc-item h3 { margin: 0; font-family: var(--bricolage); font-weight: 700; font-size: 22px; line-height: 1.2; }
.gc-item p { margin: 8px 0 0; font-size: 17px; line-height: 1.6; }

/* Your jobs stay on your phone */
.how-privacy { padding: 88px 0; background: #0F5C63; color: #F5F7F6; }
.how-privacy-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 64px; }
.how-privacy-main { flex: 1 1 440px; min-width: 0; }
.how-privacy .how-alt { color: #CFE6E2; }
.how-privacy-side { flex: 1 1 380px; min-width: 0; }
.how-privacy-text { margin: 0; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.how-privacy-link { margin: 16px 0 0; font-size: 17px; font-weight: 700; }
.on-dark .how-privacy-link a, .on-dark .how-privacy-link a:hover { color: #F5F7F6; }

/* Questions */
.how-faq { padding: 96px 0; background: #F5F7F6; }
.faq-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 36px 48px; }
.faq h3 { margin: 0; font-family: var(--bricolage); font-weight: 700; font-size: 21px; line-height: 1.25; }
.faq p { margin: 8px 0 0; font-size: 17px; line-height: 1.6; }

/* Get the app when it's ready */
.how-wait { padding: 88px 0; background: #EEF1F0; }
.how-wait-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 64px; }
.how-wait-main { flex: 1 1 420px; min-width: 0; }
.how-wait-note { flex: 1 1 420px; min-width: 0; margin: 0; font-family: var(--bricolage); font-weight: 700; font-size: 20px; line-height: 1.3; color: #0F5C63; }
