:root {
  color-scheme: light;
  --bg: #f5f8fd;
  --bg-deep: #eaf0fb;
  --surface: #ffffff;
  --surface-soft: #f4f7fd;
  --surface-alt: #edf2fb;
  --ink: #10142a;
  --ink-soft: #3c4157;
  --muted: #6b7188;
  --soft: #4a5069;
  --line: #dde3f4;
  --line-strong: #c1cbe6;
  --blue: #2451e0;
  --blue-deep: #16308f;
  --blue-bright: #5c82ff;
  --blue-light: #e8edff;
  --blue-glow: rgba(36, 81, 224, 0.16);
  --green: #0c9464;
  --green-deep: #0a7350;
  --green-light: #d8f5e6;
  --gold: #b8842a;
  --gold-deep: #8f660f;
  --gold-light: #f7ecd0;
  --shadow: 0 1px 2px rgba(16, 20, 42, 0.05), 0 14px 32px rgba(16, 20, 42, 0.07);
  --shadow-md: 0 26px 54px rgba(16, 20, 42, 0.15), 0 10px 22px rgba(36, 81, 224, 0.13);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(52rem 32rem at 14% -6%, var(--blue-glow), transparent 62%),
    radial-gradient(40rem 28rem at 106% 2%, rgba(12, 148, 100, 0.1), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, var(--bg-deep) 100%);
  animation: ambientDrift 22s var(--ease-out) infinite alternate;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(1.6px 1.6px at center, rgba(16, 20, 42, 0.14) 100%, transparent 100%);
  background-size: 26px 26px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 62%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 62%);
  pointer-events: none;
}

body,
button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  border: 0;
}

button,
summary {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--blue);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--bg-deep);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(36, 81, 224, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 81, 224, 0.06) 1px, transparent 1px);
  background-size: 3.1rem 3.1rem;
  -webkit-mask-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 66%),
    linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.75) 12%, rgba(0, 0, 0, 0.75) 88%, transparent);
  mask-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 66%),
    linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.75) 12%, rgba(0, 0, 0, 0.75) 88%, transparent);
  opacity: 0.6;
  animation: gridDrift 34s linear infinite;
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright), var(--green));
  box-shadow: 0 0 16px rgba(36, 81, 224, 0.35);
  pointer-events: none;
}

[data-section] {
  scroll-margin-top: 1rem;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.65rem, 0) scale(0.985);
  transition:
    opacity 780ms var(--ease-out),
    transform 780ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="slide-left"] {
  transform: translate3d(1.8rem, 0, 0) scale(0.985);
}

[data-reveal="slide-right"] {
  transform: translate3d(-1.8rem, 0, 0) scale(0.985);
}

[data-reveal="lift"] {
  transform: translate3d(0, 2.25rem, 0) scale(0.965);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

main {
  width: min(calc(100% - 1rem), 1180px);
  margin: 0 auto;
  position: relative;
  z-index: 0;
}

.hero-section {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  min-height: calc(100vh - 4.25rem);
  min-height: calc(100svh - 4.25rem);
  padding: 2.75rem 0;
}

.hero-section::before,
.plan-page-hero::before,
.offers-section::before,
.calculator-section::before,
.earn-section::before {
  content: "";
  position: absolute;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-section::before {
  inset-block: 0;
  background:
    radial-gradient(60rem 40rem at 84% 6%, rgba(36, 81, 224, 0.17), transparent 62%),
    radial-gradient(46rem 32rem at -8% 96%, rgba(12, 148, 100, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 68%);
}

.hero-section::after {
  content: "";
  position: absolute;
  top: -4rem;
  right: -6rem;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  border: 1px solid rgba(36, 81, 224, 0.16);
  background: radial-gradient(circle, rgba(92, 130, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.plan-page {
  padding: 1rem 0 3rem;
}

.plan-page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  padding: 1rem 0 2.2rem;
}

.plan-page-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.plan-page-heading {
  display: grid;
  gap: 0.8rem;
}

.plan-page-heading h1 {
  max-width: 780px;
}

.plan-page-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.plan-page-heading strong {
  color: var(--ink);
}

.plan-page-section,
.plan-steps-list {
  display: grid;
  min-width: 0;
}

.plan-page-section {
  gap: 1rem;
}

.plan-steps-list {
  gap: 0.9rem;
}

.hero-copy,
.hero-visual,
.offers-grid,
.filters,
.offer-card,
.calculator-layout,
.calculator-card,
.plan-board,
.plan-list,
.plan-summary,
.detail-content {
  display: grid;
  min-width: 0;
}

.hero-copy {
  gap: 1rem;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.3em;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.6rem, 1rem + 6vw, 6.5rem);
  line-height: 0.98;
  font-weight: 800;
}

h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--blue);
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 0.9rem + 2.6vw, 2.85rem);
  line-height: 1.1;
  font-weight: 700;
}

h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.28;
  font-weight: 700;
}

p {
  margin: 0;
}

.hero-lead,
.offer-short,
.condition-list li,
.plan-summary p,
.plan-more-card p,
.detail-meta,
.load-status,
.site-footer {
  color: var(--soft);
  line-height: 1.6;
}

.hero-lead {
  max-width: 42rem;
  font-size: 1.06rem;
  color: var(--soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.primary-button,
.secondary-link,
.hero-form button,
.quick-amounts button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  overflow: hidden;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 260ms ease, transform 260ms var(--ease-spring);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.primary-button::before,
.hero-form button::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 45%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transition: transform 720ms var(--ease-out);
  pointer-events: none;
}

.primary-button:hover::before,
.hero-form button:hover::before {
  transform: translateX(360%) skewX(-18deg);
}

.primary-button,
.hero-form button {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #ffffff;
  border: 1px solid var(--blue-deep);
  box-shadow: 0 14px 30px rgba(36, 81, 224, 0.28);
}

.primary-button:hover,
.hero-form button:hover {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue) 100%);
  border-color: var(--blue);
  box-shadow: 0 20px 40px rgba(36, 81, 224, 0.34);
  transform: translateY(-3px);
}

.primary-button:active,
.hero-form button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(36, 81, 224, 0.2);
}

.secondary-link,
.quick-amounts button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--blue);
  transition: all 220ms ease;
}

.secondary-link:hover,
.quick-amounts button:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 10px 24px rgba(36, 81, 224, 0.14);
  transform: translateY(-2px);
}

.hero-actions a {
  min-width: 11rem;
  padding: 0 1rem;
}

.hero-points {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  max-width: 43rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-points::-webkit-scrollbar {
  display: none;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero-points span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.25rem var(--green-light);
}

.hero-visual {
  gap: 0.85rem;
  align-content: center;
  width: 100%;
  perspective: 1200px;
  transform: translate3d(var(--tilt-shift-x, 0), var(--tilt-shift-y, 0), 0)
    rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
  transition: transform 420ms var(--ease-out);
}

.hero-showcase-card {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.showcase-head,
.showcase-feature,
.showcase-item {
  position: relative;
}

.showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.showcase-head span,
.showcase-feature span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-head strong {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.showcase-feature {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.showcase-feature strong {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-size: 2.9rem;
  line-height: 1;
  color: var(--ink);
  font-weight: 600;
}

.showcase-feature p {
  max-width: 22rem;
  margin-top: 0.6rem;
  color: var(--soft);
  line-height: 1.5;
  font-size: 0.92rem;
}

.showcase-list {
  display: grid;
  counter-reset: showcase;
}

.showcase-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.8rem;
  min-width: 0;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(0.9rem);
  counter-increment: showcase;
}

.showcase-list .showcase-item:last-child {
  border-bottom: 0;
}

.showcase-item::before {
  content: counter(showcase, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--line-strong);
}

.hero-visual.is-visible .showcase-item {
  animation: showcaseIn 680ms var(--ease-out) forwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--item-delay, 0ms) + 160ms);
}

.showcase-copy {
  display: contents;
}

.showcase-copy strong {
  display: -webkit-box;
  grid-column: 1 / -1;
  max-width: none;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.showcase-reward {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.offers-section,
.calculator-section {
  position: relative;
  isolation: isolate;
  padding: 3.5rem 0;
}

.earn-section {
  position: relative;
  isolation: isolate;
  padding: 4.5rem 0;
}

.offers-section::before {
  inset-block: 0;
  border-block: 1px solid rgba(193, 203, 230, 0.65);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 253, 0.86)),
    repeating-linear-gradient(135deg, rgba(36, 81, 224, 0.04) 0 1px, transparent 1px 30px);
}

.calculator-section::before {
  inset-block: 0;
  border-block: 1px solid rgba(193, 203, 230, 0.65);
  background: linear-gradient(135deg, var(--bg-deep), rgba(255, 255, 255, 0.86) 62%);
}

.earn-section::before {
  inset-block: 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink) 55%, var(--blue-deep) 145%);
}

.earn-content {
  display: grid;
  justify-items: center;
  max-width: 640px;
  margin: 0 auto;
  gap: 1.1rem;
  text-align: center;
}

.earn-content .eyebrow {
  color: var(--blue-bright);
  justify-content: center;
}

.earn-content h2 {
  color: #ffffff;
}

.earn-content p:not(.eyebrow) {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
  line-height: 1.6;
}

.earn-content .primary-button {
  width: auto;
  min-width: 15rem;
  padding: 0 1.4rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-count,
label span,
.reward-row span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filters {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem;
  border: 1px solid rgba(221, 227, 244, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

label {
  display: grid;
  gap: 0.5rem;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  font-size: 0.95rem;
  transition: all 220ms ease;
}

input::placeholder {
  color: var(--muted);
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-light), 0 10px 22px rgba(36, 81, 224, 0.1);
}

.offers-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.offer-card,
.calculator-card,
.plan-summary,
.plan-item,
.plan-mini-step,
.plan-preview-header,
.plan-more-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.offer-card {
  position: relative;
  align-self: start;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "bank reward"
    "title title"
    "short short"
    "tags tags"
    "details cta";
  align-items: center;
  gap: 0.6rem 0.75rem;
  padding: 0.9rem;
  overflow: hidden;
  border-color: rgba(193, 203, 230, 0.85);
  transition: border-color 260ms ease, transform 320ms var(--ease-spring), box-shadow 320ms ease;
  transform-origin: center top;
}

.offer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright), var(--green));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

.offer-card::after {
  content: "";
  position: absolute;
  top: -42%;
  left: -68%;
  width: 42%;
  height: 190%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  opacity: 0;
  transition: transform 720ms var(--ease-out), opacity 260ms ease;
  pointer-events: none;
}

.offer-card > h3 {
  grid-area: title;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  font-size: 1.06rem;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.offer-card:hover {
  border-color: var(--blue);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.offer-card:hover::before {
  transform: scaleX(1);
}

.offer-card:hover::after {
  opacity: 0.8;
  transform: translateX(360%) rotate(18deg);
}

.offer-card.is-featured,
.plan-item.is-featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(184, 132, 42, 0.22), var(--shadow);
}

.offer-card.is-featured::before {
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(1);
}

.card-topline,
.reward-row,
.mini-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-topline {
  grid-area: bank;
  min-width: 0;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

.bank-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.logo-frame {
  position: relative;
  display: grid;
  width: 3.35rem;
  height: 3.15rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.bank-logo {
  display: block;
  position: absolute;
  inset: 0.46rem;
  width: calc(100% - 0.92rem);
  height: calc(100% - 0.92rem);
  object-fit: contain;
}

.bank-name {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reward-row {
  grid-area: reward;
  align-self: start;
  position: relative;
  z-index: 1;
  min-height: 3.1rem;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--green);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(216, 245, 230, 0.96), rgba(255, 255, 255, 0.8)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.reward-row strong {
  font-family: var(--font-serif);
  color: var(--green-deep);
  font-size: 1.3rem;
  line-height: 1;
  white-space: nowrap;
  font-weight: 600;
}

.reward-row span {
  max-width: 7.5rem;
  text-align: right;
  font-size: 0.72rem;
}

.offer-card .reward-row {
  justify-content: center;
}

.offer-card .reward-row span {
  display: none;
}

.offer-short {
  grid-area: short;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.48;
}

.category-tags {
  grid-area: tags;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.category-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.26rem 0.6rem;
  border: 1px solid rgba(36, 81, 224, 0.2);
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.offer-details {
  grid-area: details;
  align-self: start;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.offer-details summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.58rem 0.7rem;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 220ms ease;
}

.offer-details summary::marker {
  content: "";
}

.offer-details summary::-webkit-details-marker {
  display: none;
}

.offer-details summary::before {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 0.34rem solid transparent;
  border-bottom: 0.34rem solid transparent;
  border-left: 0.48rem solid currentColor;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.offer-details.is-open {
  border-color: rgba(36, 81, 224, 0.34);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(36, 81, 224, 0.05), 0 16px 28px rgba(16, 20, 42, 0.06);
}

.offer-details.is-open summary::before {
  transform: rotate(90deg);
}

.offer-details summary:hover {
  color: var(--blue-deep);
  background: rgba(36, 81, 224, 0.06);
}

.detail-content {
  gap: 0.8rem;
  padding: 0.85rem;
  color: var(--soft);
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 220ms ease 70ms, transform 260ms cubic-bezier(0.22, 1, 0.36, 1) 70ms;
}

.offer-details.is-open .detail-content {
  opacity: 1;
  transform: translateY(0);
}

.detail-content > strong {
  font-size: 0.88rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.condition-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.condition-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--soft);
  font-size: 0.95rem;
}

.condition-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--green);
}

.detail-meta {
  display: grid;
  gap: 0.55rem;
}

.detail-meta div {
  display: grid;
  gap: 0.2rem;
}

.detail-meta span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-meta strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-button {
  width: 100%;
  padding: 0 1rem;
}

.offer-card > .primary-button {
  grid-area: cta;
  align-self: start;
  width: auto;
  min-width: 8.6rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  white-space: nowrap;
}

.offers-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
}

.load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: min(100%, 18rem);
  padding: 0 1.15rem;
  border: 1px solid rgba(36, 81, 224, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue);
  font-family: var(--font-sans);
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform 240ms var(--ease-spring), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.load-more-button:hover {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 22px 42px rgba(36, 81, 224, 0.16);
  transform: translateY(-2px);
}

.load-more-button[hidden] {
  display: none;
}

.load-status {
  min-height: 1.3rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.calculator-section {
  position: relative;
}

.calculator-layout {
  gap: 1.2rem;
}

.calculator-card {
  align-content: start;
  gap: 1rem;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 253, 0.92)),
    linear-gradient(135deg, rgba(36, 81, 224, 0.05), transparent 50%);
}

.hero-form {
  display: grid;
  gap: 0.75rem;
}

.amount-field input {
  min-height: 3.55rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.quick-amounts button {
  min-width: 0;
  min-height: 2.5rem;
}

.plan-board,
.plan-list {
  gap: 0.85rem;
}

.plan-summary {
  gap: 0.75rem;
  padding: 1.2rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--blue-light), rgba(255, 255, 255, 0.95)),
    linear-gradient(90deg, var(--gold-light), transparent 55%);
}

.plan-summary > span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-summary strong {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--ink);
  font-weight: 600;
}

.progress-shell {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-shell span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright), var(--green));
  transition: width 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(36, 81, 224, 0.3);
}

.plan-preview-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
}

.plan-preview-header div {
  display: grid;
  gap: 0.15rem;
}

.plan-preview-header span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-preview-header strong,
.plan-more-card strong {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
}

.plan-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "bank"
    "title"
    "short"
    "tags"
    "reward"
    "details"
    "cta";
  align-items: start;
  gap: 1.2rem;
  padding: 1.25rem 1.25rem 1.25rem 3.8rem;
  transition: all 220ms ease;
}

.plan-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.92rem;
}

.plan-item > .card-topline {
  grid-area: bank;
}

.plan-item > h3 {
  grid-area: title;
}

.plan-item > .offer-short {
  grid-area: short;
}

.plan-item > .reward-row {
  grid-area: reward;
}

.plan-item > .category-tags {
  grid-area: tags;
}

.plan-item > .offer-details {
  grid-area: details;
  min-width: 0;
}

.plan-item > .primary-button {
  grid-area: cta;
  width: 100%;
  min-width: 0;
}

.plan-item .offer-short {
  -webkit-line-clamp: 2;
}

.plan-item .reward-row {
  padding: 0.85rem 0.95rem;
}

.plan-item .reward-row strong {
  font-size: 1.35rem;
}

.plan-item .reward-row span {
  color: var(--green-deep);
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-item .offer-details {
  width: 100%;
}

.plan-item .offer-details summary,
.mini-details summary {
  min-height: 2.5rem;
  padding: 0.7rem 0.9rem;
}

.plan-item .primary-button,
.mini-step-actions .primary-button {
  min-height: 2.7rem;
  margin-top: 0.4rem;
}

.plan-mini-step {
  position: relative;
  padding: 0.9rem 0.9rem 0.9rem 3.5rem;
}

.mini-step-main,
.mini-step-copy,
.plan-more-card div {
  display: grid;
  min-width: 0;
}

.mini-step-main {
  gap: 0.7rem;
}

.mini-step-top {
  display: block;
}

.mini-step-copy {
  gap: 0.3rem;
}

.mini-step-copy h3 {
  font-size: 0.98rem;
}

.mini-reward {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-deep);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(12, 148, 100, 0.32);
}

.mini-step-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 0.38fr);
  grid-template-areas: "details cta";
  align-items: stretch;
  gap: 0.6rem;
}

.mini-step-actions .offer-details {
  grid-area: details;
  min-width: 0;
}

.mini-step-actions .primary-button {
  grid-area: cta;
  min-width: 0;
}

.plan-more-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
}

.plan-page-step {
  padding-block: 1rem;
  background: #ffffff;
}

.plan-page-step .mini-step-copy {
  gap: 0.45rem;
}

.plan-more-card div {
  gap: 0.3rem;
}

.empty-state {
  padding: 1.5rem;
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-soft);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 1rem 1.6rem;
  border-top: 2px solid var(--blue);
  background: linear-gradient(160deg, var(--ink), var(--blue-deep) 140%);
  color: #c6cde6;
  font-size: 0.9rem;
}

.site-footer-inner {
  display: grid;
  gap: 2.2rem;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand strong {
  color: #ffffff;
}

.footer-brand .brand small {
  color: #9aa4cc;
}

.footer-brand p {
  max-width: 26rem;
  margin: 0.85rem 0 0;
  color: #a9b2d6;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-col strong {
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a {
  color: #c6cde6;
  font-size: 0.9rem;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.site-footer-bottom {
  width: min(100%, 1180px);
  margin: 1.6rem auto 0;
}

.site-footer-bottom p {
  max-width: 900px;
  margin: 0;
  color: #9aa4cc;
  font-size: 0.84rem;
  line-height: 1.6;
}

@media (min-width: 760px) {
  .site-footer-inner {
    grid-template-columns: minmax(15rem, 1.2fr) repeat(3, minmax(9rem, 1fr));
  }
}

@keyframes showcaseIn {
  from {
    opacity: 0;
    transform: translateY(0.9rem) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ambientDrift {
  from {
    background-position: 0% 0%, 100% 0%, 0% 0%;
  }

  to {
    background-position: 6% 4%, 94% 6%, 0% 0%;
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 3.1rem 3.1rem, 3.1rem 3.1rem;
  }
}

@media (min-width: 760px) {
  main {
    width: min(calc(100% - 2.5rem), 1180px);
  }

  .stats-strip {
    padding: 4rem 0;
  }

  .category-nav {
    padding: 6rem 0 1.5rem;
  }

  .offers-section,
  .calculator-section {
    padding: 5.5rem 0;
  }

  .how-it-works {
    padding: 4rem 0 6rem;
  }

  .earn-section {
    padding: 7rem 0;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 0.72fr);
    gap: 2.5rem;
    padding: 3.5rem 0;
  }

  .hero-actions a {
    width: auto;
  }

  .hero-points {
    flex-wrap: wrap;
    overflow: visible;
  }

  .hero-showcase-card {
    padding: 1rem;
  }

  .showcase-feature strong {
    font-size: 3.7rem;
  }

  .filters {
    grid-template-columns: minmax(13rem, 1fr) repeat(3, minmax(8.5rem, 0.34fr));
    align-items: end;
  }

  .offer-card {
    grid-template-columns: minmax(10rem, 0.36fr) minmax(0, 1fr) minmax(11.5rem, 0.36fr) minmax(9rem, 0.28fr);
    grid-template-areas:
      "bank title reward cta"
      "bank short reward cta"
      "bank tags reward cta"
      "bank details details details";
    gap: 0.6rem 1rem;
    min-height: 9.4rem;
    padding: 0.95rem 1rem;
  }

  .offer-card > h3 {
    align-self: end;
  }

  .offer-card .offer-short {
    align-self: start;
  }

  .offer-card > .primary-button {
    align-self: center;
    min-width: 9rem;
  }

  .offer-card .reward-row {
    align-self: center;
    min-height: 4rem;
  }

  .offer-card .offer-details {
    align-self: end;
  }

  .detail-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-item {
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.34fr);
    grid-template-areas:
      "bank reward"
      "title reward"
      "short reward"
      "tags reward"
      "details cta";
    gap: 0.7rem 1rem;
    align-items: center;
  }

  .plan-item .reward-row {
    align-self: center;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    min-height: 6.5rem;
    padding: 1rem;
  }

  .plan-item .reward-row strong {
    font-size: 1.65rem;
  }

  .plan-item .reward-row span {
    display: block;
    max-width: none;
    text-align: center;
    font-size: 0.7rem;
  }

  .plan-item .offer-details,
  .plan-item > .primary-button {
    align-self: stretch;
  }

  .plan-item > .primary-button {
    margin-top: 0;
  }

  .calculator-layout {
    grid-template-columns: minmax(18rem, 0.62fr) minmax(0, 1fr);
    align-items: start;
  }

  .hero-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .hero-form button {
    min-width: 10rem;
    min-height: 3.55rem;
    padding: 0 1.2rem;
  }

  .quick-amounts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .plan-more-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .plan-page-step {
    padding: 1.05rem 1.1rem 1.05rem 3.8rem;
  }

  .secondary-link {
    width: auto;
    white-space: nowrap;
  }
}

@media (min-width: 1080px) {
  .showcase-feature strong {
    font-size: 4.25rem;
  }

  .filters {
    grid-template-columns: minmax(20rem, 1fr) repeat(3, minmax(12rem, 0.28fr));
  }
}

@media (max-width: 560px) {
  .plan-page-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    max-width: none;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .showcase-list {
    display: none;
  }

  .offer-card.is-expanded {
    grid-template-areas:
      "bank reward"
      "title title"
      "short short"
      "tags tags"
      "details details"
      "cta cta";
  }

  .offer-card.is-expanded > .primary-button {
    width: 100%;
  }

  .hero-actions a,
  .section-heading {
    width: 100%;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .mini-step-actions {
    grid-template-columns: 1fr;
    grid-template-areas:
      "details"
      "cta";
  }

  .result-count {
    width: 100%;
  }

  .showcase-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .showcase-copy {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .showcase-copy strong {
    max-width: none;
  }

  .logo-frame {
    width: 3.15rem;
    height: 2.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.blog-body {
  background: var(--bg);
}

.site-header-inner,
.blog-main,
.article-main {
  width: min(calc(100% - 1rem), 1180px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(193, 203, 230, 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

body.is-plan-page .site-header {
  display: none;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.site-nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--blue-light);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(36, 81, 224, 0.16);
}

.site-header-cta {
  display: none;
  width: auto;
  flex: 0 0 auto;
  min-height: 2.4rem;
  padding: 0 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-toggle {
  position: relative;
  margin-left: auto;
}

.nav-toggle-button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  list-style: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.nav-toggle-button::-webkit-details-marker {
  display: none;
}

.nav-toggle-button::marker {
  content: "";
}

.nav-toggle-button svg {
  width: 1.3rem;
  height: 1.3rem;
}

.nav-toggle[open] .nav-toggle-button {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

.nav-toggle-icon-close {
  display: none;
}

.nav-toggle[open] .nav-toggle-icon-open {
  display: none;
}

.nav-toggle[open] .nav-toggle-icon-close {
  display: block;
}

.nav-toggle-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 0.15rem;
  width: max(15rem, 60vw);
  max-width: 20rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.nav-toggle-panel a {
  display: flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0 0.8rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 160ms ease, color 160ms ease;
}

.nav-toggle-panel a:hover,
.nav-toggle-panel a[aria-current="page"] {
  background: var(--blue-light);
  color: var(--blue);
}

.nav-toggle-panel .primary-button {
  width: auto;
  margin-top: 0.4rem;
}

@media (min-width: 760px) {
  .site-nav {
    display: flex;
  }

  .site-header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }
}

.stats-strip {
  position: relative;
  isolation: isolate;
  padding: 3rem 0;
}

.stats-strip::before {
  content: "";
  position: absolute;
  left: 50%;
  z-index: -1;
  width: 100vw;
  inset-block: 0;
  transform: translateX(-50%);
  background: linear-gradient(120deg, var(--ink) 0%, var(--blue-deep) 62%, var(--blue) 140%);
  pointer-events: none;
}

.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 1.5rem;
}

.stat-item {
  display: grid;
  gap: 0.25rem;
}

.stat-item strong {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.stat-item > span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
}

.category-nav {
  padding: 4.5rem 0 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.category-tile {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(193, 203, 230, 0.85);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 220ms ease, transform 260ms var(--ease-spring), box-shadow 260ms ease;
}

.category-tile:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-tile-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
}

.category-tile-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.category-tile h3 {
  font-size: 1.1rem;
}

.category-tile p {
  margin: 0;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.category-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
}

.category-tile:hover .category-tile-link {
  color: var(--blue-deep);
}

.how-it-works {
  padding: 3rem 0 4.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  counter-reset: step;
}

.step-tile {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  counter-increment: step;
}

.step-tile::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--blue);
}

.step-tile h3 {
  font-size: 1rem;
}

.step-tile p {
  margin: 0;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .stats-strip-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .site-header-inner,
  .blog-main,
  .article-main {
    width: min(calc(100% - 2.5rem), 1180px);
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.category-pill,
.blog-category-filter button,
.blog-pagination a,
.blog-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.category-pill:hover,
.blog-category-filter button:hover,
.blog-category-filter button.is-active,
.blog-pagination a:hover,
.blog-pagination button:hover,
.blog-pagination a[aria-current="page"],
.blog-pagination button[aria-current="page"] {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

.blog-hero,
.article-hero {
  display: grid;
  gap: 1rem;
  padding: 2.4rem 0 2.6rem;
}

.blog-hero h1,
.article-hero h1 {
  max-width: 17ch;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--blue);
}

.blog-hero-actions,
.article-hero-actions,
.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.blog-hero-actions a,
.article-hero-actions a,
.article-cta-actions a {
  width: auto;
  min-width: 11rem;
  padding-inline: 1rem;
}

.blog-controls-panel,
.article-answer-box,
.article-cta-block,
.article-toc,
.article-offer-card,
.article-faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.blog-controls-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.blog-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blog-list-section,
.hub-main,
.article-offers,
.related-articles,
.article-faq,
.faq-section {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.blog-grid.compact {
  grid-template-columns: minmax(0, 1fr);
}

.blog-card {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(193, 203, 230, 0.85);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.blog-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: -0.15rem -0.15rem 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.035);
}

.blog-card-top,
.blog-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.blog-card-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.blog-card-icon img {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.category-pill {
  min-height: 1.9rem;
  padding: 0.25rem 0.6rem;
  color: var(--blue);
  background: var(--blue-light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card h2,
.blog-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.28;
}

.blog-card h2 a,
.blog-card h3 a,
.article-content a,
.article-meta a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.blog-body a.primary-button,
.article-content a.primary-button,
.article-hero-actions a.primary-button,
.article-cta-actions a.primary-button,
.article-offer-card a.primary-button,
.blog-hero-actions a.primary-button {
  color: #ffffff;
  text-decoration: none;
}

.blog-body a.primary-button:visited,
.article-content a.primary-button:visited,
.article-hero-actions a.primary-button:visited,
.article-cta-actions a.primary-button:visited,
.article-offer-card a.primary-button:visited,
.blog-hero-actions a.primary-button:visited {
  color: #ffffff;
}

.blog-card p,
.article-content p,
.article-content li,
.article-faq p,
.affiliate-note {
  color: var(--soft);
  line-height: 1.72;
}

.blog-card-meta,
.article-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.article-main {
  padding-bottom: 3rem;
}

.article-hero-media {
  display: block;
  overflow: hidden;
  margin: 0.35rem 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-alt);
  box-shadow: var(--shadow);
}

.article-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 26rem;
  object-fit: cover;
}

.article-hero-media figcaption {
  margin: 0;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  font-weight: 700;
}

.article-hero-media a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-meta {
  gap: 0.75rem;
}

.affiliate-note {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(12, 148, 100, 0.26);
  border-radius: 12px;
  background: rgba(216, 245, 230, 0.62);
  font-size: 0.95rem;
}

.article-layout {
  display: grid;
  gap: 1.2rem;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.article-toc strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.article-toc ol {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  color: var(--muted);
  line-height: 1.4;
}

.article-toc ol li {
  position: relative;
  padding-left: 1.5rem;
  counter-increment: toc;
}

.article-toc ol li::before {
  content: counter(toc) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--blue);
}

.article-toc a {
  color: var(--ink-soft);
}

.article-toc a:hover {
  color: var(--blue);
}

.article-content {
  display: grid;
  gap: 1.4rem;
  min-width: 0;
}

.article-content.wide {
  max-width: 850px;
}

.article-content section {
  display: grid;
  gap: 0.8rem;
  scroll-margin-top: 1rem;
}

.article-content h2 {
  font-size: 1.65rem;
}

.article-content h3 {
  margin-top: 0.2rem;
  font-size: 1.18rem;
}

.article-content h4 {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
}

.article-lead-paragraph {
  font-size: 1.1rem;
  color: var(--ink-soft) !important;
}

.article-answer-box {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, var(--blue-light), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.94rem;
}

.article-table th,
.article-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: var(--ink);
  font-weight: 700;
  background: var(--surface-alt);
}

.article-offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.article-offer-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
}

.article-offer-card h3 {
  font-size: 1.02rem;
}

.article-offer-points {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-offer-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-offer-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--green);
}

.article-offer-card strong {
  font-family: var(--font-serif);
  color: var(--green-deep);
  font-size: 1.3rem;
  font-weight: 600;
}

.article-offer-card .primary-button {
  min-height: 2.55rem;
}

.article-cta-block {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  background:
    linear-gradient(135deg, rgba(216, 245, 230, 0.85), var(--blue-light)),
    #ffffff;
}

.article-faq details {
  padding: 0;
  overflow: hidden;
}

.article-faq summary {
  padding: 1rem;
  color: var(--ink);
  font-weight: 800;
}

.article-faq summary:hover {
  color: var(--blue);
}

.article-faq p {
  padding: 0 1rem 1rem;
}

@media (min-width: 760px) {
  .blog-controls-panel {
    grid-template-columns: minmax(18rem, 0.55fr) minmax(0, 1fr);
    align-items: end;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(13rem, 0.28fr) minmax(0, 1fr);
  }

  .article-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-grid.compact,
  .article-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .article-table {
    display: block;
    overflow-x: auto;
  }

  .blog-hero h1,
  .article-hero h1 {
    max-width: none;
  }
}
