/* Local artwork provides the atmosphere; all content and controls remain HTML. */
.homepage {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background: radial-gradient(ellipse at 85% 60%, #17403955, transparent 48%), radial-gradient(ellipse at 0 85%, #132f3966, transparent 45%), var(--paper);
}
.home-backdrop { position: absolute; z-index: -1; inset: 0 0 auto; height: max(45rem, calc(100svh + 5rem)); background-size: cover; background-position: 75% top; pointer-events: none; mask-image: linear-gradient(#000 60%, #000c 74%, #0005 88%, transparent 100%); }
.home-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--paper), #06141b66 22%, transparent 52%), linear-gradient(90deg, #03131d66, #03131d11 47%, transparent 72%); }
.homepage .site-header { position: relative; background: linear-gradient(#02101977, transparent); border: 0; }
.homepage main { padding-block: 0; }
.homepage h1, .homepage h2, .homepage h3 { overflow-wrap: break-word; }
.homepage h2 { margin: 0; padding: 0; border: 0; font: 2rem/1.15 var(--serif); }
.home-hero { display: grid; grid-template-rows: 1fr auto auto; gap: clamp(1.25rem, 2.5vh, 2rem); min-height: calc(100svh - 5.05rem); padding: clamp(1.5rem, 4vh, 3rem) 2.5rem 0.75rem; }
.hero-copy { align-self: center; width: 61%; max-width: 44rem; }
.homepage h1 { max-width: 39rem; margin: 0; font: clamp(2.8rem, 4.7vw, 4.5rem)/1.06 var(--serif); letter-spacing: -0.04em; text-shadow: 0 3px 22px #001019; }
.homepage h1 span { color: #b6f0ce; }
.homepage .tracking-form { margin: 2rem 0 0; }
.homepage .tracking-controls { flex-direction: row; gap: 0.65rem; align-items: center; padding: 0.55rem 0.65rem 0.55rem 1.3rem; border: 1px solid #cfb38b; border-radius: 3rem; background: #061721e8; box-shadow: 0 8px 32px #0005, inset 0 1px #ffffff0d; }
.homepage .tracking-controls:focus-within { outline: 2px solid var(--green); outline-offset: 4px; }
.search-icon, .submit-icon, .empty-symbol svg { display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-icon { width: 1.4rem; height: 1.4rem; color: #e5d1ab; }
.submit-icon { width: 1.8rem; height: 1.8rem; stroke-width: 2; }
.homepage .tracking-controls input { border: 0; background: transparent; color: var(--ink); padding: 0.7rem 0.3rem; font-size: 1rem; }
.homepage .tracking-controls input:focus-visible { outline: none; }
.homepage .tracking-controls input::placeholder { color: #b8c2c5; }
.homepage .tracking-controls button { display: grid; place-items: center; padding: 0; width: 3rem; height: 3rem; border: 1px solid #c5ffe5; border-radius: 50%; color: #123e3b; background: var(--green); box-shadow: 0 0 22px #91edca44; line-height: 0; }
.homepage .tracking-controls button:hover { background: #c3ffe6; }
.homepage .retailer-help { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.25rem; margin: 0.8rem 0 0 1rem; font-size: 0.75rem; color: #e1e8e6; text-shadow: 0 1px 5px #000; }
.status-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--green); margin-right: 0.4rem; }
.homepage .field-validation-error { margin-top: 0.8rem; color: #ffddce; border-color: #f4aa86; background: #412923; border-radius: 0.35rem; }
.home-deals { position: relative; margin-top: 0; padding: 1.5rem 0; scroll-margin-top: 1.5rem; }
.home-deals::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, #c7a77a88, #91edca22 60%, transparent); }
.home-deals + .home-deals { margin-top: 1rem; }
.section-heading { margin-bottom: 1.25rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-heading a { flex-shrink: 0; font-size: 0.8rem; text-decoration: none; }
.home-empty { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1.1rem; border: 1px solid #b4ccbe22; border-radius: 0.65rem; background: linear-gradient(90deg, #19342f66, #06141b55); }
.empty-symbol { color: var(--gold); }
.empty-symbol svg { width: 1.3rem; height: 1.3rem; }
.home-empty p { margin: 0; font-size: 0.85rem; }
.home-empty a { margin-left: auto; font-size: 0.8rem; flex-shrink: 0; }
.homepage .deal-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.2rem; }
.homepage .deal-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1.6rem; border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--card-background); box-shadow: var(--card-shadow); }
.homepage .deal-card:hover { border-color: #819d8d; }
.deal-topline { display: flex; align-items: center; gap: 0.8rem; color: #bdcec9; font-size: 0.7rem; }
.discount-badge { padding: 0.25rem 0.8rem; border-radius: 2rem; background: var(--green); color: #07352b; font-size: 0.9rem; font-weight: 750; white-space: nowrap; box-shadow: 0 0 18px #91edca16; }
.homepage .deal-retailer { margin: 1.5rem 0 0.55rem; color: var(--gold); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.homepage .deal-card h3 { margin: 0 0 0.75rem; font: 1.4rem/1.35 var(--serif); }
.homepage .deal-card h3 a { color: var(--ink); text-decoration: none; }
.homepage .deal-card h3 a:hover { text-decoration: underline; }
.homepage .deal-variant { margin: 0 0 0.8rem; font-size: 0.8rem; }
.homepage .deal-card dl { margin-top: auto; padding-top: 0.5rem; }
.homepage .deal-card .current-price { margin: 0.3rem 0 0.7rem; font: 500 2.25rem var(--serif); font-variant-numeric: tabular-nums; }
.homepage .deal-card .current-price span { font: 0.75rem system-ui, sans-serif; }
.homepage .comparison-source { font-size: 0.7rem; }
.homepage .reference-price { margin-top: 0.25rem; font: 1rem var(--serif); }
.homepage .deal-additional { font-size: 0.75rem; margin: 0.6rem 0 0; }
.homepage .stock-unavailable { color: #f1cfa8; }
.deal-checked { margin: 1.25rem 0 0; border-top: 1px solid var(--border); padding-top: 0.8rem; font-size: 0.68rem; color: var(--muted); }
.deal-checked time { display: inline; }
.deal-open { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; font-size: 0.85rem; text-decoration: none; }
.deal-open span { font-size: 1.3rem; }
/* A lone result fills the row with a generous two-column composition. */
@media (min-width: 48.01rem) {
    .homepage .deal-card:only-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 28%); column-gap: 3rem; padding: 2rem 2.5rem; }
    .deal-card:only-child > * { grid-column: 1; }
    .homepage .deal-card:only-child h3 { max-width: 42rem; font-size: 1.8rem; margin-bottom: 0.5rem; }
    .homepage .deal-card:only-child dl { grid-column: 2; grid-row: 1 / span 6; margin: 0; padding: 1.25rem 0 1.25rem 2.5rem; border-left: 1px solid #809b8144; align-self: center; }
    .homepage .deal-card:only-child .current-price { font-size: 3rem; }
    .deal-card:only-child .deal-checked { grid-row: 7; }
    .deal-card:only-child .deal-open { grid-column: 2; grid-row: 7; margin: 1.25rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--border); }
    .homepage .deal-card:first-child:nth-last-child(2), .homepage .deal-card:first-child:nth-last-child(2) ~ .deal-card { padding: 2rem; }
    .homepage .deal-card:first-child:nth-last-child(2) h3, .homepage .deal-card:first-child:nth-last-child(2) ~ .deal-card h3 { font-size: 1.65rem; }
}
.home-guide { position: relative; isolation: isolate; display: grid; grid-template-columns: 9rem minmax(0, 1fr); align-items: center; gap: 2rem; padding: 1.25rem 0 0.25rem; background: linear-gradient(90deg, transparent, #06141b44 35%, #06141b22 80%, transparent); text-shadow: 0 1px 8px #03131d; }
.guide-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; opacity: 0.2; mask-image: linear-gradient(90deg, #0009, transparent 65%); pointer-events: none; }
.home-guide::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, #c7a77a66, #91edca33, transparent); }
.guide-heading { text-shadow: 0 2px 14px #000; }
.homepage .guide-heading h2 { max-width: 9rem; font-size: 1.4rem; }
.guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: guide; }
.guide-steps li { position: relative; counter-increment: guide; min-width: 0; }
.guide-steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 3.25rem; right: 0; height: 1px; background: linear-gradient(90deg, #91edca77, #c7a77a22); }
.guide-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 0.7rem; border: 1px solid #c7a77a77; border-radius: 50%; background: #051a2266; color: #b7efd7; box-shadow: 0 0 0 4px #91edca06; }
.guide-icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.homepage .guide-steps h3 { margin: 0; font: 1.1rem/1.4 var(--serif); }
.guide-steps h3::before { content: counter(guide, decimal-leading-zero); margin-right: 0.45rem; color: var(--gold); font: 0.65rem system-ui, sans-serif; }
.guide-steps p { margin: 0.35rem 0 0; color: #c6d3d3; font-size: 0.78rem; line-height: 1.55; }
.homepage .hero-next { display: grid; place-items: center; justify-self: center; margin-block: clamp(1rem, 2.5vh, 1.5rem) clamp(1.5rem, 4vh, 2.5rem); width: 2.75rem; height: 2.75rem; border: 1px solid #c7a77a55; border-radius: 50%; color: #d9c6a7; background: #06141b22; }
.hero-next svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.homepage .hero-next:hover { color: var(--green); border-color: var(--green); background: #06141b66; }
.homepage .hero-next:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
    html:has(.homepage) { scroll-behavior: smooth; }
}
@media (max-width: 70rem) {
    .home-hero { padding-inline: 1rem; }
    .hero-copy { width: 68%; }
    .home-backdrop { background-position: 60% top; }
    .home-guide { grid-template-columns: 1fr; gap: 0.85rem; }
    .homepage .guide-heading h2 { max-width: none; font-size: 1.25rem; }
}
@media (max-width: 48rem) {
    .home-backdrop { height: 47rem; background-position: 86% top; mask-image: linear-gradient(#000 55%, #000a 75%, transparent); }
    .home-backdrop::after { background: linear-gradient(0deg, var(--paper), #06141b88 32%, #06141b11 78%), linear-gradient(90deg, #03131d88, #03131d11); }
    .home-hero { min-height: 0; grid-template-rows: auto auto auto; gap: 1.75rem; padding: 13rem 0 1.25rem; }
    .hero-copy { width: 100%; }
    .homepage h1 { max-width: 28rem; font-size: 3rem; }
    .section-heading { align-items: start; flex-wrap: wrap; gap: 0.65rem; }
    .homepage h2 { font-size: 1.65rem; }
    .home-empty { flex-wrap: wrap; gap: 0.6rem; }
    .home-empty a { margin: 0 0 0 1.9rem; }
    .homepage .deal-card { padding: 1.5rem; }
    .home-guide { padding-top: 1rem; }
    .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
    .guide-steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 30rem) {
    .homepage h1 { font-size: clamp(2.3rem, 9.5vw, 2.85rem); }
    .homepage .tracking-controls { gap: 0.3rem; padding-left: 0.85rem; }
    .search-icon { display: none; }
    .homepage .deal-card h3 { font-size: 1.3rem; }
    .homepage .guide-steps h3 { font-size: 1rem; }
}
