/* Production Preview - Screen 2 (results).
   Tonal shift by design: NO notepad texture. White canvas, Karla throughout,
   generous whitespace. The four intake pill colors return only as timeline
   accents; the CTA orange (#D85A30) is reserved for the primary download. */

.results {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  font-family: Karla, sans-serif;
  color: var(--ink);
}

/* ---- intro ---- */
.r-intro { font-size: 19px; line-height: 1.55; max-width: 44em; }
.r-steps {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin: 18px 0 0;
  padding: 0; list-style: none;
  color: var(--ink-muted); font-size: 13.5px;
}
.r-steps li { display: flex; align-items: center; gap: 8px; }
.r-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #F1EEE6; color: var(--ink-soft); /* neutral fallback; app.js tints each chip a pill color */
  font-size: 11px; font-weight: 700;
}

.r-section { margin-top: 56px; }
.r-h {
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); margin-bottom: 18px;
}
.r-overline {
  /* no text-transform anywhere: data casing is shown verbatim */
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

/* ---- timeline (desktop lanes) ---- */
.tl-scroll {
  /* long projects scroll sideways INSIDE this container; the page never
     scrolls horizontally */
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #D8D2C2 transparent;
}
.tl {
  position: relative;
  padding-right: 70px; /* END_PAD in app.js: room for the last mark's label */
}
.tl-months {
  position: relative; height: 20px;
  font-size: 11.5px; color: var(--ink-muted);
}
.tl-month-label { position: absolute; top: 0; white-space: nowrap; }
.tl-canvas {
  position: relative;
  border-top: 1px solid #EFECE4;
  border-bottom: 1px solid #EFECE4;
  padding: 6px 0;
}
.tl-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: #EFECE4; }
.tl-weekend  { position: absolute; top: 0; bottom: 0; background: #FAF8F3; }
/* sub-row pitch: kept in sync with ROW_H in app.js (category lanes set their
   height inline; this is the fallback). Bar height stays 22px below. */
.tl-lane { position: relative; height: 26px; }
.tl-lane-miles { height: 34px; }
.tl-bar {
  position: absolute; top: 4px; height: 22px;
  border: none; border-radius: 6px; cursor: pointer;
  background: var(--bar-bg, #F1EEE6); color: var(--bar-fg, #5F5B50);
  font-family: Karla, sans-serif; font-size: 11.5px; font-weight: 500;
  padding: 0 7px; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; text-align: left; min-width: 9px;
}
.tl-bar:hover { filter: brightness(.97); }
.tl-bar:focus-visible, .tl-star:focus-visible {
  outline: 2px solid var(--ink-soft); outline-offset: 1px;
}
.tl-star {
  position: absolute; width: 22px; height: 16px; margin-left: -11px;
  border: none; background: none; cursor: pointer;
  color: var(--ink); font-size: 12px; line-height: 16px; padding: 0;
}
.tl-dot {
  position: absolute; width: 14px; height: 16px; margin-left: -7px;
  border: none; background: none; cursor: pointer; padding: 0;
}
.tl-dot::after {
  content: ""; display: block; width: 5px; height: 5px; border-radius: 50%;
  background: #C8C1AD; margin: 6px auto 0;
}
.tl-mark-alt { top: 17px; }
.tl-mark-label {
  position: absolute; height: 16px; line-height: 16px;
  font-size: 10.5px; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap; pointer-events: none;
}
.tl-bar-ext {
  position: absolute; height: 22px; line-height: 22px;
  font-size: 11.5px; font-weight: 500;
  white-space: nowrap; pointer-events: none;
}

/* ---- horizontal-scroll affordance ----
   Shown only while the chart overflows its container; both fade out on the
   first scroll / at the end. Pinned to the visible right edge (they live in
   .tl-wrap, outside the scrolling area), so they stay put as content scrolls
   under them. Hidden on mobile, where the timeline is a month list. */
.tl-wrap { position: relative; }
.tl-fade {
  position: absolute; top: 20px; right: 0; bottom: 8px; width: 56px;
  z-index: 2; pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #FFFFFF 82%);
  opacity: 0; transition: opacity .3s ease;
}
.tl-fade.is-shown { opacity: 1; }
.tl-hint {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  z-index: 3; pointer-events: none; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--paper-border);
  box-shadow: 0 3px 14px rgba(35, 33, 28, .12);
  font-size: 11.5px; font-weight: 500; color: var(--ink-soft);
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
.tl-hint.is-shown { opacity: 1; visibility: visible; }
@media (max-width: 640px) {
  .tl-fade, .tl-hint { display: none; }
}

/* ---- timeline (mobile month list) ---- */
.tl-mobile { display: none; }
.tlm-month {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-muted);
  margin: 22px 0 8px;
}
.tlm-row {
  display: flex; align-items: baseline; gap: 10px;
  width: 100%; text-align: left;
  border: none; background: none; cursor: pointer;
  padding: 7px 2px; border-bottom: 1px solid #F1EEE6;
  font-family: Karla, sans-serif; font-size: 14px; color: var(--ink);
}
.tlm-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bar-bg, #F1EEE6); border: 1px solid rgba(35,33,28,.08);
  align-self: center;
}
.tlm-name { flex: 1 1 auto; min-width: 0; }
.tlm-dates { flex: none; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
@media (max-width: 640px) {
  .tl-scroll { display: none; }
  .tl-mobile { display: block; }
  .results { padding-top: 40px; }
}

/* ---- glossary tooltip ---- */
.glo-tip {
  position: fixed; z-index: 80;
  max-width: 340px;
  background: #FFFFFF; border: 1px solid var(--paper-border);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(35, 33, 28, .16);
  padding: 14px 16px;
  font-family: Karla, sans-serif;
}
.glo-term { font-size: 14px; font-weight: 700; color: var(--ink); }
.glo-dates { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.glo-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-muted); margin-top: 10px;
}
.glo-text { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin-top: 3px; }
@media (max-width: 640px) {
  .glo-tip { left: 12px !important; right: 12px; max-width: none; }
}

/* ---- downloads: unified sleek button pair ---- */
.r-btn {
  display: inline-block;
  font-family: Karla, sans-serif; font-weight: 500; font-size: 14px;
  padding: 9px 20px; border-radius: 999px;
  border: 1.5px solid var(--cta);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.r-btn-primary { background: var(--cta); color: var(--paper); }
.r-btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.r-btn-secondary { background: transparent; color: var(--cta); }
.r-btn-secondary:hover { background: #FFF4EC; }
.r-btn:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.r-dl-row { margin-top: 26px; }
.r-dl-note { font-size: 13px; color: var(--ink-muted); margin-top: 12px; }
.r-dl-cost { margin-top: 20px; }

/* ---- cost ballpark ---- */
.r-tiers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 34px;
}
@media (max-width: 640px) { .r-tiers { grid-template-columns: 1fr; } }
.r-tier {
  border: 1px solid #ECE9E1; border-radius: 16px;
  padding: 20px 22px;
}
.r-tier-label { font-size: 14px; font-weight: 700; }
.r-tier-caption { font-size: 12.5px; color: var(--ink-muted); margin-top: 1px; }
.r-tier-range { font-size: 26px; font-weight: 700; margin-top: 12px; letter-spacing: -.01em; }

/* deliverable breakdown panel (hero cut + what else is included) */
.r-deliverables {
  margin: -10px 0 36px;
  padding: 14px 20px;
  background: #FAF8F3;
  border-radius: 12px;
}
.r-def { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.r-def b { color: var(--ink); font-weight: 700; margin-right: 4px; }
.r-def + .r-def { margin-top: 3px; }

.r-money-suffix { font-weight: 400; color: var(--ink-muted); }
.r-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.r-table th {
  text-align: left; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; color: var(--ink-muted);
  padding: 0 10px 8px 0;
}
.r-table td { padding: 9px 10px 9px 0; border-top: 1px solid #F1EEE6; vertical-align: top; }
.r-table .num { text-align: right; white-space: nowrap; }
.r-table th.num { text-align: right; }
.r-covers { color: var(--ink-muted); }
.r-row-total td { font-weight: 700; border-top: 2px solid #E5DFCB; }
.r-row-planfor td {
  font-weight: 700; background: #FFF4EC;
  border-top: 2px solid var(--cta);
}
.r-row-planfor .r-covers { font-weight: 400; }

/* ---- trust block ---- */
.r-trust { border-top: 1px solid #ECE9E1; margin-top: 56px; padding-top: 40px; }
.r-trust-h { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.r-trust p.r-body { font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-width: 72ch; }
.r-quality { margin: 22px 0; font-size: 14px; color: var(--ink-soft); }
.r-quality b { color: var(--ink); }
.r-scope p { margin-top: 10px; }
.r-smallprint { font-size: 12px; color: var(--ink-muted); margin-top: 28px; }

/* Start over = a neutral pill button (same family as the downloads, soft
   border not CTA orange - orange stays reserved for the primary download). */
.start-row {
  margin-top: 48px; font-size: 14px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.r-btn-neutral { background: transparent; color: var(--ink-soft); border-color: #D8D2C2; }
.r-btn-neutral:hover { background: #F6F3EA; border-color: #C9C2AE; }
.results-credit { color: var(--ink-muted); }
.results-credit a { color: var(--cta); }
