/* Homepage sections and the shared tool card. Values follow the old Tailwind classes. */

/* ── Section scaffolding ────────────────────────────────────────── */
.pb-home-section { padding: 80px 24px; }
.pb-home-section--line { border-top: 1px solid var(--border); }
.pb-home-section--alt { background: var(--bg2); }
.pb-home-wrap { max-width: 1280px; margin: 0 auto; }
.pb-home-head { margin-bottom: 40px; }
.pb-home-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pb-home-head--center { text-align: center; margin-bottom: 56px; }
.pb-eyebrow { margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.pb-eyebrow--dim { color: var(--text3); margin-bottom: 20px; }
.pb-home-h2 { font-family: var(--font-space); font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
.pb-home-h2--lg { font-size: 36px; line-height: 40px; }
.pb-home-sub { max-width: 448px; margin: 14px auto 0; font-size: 16px; line-height: 24px; color: var(--text2); }
.pb-home-more { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap; }

/* As the old Discover selects: inline styles there dropped the global arrow. */
.pb-select {
	appearance: none; -webkit-appearance: none;
	padding: 7px 12px; border-radius: 8px;
	background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
	font: 13px/1.5 var(--font-inter); cursor: pointer; outline: none;
}
.pb-select option { background-color: #1e1e24; color: var(--text); }

/* ── Hero ───────────────────────────────────────────────────────── */
.pb-hero { position: relative; overflow: hidden; padding: 144px 0 96px; text-align: center; }
.pb-hero__glow { position: absolute; pointer-events: none; }
.pb-hero__glow--a { top: -80px; left: 50%; transform: translateX(-50%); width: 800px; height: 500px; background: radial-gradient(ellipse at center, oklch(72% 0.19 52 / 0.08) 0%, transparent 70%); }
.pb-hero__glow--b { top: 100px; left: 20%; width: 300px; height: 300px; background: radial-gradient(ellipse at center, oklch(72% 0.19 198 / 0.05) 0%, transparent 70%); }
.pb-hero__inner { position: relative; max-width: 768px; margin: 0 auto; padding: 0 24px; }
.pb-hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 28px; border-radius: 9999px; border: 1px solid var(--border2); background: rgba(255,255,255,0.04); font-size: 13px; font-weight: 500; color: var(--text2); }
.pb-hero__badge .pb-icon { color: var(--accent); }
.pb-hero__title { margin-bottom: 20px; font-family: var(--font-space); font-size: clamp(40px, 7vw, 64px); line-height: 1.08; font-weight: 700; letter-spacing: -0.05em; color: var(--text); }
.pb-hero__title span { color: var(--accent); }
.pb-hero__sub { max-width: 512px; margin: 0 auto 40px; font-size: 18px; line-height: 1.625; color: var(--text2); }
.pb-hero__search { display: flex; align-items: center; gap: 12px; max-width: 576px; margin: 0 auto 48px; padding: 6px 16px; border-radius: 16px; background: var(--bg3); border: 1px solid var(--border2); transition: border-color 0.2s, box-shadow 0.2s; }
.pb-hero__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(72% 0.19 52 / 0.12); }
.pb-hero__search svg { flex-shrink: 0; color: var(--text3); }
.pb-hero__search input { flex: 1; min-width: 0; padding: 10px 0; background: transparent; border: 0; outline: none; font: 15px/1.5 var(--font-inter); color: var(--text); }
.pb-hero__search input::-webkit-search-cancel-button { display: none; }
.pb-hero__search input:focus-visible { outline: none; }
.pb-hero__search button { padding: 10px 20px; border-radius: 12px; border: 0; background: var(--accent); color: #000; font: 600 14px/20px var(--font-inter); cursor: pointer; transition: opacity 0.15s; }
.pb-hero__search button:hover { opacity: 0.85; }
.pb-hero__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.pb-hero__chip { padding: 6px 16px; border-radius: 9999px; border: 1px solid var(--border2); font-size: 13px; font-weight: 500; color: var(--text2); text-decoration: none; transition: all 0.15s; }
.pb-hero__chip:hover { background: rgba(255,255,255,0.06); color: var(--text); border-color: rgba(255,255,255,0.25); }
.pb-hero__chip.is-active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.pb-hero__stats { display: flex; justify-content: center; flex-wrap: wrap; }
.pb-hero__stat { padding: 0 32px; }
.pb-hero__stat + .pb-hero__stat { border-left: 1px solid var(--border); }
.pb-hero__stat-value { font-family: var(--font-space); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
.pb-hero__stat-label { margin-top: 2px; font-size: 13px; color: var(--text3); }

/* Shorter hero for inner pages (/tools/, /blog/). */
.pb-hero--page { padding: 128px 0 56px; }
.pb-hero--page .pb-hero__title { font-size: clamp(34px, 6vw, 54px); }
.pb-hero--page .pb-hero__sub { margin-bottom: 0; }

/* ── Latest articles ────────────────────────────────────────────── */
.pb-home-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pb-home-post { display: block; overflow: hidden; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border); text-decoration: none; transition: all 0.2s; }
.pb-home-post:hover { border-color: var(--border2); }
.pb-home-post__cover { position: relative; display: flex; align-items: center; justify-content: center; height: 160px; overflow: hidden; background: var(--bg3); border-bottom: 1px solid var(--border); }
.pb-home-post__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-home-post__cover:not(:has(img))::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 8px); }
.pb-home-post__placeholder { position: relative; padding: 0 20px; font-family: monospace; font-size: 12px; color: var(--text3); text-align: center; }
.pb-home-post__body { display: block; padding: 20px; }
.pb-home-post__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pb-home-post__cat { padding: 2px 8px; border-radius: 9999px; background: var(--accent-dim); color: var(--accent); font-size: 11px; line-height: 16px; font-weight: 600; }
.pb-home-post__time { font-size: 12px; color: var(--text3); }
.pb-home-post__title { display: block; margin-bottom: 16px; font-family: var(--font-space); font-size: 16px; line-height: 1.375; font-weight: 700; color: var(--text); }
.pb-home-post__byline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); }
.pb-home-post__initials { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg3); border: 1px solid var(--border2); font-size: 10px; font-weight: 600; color: var(--text3); }

/* ── About ──────────────────────────────────────────────────────── */
.pb-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: start; }
.pb-about--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.pb-about__title { margin-bottom: 20px; line-height: 1.25; }
.pb-about__text { margin: 0 0 16px; font-size: 15px; line-height: 1.75; color: var(--text2); }
.pb-about__text--last { margin-bottom: 28px; }
.pb-about__stats { display: flex; flex-wrap: wrap; gap: 12px; }
.pb-about__stat { padding: 14px 20px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--border); }
.pb-about__stat-value { font-family: var(--font-space); font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
.pb-about__stat-label { margin-top: 2px; font-size: 12px; color: var(--text3); }
.pb-team { display: flex; flex-direction: column; gap: 12px; }
.pb-team__member { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); text-decoration: none; transition: all 0.2s; }
.pb-team__member:hover { border-color: var(--border2); }
.pb-team__initials { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-dim); border: 1px solid var(--accent); font-family: var(--font-space); font-size: 14px; font-weight: 700; color: var(--accent); }
.pb-team__name { display: block; font-family: var(--font-space); font-size: 15px; font-weight: 700; color: var(--text); }
.pb-team__role { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; color: var(--accent); }
.pb-team__bio { display: block; font-size: 13px; color: var(--text3); }

/* ── FAQ ────────────────────────────────────────────────────────── */
.pb-home-faq { max-width: 672px; margin: 0 auto; }
.pb-home-faq .pb-home-head { margin-bottom: 48px; }
.pb-home-faq__list { display: flex; flex-direction: column; gap: 8px; }
.pb-home-faq__item { overflow: hidden; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); }
.pb-home-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; font-family: var(--font-space); font-size: 15px; font-weight: 600; color: var(--text); }
.pb-home-faq__item summary::-webkit-details-marker { display: none; }
.pb-home-faq__item summary svg { flex-shrink: 0; color: var(--text3); transition: transform 0.2s; }
.pb-home-faq__item[open] summary svg { transform: rotate(180deg); }
.pb-home-faq__answer { padding: 0 20px 20px; border-top: 1px solid var(--border); }
.pb-home-faq__answer p { margin: 16px 0 0; font-size: 14px; line-height: 1.625; color: var(--text2); }

/* ── Submit ─────────────────────────────────────────────────────── */
.pb-submit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
.pb-submit__title { margin-bottom: 16px; line-height: 1.25; }
.pb-submit__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pb-submit__perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); }
.pb-submit__check { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent); }
.pb-submit__card { padding: 28px; border-radius: 16px; background: var(--bg3); border: 1px solid var(--border); }

/* ── Newsletter ─────────────────────────────────────────────────── */
.pb-home-news { text-align: center; }
.pb-home-news__inner { max-width: 512px; margin: 0 auto; }
.pb-home-news__icon { width: 48px; height: 48px; margin: 0 auto 20px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent); }
.pb-home-news__title { margin-bottom: 10px; font-family: var(--font-space); font-size: 28px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
.pb-home-news__sub { margin: 0 0 28px; font-size: 15px; color: var(--text2); }

/* ── Responsive (Tailwind md/lg breakpoints, as on the old site) ── */
@media (max-width: 767px) {
	.pb-home-posts { grid-template-columns: minmax(0, 1fr); }
	.pb-about, .pb-submit { grid-template-columns: minmax(0, 1fr); gap: 64px; }
}
