/*
 * Hatch Blue: components
 * Needs tokens.css first. Every class starts with "hb-" so it can sit next to any other CSS.
 */

/* Base: the body is blue, always */
.hb { margin: 0; background: var(--hb-blue); color: var(--hb-paper); font-family: var(--hb-serif); font-size: var(--hb-text-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.hb *, .hb *::before, .hb *::after { box-sizing: border-box; }
.hb img, .hb svg { max-width: 100%; display: block; }
.hb :where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.hb ::selection { background: var(--hb-sky); color: var(--hb-night); }
.hb-container { width: min(100% - 40px, var(--hb-container)); margin-inline: auto; }
.hb-narrow { width: min(100% - 40px, var(--hb-narrow)); margin-inline: auto; }
.hb-center { text-align: center; }
.hb-center .hb-lead { margin-inline: auto; }

/* Sections */
.hb-section { padding-block: var(--hb-section); }
.hb-section--tight { padding-block: calc(var(--hb-section) / 2); }
.hb-rule { height: 1px; margin: 0; border: 0; background: var(--hb-line-soft); }

/* Scribble mark: a hand-hatched patch of pale sky strokes. Inline SVG with class hb-mark */
.hb-mark { width: 72px; height: 72px; color: var(--hb-sky); }
.hb-mark path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.hb-mark--sm { width: 30px; height: 30px; }
.hb-mark--sm path { stroke-width: 7; }
.hb-mark--lg { width: 120px; height: 120px; }
.hb-mark--paper { color: var(--hb-paper); }

/* Type: bold serif titles, regular serif for everything else */
.hb-hero-title, .hb-h2, .hb-h3 { margin: 0; font-family: var(--hb-serif); font-weight: 700; color: var(--hb-paper); }
.hb-hero-title { font-size: var(--hb-text-hero); letter-spacing: var(--hb-tracking-hero); line-height: 1.04; }
.hb-h2 { font-size: var(--hb-text-h2); letter-spacing: var(--hb-tracking-h2); line-height: 1.1; }
.hb-h3 { font-size: var(--hb-text-h3); letter-spacing: -.015em; line-height: 1.15; }
.hb-lead { max-width: 620px; margin: 18px 0 0; color: var(--hb-paper); font-size: var(--hb-text-lead); line-height: 1.4; }
.hb-soft { color: var(--hb-mist); }
.hb-fine { color: var(--hb-haze); font-size: var(--hb-text-small); }
.hb-italic { font-style: italic; font-weight: 400; }
.hb-eyebrow { display: inline-block; margin-bottom: 14px; color: var(--hb-sky); font-family: var(--hb-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.hb-mono { font-family: var(--hb-mono); font-size: 13px; }

/* Linked title: a bold serif title underlined like a link, with an outlined lot pill */
.hb-title-link { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--hb-paper); text-decoration: none; }
.hb-title-link > span:first-child { text-decoration: underline; text-decoration-thickness: var(--hb-underline); text-underline-offset: .12em; }
.hb-title-link:hover > span:first-child { text-decoration-color: var(--hb-sky); }
.hb-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--hb-paper); border-radius: var(--hb-radius-pill); color: var(--hb-paper); font-family: var(--hb-mono); font-size: var(--hb-text-micro); font-weight: 500; letter-spacing: .02em; line-height: 1; white-space: nowrap; vertical-align: top; }
.hb-pill--sun { border-color: var(--hb-sun); background: var(--hb-sun); color: var(--hb-sun-ink); }
.hb-pill--soft { border-color: var(--hb-line); color: var(--hb-mist); }

/* Nav: centered mark and wordmark, quiet underlined links */
.hb-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.hb-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--hb-paper); font-weight: 700; font-size: 22px; letter-spacing: -.01em; text-decoration: none; }
.hb-nav__links { display: flex; align-items: center; gap: 24px; font-size: 16px; }
.hb-nav__links a { color: var(--hb-mist); text-decoration: none; }
.hb-nav__links a:hover, .hb-nav__links a[aria-current] { color: var(--hb-paper); text-decoration: underline; }

/* Buttons: white blocks with blue serif text, or a hairline outline. Soft corners, no pills */
.hb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border: 1px solid transparent; border-radius: var(--hb-radius-sm); font-family: var(--hb-serif); font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s var(--hb-ease), color .2s var(--hb-ease), transform .2s var(--hb-ease); }
.hb-btn:active { transform: translateY(1px); }
.hb-btn--primary { background: var(--hb-paper); color: var(--hb-blue); }
.hb-btn--primary:hover { background: var(--hb-mist); }
.hb-btn--ghost { border-color: var(--hb-line); background: transparent; color: var(--hb-paper); }
.hb-btn--ghost:hover { background: var(--hb-fill-2); }
.hb-btn--block { width: 100%; }
.hb-btn--sm { padding: 9px 16px; font-size: 15px; }
.hb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hb-center .hb-actions { justify-content: center; }
.hb-link { color: var(--hb-paper); font-weight: 700; text-decoration: underline; text-decoration-thickness: var(--hb-underline); text-underline-offset: .16em; }

/* Hero: centered mark over a short bold claim */
.hb-hero { padding-block: clamp(48px, 9vw, 104px) clamp(40px, 6vw, 72px); text-align: center; }
.hb-hero .hb-mark { margin: 0 auto 36px; }
.hb-hero .hb-lead { margin-inline: auto; }
.hb-hero .hb-actions { justify-content: center; }

/* Cards: hairline outlines with soft corners on the blue, never filled white */
.hb-grid { display: grid; gap: 24px; }
.hb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-card { padding: clamp(28px, 4vw, 48px); border: var(--hb-border); border-radius: var(--hb-radius); background: transparent; transition: background .2s var(--hb-ease); }
.hb-card:hover { background: var(--hb-fill); }
.hb-card p { margin: 18px 0 0; font-size: var(--hb-text-lead); line-height: 1.4; }
.hb-card--quiet p { color: var(--hb-mist); font-size: var(--hb-text-body); }
.hb-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hb-line-soft); color: var(--hb-mist); font-size: var(--hb-text-small); }

/* Window: the one product shot, a deep blue panel with a glow and a thin title bar */
.hb-window { overflow: hidden; border-radius: var(--hb-radius); background: linear-gradient(180deg, var(--hb-deep), var(--hb-night)); box-shadow: var(--hb-glow); }
.hb-window__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--hb-line-soft); color: var(--hb-haze); font-family: var(--hb-mono); font-size: var(--hb-text-micro); }
.hb-window__dots { display: flex; gap: 6px; }
.hb-window__dots i { width: 8px; height: 8px; border: 1px solid var(--hb-haze); border-radius: 2px; }
.hb-window__body { padding: clamp(18px, 3vw, 32px); }
.hb-window__frame { margin-inline: auto; max-width: 560px; padding: 20px; border: 1px solid var(--hb-sky); border-radius: var(--hb-radius-sm); box-shadow: 0 0 0 4px rgba(147, 214, 255, .10), 0 0 28px rgba(147, 214, 255, .25); }

/* Rows: a ledger list used inside windows and on pricing */
.hb-rows { margin: 0; padding: 0; list-style: none; }
.hb-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--hb-line-soft); }
.hb-rows li:last-child { border-bottom: 0; }
.hb-rows .hb-mono { color: var(--hb-haze); white-space: nowrap; }

/* Checklist: small hatch ticks instead of bullets */
.hb-checks { margin: 22px 0 0; padding: 0; list-style: none; }
.hb-checks li { position: relative; padding: 7px 0 7px 30px; color: var(--hb-mist); font-size: var(--hb-text-body); }
.hb-checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 12px; background: repeating-linear-gradient(-55deg, var(--hb-sky) 0 2.5px, transparent 2.5px 5px); border-radius: 2px; }

/* Pricing: two outlined cards, one with a solid white edge; prices in bold serif */
.hb-price { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); border: var(--hb-border); border-radius: var(--hb-radius); }
.hb-price--pick { border: 2px solid var(--hb-paper); }
.hb-price .hb-h3 { font-size: 28px; }
.hb-price .hb-title-link { flex: none; white-space: nowrap; }
.hb-price__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hb-price__amount { margin: 22px 0 4px; font-size: clamp(48px, 6vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hb-price__amount small { color: var(--hb-mist); font-size: 18px; font-weight: 400; letter-spacing: 0; }
.hb-price .hb-checks { flex: 1; }
.hb-price .hb-btn { margin-top: 28px; }

/* FAQ: plain details with an underlined summary */
.hb-faq details { padding: 20px 0; border-bottom: 1px solid var(--hb-line-soft); }
.hb-faq summary { cursor: pointer; list-style: none; font-size: 21px; font-weight: 700; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { content: "+"; float: right; color: var(--hb-sky); font-family: var(--hb-mono); }
.hb-faq details[open] summary::after { content: "-"; }
.hb-faq p { margin: 12px 0 0; color: var(--hb-mist); }

/* Article: a narrow column of serif text on the blue */
.hb-article { font-size: 20px; line-height: 1.65; }
.hb-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 22px; color: var(--hb-mist); font-size: var(--hb-text-small); }
.hb-article p { margin: 0 0 1.2em; }
.hb-article h2 { margin: 1.8em 0 .5em; font-size: 30px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.hb-article a { font-weight: 700; text-decoration-thickness: var(--hb-underline); }
.hb-article blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--hb-sky); font-size: 26px; font-style: italic; line-height: 1.4; }
.hb-article ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.hb-article li { margin-bottom: .4em; }
.hb-article li::marker { color: var(--hb-sky); }
.hb-article code { padding: 2px 6px; border-radius: 6px; background: var(--hb-fill-2); font-family: var(--hb-mono); font-size: .8em; }
.hb-figure { margin: 2em 0; }
.hb-figure figcaption { margin-top: 12px; color: var(--hb-haze); font-size: var(--hb-text-small); text-align: center; }

/* Forms: translucent fields with a hairline, white text, sky focus ring */
.hb-form { display: grid; gap: 18px; }
.hb-field { display: grid; gap: 8px; }
.hb-label { font-size: var(--hb-text-small); font-weight: 700; }
.hb-input, .hb-select, .hb-textarea { width: 100%; padding: 13px 15px; border: var(--hb-border); border-radius: var(--hb-radius-sm); background: var(--hb-fill); color: var(--hb-paper); font-family: var(--hb-serif); font-size: 17px; outline: none; transition: border-color .2s var(--hb-ease), box-shadow .2s var(--hb-ease); }
.hb-input::placeholder, .hb-textarea::placeholder { color: var(--hb-haze); }
.hb-input:focus, .hb-select:focus, .hb-textarea:focus { border-color: var(--hb-sky); box-shadow: 0 0 0 3px rgba(147, 214, 255, .25); }
.hb-select option { color: #111; }
.hb-hint { color: var(--hb-haze); font-size: 14px; }
.hb-check { display: flex; align-items: flex-start; gap: 10px; color: var(--hb-mist); font-size: var(--hb-text-small); }
.hb-check input { margin-top: 4px; accent-color: var(--hb-paper); }
.hb-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hb-choice label { display: block; padding: 12px; border: var(--hb-border); border-radius: var(--hb-radius-sm); color: var(--hb-mist); font-size: var(--hb-text-small); text-align: center; cursor: pointer; }
.hb-choice input { position: absolute; opacity: 0; pointer-events: none; }
.hb-choice input:checked + label { border-color: var(--hb-paper); background: var(--hb-fill-2); color: var(--hb-paper); font-weight: 700; }

/* Footer: one or two centered lines of fine print with a tiny mark */
.hb-footer { padding-block: 56px 48px; color: var(--hb-mist); font-size: 14px; text-align: center; }
.hb-footer p { margin: 4px 0; }
.hb-footer strong { color: var(--hb-paper); }
.hb-footer a { color: var(--hb-paper); font-weight: 700; text-decoration: none; }
.hb-footer a:hover { text-decoration: underline; }
.hb-footer .hb-mark { display: inline-block; width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; color: var(--hb-paper); }
.hb-footer .hb-mark path { stroke-width: 9; }

/* Phone */
@media (max-width: 760px) {
  .hb-grid--2, .hb-grid--3 { grid-template-columns: 1fr; }
  .hb-nav__links { gap: 14px; font-size: 15px; }
  .hb-nav__links .hb-hide-sm { display: none; }
  .hb-choice { grid-template-columns: 1fr; }
  .hb-article { font-size: 18px; }
  .hb-article blockquote { font-size: 22px; }
}

/* A whole card can be a link */
a.hb-card { display: block; color: inherit; text-decoration: none; }
