/* "Disclaimer" under "Powered by TransUnion & FICO", its pop-up (src/views/stand_disclaimer.php), and /where-we-stand.
   Works on the site's stylesheet (site.css: --ink, --muted, --surface…) and on the coming-soon page's (style.css:
   --text, --muted, --bg-2…), so every color has a fallback. Light and dark come from those tokens. */

/* The fine print: tiny, italic, muted, a 44px target */
.stand-fine { flex-basis: 100%; margin: 0; text-align: center; }
.powered .stand-fine { margin-top: 6px; }
.stand-fine-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 0.72rem; font-style: italic; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.stand-fine-link:hover { color: var(--ink, var(--text)); }
.stand-fine-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* The home page's "Powered by" row (site.css .powered-strip, shared with the promo scenes): the Disclaimer sits right
   under the logos (its 44px target reaches into the row gap; the logos aren't links) and the row is tighter, so the
   "As Seen On" row comes up the page */
.powered-strip:has(.stand-fine) { padding: 16px 0 2px; }
.powered-strip .stand-fine { margin-top: -22px; }
/* Without JavaScript: the short disclaimer itself, where the link jumps (#disclaimer) */
.stand-noscript { flex-basis: 100%; max-width: 560px; margin: 8px auto 0; padding: 14px 16px; font-size: 0.85rem; line-height: 1.55; text-align: left; color: var(--ink-2, var(--text)); border: 1px solid var(--line); border-radius: 14px; }
.stand-noscript p { margin: 6px 0 0; }
.stand-noscript p:first-child { margin: 0; }

/* The pop-up */
.stand-modal { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; color: var(--ink, var(--text)); background: var(--surface, var(--bg-2)); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.55); overflow: auto; }
.stand-modal::backdrop { background: rgba(7, 13, 26, 0.62); backdrop-filter: blur(4px); }
.stand-modal-inner { padding: 24px 26px 26px; }
.stand-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stand-modal-eyebrow { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stand-modal-title { margin: 6px 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.stand-modal-close { display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--ink, var(--text)); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.stand-modal-close:hover { background: color-mix(in srgb, var(--muted) 14%, transparent); }
.stand-modal-close:focus-visible, .stand-modal a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.stand-modal-lead { margin: 16px 0 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-2, var(--text)); }
.stand-modal-letter { margin-top: 20px; padding: 18px; background: color-mix(in srgb, var(--muted) 10%, transparent); border: 1px solid var(--line); border-radius: 16px; }
.stand-modal-letter h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.stand-modal-letter p { margin: 6px 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-2, var(--text)); }
.stand-btn { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 18px; font-weight: 800; color: var(--accent-ink, #062814); background: var(--accent); border-radius: 999px; text-decoration: none; }
.stand-btn:hover { filter: brightness(1.06); }
.stand-modal-more { margin: 18px 0 0; }
.stand-modal-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--accent-text, var(--accent)); text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .stand-modal[open] { animation: stand-pop 0.25s cubic-bezier(.2, .8, .2, 1); } }
@keyframes stand-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .stand-modal-inner { padding: 20px 18px 22px; } .stand-modal-title { font-size: 1.2rem; } }

/* /where-we-stand */
.ws-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.ws-hero-inner { max-width: 880px; text-align: center; }
.ws-title { margin: 10px 0 0; font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; }
.ws-lead { max-width: 720px; margin: 18px auto 0; font-size: 1.12rem; line-height: 1.65; color: var(--ink-2); }
.ws-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.ws-hero-fine { margin: 22px 0 0; font-size: 0.8rem; font-style: italic; color: var(--muted); }
.ws-prose h2 { scroll-margin-top: 90px; }
.ws-prose h2 .ws-tag { display: inline-block; margin-left: 8px; padding: 2px 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 4px; color: var(--ink-2); background: color-mix(in srgb, var(--muted) 16%, transparent); border-radius: 999px; }
.ws-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.ws-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.ws-card p { margin: 0; line-height: 1.55; }
.ws-card .ws-card-kicker { margin-bottom: 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.ws-timeline { position: relative; margin: 20px 0 0; padding: 0 0 0 28px; list-style: none; }
.ws-timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 7px; width: 2px; background: var(--line); }
.ws-timeline li { position: relative; padding-bottom: 26px; }
.ws-timeline li::before { content: ""; position: absolute; top: 6px; left: -28px; width: 16px; height: 16px; background: var(--surface); border: 3px solid var(--accent); border-radius: 50%; }
.ws-timeline .ws-timeline-next::before { border-style: dashed; border-color: var(--muted); }
.ws-timeline h3 { margin: 2px 0 0; font-size: 1.1rem; }
.ws-timeline p { margin: 6px 0 0; }
.ws-timeline .ws-when { margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ws-quote { margin: 18px 0; padding: 20px 22px; background: color-mix(in srgb, var(--muted) 8%, transparent); border-left: 4px solid var(--muted); border-radius: 0 16px 16px 0; }
.ws-quote p, .ws-quote li { font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; line-height: 1.6; }
.ws-quote ol { margin: 10px 0 0; padding-left: 22px; }
.ws-quote li + li { margin-top: 10px; }
.ws-quote footer { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.ws-pull { margin: 22px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--ink); }
.ws-pull p { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.35; letter-spacing: -0.015em; }
.ws-pull-accent { border-left-color: var(--accent); }
.ws-callout { margin: 22px 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.ws-callout p { margin: 6px 0 0; }
.ws-callout .ws-callout-title { margin: 0; font-weight: 800; }
.ws-steps li + li, .ws-checks li + li { margin-top: 10px; }
.ws-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.ws-pillars > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.ws-pillars p { margin: 4px 0 0; }
.ws-pillars .ws-pillar-title { margin: 0; font-weight: 800; }
.ws-cite { margin-left: 1px; font-size: 0.7em; }
.ws-cite a { display: inline-block; min-width: 24px; min-height: 24px; text-align: center; font-weight: 800; }
.ws-sources li { margin-top: 8px; overflow-wrap: anywhere; }
.ws-sources li:target { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.ws-notice { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) { .ws-cards, .ws-pillars { grid-template-columns: minmax(0, 1fr); } .ws-hero { padding: 48px 0 36px; } .ws-pull p { font-size: 1.15rem; } }

/* "Why we built this": the founder's road, numbered steps in the timeline style; the last one (Then) in the accent */
.ws-story li::before { top: 4px; }
.ws-story .ws-story-then::before { background: var(--accent); }
.ws-story .ws-story-then h3 { color: var(--accent-text); }
.ws-story li:last-child { padding-bottom: 6px; }

/* "About the letter": three plain facts under the hero's letter button */
.ws-letter-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 22px auto 0; }
.ws-letter-facts > div { padding: 10px 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ws-letter-facts dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ws-letter-facts dd { margin: 2px 0 0; font-size: 0.92rem; font-weight: 700; color: var(--ink); }
@media (max-width: 560px) { .ws-letter-facts > div { flex: 1 1 100%; } }

/* "The law, in plain English": one card per case */
.ws-case { margin-top: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ws-case h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.ws-case h3 a { color: var(--ink); text-underline-offset: 3px; }
.ws-case .ws-case-cite { margin: 4px 0 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }
.ws-case p { margin: 8px 0 0; }
.ws-case-quote { margin: 12px 0 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent); }
.ws-case-quote p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 0.98rem; }
.ws-case-quote footer { margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
.ws-fine { font-size: 0.85rem; font-style: italic; color: var(--muted); }

/* "Investigating the letter": a two-column fact table, scrollable on a phone */
.ws-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.ws-table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ws-facts { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ws-facts th, .ws-facts td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ws-facts thead th { border-top: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--muted) 8%, transparent); }
.ws-facts tbody th { width: 34%; font-weight: 800; color: var(--ink); }
.ws-facts td { color: var(--ink-2); }
.ws-pull .ws-tag { display: inline-block; margin-right: 8px; padding: 2px 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 4px; color: var(--ink-2); background: color-mix(in srgb, var(--muted) 16%, transparent); border-radius: 999px; }
@media (max-width: 560px) { .ws-facts tbody th { width: auto; } .ws-facts th, .ws-facts td { padding: 10px 12px; } }

/* The draft reply (build only) */
.ws-draft { border-style: dashed; }
.ws-draft .ws-tag { margin-left: 6px; vertical-align: 2px; }
.ws-draft-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ws-draft-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--accent-text); text-underline-offset: 3px; }

/* The Disclaimer pop-up's attribution and "for the record" lines */
.stand-modal-tm { margin: 10px 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.stand-modal-record { margin: 14px 0 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-2, var(--text)); }
.stand-modal-src { display: inline-block; font-size: 0.78rem; color: var(--muted); text-underline-offset: 3px; }
.stand-modal-src:hover { color: var(--ink, var(--text)); }
.stand-modal-more { font-size: 0.92rem; color: var(--ink-2, var(--text)); }

/* "Context: what a real FICO Score costs" (the bigger-picture section) */
.ws-context { margin: 22px 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 18px; }
.ws-context h3 { margin: 4px 0 0; font-size: 1.15rem; }
.ws-context .ws-context-kicker { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.ws-context p { margin: 10px 0 0; }
.ws-price { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; margin-top: 14px; padding: 14px 16px; background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 14px; }
.ws-price .ws-price-amount { margin: 0; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.ws-price .ws-price-what { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.ws-context .ws-context-view { font-weight: 700; color: var(--ink); }
.ws-context .ws-tag { margin-right: 6px; vertical-align: 1px; }
@media (max-width: 560px) { .ws-price { grid-template-columns: minmax(0, 1fr); } }
.ws-context .ws-tag { display: inline-block; padding: 2px 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: color-mix(in srgb, var(--muted) 16%, transparent); border-radius: 999px; }
