/* ===== HOME ===== (views/index.ejs; merged into app.css PAGES by T9) */

/* Member state: body gets .is-logged-in, sales sections hide, welcome block shows */
.welcome-back { display: none; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-10); padding: var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2); }
.welcome-back strong { display: block; margin-bottom: var(--sp-1); font-size: var(--fs-17); font-weight: 600; line-height: var(--lh-snug); color: var(--text); }
.is-logged-in .welcome-back { display: flex; }
.is-logged-in .not-subscribe-section { display: none; }

/* Hero: content height, 48px top padding, two columns from 900px */
.hero { padding: var(--sp-16) 0; }
.hero-grid { display: grid; gap: var(--sp-12); align-items: start; }
.hero-grid > * { min-width: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-8); }
.hero h1 { max-width: 24ch; margin-bottom: var(--sp-5); font-size: var(--fs-44); font-weight: 650; line-height: var(--lh-tight); letter-spacing: -0.02em; color: var(--text); }
.hero h1 .grad { color: var(--text); }
.hero .lead { margin-bottom: var(--sp-8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.hero-note { margin-top: var(--sp-4); font-size: var(--fs-13); line-height: 1.45; color: var(--text-3); }
@media (min-width: 900px) {
	.hero { padding: var(--sp-24) 0; }
	.hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--sp-16); }
}

/* Ranking sample: plain bordered data panel, no window chrome */
.terminal { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2); }
.terminal-bar { display: flex; align-items: center; height: 40px; padding: 0 var(--sp-4); background: var(--surface-2); border-bottom: 1px solid var(--border-strong); }
.terminal-bar i { display: none; }
.terminal-bar span { font-family: var(--font-mono); font-size: var(--fs-11); font-weight: 600; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0; }
.terminal-body { overflow-x: auto; font-family: var(--font-mono); font-size: var(--fs-13); color: var(--text-2); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0; white-space: nowrap; }
.terminal-body > div { display: flex; align-items: center; gap: var(--sp-2); height: var(--row-h); padding: 0 var(--sp-4); border-bottom: 1px solid var(--border); }
.terminal-body > div:last-child { border-bottom: 0; }
.terminal-body .ok { color: var(--gain); }
.terminal-body .warn { color: var(--warning); }
.terminal-body .vio { color: var(--text-2); }
.terminal-body .dim { color: var(--text-3); }
.terminal-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border-strong); }
.terminal-stats > div { min-width: 0; padding: var(--sp-5); border-left: 1px solid var(--border); }
.terminal-stats > div:first-child { border-left: 0; }
.terminal-stats small { display: block; margin-bottom: var(--sp-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-11); font-weight: 600; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.terminal-stats b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-20); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0; }
@media (min-width: 900px) {
	.terminal-stats > div { padding: var(--sp-6); }
}
@media (min-width: 600px) {
	.terminal-stats b { font-size: var(--fs-24); }
}

/* Trust strip: one ruled row of mono items */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.trust-item { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-family: var(--font-mono); font-size: var(--fs-13); line-height: 1.45; color: var(--text-2); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0; }
.trust-item svg { flex: none; width: 16px; height: 16px; color: var(--text-3); }
@media (min-width: 900px) {
	.trust-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Features: the free tool card's pill sits after the title text */
.card-feature h3 .pill { margin-left: var(--sp-2); vertical-align: middle; }

/* From setup to snipe */
.split { display: grid; gap: var(--sp-12); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; gap: var(--sp-20); }
}

/* Latest posts */
/* test/seo.test.js matches <section class="section" id="blog"> exactly, so .section-flush cannot go on this element */
#blog { padding-top: 0; }
.post-grid { display: grid; gap: var(--sp-6); }
.post-grid .post-card { display: flex; flex-direction: column; }
.post-grid .post-card h3 { margin-bottom: var(--sp-4); }
.post-grid .post-card h3 a { text-decoration: none; }
.post-grid .post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.post-grid .post-category { align-self: flex-start; }
.post-grid .post-more { margin-top: auto; }
@media (min-width: 600px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-8); }
}
