:root {
  --ink: #102a43;
  --ink-2: #243b53;
  --muted: #627d98;
  --line: #dce6ee;
  --paper: #f5f8fb;
  --white: #ffffff;
  --mint: #39c995;
  --mint-dark: #087f5b;
  --yellow: #ffca3a;
  --coral: #ff6b5f;
  --shadow: 0 18px 50px rgba(16, 42, 67, 0.1);
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Avenir Next", Avenir, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; background: var(--white); padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  height: 72px;
  padding: 0 clamp(1rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(220, 230, 238, .8);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--font-heading); font-weight: 700; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--mint); color: var(--ink); font-weight: 800; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
.site-header nav { display: flex; align-items: center; gap: clamp(.85rem, 2.5vw, 2rem); }
.site-header nav a { text-decoration: none; font-size: .92rem; color: var(--ink-2); }
.site-header nav a:hover { color: var(--mint-dark); }
.header-action { border: 0; border-radius: 999px; background: var(--ink); color: white; padding: .68rem 1rem; cursor: pointer; font-weight: 700; }
.header-action:hover { background: var(--ink-2); }

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 7vw, 8rem);
  background-color: var(--ink);
  background-image: radial-gradient(circle at 12% 18%, rgba(57, 201, 149, .18), transparent 28%), radial-gradient(circle at 90% 90%, rgba(255, 202, 58, .12), transparent 25%);
  color: white;
  overflow: hidden;
}
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 1rem; color: var(--mint-dark); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #a7f3d8; }
.live-dot { width: .48rem; height: .48rem; background: var(--mint); display: inline-block; border-radius: 50%; box-shadow: 0 0 0 6px rgba(57,201,149,.13); margin-right: .5rem; }
.hero h1, .section-heading h2, .method-section h2 { font-family: var(--font-heading); letter-spacing: -.055em; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); line-height: .95; margin: 0; max-width: 820px; }
.hero-lead { color: #d9e2ec; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; max-width: 680px; margin: 1.6rem 0 2rem; }
.hero-search { display: flex; align-items: center; gap: .7rem; max-width: 680px; background: white; padding: .48rem; padding-left: 1rem; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.hero-search span { color: var(--muted); font-size: 1.5rem; transform: rotate(-20deg); }
.hero-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: .85rem .2rem; color: var(--ink); }
.hero-search button { border: 0; cursor: pointer; border-radius: 10px; padding: .85rem 1.4rem; background: var(--mint); color: var(--ink); font-weight: 800; }
.hero-search:focus-within { outline: 3px solid rgba(57,201,149,.4); }
.search-hint { color: #9fb3c8; font-size: .82rem; }
.text-trigger { color: #c6f7e5; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

.deadline-card { background: var(--white); color: var(--ink); border-radius: 22px; padding: clamp(1.35rem, 3vw, 2rem); box-shadow: 0 26px 70px rgba(0,0,0,.25); transform: rotate(1deg); position: relative; }
.deadline-card::before { content: ""; position: absolute; width: 72px; height: 8px; border-radius: 999px; background: var(--yellow); left: 50%; top: -4px; transform: translateX(-50%); }
.deadline-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; font-weight: 800; }
.deadline-badge { background: #fff2cc; color: #8a5b00; border-radius: 999px; padding: .36rem .66rem; }
.deadline-brand { color: var(--mint-dark); font-weight: 800; margin: 2.2rem 0 .45rem; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.deadline-card h2 { font-family: var(--font-heading); font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.08; letter-spacing: -.04em; margin: 0; }
.deadline-card > p:not(.deadline-brand) { color: var(--muted); line-height: 1.55; min-height: 3rem; }
.deadline-card > button { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; padding: 1.1rem 0 0; display: flex; justify-content: space-between; color: var(--ink); font-weight: 800; cursor: pointer; }

.dashboard { max-width: 1240px; margin: -38px auto 0; padding: 0 1rem; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 3; }
.dashboard article { background: var(--white); min-height: 112px; padding: 1.35rem 1.5rem; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.dashboard article:first-child { border-radius: 16px 0 0 16px; }
.dashboard article:last-child { border-radius: 0 16px 16px 0; }
.stat-number { font-family: var(--font-heading); font-weight: 800; letter-spacing: -.05em; font-size: 2rem; }
.stat-label { color: var(--muted); font-size: .83rem; margin-top: .2rem; }

.catalog-section { max-width: 1240px; margin: 0 auto; padding: clamp(5rem, 9vw, 8rem) 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2, .method-section h2 { font-size: clamp(2rem, 4.5vw, 3.7rem); line-height: 1; margin: 0; }
.section-heading > p { max-width: 420px; color: var(--muted); line-height: 1.55; margin: 0; }
.quick-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.filter-chip { border: 1px solid var(--line); background: var(--white); color: var(--ink-2); border-radius: 999px; padding: .65rem 1rem; cursor: pointer; font-weight: 700; font-size: .88rem; }
.filter-chip:hover { border-color: var(--mint); }
.filter-chip.active { border-color: var(--ink); background: var(--ink); color: white; }
.filter-panel { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: .8rem; background: #eaf0f5; border-radius: 14px; padding: .8rem; }
.filter-panel label { background: white; border: 1px solid transparent; border-radius: 9px; padding: .55rem .75rem; display: flex; flex-direction: column; gap: .2rem; }
.filter-panel label:focus-within { border-color: var(--mint-dark); }
.filter-panel label span { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.filter-panel select { border: 0; background: white; color: var(--ink); outline: 0; font-weight: 600; cursor: pointer; }
.reset-button { border: 0; border-radius: 9px; padding: 0 1.1rem; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem .1rem .7rem; color: var(--muted); font-size: .82rem; }
.results-bar p { margin: 0; }
.results-bar strong { color: var(--ink); }

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.offer-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.15rem; min-height: 326px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c4d4df; }
.offer-card.expired { opacity: .68; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: .8rem; }
.brand-initial { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: #e9fbf4; color: var(--mint-dark); font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; flex: 0 0 auto; }
.reward-badge { background: var(--ink); color: white; border-radius: 8px; padding: .45rem .65rem; font-weight: 800; font-size: .76rem; text-align: right; }
.offer-card.urgent .reward-badge { background: var(--coral); }
.offer-category { color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: .66rem; font-weight: 800; margin: 1rem 0 .35rem; }
.offer-card h3 { font-family: var(--font-heading); font-size: 1.18rem; letter-spacing: -.025em; line-height: 1.25; margin: 0; }
.card-requirement { color: var(--ink-2); line-height: 1.45; font-size: .88rem; margin: .7rem 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta-list { display: grid; gap: .5rem; margin-top: auto; }
.meta-row { display: grid; grid-template-columns: 18px 1fr; gap: .45rem; align-items: start; color: var(--muted); font-size: .78rem; }
.meta-row span:first-child { color: var(--ink); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .9rem; }
.status-pill { display: inline-flex; align-items: center; gap: .35rem; color: var(--mint-dark); font-size: .72rem; font-weight: 800; }
.status-pill::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: var(--mint); }
.status-pill.ending { color: #b54708; }
.status-pill.ending::before { background: var(--coral); }
.status-pill.expired { color: var(--muted); }
.status-pill.expired::before { background: #9fb3c8; }
.details-button { border: 0; background: none; color: var(--ink); font-weight: 800; cursor: pointer; padding: .35rem; }
.details-button:hover { color: var(--mint-dark); }
.empty-state { text-align: center; padding: 5rem 1rem; background: white; border: 1px dashed #bcccdc; border-radius: 16px; }
.empty-state > span { font-size: 2.6rem; }
.empty-state h3 { margin-bottom: .35rem; }
.empty-state p { color: var(--muted); }
.empty-state button { background: var(--ink); color: white; border: 0; border-radius: 8px; padding: .7rem 1rem; cursor: pointer; }

.app-section { max-width: 1240px; margin: 0 auto; padding: 0 1rem clamp(5rem, 9vw, 8rem); }
.app-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.app-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -.35rem; }
.app-heading h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.05em; margin: 0; }
.app-heading > p:last-child { color: var(--muted); line-height: 1.55; margin: 0; justify-self: end; max-width: 470px; }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.app-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.app-card:hover { transform: translateY(-2px); border-color: var(--mint-dark); }
.app-monogram { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: white; font-family: var(--font-heading); font-weight: 800; }
.app-card strong { font-family: var(--font-heading); }
.app-card strong small { color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.app-card p { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: .22rem 0 0; }
.muted-card .app-monogram { background: #829ab1; }

.method-section { background: var(--mint); color: var(--ink); padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 8vw, 8rem); }
.method-section .eyebrow { color: #075f45; }
.method-section > div > p:last-child { line-height: 1.6; max-width: 480px; }
.method-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(16,42,67,.25); }
.method-list li { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; border-bottom: 1px solid rgba(16,42,67,.25); padding: 1.2rem 0; }
.method-list li > span { font-family: var(--font-heading); font-size: .8rem; font-weight: 800; }
.method-list strong { font-family: var(--font-heading); font-size: 1.05rem; }
.method-list p { margin: .3rem 0 0; opacity: .78; }
.source-note { max-width: 1000px; margin: clamp(4rem, 8vw, 7rem) auto; padding: 0 1rem; display: grid; grid-template-columns: 58px 1fr; gap: 1.2rem; align-items: start; }
.source-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #e9fbf4; color: var(--mint-dark); font-size: 1.4rem; font-weight: 800; }
.source-note h2 { font-family: var(--font-heading); margin: .1rem 0 .5rem; letter-spacing: -.03em; }
.source-note p { color: var(--muted); line-height: 1.6; margin: 0; }

footer { background: var(--ink); color: #bcccdc; padding: 3rem clamp(1rem, 7vw, 8rem); display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 2rem; align-items: center; font-size: .8rem; }
.footer-brand { color: white; }
footer p { margin: 0; line-height: 1.55; }
footer p:last-child { text-align: right; }

dialog { width: min(720px, calc(100% - 1.5rem)); max-height: min(88vh, 840px); border: 0; border-radius: 20px; padding: 0; color: var(--ink); box-shadow: 0 30px 100px rgba(16,42,67,.36); }
dialog::backdrop { background: rgba(9, 30, 48, .68); backdrop-filter: blur(5px); }
.dialog-shell { padding: clamp(1.25rem, 4vw, 2.2rem); position: relative; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; border: 1px solid var(--line); background: white; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.45rem; line-height: 1; }
.dialog-eyebrow { color: var(--mint-dark); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: .72rem; margin: 0 3rem .45rem 0; }
.dialog-shell h2 { font-family: var(--font-heading); font-size: clamp(1.7rem, 4vw, 2.65rem); line-height: 1.06; letter-spacing: -.045em; margin: 0 3rem .8rem 0; }
.dialog-reward { display: inline-block; background: var(--ink); color: white; border-radius: 8px; padding: .45rem .7rem; font-weight: 800; margin-bottom: 1.4rem; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.dialog-field { border: 1px solid var(--line); border-radius: 11px; padding: .85rem; }
.dialog-field.wide { grid-column: 1 / -1; }
.dialog-field span { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .3rem; }
.dialog-field p { margin: 0; line-height: 1.48; font-size: .9rem; }
.verification-note { background: #fff8df; color: #704c00; border-radius: 10px; padding: .85rem 1rem; margin: 1rem 0 0; font-size: .82rem; line-height: 1.5; }
.dialog-actions { display: grid; grid-template-columns: 1fr auto auto; gap: .65rem; margin-top: 1.2rem; }
.primary-link, .secondary-action { border-radius: 9px; padding: .8rem 1rem; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.primary-link { background: var(--mint); color: var(--ink); }
.secondary-action { border: 1px solid var(--line); background: white; color: var(--ink); }
.primary-link:hover { background: #56d7a7; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .deadline-card { max-width: 560px; transform: none; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-panel { grid-template-columns: repeat(3, 1fr); }
  .reset-button { grid-column: 1 / -1; padding: .4rem; }
  .method-section { grid-template-columns: 1fr; }
  .app-heading { grid-template-columns: 1fr; }
  .app-heading .eyebrow { grid-column: auto; }
  .app-heading > p:last-child { justify-self: start; }
  footer { grid-template-columns: 1fr; }
  footer p:last-child { text-align: left; }
}

@media (max-width: 680px) {
  .site-header { height: 62px; }
  .site-header nav a { display: none; }
  .header-action { padding: .55rem .75rem; font-size: .78rem; }
  .brand { font-size: .92rem; }
  .brand-mark { width: 31px; height: 31px; }
  .hero { padding-top: 3.7rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .hero-search { display: grid; grid-template-columns: auto 1fr; }
  .hero-search button { grid-column: 1 / -1; width: 100%; }
  .dashboard { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
  .dashboard article { min-height: 96px; padding: 1rem; }
  .dashboard article:first-child { border-radius: 14px 0 0 0; }
  .dashboard article:nth-child(2) { border-radius: 0 14px 0 0; }
  .dashboard article:last-child { border-radius: 0 0 14px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-panel label { min-height: 60px; }
  .reset-button { grid-column: auto; padding: .7rem; }
  .results-bar { align-items: start; flex-direction: column; }
  .offer-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .offer-card { min-height: 300px; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-field.wide { grid-column: auto; }
  .dialog-actions { grid-template-columns: 1fr; }
  .source-note { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
