/* ============================================================
   Winston Dane — Document pages (privacy, terms, contact)
   Long-form legal prose + the SMS opt-in form. Same tokens as the
   rest of the site: white surface, gold as a spice, square corners.
   ============================================================ */

.doc-head {
  background: var(--wd-navy);
  color: #fff;
  padding: clamp(5.5rem, 4rem + 5vw, 8rem) var(--wd-gutter) clamp(2.5rem, 2rem + 2vw, 4rem);
}
.doc-head__inner { max-width: var(--wd-maxw); margin: 0 auto; }
.doc-head .wd-eyebrow { color: var(--wd-gold); font-weight: 600; letter-spacing: 0.18em; }
.doc-head h1 {
  color: #fff; font-family: var(--wd-serif); font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.2rem);
  line-height: 1.08; margin: 0.7rem 0 0; max-width: 20ch;
}
.doc-head__meta { color: rgba(255,255,255,0.72); font-size: 0.82rem; margin: 1.1rem 0 0; letter-spacing: 0.02em; }

.doc {
  max-width: 78ch; margin: 0 auto;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--wd-gutter) clamp(4rem, 3rem + 4vw, 7rem);
  font-size: var(--wd-body-size); line-height: 1.8; color: var(--wd-body);
}
.doc h2 {
  font-family: var(--wd-serif); font-weight: 400; color: var(--wd-ink);
  font-size: var(--wd-h3); line-height: 1.25;
  margin: 2.6rem 0 0.4rem; padding-top: 1.6rem; border-top: 1px solid var(--wd-rule);
}
.doc h2:first-of-type { margin-top: 0.6rem; }
.doc h3 {
  font-family: var(--wd-sans); font-weight: 600; color: var(--wd-ink);
  font-size: 1rem; letter-spacing: 0.01em; margin: 1.8rem 0 0.3rem;
}
.doc p { margin: 0.8rem 0; }
.doc ul { margin: 0.8rem 0; padding-left: 1.2rem; }
.doc li { margin: 0.4rem 0; }
.doc b, .doc strong { color: var(--wd-ink); font-weight: 600; }
.doc a { color: var(--wd-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--wd-gold); }
.doc a:hover { color: var(--wd-gold-deep, #a9762f); }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: #f6f3ee; padding: 1px 5px; }

/* ── Quotes inside long-form (reviews.html) ───────────────────────────────
   `.quote` is a HOMEPAGE component (home.css): a 3-up card grid where a
   short Cormorant pull-quote at 1.4 leading is display type and reads well.
   Stacked fourteen-deep in a single reading column it stops being display
   type and becomes body copy — and the brand rule there is explicit:
   "Never set body copy in Cormorant. It's a display face here."
   (00-brand/visual-identity.md § Type, rule 2.)

   These overrides are scoped to `.doc`, so the homepage grid is untouched.
   Three things get corrected:
     1. face      — Montserrat carries the reading text
     2. leading   — 1.8, the site body standard (was 1.4, cramped when stacked)
     3. measure   — the blockquote owns one 62ch measure, so the rule, the
                    quote and the attribution all end on the same line. The
                    old ragged edge came from `p { max-width: 62ch }` being
                    measured in Cormorant (615px) while the blockquote and
                    cite ran the full 78ch container (785px).
   The top rule drops from 2px gold to a neutral hairline: gold is "a spice,
   not a base," and fourteen identical gold rules marching down one page
   turn the accent into a texture. Gold still carries the eyebrow, the link
   underlines, the call-out and the CTA.                                    */
.doc .quote {
  max-width: var(--wd-maxw-text);
  border-top: 1px solid var(--wd-rule);
  padding-top: 1.5rem;
  margin: 2.2rem 0;
}
.doc .quote p {
  font-family: var(--wd-sans);
  font-size: var(--wd-body-size);
  line-height: 1.8;
  color: var(--wd-ink);
  max-width: none;
  margin: 0;
}
.doc .quote cite { margin-top: 0.9rem; }

/* The one call-out box — used for the SMS clauses a carrier reviewer looks for. */
.doc-note {
  background: #fdf9f3; border-left: 3px solid var(--wd-gold);
  padding: 1.1rem 1.3rem; margin: 1.4rem 0; font-size: 0.98rem;
}
.doc-note p:first-child { margin-top: 0; }
.doc-note p:last-child { margin-bottom: 0; }

.doc-toc { background: #f6f3ee; padding: 1.2rem 1.4rem; margin: 0 0 2.2rem; }
.doc-toc h4 { font-family: var(--wd-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wd-gold-deep, #a9762f); font-weight: 700; margin: 0 0 0.7rem; }
.doc-toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.92rem; line-height: 1.7; }

/* ---------- Contact / opt-in form ---------- */
.optin { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: start;
  max-width: var(--wd-maxw); margin: 0 auto;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--wd-gutter) clamp(4rem, 3rem + 4vw, 7rem); }
@media (max-width: 860px) { .optin { grid-template-columns: 1fr; } }

.optin__intro { font-size: var(--wd-body-size); line-height: 1.8; color: var(--wd-body); }
.optin__intro h2 { font-family: var(--wd-serif); font-weight: 400; color: var(--wd-ink); font-size: var(--wd-h3); margin: 0 0 0.6rem; }
.optin__contact { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--wd-rule); font-size: 0.94rem; line-height: 1.9; }
.optin__contact b { color: var(--wd-ink); }

.optin__card { background: #fff; border: 1px solid var(--wd-rule); box-shadow: 0 18px 50px rgba(8,17,38,0.10); padding: clamp(1.4rem, 2.5vw, 2rem); }
.optin__card h2 { font-family: var(--wd-serif); font-weight: 400; color: var(--wd-ink); font-size: 1.5rem; margin: 0 0 1.1rem; }
.optin__card label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wd-slate-500); font-weight: 600; margin: 0 0 0.35rem; }
.optin__card input, .optin__card textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--wd-rule); border-radius: 0;
  font-family: var(--wd-sans); font-size: 0.95rem; color: var(--wd-ink); background: #fff;
}
.optin__card input:focus, .optin__card textarea:focus { outline: none; border-color: var(--wd-gold); }
.optin__card textarea { min-height: 96px; resize: vertical; }
.optin__field { margin-bottom: 1rem; }
.optin__card .wd-btn--gold { width: 100%; text-align: center; margin-top: 0.4rem; border: none; cursor: pointer; font-family: var(--wd-sans); }

/* The consent block. Deliberately NOT pre-checked and NOT required — the
   checkbox is the entire legal basis for texting anyone, so it has to be a
   real, deliberate action by the consumer. Do not add `checked` or `required`. */
.optin__consent { margin: 1.2rem 0 0.4rem;
  background: #fdf9f3; border-left: 3px solid var(--wd-gold); padding: 1rem 1.1rem; }
.optin__consent label { display: flex; gap: 0.75rem; align-items: flex-start;
  text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.82rem;
  line-height: 1.65; color: var(--wd-body); margin: 0; cursor: pointer; }
.optin__consent input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--wd-gold-deep, #a9762f); }
.optin__consent-text { display: block; }
.optin__consent-links { font-size: 0.8rem; color: var(--wd-body); margin: 0.6rem 0 0; }
.optin__consent-links a { color: var(--wd-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--wd-gold); }

/* Plain-text restatement of the SMS terms, outside the form. Redundant for a human,
   but it gives a crawler a second, tag-free copy of every required disclosure. */
.optin__terms { grid-column: 1 / -1; margin-top: clamp(2rem, 3vw, 3rem); padding-top: 1.6rem;
  border-top: 1px solid var(--wd-rule); font-size: 0.86rem; line-height: 1.8; color: var(--wd-body); max-width: 82ch; }
.optin__terms h3 { font-family: var(--wd-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wd-gold-deep, #a9762f); font-weight: 700; margin: 0 0 0.7rem; }
.optin__micro { font-size: 0.76rem; color: var(--wd-muted); line-height: 1.6; margin: 0.9rem 0 0; }
.optin__thanks { display: none; text-align: center; padding: 2rem 0.5rem; }
.optin__thanks h3 { font-family: var(--wd-serif); font-weight: 400; font-size: 1.5rem; color: var(--wd-ink); margin: 0 0 0.5rem; }

/* ── Video + transcript (pillar guides) ──────────────────────────────────────
   Added 2026-09-23 for /sellers/downsizing (PC-4). Reusable by every pillar
   guide: the embed is the reason a person stays, the transcript is the only
   part a crawler or an AI model can read. Keep both. */
.doc-video { margin: 2rem 0 1.6rem; }
.doc-video__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #081126; border-radius: 6px; overflow: hidden;
}
.doc-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-video figcaption {
  margin-top: 0.7rem; font-size: 0.85rem; line-height: 1.5; color: var(--wd-muted);
}
.doc-transcript { margin: 1.6rem 0; border-top: 1px solid var(--wd-rule); border-bottom: 1px solid var(--wd-rule); }
.doc-transcript > summary {
  cursor: pointer; padding: 0.9rem 0; font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.04em; list-style: none;
}
.doc-transcript > summary::-webkit-details-marker { display: none; }
.doc-transcript > summary::before { content: "▸ "; color: var(--wd-gold); }
.doc-transcript[open] > summary::before { content: "▾ "; }
.doc-transcript > div { padding-bottom: 1.2rem; }
.doc-transcript p { font-size: 0.95rem; }
.doc-transcript__meta { color: var(--wd-muted); font-size: 0.82rem !important; font-style: normal; }
.doc-cta { border-left: 3px solid var(--wd-gold); padding-left: 1rem; }
.doc-note-inline { font-size: 0.88rem; color: var(--wd-muted); }
