/* Price Pylon styles. Brand colours live in :root, swap them here. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/space-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* Price Pylon brand palette (see brand/brand_guide.md and brand/palette/palette.css) */
  --brand: #0B1F3A;        /* Pylon Navy: header, headings, text */
  --brand-2: #1D4ED8;      /* Grid Blue: links and "Get deal" buttons */
  --accent: #22C55E;       /* Drop Green: graphics and badges on navy only, never text on light */
  --deal: #15803D;         /* Saving Green: new price and saving text */
  --deal-dark: #116932;
  --cta: #1D4ED8;          /* Grid Blue for deal buttons */
  --cta-dark: #1A44BD;
  --ad: #4B5B73;           /* Slate: ad / affiliate label background */
  --bg: #F3F6FA;           /* Cloud */
  --card: #FFFFFF;
  --text: #0B1F3A;
  --muted: #4B5B73;        /* Slate */
  --line: #D9E0EA;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: 'Space Grotesk', "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--brand-2); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

.site-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 1.25rem; }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--brand); font-weight: 800; }
.logo-text strong { color: var(--accent); }
.main-nav { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.main-nav a { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 8px; white-space: nowrap; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.14); }

main { padding-top: 20px; padding-bottom: 40px; min-height: 60vh; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; color: var(--brand); margin: .3em 0 .4em; }
h2 { font-size: 1.35rem; color: var(--brand); margin-top: 1.6em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 70ch; }
.small { font-size: .85rem; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

.hero { padding: 8px 0 4px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 16px 0; }
.cat-tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--text); }
.cat-tile strong { display: block; color: var(--brand); font-size: 1.1rem; }
.cat-tile span { color: var(--muted); font-size: .9rem; }
.cat-tile:hover { border-color: var(--brand-2); }

.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.deal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.deal-card h3 { font-size: 1rem; margin: 2px 0; line-height: 1.35; }
.deal-card h3 a { color: var(--text); text-decoration: none; }
.deal-card h3 a:hover { color: var(--brand-2); text-decoration: underline; }
.card-top, .deal-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-img img { border-radius: 8px; width: 100%; object-fit: contain; aspect-ratio: 16/10; background: #fff; }
.ad-label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--ad); border-radius: 4px; padding: 2px 6px; }
.cat-pill { font-size: .75rem; background: #eef2f7; color: var(--brand); padding: 2px 8px; border-radius: 999px; text-decoration: none; }
.price-row { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.price-now { font-size: 1.3rem; font-weight: 800; color: var(--deal); }
.price-was { color: var(--muted); text-decoration: line-through; }
.saving { background: var(--deal); color: #fff; font-weight: 700; font-size: .85rem; padding: 2px 8px; border-radius: 999px; }
.meta { margin: 0; font-size: .85rem; color: var(--muted); }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(1.12); }
.btn-secondary { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-deal { background: var(--cta); font-size: 1.1rem; width: 100%; text-align: center; padding: 14px 18px; margin: 8px 0; }
.btn.disabled { background: #9aa3ae; cursor: not-allowed; }

.deal-page { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.deal-layout { display: grid; gap: 18px; }
@media (min-width: 760px) { .deal-layout { grid-template-columns: 1fr 380px; } .deal-layout > .deal-box:only-child { grid-column: 1 / -1; max-width: 520px; } }
.deal-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fbfcfd; }
.price-row.big .price-now { font-size: 2rem; }
.saving.big { display: inline-block; font-size: 1rem; margin: 6px 0; }
.retailer { margin: 6px 0; }
.deal-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .92rem; margin: 12px 0 0; }
.deal-facts dt { color: var(--muted); }
.deal-facts dd { margin: 0; }
.expired-banner { background: #fff4e5; border: 1px solid #f0c27a; color: #6b4300; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.is-expired .price-now { color: var(--muted); }
.verdict { border-left: 4px solid var(--accent); padding-left: 12px; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guide-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.guide-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.guide-card p { margin: 0 0 6px; }

.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: 820px; }
.prose p, .prose li { max-width: 72ch; }
.prose blockquote { margin: 1em 0; padding: 8px 14px; border-left: 4px solid var(--brand-2); background: #f2f6fb; }
.prose code { background: #eef2f7; padding: 1px 4px; border-radius: 4px; }

.notice { background: #eef4fb; border: 1px solid #c9daef; padding: 10px 14px; border-radius: 10px; }
.notice.ok { background: #e8f6ee; border-color: #a9dcbf; }
.notice.err { background: #fdecec; border-color: #f0b3b3; }

.cta-band { display: grid; gap: 18px; background: var(--brand); color: #fff; border-radius: var(--radius); padding: 20px; margin-top: 28px; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band .btn { background: var(--accent); color: var(--brand); }
.cta-band a:not(.btn) { color: #fff; }
@media (min-width: 760px) { .cta-band { grid-template-columns: 1fr 1fr; } }

form label { display: block; font-weight: 600; margin: 10px 0 4px; }
input[type=email], input[type=text], input:not([type]), textarea { width: 100%; padding: 10px 12px; border: 1px solid #c4ccd6; border-radius: 8px; font: inherit; background: #fff; color: var(--text); }
.contact-form { max-width: 560px; }
.contact-form .btn { margin-top: 12px; }
.newsletter .nl-row { display: flex; gap: 8px; }
.newsletter .nl-row input { flex: 1; min-width: 0; }
.newsletter .consent { font-weight: 400; font-size: .85rem; }
.newsletter .consent input { margin-right: 4px; }
.hp { position: absolute; left: -5000px; height: 1px; overflow: hidden; }

.site-footer { background: var(--brand); color: #F3F6FA; padding: 24px 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .small { color: #aab4c0; }
.disclosure-line { background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; }
.footer-grid { display: grid; gap: 20px; margin: 16px 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } }
.footer-h { font-weight: 700; color: #fff; margin: 0 0 4px; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin: 2px 0; }

/* Brand typography and logo */
h1, h2, h3, .price-now, .logo { font-family: var(--font-display); letter-spacing: -0.01em; }
.logo img { display: block; height: 30px; width: auto; }
.btn-deal:hover { background: var(--cta-dark); }
.tagline { font-family: var(--font-display); font-weight: 600; color: var(--deal); margin: 0; font-size: 1.05rem; }
.site-footer .btn { background: var(--accent); color: var(--brand); }
.site-footer .btn:hover, .cta-band .btn:hover { background: #4ADE80; }
