/* home.css: the home page (index.html). Shared tokens and the site header are in styles/base.css. */

.page { padding-top: 32px; gap: 32px; }
.page-header h1 { font-size: 2rem; }
.page-header .lead { font-size: 1.125rem; }

.section-title {
    margin: 0 0 12px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted);
}

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 12px; }
.tool h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.tool p { margin: 0; color: var(--muted); flex: 1; }
.tool .button { align-self: flex-start; min-width: 0; }
.tool-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.featured { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.badge {
    font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px;
    background: var(--accent); color: var(--accent-text); white-space: nowrap;
}

/* Learn card: one row, text then button */
.learn-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px 24px; }
.learn-text { display: grid; gap: 4px; }

/* How it works */
.how h2 { margin: 0 0 12px; font-size: 1.375rem; }
.how p { margin: 0 0 12px; max-width: 72ch; }
.how a { color: var(--accent); }
.how-steps { margin: 0 0 16px; padding-left: 24px; display: grid; gap: 12px; max-width: 72ch; }
.how-steps li::marker { font-weight: 700; color: var(--accent); }
.ref { font-size: 0.75em; line-height: 0; }
.ref a { text-decoration: none; padding: 0 1px; }
.ref a:hover { text-decoration: underline; }
.notes-title {
    margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid var(--border);
    font-size: 0.875rem; font-weight: 700; color: var(--muted);
}
.footnotes { margin: 0; padding-left: 24px; display: grid; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.footnotes li { overflow-wrap: anywhere; }
.footnotes li:target { color: var(--text); }
.formula { white-space: nowrap; }

.status-note { margin: 0; font-size: 0.875rem; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
    .tool-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .page { padding-top: 24px; gap: 24px; }
    .page-header h1 { font-size: 1.75rem; }
    .page-header .lead { font-size: 1rem; }
    .card { padding: 16px; }
    .learn-card { flex-direction: column; align-items: stretch; }
    .learn-card .button { align-self: flex-start; }
}
