/* DealSift - shared styles */
:root {
  --bottle: #0f3d2e;     /* brand green */
  --bottle-2: #1c5a45;
  --mint: #cfeedd;
  --sticker: #ffd23f;    /* UK "reduced" sticker yellow */
  --ink: #14201b;
  --mute: #55625c;
  --paper: #f6f7f3;
  --card: #ffffff;
  --line: #dfe4dd;
  --focus: #1f6feb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eee9; --mute: #a3b0a9; --paper: #0d1712; --card: #14221b;
    --line: #26372e; --mint: #1d3a2d; --bottle-2: #7fd1a8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Atkinson Hyperlegible", system-ui, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 680px; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--mute); max-width: 36em; }
.num { font-variant-numeric: tabular-nums; }

/* header */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: .97rem; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* hero */
.hero { padding: 24px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 11em; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; padding: 13px 20px; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: 2px solid var(--bottle); background: var(--bottle); color: #fff;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
@media (prefers-color-scheme: dark) { .btn { border-color: var(--bottle-2); background: var(--bottle-2); color: #06140d; } }

/* the price trace - the one memorable thing */
.trace {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 18px; position: relative;
}
.trace-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.trace-name { font-weight: 700; margin: 0; }
.trace-sub { color: var(--mute); font-size: .9rem; margin: 2px 0 0; }
.sticker {
  background: var(--sticker); color: #1a1500; font: 800 1rem/1.15 "Bricolage Grotesque", sans-serif;
  padding: 10px 12px; border-radius: 6px; transform: rotate(3deg); text-align: center; flex: none;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.sticker b { display: block; font-size: 1.5rem; }
.trace svg { margin: 14px 0 6px; width: 100%; height: auto; }
.trace .band { fill: var(--mint); }
.trace .line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.trace .axis { fill: var(--mute); font-size: 13px; }
.trace .today { fill: var(--sticker); stroke: var(--ink); stroke-width: 2; }
.trace-foot { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: var(--mute); flex-wrap: wrap; }
.trace-foot strong { color: var(--ink); }
.example-tag { font-size: .8rem; color: var(--mute); margin-top: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .trace .line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s .2s ease-out forwards; }
  .trace .today { opacity: 0; animation: pop .35s 1.7s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { from { opacity: 0; transform: scale(.4); transform-origin: center; } to { opacity: 1; } }
}

/* sections */
section { padding: 64px 0; }
.band-green { background: var(--bottle); color: #eaf5ef; }
.band-green .lead, .band-green .mute { color: #b9d6c7; }
@media (prefers-color-scheme: dark) { .band-green { background: #10291f; } }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid rgba(255,255,255,.25); padding-top: 14px; }
.steps li::before { content: counter(s); font: 800 2rem/1 "Bricolage Grotesque", sans-serif; color: var(--sticker); display: block; margin-bottom: 10px; }
.steps p { color: #c9e0d4; margin: 0; font-size: .98rem; }

.tiers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 28px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.tier.skip { background: transparent; border-style: dashed; }
.tier .label { display: inline-block; font-weight: 700; font-size: .95rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.tier.top .label { background: var(--sticker); color: #1a1500; }
.tier.good .label { background: var(--mint); color: var(--ink); }
.tier.skip .label { border: 1px solid var(--line); color: var(--mute); }
.tier p { color: var(--mute); margin: 0; }

.follow { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.follow ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.follow li a, .follow li span {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 700;
}
.follow li span { color: var(--mute); font-weight: 400; }
.follow small { font-weight: 400; color: var(--mute); }

/* inner pages */
.page { padding: 32px 0 72px; }
.page h2 { margin-top: 1.6em; font-size: 1.5rem; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.note { background: var(--card); border-left: 4px solid var(--sticker); padding: 14px 18px; border-radius: 6px; margin: 1.4em 0; }

.kicker { margin: 0 0 8px; font-weight: 700; }
.kicker a { text-decoration: none; color: var(--bottle-2); }
.byline { color: var(--mute); font-size: .92rem; margin: -4px 0 1.6em; }
.small { color: var(--mute); font-size: .9rem; }
.sources { margin-top: 2.4em; border-top: 1px solid var(--line); padding-top: .6em; }
.sources h2 { font-size: 1.1rem; }
.sources li { font-size: .92rem; }
.stats-list { display: grid; gap: 12px; margin: 1.2em 0 1.6em; }
.stats-list div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.stats-list b { font: 800 1.7rem/1 "Bricolage Grotesque", sans-serif; color: var(--bottle-2); }
.guide-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.guide-list a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; }
.guide-list b { display: block; font-size: 1.08rem; }
.guide-list span { color: var(--mute); }
@media (max-width: 520px) { .stats-list div { grid-template-columns: 1fr; gap: 4px; } }

.intro { padding: 2px 0 0; }
.intro p { margin: 0; color: var(--mute); font-size: 1.02rem; }
.intro strong { color: var(--ink); }
.deals-sec { padding: 8px 0 56px; }
.deals-h { margin: 0; }

.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 20px; }
.deal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.deal-art { background: var(--bottle); color: var(--mint); display: flex; align-items: center; gap: 18px; padding: 22px; min-height: 150px; position: relative; }
.deal-ico { width: 92px; height: 96px; flex: none; }
.deal-brand { font: 800 2.4rem/1 "Bricolage Grotesque", sans-serif; color: #fff; letter-spacing: -0.03em; }
.deal-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.deal-src { margin: 0 0 6px; font-size: .88rem; color: var(--mute); font-weight: 700; }
.deal h3 { font-size: 1.12rem; margin: 0 0 8px; }
.deal-why { color: var(--mute); margin: 0 0 16px; font-size: .97rem; }
.deal-btn { margin-top: auto; text-align: center; }
.deal-ad { font-size: .82rem; color: var(--mute); margin: 10px 0 0; }
.deals-more { margin-top: 18px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .deal-art { background: #10291f; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: .92rem; color: var(--mute); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot p { margin: 0; max-width: 44em; }

@media (max-width: 860px) {
  .hero .wrap, .follow { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  section { padding: 48px 0; }
}
