/*
 * Hard Copy: components
 * Every value comes from tokens.css. Load tokens.css first.
 */

/* Base */
.hc { margin: 0; background: var(--hc-ink); color: var(--hc-text); font-family: var(--hc-mono); font-size: var(--hc-text-body); line-height: var(--hc-leading); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:where(.hc) *, :where(.hc) *::before, :where(.hc) *::after { box-sizing: border-box; }
:where(.hc) img, :where(.hc) svg { max-width: 100%; }
:where(.hc) p { margin: 0 0 var(--hc-space-5); max-width: var(--hc-text-width); }
:where(.hc) strong, :where(.hc) b { font-weight: var(--hc-weight-bold); color: var(--hc-text); }
:where(.hc) ::selection { background: var(--hc-signal); color: var(--hc-signal-ink); }
.hc-container { width: 100%; max-width: var(--hc-container); margin: 0 auto; padding: 0 var(--hc-space-5); }
.hc-body { padding-left: var(--hc-space-4); }
.hc-section { padding: var(--hc-space-7) 0; }
.hc-dim { color: var(--hc-dim); }
.hc-hot { color: var(--hc-flare); }
.hc-micro { font-size: var(--hc-text-micro); color: var(--hc-faint); }

/* Links: plain blue, underline on hover */
.hc-link, .hc-prose a { color: var(--hc-link); text-decoration: none; }
.hc-link:hover, .hc-prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
:where(.hc) a { color: inherit; text-decoration: none; }
:where(.hc) a:focus-visible, :where(.hc) button:focus-visible { outline: none; box-shadow: var(--hc-focus); }

/* Signal strip: one line of news */
.hc-strip { background: var(--hc-signal); color: var(--hc-signal-ink); text-align: center; padding: 8px var(--hc-space-4); font-size: var(--hc-text-small); font-weight: 500; }
.hc-strip a { display: inline-block; margin-left: var(--hc-space-2); padding: 0 6px; background: var(--hc-signal-ink); color: var(--hc-signal); font-weight: var(--hc-weight-bold); white-space: nowrap; }

/* Nav: logo, pipe-separated links, square buttons */
.hc-nav { display: flex; align-items: center; gap: var(--hc-space-5); padding: var(--hc-space-5) 0; }
.hc-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--hc-weight-bold); white-space: nowrap; }
.hc-logo svg { width: 28px; height: 28px; flex: none; }
.hc-nav__links { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; font-weight: 500; }
.hc-nav__links li + li::before { content: "|"; color: var(--hc-faint); padding: 0 12px; }
.hc-nav__links a:hover { color: var(--hc-flare); }
.hc-nav__end { display: flex; align-items: center; gap: var(--hc-space-3); margin-left: auto; font-weight: 500; }
@media (max-width: 900px) { .hc-nav__links { display: none; } .hc-nav__end .hc-hide-sm { display: none; } }

/* Buttons: square, monospace, bold */
.hc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 4px 10px; border: 2px solid var(--hc-flare); border-radius: var(--hc-radius); background: transparent; color: var(--hc-text); font: var(--hc-weight-bold) var(--hc-text-body)/1.2 var(--hc-mono); white-space: nowrap; cursor: pointer; transition: background var(--hc-fast), color var(--hc-fast); }
.hc-btn:hover { background: var(--hc-flare-soft); }
.hc-btn--solid { background: var(--hc-flare); color: var(--hc-signal-ink); }
.hc-btn--solid:hover { background: var(--hc-flare-deep); color: var(--hc-text); }
.hc-btn--quiet { border-color: var(--hc-line); }
.hc-btn--quiet:hover { border-color: var(--hc-text); background: transparent; }
.hc-btn--lg { min-height: 44px; padding: 8px 18px; }
.hc-btn--block { width: 100%; }
.hc-actions { display: flex; flex-wrap: wrap; gap: var(--hc-space-3); margin-top: var(--hc-space-5); }

/* Headings: small, bold, ruled */
.hc-title { margin: 0 0 var(--hc-space-5); padding-left: var(--hc-space-4); border-left: var(--hc-rule); margin-left: calc(-1 * var(--hc-space-4) - 3px); font-size: var(--hc-text-h3); font-weight: var(--hc-weight-bold); line-height: 1.4; }
.hc-title--hero { font-size: var(--hc-text-hero); line-height: 1.25; letter-spacing: -0.01em; }
.hc-h2 { margin: 0 0 var(--hc-space-4); font-size: var(--hc-text-h2); font-weight: var(--hc-weight-bold); line-height: 1.35; }
.hc-h3 { margin: 0 0 var(--hc-space-2); font-size: var(--hc-text-h3); font-weight: var(--hc-weight-bold); }
.hc-label { display: block; margin-bottom: var(--hc-space-3); font-size: var(--hc-text-micro); color: var(--hc-faint); text-transform: uppercase; letter-spacing: .08em; }
.hc-label::before { content: "// "; color: var(--hc-flare); }

/* Badges and inline code */
.hc-tag { display: inline-block; padding: 0 6px; border: var(--hc-border); font-size: var(--hc-text-micro); color: var(--hc-dim); white-space: nowrap; }
.hc-tag--flare { border-color: var(--hc-flare); color: var(--hc-flare); }
.hc-tag--ok { border-color: var(--hc-ok); color: var(--hc-ok); }
.hc-code { padding: 0 5px; background: var(--hc-raised); color: var(--hc-signal); font-size: .93em; }
.hc-prompt { display: flex; flex-wrap: wrap; gap: 0 10px; padding: var(--hc-space-3) var(--hc-space-4); background: var(--hc-panel); border: var(--hc-border); font-size: var(--hc-text-small); overflow-x: auto; }
.hc-prompt::before { content: "$"; color: var(--hc-faint); }
.hc-prompt b { color: var(--hc-flare); }

/* Grid of cells: logos, features, numbers */
.hc-cells { display: grid; grid-template-columns: repeat(var(--hc-cols, 5), minmax(0, 1fr)); border-top: var(--hc-border); border-left: var(--hc-border); }
.hc-cells > * { border-right: var(--hc-border); border-bottom: var(--hc-border); padding: var(--hc-space-5); min-width: 0; }
.hc-cell--mark { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 96px; font-weight: var(--hc-weight-bold); color: var(--hc-dim); text-align: center; }
.hc-cell--mark svg { width: 22px; height: 22px; flex: none; }
.hc-cell--stat strong { display: block; font-size: var(--hc-text-hero); line-height: 1.1; color: var(--hc-text); }
.hc-cell--stat span { font-size: var(--hc-text-small); color: var(--hc-dim); }
.hc-cell--link { display: block; }
.hc-cell--link:hover { background: var(--hc-panel); }
.hc-cell--link:hover .hc-h3 { color: var(--hc-flare); }
@media (max-width: 900px) { .hc-cells { --hc-cols: 2 !important; } }
@media (max-width: 480px) { .hc-cells--stack { --hc-cols: 1 !important; } .hc-cells > * { padding: var(--hc-space-4); } }

/* Lists: dash bullets */
.hc-list { margin: 0 0 var(--hc-space-5); padding: 0; list-style: none; }
.hc-list li { position: relative; padding-left: 2ch; margin-bottom: var(--hc-space-2); }
.hc-list li::before { content: "-"; position: absolute; left: 0; color: var(--hc-flare); }
.hc-list--check li::before { content: "+"; color: var(--hc-ok); }
.hc-list--no li::before { content: "x"; color: var(--hc-faint); }

/* Tables */
.hc-table-wrap { overflow-x: auto; border: var(--hc-border); }
.hc-table { width: 100%; border-collapse: collapse; font-size: var(--hc-text-small); }
.hc-table th, .hc-table td { padding: 10px var(--hc-space-4); text-align: left; border-bottom: var(--hc-border); white-space: nowrap; }
.hc-table th { color: var(--hc-faint); font-weight: 500; background: var(--hc-panel); }
.hc-table tr:last-child td { border-bottom: 0; }
.hc-table td + td, .hc-table th + th { border-left: var(--hc-border-soft); }
.hc-table .hc-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Figure: a drawn chart in a ruled box */
.hc-figure { margin: 0 0 var(--hc-space-5); border: var(--hc-border); background: var(--hc-panel); }
.hc-figure__bar { display: flex; justify-content: space-between; gap: var(--hc-space-3); padding: 8px var(--hc-space-4); border-bottom: var(--hc-border); font-size: var(--hc-text-micro); color: var(--hc-faint); }
.hc-figure svg { display: block; width: 100%; height: auto; }
.hc-figure figcaption { padding: 8px var(--hc-space-4); border-top: var(--hc-border); font-size: var(--hc-text-micro); color: var(--hc-dim); }

/* Quote */
.hc-quote { margin: 0; padding: var(--hc-space-5); }
.hc-quote p { margin-bottom: var(--hc-space-3); }
.hc-quote cite { font-style: normal; font-size: var(--hc-text-small); color: var(--hc-dim); }
.hc-quote cite::before { content: "-- "; color: var(--hc-flare); }

/* Pricing */
.hc-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--hc-border); border-left: var(--hc-border); }
.hc-plan { display: flex; flex-direction: column; padding: var(--hc-space-5); border-right: var(--hc-border); border-bottom: var(--hc-border); }
.hc-plan--pick { background: var(--hc-panel); box-shadow: inset 0 3px 0 var(--hc-flare); }
.hc-plan__price { margin: var(--hc-space-3) 0 var(--hc-space-4); font-size: var(--hc-text-hero); font-weight: var(--hc-weight-bold); line-height: 1.1; }
.hc-plan__price small { font-size: var(--hc-text-small); font-weight: 400; color: var(--hc-dim); }
.hc-plan .hc-list { flex: 1; font-size: var(--hc-text-small); }
@media (max-width: 860px) { .hc-plans { grid-template-columns: 1fr; } }

.hc-toggle { display: inline-flex; border: var(--hc-border); }
.hc-toggle button { padding: 6px 12px; border: 0; background: transparent; color: var(--hc-dim); font: 500 var(--hc-text-small)/1.2 var(--hc-mono); cursor: pointer; white-space: nowrap; }
.hc-toggle button[aria-pressed="true"] { background: var(--hc-text); color: var(--hc-ink); }

/* FAQ */
.hc-faq { border-top: var(--hc-border); }
.hc-faq details { border-bottom: var(--hc-border); }
.hc-faq summary { display: flex; gap: 1ch; padding: var(--hc-space-4) 0; font-weight: var(--hc-weight-bold); cursor: pointer; list-style: none; }
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::before { content: "[+]"; color: var(--hc-flare); flex: none; }
.hc-faq details[open] summary::before { content: "[-]"; }
.hc-faq details p { padding-left: 4ch; color: var(--hc-dim); }

/* Forms */
.hc-form { display: grid; gap: var(--hc-space-4); }
.hc-field { display: grid; gap: 6px; }
.hc-field label { font-size: var(--hc-text-small); font-weight: 500; }
.hc-input, .hc-select { width: 100%; min-height: 42px; padding: 8px 12px; border: var(--hc-border); border-radius: var(--hc-radius); background: var(--hc-panel); color: var(--hc-text); font: var(--hc-text-body)/1.4 var(--hc-mono); }
.hc-input::placeholder { color: var(--hc-faint); }
.hc-input:focus, .hc-select:focus { outline: none; border-color: var(--hc-flare); }
.hc-hint { font-size: var(--hc-text-micro); color: var(--hc-faint); }
.hc-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--hc-text-small); color: var(--hc-dim); }
.hc-check input { accent-color: var(--hc-flare); margin-top: 4px; }
.hc-or { display: flex; align-items: center; gap: var(--hc-space-3); font-size: var(--hc-text-micro); color: var(--hc-faint); }
.hc-or::before, .hc-or::after { content: ""; flex: 1; border-top: var(--hc-border-soft); }
.hc-box { border: var(--hc-border); background: var(--hc-panel); padding: var(--hc-space-6); }
@media (max-width: 480px) { .hc-box { padding: var(--hc-space-5) var(--hc-space-4); } }

/* Article */
.hc-article { max-width: var(--hc-text-width); }
.hc-article h2 { margin: var(--hc-space-7) 0 var(--hc-space-4); font-size: var(--hc-text-h2); }
.hc-article h2::before { content: "## "; color: var(--hc-flare); }
.hc-article blockquote { margin: var(--hc-space-6) 0; padding-left: var(--hc-space-4); border-left: var(--hc-rule); font-style: italic; color: var(--hc-text); }
.hc-byline { display: flex; flex-wrap: wrap; gap: 0 var(--hc-space-3); font-size: var(--hc-text-small); color: var(--hc-dim); margin-bottom: var(--hc-space-6); }
.hc-byline span + span::before { content: "|"; color: var(--hc-faint); margin-right: var(--hc-space-3); }
@media (max-width: 480px) { .hc-byline span + span::before { display: none; } .hc-byline { gap: 0 var(--hc-space-4); } }

/* CTA: a ruled box with a signal edge */
.hc-cta { border: var(--hc-border); border-left: 6px solid var(--hc-signal); padding: var(--hc-space-6); background: var(--hc-panel); }
.hc-cta p { color: var(--hc-dim); }

/* Footer */
.hc-footer { margin-top: var(--hc-space-8); border-top: var(--hc-border); padding: var(--hc-space-7) 0 var(--hc-space-6); font-size: var(--hc-text-small); }
.hc-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--hc-space-6); }
.hc-footer__grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--hc-dim); }
.hc-footer__grid a:hover { color: var(--hc-flare); }
.hc-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--hc-space-3); margin-top: var(--hc-space-7); color: var(--hc-faint); font-size: var(--hc-text-micro); }
@media (max-width: 760px) { .hc-footer__grid { grid-template-columns: 1fr 1fr; } .hc-footer__grid > :first-child { grid-column: 1 / -1; } }
