/* /estimate — AI estimating page.
   Rides on the main /styles.css tokens (--blue, --yellow, --gray, Sora);
   only the sections that don't exist on the homepage are defined here. */

/* ---------------- hero ---------------- */
.es-hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  padding: 56px 0 64px;
}
.es-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 12% -10%, rgba(232, 167, 67, 0.26), transparent 66%),
    radial-gradient(620px 420px at 92% 108%, rgba(232, 167, 67, 0.12), transparent 62%);
}
.es-hero > .container { position: relative; }
.es-hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }

.es-pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(232, 167, 67, 0.55);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.es-h1 {
  margin-top: 22px;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.es-h1 span { color: var(--yellow); }
.es-lede {
  max-width: 52ch;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-gray);
}
.es-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.es-btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.es-btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.es-hero-fine { margin-top: 18px; font-size: 14px; color: rgba(196, 198, 205, 0.8); }

/* the estimate as the customer receives it */
.es-quote {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  padding: 22px;
  border-radius: var(--border-radius-md);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.es-quote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.es-quote-title { font-size: 17px; font-weight: 800; color: var(--blue); line-height: 1.25; }
.es-quote-meta { margin-top: 4px; font-size: 13.5px; color: #666; }
.es-quote-flag {
  flex: none;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  background: var(--yellow);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.es-quote-items { margin-top: 18px; border-top: 1px solid #e6e6e6; }
.es-quote-items li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e6e6e6;
  font-size: 14.5px;
  line-height: 1.4;
  color: #444;
}
.es-quote-items b { font-weight: 700; color: var(--blue); white-space: nowrap; }
.es-quote-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  font-size: 18px;
  font-weight: 900;
  color: var(--blue);
}
.es-quote-btn {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background: var(--yellow);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.es-quote-cap { margin-top: 12px; text-align: center; font-size: 13px; color: #666; }

/* ---------------- stats strip ---------------- */
.es-stats { border-bottom: 1px solid #e6e6e6; }
.es-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 16px;
  text-align: center;
}
.es-stat-grid div { display: grid; gap: 4px; }
.es-stat-grid strong { font-size: 30px; font-weight: 900; color: var(--blue); line-height: 1; }
.es-stat-grid span { font-size: 14px; color: #666; line-height: 1.4; }

/* ---------------- before / after ---------------- */
.es-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: var(--space-40);
}
.es-col {
  padding: 26px 24px;
  border-radius: var(--border-radius-md);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
.es-col-now { background: #faf7f2; }
.es-col h3 { font-size: 21px; font-weight: 800; color: var(--blue); }
.es-col ul { margin-top: 16px; display: grid; gap: 12px; }
.es-col li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.55; color: #555; }
.es-col li b { color: var(--blue); font-weight: 700; }
.es-col-now li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 100%;
  background: #b9bcc6
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E")
    center / 10px 10px no-repeat;
}
.es-col-new li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 100%;
  background: var(--yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px 11px no-repeat;
}

/* ---------------- trade switcher ---------------- */
.es-trades { padding-bottom: var(--space-40); }
.es-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.es-tab {
  padding: 9px 18px;
  border: 2px solid #d8dae1;
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
}
.es-tab:hover { border-color: var(--yellow); }
.es-tab[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--white); }
.es-tab:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.es-panel[hidden] { display: none; }
.es-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}
.es-panel-said {
  padding: 24px;
  border-radius: var(--border-radius-md);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
.es-said-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dark-yellow);
}
.es-said-quote {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--blue);
}
.es-said-shots { margin-top: 14px; font-size: 14px; color: #666; }
.es-said-caught { margin-top: 20px; display: grid; gap: 10px; }
.es-said-caught li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.55;
  color: #555;
}
.es-said-caught li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 100%;
  background: var(--yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px 11px no-repeat;
}
.es-panel .es-quote { max-width: none; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); }
.es-trades-fine {
  max-width: 64ch;
  margin: 26px auto 0;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: #666;
}

/* ---------------- walkthrough ---------------- */
.es-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 8px;
  counter-reset: none;
}
.es-flow-step {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 22px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
.es-flow-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.es-flow-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--border-radius-sm);
  background: var(--yellow);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.es-flow-head h3 { font-size: 18px; font-weight: 800; color: var(--blue); line-height: 1.25; }
.es-flow-time { margin-top: 4px; font-size: 13px; color: #888; }

.es-frame {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e4ea;
  border-radius: var(--border-radius-md);
  background: #f8f9fb;
  padding: 14px;
}
.es-frame-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e4ea;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8a8f9c;
}
.es-frame-note { margin-top: auto; padding-top: 14px; font-size: 13px; line-height: 1.55; color: #777; }

/* 01 — camera roll */
.es-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.es-shot {
  display: grid;
  place-items: center;
  gap: 6px;
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-sm);
  background: #eceef3;
  color: var(--blue);
  text-align: center;
  padding: 6px;
}
.es-shot svg { width: 26px; height: 26px; fill: none; stroke: #9aa0ae; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.es-shot span { font-size: 11.5px; font-weight: 700; color: #6c7280; }

/* 02 — the note */
.es-note-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--blue);
  font-weight: 600;
}
.es-note-mic {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #eceef3;
  font-size: 12.5px;
  font-weight: 600;
  color: #6c7280;
}
.es-note-mic svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--dark-yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 03 — the working panel */
.es-frame-think { background: var(--blue); border-color: var(--blue); }
.es-frame-think .es-frame-bar { color: rgba(255, 255, 255, 0.6); border-bottom-color: rgba(255, 255, 255, 0.14); }
.es-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.es-dots i {
  width: 4px;
  height: 4px;
  border-radius: 100%;
  background: var(--yellow);
  animation: es-blink 1.4s infinite ease-in-out;
}
.es-dots i:nth-child(2) { animation-delay: 0.2s; }
.es-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes es-blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .es-dots i { animation: none; opacity: 0.7; } }
.es-think { display: grid; gap: 10px; }
.es-think li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-gray);
}
.es-think li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 100%;
  background: var(--yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2236' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 9px 9px no-repeat;
}

/* 04 — the estimate that goes out */
.es-mini-items { display: grid; }
.es-mini-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e2e4ea;
  font-size: 13.5px;
  line-height: 1.4;
  color: #555;
}
.es-mini-items b { font-weight: 700; color: var(--blue); white-space: nowrap; }
.es-mini-more { border-bottom: 0; color: #8a8f9c; font-style: italic; }
.es-sent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(232, 167, 67, 0.16);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.es-sent svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--dark-yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.es-flow-fine {
  max-width: 64ch;
  margin: 24px auto 0;
  padding-bottom: var(--space-40);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* ---------------- features ---------------- */
.es-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: var(--space-40);
}
.es-feature {
  padding: 24px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.es-feature h3 { font-size: 19px; font-weight: 800; color: var(--white); }
.es-feature p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-gray); }
.es-feature-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: var(--border-radius-sm);
  background: var(--yellow);
}
.es-feature-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- calculator ---------------- */
.es-calc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: var(--space-40);
}
.es-calc-field { margin-bottom: 22px; }
.es-calc-field label { display: block; font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.es-calc-field output { color: var(--dark-yellow); font-weight: 900; }
.es-calc-field input[type="range"] { width: 100%; accent-color: var(--yellow); }
.es-calc-out {
  padding: 32px 26px;
  border-radius: var(--border-radius-md);
  background: var(--blue);
  text-align: center;
}
.es-calc-big { font-size: 54px; font-weight: 900; line-height: 1; color: var(--yellow); }
.es-calc-label { margin-top: 10px; font-size: 16px; color: var(--white); }
.es-calc-split {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-gray);
}
.es-calc-split b { color: var(--white); font-weight: 800; }
.es-calc-fine {
  max-width: 62ch;
  margin: 0 auto;
  padding-bottom: var(--space-40);
  text-align: center;
  font-size: 13.5px;
  color: #666;
}

/* ---------------- pricing ---------------- */
.es-price-wrap { display: flex; justify-content: center; padding-bottom: 16px; }
.es-fine {
  max-width: 60ch;
  margin: 24px auto 0;
  padding-bottom: var(--space-40);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-gray);
}

/* ---------------- faq ---------------- */
.es-faq { display: grid; gap: 12px; padding-bottom: var(--space-40); }
.es-faq-item {
  background: var(--gray);
  border-radius: var(--border-radius-md);
  padding: 2px 20px;
}
.es-faq-item summary {
  position: relative;
  padding: 16px 34px 16px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}
.es-faq-item summary::-webkit-details-marker { display: none; }
.es-faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.es-faq-item[open] summary::after { transform: rotate(-135deg); top: 26px; }
.es-faq-item p { padding: 0 0 18px; font-size: 15.5px; line-height: 1.65; color: #555; }

/* ---------------- book a call form ---------------- */
.es-book { scroll-margin-top: calc(var(--header-h) + 10px); }
/* `display: grid` beats the hidden attribute — restore it for the success swap */
.es-form[hidden] { display: none; }
.es-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: var(--space-40);
}
.es-field { display: grid; gap: 6px; }
.es-field label { font-size: 14px; font-weight: 700; color: var(--blue); }
.es-field input,
.es-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #dcdcdc;
  border-radius: var(--border-radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 16px;
  color: var(--black);
  transition: border-color 0.2s;
}
.es-field textarea { resize: vertical; min-height: 110px; }
.es-field input:focus,
.es-field textarea:focus { outline: none; border-color: var(--yellow); }

.es-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.es-form-error { margin: 0; color: #c0392b; font-size: 14.5px; font-weight: 600; }
.es-form-fine { margin-top: 12px; text-align: center; font-size: 13.5px; color: #666; }

.es-form-done {
  max-width: 460px;
  margin: 0 auto;
  padding: 32px 28px calc(var(--space-40) + 12px);
  text-align: center;
}
.es-form-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 100%;
  background: var(--yellow);
  color: var(--white);
  font-size: 26px;
  line-height: 52px;
}
.es-form-done h3 { font-size: 24px; font-weight: 800; color: var(--blue); }
.es-form-done p { margin-top: 8px; font-size: 16px; color: #555; }

/* ---------------- final cta ---------------- */
.es-final { padding-bottom: calc(var(--space-40) * 1.5); }
.es-final-text {
  max-width: 52ch;
  margin: 0 auto 26px;
  font-size: 17px;
  line-height: 1.6;
  color: #555;
}

/* ---------------- responsive ---------------- */
@media (min-width: 768px) {
  .es-hero { padding: 80px 0 88px; }
  .es-h1 { font-size: 54px; }
  .es-lede { font-size: 19px; }
  .es-stat-grid { grid-template-columns: repeat(4, 1fr); }
  .es-compare { grid-template-columns: 1fr 1fr; }
  .es-flow { grid-template-columns: 1fr 1fr; }
  .es-features { grid-template-columns: repeat(2, 1fr); }
  .es-calc { grid-template-columns: 1fr 1fr; gap: 44px; }
  .es-calc-big { font-size: 64px; }
  .es-form { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .es-field-full { grid-column: 1 / -1; }
  .es-form-error { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .es-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .es-panel { grid-template-columns: 1fr 1fr; gap: 40px; }
  .es-flow { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .es-features { grid-template-columns: repeat(3, 1fr); }
}
