/* Landing page. Shared tokens, controls and page shell live in base.css. */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 24px 0 48px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 5.2vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-wrap: balance;
}

.hero-sub {
    margin: 16px 0 0;
    max-width: 42ch;
    font-size: 17px;
    color: var(--text-2);
}

.hero-search {
    display: flex;
    gap: 8px;
    margin-top: 28px;
    max-width: 440px;
}
.hero-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    font-size: 16px;
}
.hero-search input::placeholder { color: var(--text-3); }
.hero-search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.hero-search .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }

/* Live national figures beside the headline */
.today {
    padding: 20px 20px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.today h2 { margin: 0 0 8px; font-size: 14px; font-weight: 550; color: var(--text-2); }

.today-list { margin: 0; padding: 0; list-style: none; }
.today-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 0 12px;
    padding: 10px 0;
}
.today-list li + li { border-top: 1px solid var(--border); }
.today-fuel { font-weight: 550; }
.today-price { font-size: 24px; font-weight: 600; text-align: right; }
.today-low { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); }
.today-low .price { color: var(--price-1); font-weight: 600; }
.today-foot { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }

/* ---------- sections ---------- */

.cheapest, .features { padding: 40px 0; border-top: 1px solid var(--border); }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cheapest h2, .features h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.02em;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 550;
    text-decoration: none;
}
.section-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.cheapest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.cheapest h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--text-2); }

.cheap-list { margin: 0; padding: 0; list-style: none; }
.cheap-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    margin: 0 -8px;
    border-radius: 10px;
    text-decoration: none;
}
.cheap-row:hover { background: var(--surface); }
.cheap-main { display: flex; flex-direction: column; min-width: 0; }
.cheap-name, .cheap-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cheap-name { font-weight: 550; }
.cheap-meta { font-size: 13px; color: var(--text-2); }

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.feature-list li { display: flex; gap: 14px; }
.feature-list .ph {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 22px;
}
.feature-list h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 600; }
.feature-list h3 a { text-decoration: none; }
.feature-list h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.feature-list p { margin: 0; color: var(--text-2); max-width: 46ch; }

.source-note { margin: 32px 0 0; font-size: 13px; color: var(--text-3); }

@media (max-width: 760px) {
    .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 8px; }
    .hero-sub { font-size: 16px; }
    .cheapest-grid, .feature-list { grid-template-columns: minmax(0, 1fr); }
}
