/* ============================================================================
   O6 APPLIED — INTAKE ESTIMATE + EXPLAINER STYLES
   ============================================================================
   Loaded after css/intake.css. Uses the same tokens defined there:
   --porcelain --white --mist --titanium --graphite --charcoal --violet
   --violet-weak --radius --shadow
   ------------------------------------------------------------------------- */

/* --- "What's this?" trigger --------------------------------------------- */

.o6-explain-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid #ddd8f5;
  background: var(--violet-weak, #EEE9FF);
  color: #5239c5;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: .15s;
}
.o6-explain-btn:hover { background: #e3dcff; border-color: #c9bdf5; }
.o6-explain-btn:focus-visible { outline: 2px solid var(--violet, #7448FF); outline-offset: 2px; }
.o6-explain-btn.inline { margin: 0 0 0 8px; padding: 2px 8px; font-size: 10px; vertical-align: middle; }

.o6-price-tag {
  display: inline-block;
  margin-top: 8px;
  margin-right: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3ee;
  color: #16784A;
  font-size: 11px;
  font-weight: 800;
}

/* --- Explainer dialog ---------------------------------------------------- */

.o6-explainer[hidden] { display: none; }
.o6-explainer {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; padding: 20px;
}
.o6-explainer-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 17, 21, .55);
  backdrop-filter: blur(2px);
}
.o6-explainer-panel {
  position: relative;
  background: var(--white, #fff);
  border-radius: var(--radius, 22px);
  box-shadow: 0 30px 80px rgba(15, 17, 21, .3);
  max-width: 780px; width: 100%;
  max-height: 86vh; overflow: auto;
  padding: 30px 32px;
}
.o6-explainer-close {
  position: absolute; top: 14px; right: 16px;
  border: 0; background: transparent;
  font-size: 26px; line-height: 1; color: #8a909a; cursor: pointer;
}
.o6-explainer-close:hover { color: var(--graphite, #1F2228); }

.o6-ex-kicker {
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: #777d87; font-weight: 800; margin: 0 0 6px;
}
.o6-explainer-panel h3 { font-size: 24px; letter-spacing: -.03em; margin: 0 0 10px; }
.o6-ex-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.o6-ex-price { font-size: 22px; font-weight: 900; letter-spacing: -.03em; color: var(--violet, #7448FF); white-space: nowrap; }
.o6-ex-what { font-size: 16px; margin: 0 0 10px; }
.o6-ex-why { color: #6f7680; margin: 0 0 16px; }
.o6-ex-note { background: var(--violet-weak, #EEE9FF); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin: 0 0 12px; }

.o6-ex-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 16px 0 6px; }
.o6-ex-cols h5 {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #6e7580; margin: 0 0 8px;
}
.o6-ex-cols ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.o6-ex-cols li { margin-bottom: 5px; }
.o6-ex-not { color: #8a6a2f; }
.o6-ex-time { font-size: 12px; color: #777e89; margin: 12px 0 0; font-weight: 700; }
.o6-ex-foot {
  margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #ececf0;
  font-size: 12px; color: #838a94; line-height: 1.6;
}

/* Tier comparison inside the explainer */
.o6-ex-tiers { display: grid; gap: 14px; }
.o6-ex-tier { border: 1px solid #e8e9ed; border-radius: 16px; padding: 18px; }
.o6-ex-tier-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.o6-ex-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--violet-weak, #EEE9FF); color: #5239c5;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.o6-ex-tier strong { display: block; font-size: 15px; margin-bottom: 4px; }
.o6-ex-tier p { margin: 0 0 6px; font-size: 13px; }

/* --- Tier chooser cards -------------------------------------------------- */

.o6-chooser { margin-bottom: 26px; }
.o6-chooser h4 { font-size: 15px; letter-spacing: -.02em; margin: 0 0 12px; }
.o6-chooser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }

.o6-tier-card {
  display: flex; flex-direction: column; gap: 5px;
  border: 1.5px solid #e2e4e9; border-radius: 16px;
  background: var(--white, #fff);
  padding: 16px; cursor: pointer; transition: .15s;
}
.o6-tier-card:hover { border-color: #c9bdf5; transform: translateY(-1px); }
.o6-tier-card.selected { border-color: var(--violet, #7448FF); background: #faf8ff; box-shadow: 0 0 0 3px #f1eeff; }
.o6-tier-card input { position: absolute; opacity: 0; pointer-events: none; }
.o6-tier-badge {
  align-self: flex-start; padding: 3px 9px; border-radius: 999px;
  background: #f0f0f3; color: #5f6670;
  font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.o6-tier-card.selected .o6-tier-badge { background: var(--violet-weak, #EEE9FF); color: #5239c5; }
.o6-tier-price { font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
/* "/mo" rides the price at a smaller weight so a recurring card cannot be
   misread as a one-off at a glance. */
.o6-tier-price small { font-size: 13px; font-weight: 700; letter-spacing: 0; color: #6b727d; margin-left: 1px; }

/* The decline card. Muted rather than hidden: refusing is a legitimate choice
   and burying it is the thing that makes an upsell feel like a trap. */
.o6-tier-none { opacity: .82; }
.o6-tier-none .o6-tier-price { color: #6b727d; }
.o6-tier-card strong { font-size: 13px; }
.o6-tier-what { font-size: 12px; color: #6f7680; line-height: 1.5; }
.o6-tier-time { font-size: 11px; color: #8a909a; font-weight: 700; }

/* --- Estimate panel ------------------------------------------------------ */

.o6-est-empty {
  border: 1.5px dashed #cfd3da; background: #fbfbfc;
  border-radius: 16px; padding: 26px; text-align: center;
  color: #777e88; font-size: 14px;
}
.o6-est-headline {
  background: var(--charcoal, #0F1115); color: #fff;
  border-radius: 20px; padding: 26px 28px; margin-bottom: 18px;
}
.o6-est-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #969da8; font-weight: 800; }
.o6-est-range { font-size: clamp(30px, 6vw, 46px); font-weight: 900; letter-spacing: -.045em; margin: 10px 0 6px; }
.o6-est-range span { color: #6b727d; font-weight: 400; }
.o6-est-sub { font-size: 12px; color: #9aa1ac; }

/* Recurring support, shown as a SEPARATE line from the project range above it.
   Visually subordinate on purpose: the big number is what the client is buying,
   and a monthly figure styled at the same weight reads as though it were part
   of it. The rule above it is doing the real work — it says "different thing". */
.o6-est-monthly {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 10px 0 8px; padding-top: 10px; border-top: 1px dashed #d9dbe1;
}
.o6-est-monthly-amt { font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.o6-est-monthly-sub { font-size: 12px; color: #9aa1ac; }

/* Running total bar. */
.o6-rt-monthly {
  font-weight: 800; font-size: 12px; color: #59616b;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid #d9dbe1;
}

.o6-est-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e8e9ed; border-radius: 16px; overflow: hidden; }
.o6-est-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f3; font-size: 13px; vertical-align: middle; }
.o6-est-table tr:last-child td { border-bottom: 0; }
.o6-est-meta { font-size: 11px; color: #8a909a; margin-top: 2px; }
.o6-est-num { text-align: right; font-weight: 800; white-space: nowrap; }

.o6-est-unpriced { background: #FFF7DE; border: 1px solid #f0dda0; border-radius: 14px; padding: 16px 18px; margin-top: 14px; }
.o6-est-unpriced h5 { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #9B6900; margin: 0 0 8px; }
.o6-est-unpriced ul { margin: 0 0 8px; padding-left: 18px; font-size: 13px; }
.o6-est-unpriced p { margin: 0; font-size: 12px; color: #7a6427; }

.o6-est-flags { margin-top: 14px; display: grid; gap: 8px; }
.o6-flag { background: #f3f1ff; border: 1px solid #ded8ff; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.55; }

.o6-est-honest { margin-top: 20px; border: 1px solid #e8e9ed; border-radius: 16px; padding: 20px 22px; background: #fff; }
.o6-est-honest h5 { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6e7580; margin: 0 0 12px; }
.o6-est-honest p { margin: 0 0 10px; font-size: 13px; line-height: 1.65; color: #59616b; }
.o6-est-honest p:last-child { margin-bottom: 0; }
.o6-est-honest b { color: var(--graphite, #1F2228); }

/* --- Running total bar --------------------------------------------------- */

.o6-running-total[hidden] { display: none; }
.o6-running-total {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 84px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  background: var(--charcoal, #0F1115); color: #fff;
  border-radius: 999px; padding: 10px 20px;
  box-shadow: 0 12px 34px rgba(15, 17, 21, .28);
  font-size: 13px; white-space: nowrap;
  max-width: calc(100vw - 32px); overflow: hidden;
}
.o6-rt-label { color: #969da8; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.o6-rt-value { font-weight: 900; letter-spacing: -.02em; }
.o6-rt-count { color: #9aa1ac; font-size: 11px; }

/* --- Honeypot: hidden from people, visible to naive bots ----------------- */

.o6-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* --- Result notices ------------------------------------------------------ */

.notice.good { background: #EAF7F0; border: 1px solid #cbe8d8; }
.notice.bad { background: #FCEEEE; border: 1px solid #efcaca; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 720px) {
  .o6-ex-cols { grid-template-columns: 1fr; gap: 14px; }
  .o6-explainer-panel { padding: 24px 20px; max-height: 90vh; }
  .o6-est-headline { padding: 20px; }
  .o6-running-total { bottom: 76px; font-size: 12px; padding: 9px 16px; gap: 9px; }
}

@media print {
  .o6-explain-btn, .o6-running-total, .o6-explainer { display: none !important; }
  .o6-est-headline { background: #fff; color: #000; border: 1px solid #ccc; }
  .o6-est-label, .o6-est-sub { color: #555; }
  .o6-est-monthly-sub { color: #555; }
  .o6-est-monthly { border-top-color: #ccc; }
}
