/* Landing v2 (staging). Loads after /styles.css and only adds or overrides.
   Imbibe look: black primary, PMS 556 (#517891) as the single accent, Pantone Warm Grays for small text.
   Inter until a webfont is chosen. */
:root {
  --accent: #517891;
  --mute: #6e6259;        /* Warm Gray 11 */
  --line: #CBC4BC;
  --fill: #B7CDD9;
  --font: "Hanken Grotesk", sans-serif;
  --nav-h: 56px;
}
html { scroll-padding-top: calc(var(--nav-h) + 12px); }

/* 1. Sticky, slim header */
.nav {
  position: sticky; top: 0; z-index: 20;
  min-height: var(--nav-h); padding-top: 0; padding-bottom: 0;
  background: #fff; border-bottom: 1px solid var(--line);
}
.nav .logo { height: 24px; }
.nav .btn { min-height: 38px; }

/* 1 + 6. Hero breathing room; panel no longer touches the header, top aligned with the headline */
.hero-copy { padding-top: 48px; padding-bottom: 34px; }
.dek { margin-top: 16px; }
.price { margin-top: 16px; }
.fine { font-size: 15px; }
.actions { margin-top: 20px; }
.endorsement { margin-top: 20px; }
.endorsement a { display: inline-flex; }
.hero-panel { margin: 0 var(--pad) 24px; padding: 20px; }
@media (min-width: 900px) {
  .nav { padding: 0 48px; min-height: var(--nav-h); }
  .hero { align-items: start; }
  .hero-copy { padding: 48px 32px 34px 56px; }
  .hero-panel { display: block; align-self: start; margin: 78px 48px 34px 8px; padding: 24px 28px; }
  .carousel { margin: 0 auto; }
}

/* Accent, used sparingly */
a { text-decoration-color: var(--accent); text-underline-offset: 0.16em; }
.dot[aria-selected="true"]::after { background: var(--accent); }
summary::marker, summary::-webkit-details-marker { color: var(--accent); }

/* 9. How-to disclosures inside the steps (same style as the FAQ) */
ol.steps > li { margin-bottom: 14px; }
details.howto { margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
details.howto summary { font-size: 15px; }
details.howto ol { margin: 10px 0 4px; padding-left: 1.3rem; font-size: 16px; }
details.howto li { margin-bottom: 6px; }

/* 10. Per-item "See example" peeks that slide down */
details.peek { border: 0; padding: 4px 0 0; }
details.peek summary { display: inline-block; font-size: 14px; font-weight: 500; color: var(--mute); list-style: none; }
details.peek summary::-webkit-details-marker { display: none; }
details.peek summary::before { content: "+ "; color: var(--accent); font-weight: 600; }
details.peek[open] summary::before { content: "– "; }
details.peek img {
  display: block; margin: 8px 0 4px; width: 100%; max-width: 520px;
  border: 1px solid var(--line); border-radius: 2px; background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
details.peek[open] img { animation: peek-down .28s ease-out; transform-origin: top; }
@keyframes peek-down { from { opacity: 0; transform: translateY(-6px) scaleY(.92); } to { opacity: 1; transform: none; } }

/* 13. Chatbot feature block */
.feature { display: grid; gap: 20px; }
.feature-shot { margin: 0 auto; position: relative; max-width: 400px; width: 100%; }
.feature-shot img {
  display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}
.feature-shot img:not(.is-on) { display: none; }
.feature-shot figcaption { margin-top: 10px; color: var(--mute); font-size: 14px; }
.feature-shot figcaption .tag { margin: 0 6px 0 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 400px; align-items: center; gap: 56px; max-width: var(--max); }
}

/* 15. Contact form */
form.contact { margin-top: 18px; max-width: 760px; }
form.contact p { margin: 0 0 12px; }
form.contact label { display: block; font-size: 14px; color: var(--mute); margin-bottom: 4px; }
form.contact .opt { font-size: 13px; }
form.contact input, form.contact textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 9px 10px; min-height: 44px;
  border: 1px solid var(--fill); border-radius: 3px; background: #fff; color: var(--ink);
}
form.contact textarea { resize: vertical; }
form.contact button { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
form.contact .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.contact .form-status:empty { display: none; }
form.contact .form-status { font-weight: 500; }
form.contact .form-status.err { color: #1E384B; }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .row2 { grid-template-columns: 1fr 1fr; } }
.thanks { background: #fff; border-left: 3px solid var(--accent); padding: 14px 16px; margin-top: 18px; max-width: 760px; }

/* 16-17. One footer, modeled on askthebuilding.com's colophon */
footer.legal { display: none; }
.colophon { border-top: 1px solid var(--line); padding: 14px var(--pad) 22px; }
.legal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.imbibe-cluster { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; color: var(--mute); text-decoration: none; max-width: 44rem; }
.imbibe-cluster .by { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.imbibe-mark { height: 22px; width: auto; display: block; }
.imbibe-promo { font-size: 13px; line-height: 1.35; max-width: 46ch; }
.imbibe-cluster:hover .imbibe-promo { text-decoration: underline; text-decoration-color: var(--accent); }
.copyright { margin: 0; font-size: 14px; font-weight: 500; }
.copyright a { color: inherit; text-decoration: none; }
.copyright a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.colophon .tm { margin: 10px 0 0; color: var(--mute); font-size: 12.5px; max-width: 80ch; }
@media (min-width: 900px) { .colophon { padding-left: 56px; padding-right: 56px; } }
@media (max-width: 640px) {
  .legal-foot { flex-direction: column; align-items: center; text-align: center; }
  .imbibe-cluster { flex-direction: column; }
  .colophon .tm { text-align: center; margin-left: auto; margin-right: auto; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { font-size: 15px; }
}

/* Privacy page */
.doc { max-width: 760px; padding: 40px var(--pad) 48px; margin-inline: auto; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.3rem; margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { details.peek[open] img { animation: none; } }
@media (max-width: 560px) {
  .nav { flex-wrap: nowrap; }
  .nav-links { flex-wrap: nowrap; gap: 12px; }
  .nav-links a:not(.btn) { display: none; }
  .nav .btn { min-height: 36px; padding: 0 14px; font-size: 15px; }
}

/* Chatbot note: one line at the bottom of the block */
.feature-note { margin: 0; color: var(--mute); font-size: 14px; }
@media (min-width: 900px) { .feature-note { grid-column: 1 / -1; white-space: nowrap; } }

/* Button hover/focus states (all .btn and form buttons) */
.btn, form.contact button { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.btn-solid:hover, form.contact button:hover { background: #1E384B; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.14); }
.btn-solid:active, form.contact button:active { transform: none; box-shadow: none; }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:focus-visible, form.contact button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
form.contact button[disabled] { opacity: .6; transform: none; box-shadow: none; cursor: default; }
.example-actions { margin: 16px 0 6px; }
@media (prefers-reduced-motion: reduce) { .btn, form.contact button { transition: none; } .btn-solid:hover, form.contact button:hover { transform: none; } }
