* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f8fb;
    color: #1a1a1a;
}

.section {
    margin-bottom: 3rem;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 1.5rem 0;
}

.site-header {
    background: #111827;
    color: #fff;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.primary-nav a {
    color: #e5e7eb;
    margin-right: 1rem;
    text-decoration: none;
    font-weight: 500;
}

.primary-nav a:hover {
    color: #fff;
}

.cta {
    background: #f97316;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.hero {
    text-align: center;
    padding: 3rem 0;
}

.input-control {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    background: #fff;
}

.search-panel {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
    color: #0f172a;
}

.search-keywords {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.keyword-chip {
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.keyword-chip:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.search-results {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.category-header {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.category-children {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0.75rem 0.85rem;
    background: #fff;
    border-radius: 0.9rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    align-items: center;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ff7c5c, #ff476f);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 15px 30px rgba(255, 118, 108, 0.35);
    transition: all 0.15s ease, box-shadow 0.2s ease;
}

.category-faqs {
    margin-top: 2.5rem;
}

.category-faqs__panel {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.category-faqs__intro {
    margin: 0.35rem 0 0;
    color: #475467;
}

.category-faqs__body {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #1f2937;
}

.category-faqs__body h3,
.category-faqs__body h4 {
    margin-bottom: 0.35rem;
}

.category-faqs__body p {
    margin: 0;
    line-height: 1.6;
}

.category-pill:hover,
.category-pill:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(255, 118, 108, 0.45);
    outline: none;
}

.search-help {
    margin: 0;
    color: #475467;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.section-heading {
    margin-bottom: 1.75rem;
}

.section-heading h2 {
    margin: 0.25rem 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-heading p {
    margin: 0.25rem 0;
    color: #475467;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}

.offer-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.offer-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.offer-card__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offer-card__brand img,
.offer-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
    background: #eef2ff;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #312e81;
}

.offer-card__merchant {
    margin: 0;
    font-weight: 600;
}

.offer-card__trust {
    font-weight: 700;
    color: #0f172a;
}

.offer-card__stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #475467;
    font-size: 0.92rem;
}

.tag {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn {
    border: none;
    border-radius: 0.65rem;
    padding: 0.75rem 1.35rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #ff7c5c, #ff476f);
    color: #fff;
    box-shadow: 0 15px 30px rgba(255, 118, 108, 0.35);
}

.btn:hover {
    transform: translateY(-1px);
}

.merchant-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.merchant-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.merchant-card__header {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.merchant-card__header img,
.merchant-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: contain;
    background: #eef2ff;
    padding: 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #312e81;
    font-size: 0.9rem;
}

.merchant-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.merchant-card__stats div {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.merchant-card__stats dt {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #475467;
}

.merchant-card__stats dd {
    margin: 0.2rem 0 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.merchant-card__categories {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #475467;
}

.merchant-card__categories li {
    background: #eef2ff;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.blog-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.blog-card__row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.blog-card__media {
    flex: 0 0 140px;
    min-height: 120px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card__media--placeholder {
    padding: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #475467;
}

.blog-card__excerpt {
    flex: 1;
    margin: 0;
    color: #1f2937;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-card__meta {
    color: #475467;
    font-size: 0.85rem;
}

.section-cta {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.merchant-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .merchant-layout {
        grid-template-columns: 1fr;
    }
}

.merchant-layout__sidebar {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}

.merchant-layout__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.merchant-card__identity {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.merchant-card__logo {
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #312e81;
    overflow: hidden;
}

.merchant-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-card__url {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
    font-size: 0.95rem;
}

.merchant-card__tagline {
    margin: 0.5rem 0;
    color: #475467;
}

.merchant-card__summary {
    margin: 0;
    color: #1f2937;
}

.merchant-card__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.merchant-card__metrics div {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 0.9rem;
}

.merchant-card__metrics dt {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475467;
}

.merchant-card__metrics dd {
    margin: 0.35rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.merchant-panel {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.07);
}

.merchant-panel__subhead {
    margin: 0;
    color: #475467;
}

.merchant-faqs__content {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
}

@media (max-width: 900px) {
    .merchant-page {
        grid-template-columns: 1fr;
    }
}

.merchant-page__col {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}

.merchant-page__col--content {
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.merchant-profile {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.merchant-profile__logo {
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #312e81;
    overflow: hidden;
}

.merchant-profile__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-profile__link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
    font-size: 0.95rem;
}

.merchant-profile__tagline {
    margin: 0.5rem 0 0;
    color: #475467;
}

.merchant-profile__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.merchant-profile__stats div {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 0.85rem;
}

.merchant-profile__stats dt {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475467;
}

.merchant-profile__stats dd {
    margin: 0.35rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.offer-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.offer-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.offer-modal__dialog {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.18);
    padding: 2rem;
    position: relative;
    text-align: center;
}

.offer-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.75rem;
    line-height: 1;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.offer-modal__close:hover {
    color: #0f172a;
}

.offer-modal__merchant {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c3aed;
    font-size: 0.85rem;
}

.offer-modal__title {
    margin: 0.25rem 0 1rem;
}

.offer-modal__copy {
    margin-top: 1rem;
}

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-banner button {
    margin-left: 1rem;
    background: #f97316;
    border: none;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
    }
    .primary-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .offer-card__stats {
        flex-direction: column;
    }
}
