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

/* Base */
.hw { margin: 0; background: var(--hw-white); color: var(--hw-ink); font-family: var(--hw-sans); font-size: var(--hw-text-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.hw *, .hw *::before, .hw *::after { box-sizing: border-box; }
.hw img, .hw svg { max-width: 100%; display: block; }
.hw :where(a) { color: inherit; }
.hw-container { width: min(100% - 2 * var(--hw-gutter), var(--hw-container)); margin-inline: auto; }
.hw-narrow { width: min(100% - 40px, var(--hw-narrow)); margin-inline: auto; }
.hw-center { text-align: center; }
.hw-center .hw-lead { margin-inline: auto; }

/* Sections */
.hw-section { padding-block: var(--hw-section); }
.hw-section--paper { background: var(--hw-paper); }
.hw-section--ink { background: var(--hw-ink); color: var(--hw-white); }
.hw-section--ink .hw-lead { color: rgba(255, 255, 255, .7); }
.hw-section--glow { background: var(--hw-wash-soft); }
.hw-rule { height: 1px; border: 0; margin: 0; background: var(--hw-line); }

/* Type: one tight grotesk, heavy and huge for headlines; mono for data and labels */
.hw-hero-title, .hw-h2, .hw-h3 { margin: 0; font-family: var(--hw-sans); color: inherit; }
.hw-hero-title { font-size: var(--hw-text-hero); font-weight: 700; letter-spacing: var(--hw-tracking-hero); line-height: .95; }
.hw-h2 { font-size: var(--hw-text-h2); font-weight: 700; letter-spacing: var(--hw-tracking-h2); line-height: 1; }
.hw-h3 { font-size: var(--hw-text-h3); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.hw-lead { max-width: 600px; margin: 22px 0 0; color: var(--hw-soft); font-size: var(--hw-text-lead); line-height: 1.4; letter-spacing: -.01em; }
.hw-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--hw-soft); font-family: var(--hw-mono); font-size: var(--hw-text-micro); letter-spacing: .04em; text-transform: uppercase; }
.hw-label::before { content: ""; width: 8px; height: 8px; background: var(--hw-magenta); }
.hw-mono { font-family: var(--hw-mono); font-size: var(--hw-text-small); }
.hw-mark { padding: 0 4px; background: var(--hw-highlight); box-shadow: inset 0 -1px 0 var(--hw-highlight-line); }

/* Announcement bar: thin white strip with a mono tag */
.hw-announce { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 20px; border-bottom: var(--hw-border); background: var(--hw-white); color: var(--hw-ink); font-size: var(--hw-text-small); font-weight: 500; text-align: center; text-decoration: none; }
.hw-announce__tag { padding: 2px 6px; background: var(--hw-ink); color: var(--hw-white); font-family: var(--hw-mono); font-size: 11px; white-space: nowrap; }
.hw-announce:hover { background: var(--hw-paper); }

/* Nav: logo, a square search box, quiet links, one black button */
.hw-nav { display: flex; align-items: center; gap: 20px; padding-block: 18px; }
.hw-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; letter-spacing: -.05em; text-decoration: none; white-space: nowrap; }
.hw-logo__mark { width: 22px; height: 22px; background: linear-gradient(135deg, var(--hw-magenta), var(--hw-flame) 60%, var(--hw-sun)); }
.hw-search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 480px; padding: 8px 12px; border: var(--hw-border); background: rgba(255, 255, 255, .82); color: var(--hw-faint); font-size: var(--hw-text-small); }
.hw-search kbd { margin-left: auto; padding: 1px 6px; border: var(--hw-border); background: var(--hw-paper); font-family: var(--hw-mono); font-size: 11px; }
.hw-nav__links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.hw-nav__links a { color: var(--hw-ink-2); text-decoration: none; }
.hw-nav__links a:hover { color: var(--hw-ink); text-decoration: underline; text-underline-offset: 4px; }

/* Buttons: square. Black for the main action, white with a hairline for the rest */
.hw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 1px solid var(--hw-ink); border-radius: var(--hw-radius); font-family: var(--hw-sans); font-size: 17px; font-weight: 500; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s var(--hw-ease), color .15s var(--hw-ease); }
.hw-btn svg { width: 16px; height: 16px; }
.hw-btn--primary { background: var(--hw-ink); color: var(--hw-white); }
.hw-btn--primary:hover { background: var(--hw-ink-2); }
.hw-btn--secondary { border-color: var(--hw-line); background: var(--hw-white); color: var(--hw-ink); }
.hw-btn--secondary:hover { border-color: var(--hw-ink); }
.hw-btn--ghost { border-color: rgba(255, 255, 255, .45); background: transparent; color: var(--hw-white); }
.hw-btn--ghost:hover { border-color: var(--hw-white); }
.hw-btn--sm { padding: 8px 14px; font-size: 15px; }
.hw-btn--block { width: 100%; }
.hw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hw-center .hw-actions { justify-content: center; }

/* Hero on the heat wash: white headline, white lead, black button */
.hw-wash { position: relative; background: var(--hw-wash); }
.hw-wash::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--hw-white)); pointer-events: none; }
.hw-wash > * { position: relative; z-index: 1; }
.hw-hero { padding-block: clamp(56px, 8vw, 104px) 40px; color: var(--hw-white); }
.hw-hero .hw-hero-title, .hw-hero .hw-lead { text-shadow: var(--hw-text-shadow); }
.hw-hero .hw-lead { color: rgba(255, 255, 255, .95); }

/* Console: a white panel with tabs and mono content. Pair it with an output tile */
.hw-console { display: grid; grid-template-columns: 1.5fr 1fr; border: 1px solid rgba(255, 255, 255, .9); background: var(--hw-white); box-shadow: var(--hw-lift); }
.hw-console__code { min-width: 0; border-right: var(--hw-border); }
.hw-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: var(--hw-border); overflow-x: auto; }
.hw-tabs button { padding: 14px 14px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--hw-soft); font: 500 15px var(--hw-sans); cursor: pointer; white-space: nowrap; }
.hw-tabs button[aria-selected="true"] { border-bottom-color: var(--hw-ink); color: var(--hw-ink); }
.hw-code { margin: 0; padding: 22px 20px; overflow-x: auto; font-family: var(--hw-mono); font-size: 14px; line-height: 1.75; white-space: pre; color: var(--hw-ink); }
.hw-code .k { color: var(--hw-key); }
.hw-code .f { color: var(--hw-fn); }
.hw-code .s { padding: 1px 3px; background: var(--hw-highlight); box-shadow: inset 0 -1px 0 var(--hw-highlight-line); color: var(--hw-str); }
.hw-code .c { color: var(--hw-faint); }
.hw-console__out { position: relative; min-height: 260px; overflow: hidden; }

/* Sky tile: a CSS sunset over drawn swells. Use as console output or card thumbnails */
.hw-sky { position: relative; overflow: hidden; background: linear-gradient(180deg, #4b2bb8 0%, var(--hw-magenta) 38%, var(--hw-flame) 64%, var(--hw-sun) 82%, #fff0b8 100%); }
.hw-sky__sun { position: absolute; left: 50%; bottom: 30%; width: 34%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, 50%); background: radial-gradient(circle, #fff8d6 0%, var(--hw-sun) 55%, rgba(255, 212, 71, 0) 72%); }
.hw-sky__sea { position: absolute; inset: 62% 0 0 0; background: repeating-linear-gradient(180deg, rgba(60, 20, 120, .85) 0 6px, rgba(140, 75, 255, .55) 6px 9px, rgba(224, 62, 198, .6) 9px 13px); }
.hw-sky--dusk { filter: hue-rotate(-25deg); }
.hw-sky--hot { filter: saturate(1.3) brightness(1.05); }
.hw-sky--cold { filter: hue-rotate(-60deg) brightness(.9); }
.hw-sky--haze { filter: saturate(.8) brightness(1.08); }
.hw-sky--deep { filter: hue-rotate(-12deg) contrast(1.1); }
.hw-sky__meta { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; background: rgba(18, 17, 18, .82); color: var(--hw-white); font-family: var(--hw-mono); font-size: 11px; }

/* Card grid: hairline cells, square, with a drawn thumbnail and mono metadata */
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); border-top: var(--hw-border); border-left: var(--hw-border); }
.hw-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-right: var(--hw-border); border-bottom: var(--hw-border); background: var(--hw-white); color: inherit; text-decoration: none; transition: background .15s var(--hw-ease); }
a.hw-card:hover { background: var(--hw-paper); }
.hw-card__thumb { aspect-ratio: 16 / 10; }
.hw-card__name { font-family: var(--hw-mono); font-size: var(--hw-text-small); font-weight: 500; }
.hw-card__name span { color: var(--hw-faint); }
.hw-card p { margin: 0; color: var(--hw-soft); font-size: 15px; line-height: 1.45; }
.hw-card__meta { display: flex; gap: 14px; margin-top: auto; color: var(--hw-faint); font-family: var(--hw-mono); font-size: var(--hw-text-micro); }

/* Badges: square mono chips */
.hw-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: var(--hw-border); background: var(--hw-white); color: var(--hw-ink-2); font-family: var(--hw-mono); font-size: var(--hw-text-micro); white-space: nowrap; }
.hw-badge--hot { border-color: var(--hw-ink); background: var(--hw-ink); color: var(--hw-white); }
.hw-badge--mark { border-color: var(--hw-highlight-line); background: var(--hw-highlight); }
.hw-dot { width: 7px; height: 7px; border-radius: var(--hw-radius-dot); background: var(--hw-green); }

/* Stats: big numbers in a hairline row */
.hw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: var(--hw-border-ink); }
.hw-stat { padding: 22px 20px 0 0; }
.hw-stat strong { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.hw-stat span { display: block; margin-top: 8px; color: var(--hw-soft); font-family: var(--hw-mono); font-size: var(--hw-text-micro); text-transform: uppercase; letter-spacing: .04em; }

/* Feature rows: numbered, split by hairlines */
.hw-features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--hw-border-ink); }
.hw-feature { padding: 22px 28px 0 0; }
.hw-feature__n { color: var(--hw-magenta); font-family: var(--hw-mono); font-size: var(--hw-text-small); }
.hw-feature h3 { margin: 26px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.hw-feature p { margin: 0; color: var(--hw-soft); }

/* Pricing */
.hw-toggle { display: inline-flex; border: var(--hw-border-ink); }
.hw-toggle button { padding: 9px 18px; border: 0; background: var(--hw-white); color: var(--hw-ink); font: 500 15px var(--hw-sans); cursor: pointer; white-space: nowrap; }
.hw-toggle button[aria-pressed="true"] { background: var(--hw-ink); color: var(--hw-white); }
.hw-plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--hw-border); border-left: var(--hw-border); }
.hw-plan { display: flex; flex-direction: column; padding: 30px 26px; border-right: var(--hw-border); border-bottom: var(--hw-border); background: var(--hw-white); }
.hw-plan--hot { position: relative; outline: 1px solid var(--hw-ink); outline-offset: -1px; }
.hw-plan--hot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--hw-magenta), var(--hw-flame), var(--hw-sun)); }
.hw-plan__name { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.hw-plan__price { margin: 22px 0 4px; font-size: 56px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.hw-plan__price small { color: var(--hw-soft); font-size: 16px; font-weight: 400; letter-spacing: 0; }
.hw-plan__note { color: var(--hw-soft); font-family: var(--hw-mono); font-size: var(--hw-text-micro); }
.hw-plan ul { display: grid; gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; font-size: 15px; }
.hw-plan li { display: flex; gap: 10px; }
.hw-plan li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; background: var(--hw-ink); }
.hw-plan .hw-btn { margin-top: auto; }
.hw-table-wrap { overflow-x: auto; }
.hw-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.hw-table th, .hw-table td { padding: 14px 12px; border-bottom: var(--hw-border); text-align: left; }
.hw-table thead th { border-bottom: var(--hw-border-ink); font-family: var(--hw-mono); font-size: var(--hw-text-micro); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.hw-table td:not(:first-child), .hw-table th:not(:first-child) { text-align: center; }

/* FAQ */
.hw-faq details { border-bottom: var(--hw-border); }
.hw-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; list-style: none; cursor: pointer; }
.hw-faq summary::-webkit-details-marker { display: none; }
.hw-faq summary::after { content: "+"; font-family: var(--hw-mono); font-weight: 400; }
.hw-faq details[open] summary::after { content: "-"; }
.hw-faq p { margin: 0 0 22px; max-width: 640px; color: var(--hw-soft); }

/* Article */
.hw-article-head { padding-block: 72px 40px; }
.hw-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 26px; color: var(--hw-soft); font-family: var(--hw-mono); font-size: var(--hw-text-micro); }
.hw-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, var(--hw-violet), var(--hw-magenta) 55%, var(--hw-flame)); }
.hw-prose { font-size: 18px; line-height: 1.7; }
.hw-prose p { margin: 0 0 1.3em; }
.hw-prose h2 { margin: 2em 0 .6em; font-size: 32px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.hw-prose a { text-decoration-color: var(--hw-magenta); text-underline-offset: 3px; }
.hw-prose code { padding: 1px 5px; background: var(--hw-highlight); font-family: var(--hw-mono); font-size: .86em; }
.hw-prose ul { padding-left: 1.2em; }
.hw-prose li { margin-bottom: .4em; }
.hw-pull { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--hw-magenta); font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.hw-figure { margin: 2em 0; border: var(--hw-border); }
.hw-figure figcaption { padding: 10px 14px; border-top: var(--hw-border); color: var(--hw-soft); font-family: var(--hw-mono); font-size: var(--hw-text-micro); }

/* Forms: square inputs, hairline that turns black on focus */
.hw-form { display: grid; gap: 18px; }
.hw-field { display: grid; gap: 7px; }
.hw-field label { font-family: var(--hw-mono); font-size: var(--hw-text-micro); text-transform: uppercase; letter-spacing: .04em; color: var(--hw-ink-2); }
.hw-input, .hw-select { width: 100%; padding: 13px 14px; border: var(--hw-border); border-radius: var(--hw-radius); background: var(--hw-white); color: var(--hw-ink); font: 400 16px var(--hw-sans); outline: none; appearance: none; }
.hw-input:focus, .hw-select:focus { border-color: var(--hw-ink); box-shadow: 0 0 0 3px var(--hw-highlight); }
.hw-select { background-image: linear-gradient(45deg, transparent 50%, var(--hw-ink) 50%), linear-gradient(135deg, var(--hw-ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.hw-hint { color: var(--hw-faint); font-size: 13px; }
.hw-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--hw-soft); }
.hw-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hw-ink); }
.hw-or { display: flex; align-items: center; gap: 12px; color: var(--hw-faint); font-family: var(--hw-mono); font-size: var(--hw-text-micro); }
.hw-or::before, .hw-or::after { content: ""; flex: 1; height: 1px; background: var(--hw-line); }
.hw-panel { padding: clamp(24px, 4vw, 40px); border: var(--hw-border); background: var(--hw-white); box-shadow: var(--hw-lift); }

/* Footer */
.hw-footer { padding-block: 64px 40px; border-top: var(--hw-border); }
.hw-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.hw-footer__about { max-width: 280px; color: var(--hw-soft); font-family: var(--hw-mono); font-size: var(--hw-text-small); }
.hw-footer h4 { margin: 0 0 14px; font-family: var(--hw-mono); font-size: var(--hw-text-micro); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--hw-faint); }
.hw-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.hw-footer a { text-decoration: none; }
.hw-footer a:hover { text-decoration: underline; }
.hw-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: var(--hw-border); color: var(--hw-faint); font-family: var(--hw-mono); font-size: var(--hw-text-micro); }

/* Phone */
@media (max-width: 900px) {
  .hw-nav__links, .hw-search { display: none; }
  .hw-nav .hw-btn { margin-left: auto; }
  .hw-console { grid-template-columns: 1fr; }
  .hw-console__code { border-right: 0; border-bottom: var(--hw-border); }
  .hw-console__out { min-height: 200px; }
  .hw-features, .hw-plans { grid-template-columns: 1fr; }
  .hw-feature { padding-bottom: 24px; }
  .hw-footer__grid { grid-template-columns: 1fr 1fr; }
  .hw-code { font-size: 12.5px; }
}
