/* EM2 AI Studio — estimator.
   One question per screen. Everything here is scoped to .est-body so it can't
   leak into the rest of the site. */

.est-body {
  background: var(--bone);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- chrome ---------------------------------------------------------------- */

.est-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 56px);
}
.est-top-link { font-size: 13.5px; font-weight: 600; }

.est-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 56px) 120px;
}

.est-rail {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--ink-200);
  z-index: 40;
}
.est-rail i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--crimson-600);
  transition: width .45s cubic-bezier(.16, 1, .3, 1);
}

.est-back {
  position: fixed;
  left: clamp(20px, 5vw, 56px);
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-500);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 0;
  z-index: 41;
  transition: color .2s;
}
.est-back:hover { color: var(--crimson-600); }

/* --- screens --------------------------------------------------------------- */

.est-screen {
  display: none;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
.est-screen.is-active {
  display: block;
  animation: est-in .5s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes est-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.est-h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
  color: var(--ink-950);
  margin-bottom: 24px;
}
.est-step {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--crimson-600);
  margin-bottom: 16px;
}
.est-q {
  font-size: clamp(25px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.18;
  color: var(--ink-950);
  margin-bottom: 14px;
}
.est-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  max-width: 580px;
  margin-bottom: 28px;
}
.est-hint {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 600px;
  margin-bottom: 26px;
}
.est-fine {
  font-size: 13px;
  color: var(--ink-400);
  margin-top: 22px;
  line-height: 1.6;
  max-width: 520px;
}
.est-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  display: grid;
  gap: 12px;
}
.est-bullets li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-700);
}
.est-bullets li::before {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson-600);
  margin-top: 8px;
}
.est-start { padding: 17px 34px; font-size: 15px; }

/* The better-but-slower path. Deliberately given real weight on the intro:
   the conversation is the product, this form is the consolation prize. */
.est-alt {
  margin-top: 40px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-left: 3px solid var(--crimson-600);
  border-radius: 16px;
  max-width: 620px;
}
.est-alt-head {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--crimson-600);
  margin-bottom: 12px;
}
.est-alt-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-700);
  margin-bottom: 16px;
}
.est-alt-link { font-size: 14.5px; font-weight: 700; }

/* --- options --------------------------------------------------------------- */

.est-opts {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.est-opts-tight { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.est-opt {
  text-align: left;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-family: inherit;
  display: grid;
  gap: 5px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.est-opt b {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-950);
  letter-spacing: -.01em;
}
.est-opt span {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
}
.est-opt span:empty { display: none; }
.est-opt:hover {
  border-color: var(--crimson-400);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -22px rgba(47, 51, 60, .5);
}
.est-opt:focus-visible { outline: 2px solid var(--crimson-600); outline-offset: 3px; }
.est-opt.is-picked {
  border-color: var(--crimson-600);
  box-shadow: inset 0 0 0 1px var(--crimson-600);
  background: var(--crimson-100);
}

.est-continue {
  margin-top: 28px;
  padding: 16px 30px;
  font-size: 14.5px;
}
.est-continue[disabled] {
  opacity: .4;
  pointer-events: none;
}

/* --- free text ------------------------------------------------------------- */

.est-textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 20px 22px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-950);
  resize: vertical;
  transition: border-color .18s;
}
.est-textarea:focus {
  outline: none;
  border-color: var(--crimson-600);
  box-shadow: inset 0 0 0 1px var(--crimson-600);
}

/* Cloudflare Turnstile — empty (and collapsed) when the server has no keys. */
.est-turnstile { margin-top: 22px; }
.est-turnstile:empty { display: none; }
.est-counter {
  font-size: 12.5px;
  color: var(--ink-400);
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.est-counter.is-ok { color: #15803d; }

.est-file {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 20px;
  background: #fff;
  border: 1px dashed var(--ink-200);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.est-file:hover { border-color: var(--crimson-400); }
.est-file.has-file { border-style: solid; border-color: var(--crimson-600); }
.est-file-icon { flex: 0 0 auto; color: var(--crimson-600); display: flex; }
.est-file-text { display: grid; gap: 3px; }
.est-file-text b { font-size: 14.5px; font-weight: 700; color: var(--ink-950); }
.est-file-text span { font-size: 13px; color: var(--ink-500); line-height: 1.5; }
.est-file-name {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--crimson-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* --- contact --------------------------------------------------------------- */

.est-fields {
  display: grid;
  gap: 18px;
  max-width: 460px;
  margin-top: 26px;
}
.est-fields .f-field label .opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink-400);
  font-size: 11px;
}
.est-fields input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink-950);
  transition: border-color .18s;
}
.est-fields input:focus {
  outline: none;
  border-color: var(--crimson-600);
  box-shadow: inset 0 0 0 1px var(--crimson-600);
}

.est-error {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--crimson-700);
  font-weight: 600;
  max-width: 560px;
}
.est-error:empty { display: none; }

/* --- working --------------------------------------------------------------- */

.est-working { text-align: center; }
.est-working .est-hint { margin-inline: auto; }
.est-pulse {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-bottom: 30px;
}
.est-pulse i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--crimson-600);
  animation: est-bounce 1.25s infinite ease-in-out both;
}
.est-pulse i:nth-child(2) { animation-delay: .16s; }
.est-pulse i:nth-child(3) { animation-delay: .32s; }
@keyframes est-bounce {
  0%, 80%, 100% { transform: scale(.55); opacity: .45; }
  40%           { transform: scale(1);   opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .est-screen.is-active { animation: none; }
  .est-opt:hover { transform: none; }
  .est-pulse i { animation: none; opacity: .8; }
  .est-rail i { transition: none; }
}

@media (max-width: 620px) {
  .est-top-link { display: none; }
  .est-main { padding-bottom: 96px; }
  .est-opts-tight { grid-template-columns: 1fr; }
  .est-file { flex-wrap: wrap; }
  .est-file-name { margin-left: 0; max-width: 100%; }
}
