/* ==========================================================================
   home-offer.css: the homepage's offer block and "How the engineering works"
   (gtm-reset 7.2, the offer of 2026-10-28; "What gets built" moved to home.css,
   2026-11-05). Built on tokens.css and components.css and edits neither; the
   homepage meta css array loads it after home.css. Version C (2026-11-06): the
   three-acts strip (.acts, .act*) and the price notes (.offer-notes, .offer-note)
   are gone; the homepage stopped using them in rounds 1 and 2 of version 4, and
   this file loads on / alone. The same file lives in public/assets/css/, byte for
   byte (ported with v4, 2026-11-06).
   ========================================================================== */

/* ---- The offer: Start beside Build, one panel ---- */
.offer { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1px; margin-top: 0.5rem; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.offer-col { background: #fff; padding: 1.5rem 1.5rem 1.35rem; display: flex; flex-direction: column; min-width: 0; }
.offer-col.is-dark { background: var(--text-1); color: var(--n50); }
.offer-head { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--border-strong); }
.offer-word { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--text-1); }
.offer-q { font-family: var(--font-serif); font-style: italic; font-size: 0.95rem; line-height: 1.4; color: var(--text-2); }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: 0.35rem; align-items: baseline; padding: 1rem 0; }
.offer-row + .offer-row { border-top: 1px solid var(--border); }
.offer-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text-1); }
.offer-price { text-align: right; white-space: nowrap; }
.offer-amt { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text-1); }
.offer-amt small { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-meta); margin-right: 0.35em; vertical-align: 0.35em; }
.offer-unit { display: block; margin-top: 0.3rem; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-meta); }
.offer-desc { grid-column: 1 / -1; font-size: 0.84rem; line-height: 1.55; color: var(--text-2); margin: 0; }
.offer-foot { margin: auto 0 0; padding-top: 0.9rem; border-top: 1px solid var(--border); font-size: 0.8rem; line-height: 1.55; color: var(--text-2); }
.offer-col.is-dark .offer-word, .offer-col.is-dark .offer-name, .offer-col.is-dark .offer-amt { color: var(--n50); }
.offer-col.is-dark .offer-q, .offer-col.is-dark .offer-desc, .offer-col.is-dark .offer-foot { color: var(--n300); }
.offer-col.is-dark .offer-unit, .offer-col.is-dark .offer-amt small { color: var(--n400); }
.offer-col.is-dark .offer-head, .offer-col.is-dark .offer-row + .offer-row, .offer-col.is-dark .offer-foot { border-color: var(--d-border-strong); }

/* ---- How the engineering works: three lines ---- */
.eng { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.eng li { padding-top: 1rem; border-top: 1px solid var(--border-strong); min-width: 0; }
.eng-n { display: block; margin-bottom: 0.6rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text-1); }
.eng p { font-size: 0.9rem; line-height: 1.6; color: var(--text-2); margin: 0; }
.eng p b { font-family: var(--font-display); color: var(--text-1); }
.eng-head { margin-top: 2.25rem; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-meta); display: flex; align-items: center; gap: 0.6rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.eng-head::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }

/* ---- The close: a longer title than the shared band's 18ch ---- */
#contact .cta-title { max-width: 24ch; }

/* ---- Narrow screens ---- */
@media (max-width: 1000px) {
  .offer { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .eng { grid-template-columns: 1fr; gap: 0; }
  .eng li { padding: 1rem 0; border-top: 1px solid var(--border); }
  .eng li:first-child { border-top-color: var(--border-strong); }
}
@media (max-width: 640px) {
  .offer-col { padding: 1.25rem 1.1rem 1.1rem; }
  .offer-word { font-size: 1.7rem; }
  .offer-amt { font-size: 1.4rem; }
  #contact .cta-title { max-width: none; }
}
