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

/* Base: the whole page sits on the mint-to-sky wash */
.pb { margin: 0; min-height: 100vh; background: var(--pb-wash); background-attachment: fixed; color: var(--pb-ink); font-family: var(--pb-sans); font-size: var(--pb-text-body); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.pb *, .pb *::before, .pb *::after { box-sizing: border-box; }
.pb img, .pb svg { max-width: 100%; display: block; }
.pb a { color: inherit; }
.pb-container { width: min(100% - 40px, var(--pb-container)); margin-inline: auto; }
.pb-narrow { width: min(100% - 40px, var(--pb-narrow)); margin-inline: auto; }
.pb-center { text-align: center; }
.pb-center .pb-lead { margin-inline: auto; }

/* Sections */
.pb-section { position: relative; padding-block: var(--pb-section); }
.pb-section--paper { background: var(--pb-paper); border-block: var(--pb-border-quiet); }
.pb-section--ink { background: var(--pb-ink); color: var(--pb-white); }
.pb-section--ink .pb-lead { color: rgba(255, 255, 255, .7); }
.pb-section--ink .pb-label { color: var(--pb-teal); }
.pb-rule { height: 1px; margin: 0; border: 0; background: var(--pb-rule); }

/* Type: thin grotesk headlines, never bold; mono only for small uppercase labels */
.pb-hero-title, .pb-h2, .pb-h3 { margin: 0; font-family: var(--pb-sans); font-weight: 300; color: inherit; }
.pb-hero-title { font-size: var(--pb-text-hero); letter-spacing: var(--pb-tracking-hero); line-height: 1.04; }
.pb-h2 { font-size: var(--pb-text-h2); letter-spacing: -.025em; line-height: 1.08; }
.pb-h3 { font-size: var(--pb-text-h3); font-weight: 400; letter-spacing: -.01em; line-height: 1.25; }
.pb-accent { color: var(--pb-magenta); }
.pb-lead { max-width: 560px; margin: 24px 0 0; color: var(--pb-soft); font-size: var(--pb-text-lead); line-height: 1.55; }
.pb-label { display: inline-block; font-family: var(--pb-mono); font-size: var(--pb-text-label); font-weight: 400; letter-spacing: var(--pb-tracking-label); line-height: 1.4; text-transform: uppercase; color: var(--pb-soft); }
.pb-label--teal { color: var(--pb-teal-deep); }
.pb-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--pb-teal); vertical-align: 1px; }
.pb-dot--magenta { background: var(--pb-magenta); }

/* Logo: a mark box and a word box, joined */
.pb-logo { display: inline-flex; align-items: stretch; text-decoration: none; color: var(--pb-ink); }
.pb-logo > * { display: flex; align-items: center; padding: 4px 10px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-glass); font-size: 22px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.pb-logo > * + * { margin-left: -1px; }
.pb-logo__mark { padding: 4px 7px; }
.pb-logo__mark svg { width: 20px; height: 20px; }

/* Nav: links are a row of separate outline boxes */
.pb-nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.pb-nav__links { display: flex; }
.pb-nav__links a { display: flex; align-items: center; justify-content: center; min-width: 118px; height: 36px; padding: 0 14px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-glass); font-family: var(--pb-mono); font-size: var(--pb-text-label); letter-spacing: var(--pb-tracking-label); text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .2s var(--pb-ease); }
.pb-nav__links a + a { margin-left: -1px; }
.pb-nav__links a:hover, .pb-nav__links a[aria-current] { background: var(--pb-white); }
.pb-nav__links a[aria-current] { box-shadow: inset 0 -2px 0 var(--pb-teal); }
@media (max-width: 960px) { .pb-nav__links a:not(.pb-nav__keep) { display: none; } .pb-nav__links a { min-width: 0; } }

/* Buttons: outlined boxes with uppercase mono labels; the arrow sits in its own attached box */
.pb-btn { display: inline-flex; align-items: stretch; padding: 0; border: 0; background: none; color: var(--pb-ink); font-family: var(--pb-mono); font-size: 12px; letter-spacing: var(--pb-tracking-label); text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; }
.pb-btn__text, .pb-btn__arrow { display: flex; align-items: center; justify-content: center; height: 42px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-glass); transition: background .2s var(--pb-ease), color .2s var(--pb-ease); }
.pb-btn__text { padding: 0 18px; }
.pb-btn__arrow { width: 40px; margin-left: -1px; }
.pb-btn__arrow svg { width: 14px; height: 14px; }
.pb-btn:hover .pb-btn__text, .pb-btn:hover .pb-btn__arrow { background: var(--pb-white); }
.pb-btn:hover .pb-btn__arrow { color: var(--pb-magenta); }
.pb-btn--solid .pb-btn__text, .pb-btn--solid .pb-btn__arrow { background: var(--pb-ink); color: var(--pb-white); }
.pb-btn--solid:hover .pb-btn__text, .pb-btn--solid:hover .pb-btn__arrow { background: #26312c; color: var(--pb-white); }
.pb-btn--light .pb-btn__text, .pb-btn--light .pb-btn__arrow { border-color: rgba(255, 255, 255, .55); background: transparent; color: var(--pb-white); }
.pb-btn--sm .pb-btn__text, .pb-btn--sm .pb-btn__arrow { height: 34px; }
.pb-btn--sm .pb-btn__arrow { width: 34px; }
.pb-btn--block { display: flex; width: 100%; }
.pb-btn--block .pb-btn__text { flex: 1; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.pb-center .pb-actions { justify-content: center; }

/* Segmented toggle: joined outline boxes, the chosen one filled ink */
.pb-toggle { display: inline-flex; }
.pb-toggle button { height: 36px; padding: 0 16px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-glass); color: var(--pb-ink); font-family: var(--pb-mono); font-size: var(--pb-text-label); letter-spacing: var(--pb-tracking-label); text-transform: uppercase; cursor: pointer; }
.pb-toggle button + button { margin-left: -1px; }
.pb-toggle button[aria-pressed="true"] { background: var(--pb-ink); color: var(--pb-white); }

/* Badge: a tiny outline box; --magenta for the single highlight */
.pb-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: var(--pb-border); border-radius: var(--pb-radius-xs); background: var(--pb-white); font-family: var(--pb-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.pb-badge--magenta { border-color: var(--pb-magenta); background: var(--pb-magenta-soft); color: #9c1f6a; }
.pb-badge--teal { border-color: var(--pb-teal-deep); background: var(--pb-teal-soft); color: var(--pb-teal-deep); }

/* The bloom stage: square pixels, soft clouds of spheres and one ribbon.
   Use .pb-stage as a positioned box, then put .pb-pixels, .pb-cloud and .pb-ribbon inside it. */
.pb-stage { position: relative; overflow: hidden; isolation: isolate; }
.pb-stage--panel { border: var(--pb-border); border-radius: var(--pb-radius-lg); background: var(--pb-wash); }
.pb-pixels { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: conic-gradient(from 90deg at 6px 6px, transparent 50%, var(--pb-teal) 50% 75%, transparent 75%) 0 0 / 11px 11px;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, rgba(0, 0, 0, .5) 62%, transparent 100%), conic-gradient(rgba(0, 0, 0, .15) 25%, #000 0 50%, rgba(0, 0, 0, .45) 0 75%, rgba(0, 0, 0, .8) 0);
  -webkit-mask-size: 100% 100%, 66px 66px;
  -webkit-mask-repeat: no-repeat, repeat;
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(closest-side, #000 20%, rgba(0, 0, 0, .5) 62%, transparent 100%), conic-gradient(rgba(0, 0, 0, .15) 25%, #000 0 50%, rgba(0, 0, 0, .45) 0 75%, rgba(0, 0, 0, .8) 0);
  mask-size: 100% 100%, 66px 66px;
  mask-repeat: no-repeat, repeat;
  mask-composite: intersect; }
.pb-pixels--fine { background-size: 8px 8px; background-image: conic-gradient(from 90deg at 4px 4px, transparent 50%, var(--pb-teal) 50% 75%, transparent 75%); }
.pb-cloud { position: absolute; inset: 0; pointer-events: none; }
.pb-ball { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: var(--s, 160px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #f7fbfa 30%, #e3f3ee 58%, #bfeae5 82%, #86d9d3 100%);
  box-shadow: inset -12px -16px 34px rgba(28, 195, 199, .28), 0 24px 40px -28px rgba(15, 143, 149, .45); }
.pb-ball--mint { background: radial-gradient(circle at 36% 30%, #ffffff 0%, #eefaf1 34%, #c9eedf 70%, #5fd0c5 100%); }
.pb-ball--ring { background: none; box-shadow: none; border: 7px solid var(--pb-lime); border-radius: 30%; transform: translate(-50%, -50%) rotate(-24deg); }
.pb-ribbon { position: absolute; pointer-events: none; overflow: visible; }
@media (max-width: 760px) { .pb-ball { width: calc(var(--s, 160px) * .6); } }

/* Glass card: white at 62%, thin ink outline */
.pb-card { position: relative; padding: 28px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pb-card--white { background: var(--pb-white); }
.pb-card__num { display: block; margin-bottom: 44px; }
.pb-card__title { margin: 0 0 10px; font-size: var(--pb-text-h3); font-weight: 400; letter-spacing: -.01em; line-height: 1.25; }
.pb-card__text { margin: 0; color: var(--pb-soft); }
.pb-grid { display: grid; gap: var(--pb-gutter); }
.pb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.pb-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pb-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Readout: a product panel of mono key-value rows */
.pb-readout { border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-white); box-shadow: var(--pb-shadow); }
.pb-readout__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: var(--pb-border); }
.pb-readout__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: var(--pb-border-quiet); font-size: var(--pb-text-small); }
.pb-readout__row:last-child { border-bottom: 0; }
.pb-readout__big { padding: 18px 16px 6px; font-size: 56px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }

/* Meter: a row of square pixels, filled up to the value */
.pb-meter { display: inline-grid; grid-auto-flow: column; gap: 3px; }
.pb-meter i { width: 8px; height: 8px; background: var(--pb-line); }
.pb-meter i.on { background: var(--pb-teal); }
.pb-meter i.hot { background: var(--pb-magenta); }

/* Index list: numbered rows split by ink rules */
.pb-index { margin: 0; padding: 0; list-style: none; border-top: var(--pb-border); }
.pb-index li { display: grid; grid-template-columns: 80px 1fr 1.3fr; gap: 24px; padding: 28px 0; border-bottom: var(--pb-border); }
.pb-index h3 { margin: 0; font-size: var(--pb-text-h3); font-weight: 400; letter-spacing: -.01em; }
.pb-index p { margin: 0; color: var(--pb-soft); }
@media (max-width: 760px) { .pb-index li { grid-template-columns: 1fr; gap: 8px; } }

/* Stats */
.pb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-glass); }
.pb-stat { padding: 24px; border-right: var(--pb-border); }
.pb-stat:last-child { border-right: 0; }
.pb-stat__num { display: block; margin: 18px 0 6px; font-size: 48px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
@media (max-width: 760px) { .pb-stat { border-right: 0; border-bottom: var(--pb-border); } .pb-stat:last-child { border-bottom: 0; } }

/* Quote */
.pb-quote { margin: 0; }
.pb-quote p { margin: 0; font-size: clamp(26px, 3.2vw, 40px); font-weight: 300; letter-spacing: -.02em; line-height: 1.2; }
.pb-quote footer { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.pb-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-teal-soft); font-family: var(--pb-mono); font-size: 12px; }

/* Pricing */
.pb-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: var(--pb-gutter); align-items: stretch; }
.pb-plan { position: relative; display: flex; flex-direction: column; padding: 28px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-glass); }
.pb-plan--featured { background: var(--pb-white); box-shadow: var(--pb-shadow); }
.pb-plan--featured::before { content: ""; position: absolute; inset: -1px -1px auto; height: 4px; border-radius: var(--pb-radius) var(--pb-radius) 0 0; background: linear-gradient(90deg, var(--pb-magenta), var(--pb-coral)); }
.pb-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pb-plan__name { margin: 28px 0 6px; font-size: 26px; font-weight: 400; letter-spacing: -.02em; }
.pb-plan__desc { margin: 0; color: var(--pb-soft); font-size: var(--pb-text-small); }
.pb-plan__price { display: flex; align-items: baseline; gap: 8px; margin: 28px 0; padding-block: 18px; border-block: var(--pb-border-quiet); }
.pb-plan__price strong { font-size: 52px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.pb-plan__list { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; font-size: 15px; }
.pb-plan__list li { position: relative; padding: 6px 0 6px 20px; }
.pb-plan__list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; background: var(--pb-teal); }
.pb-table-wrap { overflow-x: auto; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-white); }
.pb-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; }
.pb-table th, .pb-table td { padding: 14px 18px; border-bottom: var(--pb-border-quiet); text-align: left; }
.pb-table thead th { background: var(--pb-paper); border-bottom: var(--pb-border); font-family: var(--pb-mono); font-size: var(--pb-text-label); font-weight: 400; letter-spacing: var(--pb-tracking-label); text-transform: uppercase; }
.pb-table tbody tr:last-child td, .pb-table tbody tr:last-child th { border-bottom: 0; }
.pb-table tbody th { font-weight: 400; }
.pb-table__yes::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--pb-teal); }
.pb-table__no { color: var(--pb-faint); }
.pb-faq { border-top: var(--pb-border); }
.pb-faq details { border-bottom: var(--pb-border); }
.pb-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 19px; cursor: pointer; list-style: none; }
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: var(--pb-border); border-radius: var(--pb-radius-xs); font-family: var(--pb-mono); font-size: 14px; }
.pb-faq details[open] summary::after { content: "\2212"; background: var(--pb-ink); color: var(--pb-white); }
.pb-faq details p { margin: 0 0 22px; max-width: 640px; color: var(--pb-soft); }

/* Article */
.pb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pb-prose { font-size: 18px; line-height: 1.75; }
.pb-prose > * + * { margin-top: 1.2em; }
.pb-prose h2 { margin: 2.2em 0 0; font-size: 34px; font-weight: 300; letter-spacing: -.02em; line-height: 1.15; }
.pb-prose h3 { margin: 1.8em 0 0; font-size: 22px; font-weight: 400; }
.pb-prose ul { padding-left: 0; list-style: none; }
.pb-prose li { position: relative; padding-left: 22px; }
.pb-prose li + li { margin-top: .5em; }
.pb-prose li::before { content: ""; position: absolute; left: 0; top: .66em; width: 7px; height: 7px; background: var(--pb-teal); }
.pb-prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--pb-magenta); font-size: 26px; font-weight: 300; letter-spacing: -.015em; line-height: 1.35; }
.pb-prose code { padding: 2px 6px; border: var(--pb-border-quiet); border-radius: var(--pb-radius-xs); background: var(--pb-paper); font-family: var(--pb-mono); font-size: .78em; }
.pb-prose figure { margin: 2em 0; }
.pb-prose figcaption { margin-top: 10px; }
.pb-callout { padding: 20px 22px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-white); box-shadow: inset 4px 0 0 var(--pb-teal); font-size: 16px; line-height: 1.6; }
.pb-callout .pb-label { display: block; margin-bottom: 8px; }
.pb-author { display: flex; align-items: center; gap: 12px; }
.pb-author strong { display: block; font-weight: 500; }
.pb-author--card { padding: 22px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-glass); }
.pb-post { display: block; text-decoration: none; }
.pb-post__thumb { position: relative; overflow: hidden; height: 170px; margin-bottom: 16px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-wash); }
.pb-post__title { margin: 10px 0 6px; font-size: 21px; font-weight: 400; letter-spacing: -.01em; line-height: 1.25; }
.pb-post__text { margin: 0; color: var(--pb-soft); font-size: 15px; }

/* Forms: square-ish white inputs with ink outlines and a teal focus ring */
.pb-form { display: grid; gap: 18px; }
.pb-field { display: grid; gap: 7px; }
.pb-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; }
.pb-input, .pb-select { width: 100%; height: 46px; padding: 0 14px; border: var(--pb-border); border-radius: var(--pb-radius); background: var(--pb-white); color: var(--pb-ink); font: 400 16px var(--pb-sans); outline: none; transition: box-shadow .2s var(--pb-ease); }
.pb-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pb-ink) 50%), linear-gradient(135deg, var(--pb-ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.pb-input:focus, .pb-select:focus { box-shadow: 0 0 0 3px var(--pb-teal-soft), 0 0 0 4px var(--pb-teal); }
.pb-input::placeholder { color: var(--pb-faint); }
.pb-input-wrap { position: relative; }
.pb-input-wrap .pb-input { padding-right: 76px; }
.pb-input-toggle { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border: var(--pb-border-quiet); border-radius: var(--pb-radius-xs); background: var(--pb-paper); font-family: var(--pb-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.pb-help { color: var(--pb-soft); font-size: 13px; }
.pb-error { color: #a8256f; font-size: 13px; }
.pb-field--error .pb-input { border-color: var(--pb-magenta); box-shadow: 0 0 0 3px var(--pb-magenta-soft); }
.pb-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--pb-soft); cursor: pointer; }
.pb-check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: var(--pb-border); border-radius: var(--pb-radius-xs); background: var(--pb-white); cursor: pointer; }
.pb-check input:checked { background: var(--pb-ink) linear-gradient(var(--pb-teal) 0 0) center / 8px 8px no-repeat; }
.pb-divider-text { display: flex; align-items: center; gap: 14px; color: var(--pb-faint); }
.pb-divider-text::before, .pb-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--pb-line); }
.pb-btn--social .pb-btn__text { flex: 1; gap: 10px; background: var(--pb-white); }
.pb-btn__letter { display: grid; place-items: center; width: 22px; height: 22px; border: var(--pb-border); border-radius: var(--pb-radius-xs); font-size: 11px; }

/* Footer */
.pb-footer { padding-block: 64px 32px; border-top: var(--pb-border); }
.pb-footer__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.pb-footer__cols ul { margin: 14px 0 0; padding: 0; list-style: none; }
.pb-footer__cols li + li { margin-top: 8px; }
.pb-footer__cols a { color: var(--pb-soft); text-decoration: none; }
.pb-footer__cols a:hover { color: var(--pb-ink); }
.pb-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: var(--pb-border-quiet); }
@media (max-width: 760px) { .pb-footer__cols { grid-template-columns: 1fr 1fr; } .pb-footer__cols > :first-child { grid-column: 1 / -1; } }

/* Entrance: a slow rise, off for reduced motion */
.pb-fade { animation: pb-rise 1.1s var(--pb-ease) both; }
.pb-fade--2 { animation-delay: .12s; }
.pb-fade--3 { animation-delay: .24s; }
@keyframes pb-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .pb-fade { animation: none; } }
