/* Ratecrest marketing pages — full file (S62 Block 32, clean rewrite). */

:root {
    --mkt-royal: #15006D;
    --mkt-aurora: #3A43D1;
    --mkt-mint: #5BE6C9;
    --mkt-purple: #7c3aed;
    --mkt-green: #16a34a;
    --mkt-orange: #ea580c;
    --mkt-red: #dc2626;
    --mkt-gold: #fbbf24;
    --mkt-text: #15171f;
    --mkt-text-soft: #4a4d63;
    --mkt-muted: #6B7280;
    --mkt-border: #E5E7EB;
    --mkt-bg-soft: #F8F9FF;
    --mkt-bg-tint: #F0F3FF;
}

/* Reset standard section wrapper padding so our full-bleed sections work */
.mkt-section-wrap > .container,
.mkt-section-wrap .section-inner { padding: 0 !important; max-width: none !important; }
.mkt-section-wrap { padding: 0 !important; }

.mkt {
    color: var(--mkt-text);
    line-height: 1.6;
    font-size: 1rem;
}

.mkt__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mkt-section { padding: 4.5rem 0; position: relative; }
.mkt-section--tight  { padding: 3rem 0; }
.mkt-section--loose  { padding: 6rem 0; }
.mkt-section--soft   { background: var(--mkt-bg-soft); }
.mkt-section--tint   { background: var(--mkt-bg-tint); }

/* ============================================================
   HERO — headline on top (full width), photo composition below
   ============================================================ */

.mkt-hero {
    padding: 4.5rem 0 5rem;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.mkt-hero__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.mkt-hero__title {
    color: var(--mkt-royal);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.mkt-hero__lede {
    font-size: 1.15rem;
    color: var(--mkt-text-soft);
    line-height: 1.6;
    margin: 0 auto 1.75rem;
    max-width: 600px;
}

.mkt-hero__ctas {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

.mkt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.18s ease;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.mkt-btn--primary { background: var(--mkt-royal); color: #fff; }
.mkt-btn--primary:hover { background: var(--mkt-aurora); color: #fff; transform: translateY(-1px); }

.mkt-btn--secondary { background: var(--mkt-aurora); color: #fff; }
.mkt-btn--secondary:hover { background: var(--mkt-royal); color: #fff; transform: translateY(-1px); }

.mkt-btn--mint { background: var(--mkt-mint); color: var(--mkt-royal); }
.mkt-btn--mint:hover { background: #4dd4b7; color: var(--mkt-royal); transform: translateY(-1px); }

.mkt-hero__explore {
    display: inline-block;
    color: var(--mkt-aurora);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Photo composition — constrained narrower than container so tiles aren't oversized */
.mkt-hero__photos {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    isolation: isolate;
}

.mkt-hero__row {
    display: grid;
    position: relative;
    z-index: 2;
}

.mkt-hero__row--top {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.mkt-hero__row--bot {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    padding: 0 8%;
}

/* Tile base */
.mkt-tile {
    position: relative;
    overflow: visible;
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}

.mkt-tile__photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 22px;
    box-shadow: 0 22px 50px -22px rgba(21, 0, 109, 0.4), 0 4px 14px -6px rgba(21, 0, 109, 0.18);
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
}

.mkt-tile--portrait { aspect-ratio: 4 / 5; }
.mkt-tile--landscape { aspect-ratio: 5 / 3.4; }

.mkt-tile:hover { transform: translateY(-5px); }
.mkt-tile:hover .mkt-tile__photo {
    box-shadow: 0 30px 60px -22px rgba(21, 0, 109, 0.5), 0 6px 20px -8px rgba(21, 0, 109, 0.25);
}

/* Rating — naked PNG positioned over the photo corner. Sized as % of tile width
   so portrait + landscape both get a proportionally-balanced rating. */
.mkt-rcard {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    line-height: 0;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
    /* width is the constraint; height auto-scales from the PNG aspect ratio */
    width: 38%;
    max-width: 130px;
}

.mkt-rcard img {
    width: 100%;
    height: auto;
    display: block;
}

/* Landscape tiles are wider, so a same-% rating would look too large.
   Cap it tighter on landscape. */
.mkt-tile--landscape .mkt-rcard {
    width: 28%;
    max-width: 110px;
}

/* Work-section tiles match portrait sizing */
.mkt-tile--work .mkt-rcard {
    width: 36%;
    max-width: 120px;
}

/* Position: a comfortable inset from the photo corner */
.mkt-rcard--bl { bottom: 12px;  left: 12px; }
.mkt-rcard--br { bottom: 12px;  right: 12px; }
.mkt-rcard--tl { top: 12px;     left: 12px; }
.mkt-rcard--tr { top: 12px;     right: 12px; }

/* Decorative accents */
.mkt-acc { position: absolute; pointer-events: none; z-index: 1; }
.mkt-acc--dots-tr  { top: -18px; right: -10px; width: 110px; height: 110px; }
.mkt-acc--dots-bl  { bottom: -10px; left: -20px; width: 110px; height: 110px; }
.mkt-acc--squiggle-l { top: 40%; left: -34px; width: 95px; height: 55px; transform: rotate(-12deg); }
.mkt-acc--squiggle-r { top: 36%; right: -34px; width: 95px; height: 55px; transform: rotate(8deg); }
.mkt-acc--blob-l {
    top: 28%; left: 6%; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(91, 230, 201, 0.20) 0%, rgba(91, 230, 201, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.mkt-acc--blob-r {
    bottom: 18%; right: 4%; width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, rgba(124, 58, 237, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.mkt-acc svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   VISION
   ============================================================ */

.mkt-vision__title {
    text-align: center;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    color: var(--mkt-royal);
    font-weight: 800;
    margin: 0 auto 2.5rem;
    max-width: 760px;
    letter-spacing: -0.015em;
}

.mkt-vision__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 880px;
    margin: 0 auto;
}

.mkt-vision__cols p {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--mkt-text-soft);
}

.mkt-vision__divider {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 3rem;
}

.mkt-vision__star {
    animation: mkt-float 3.2s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    transform-origin: center;
}

@keyframes mkt-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(calc(-1 * var(--float, 4px))) rotate(-3deg); }
}

/* ============================================================
   STATS — full-bleed band
   ============================================================ */

.mkt-stats {
    background: var(--mkt-bg-tint);
    padding: 3.5rem 0;
    width: 100%;
}

.mkt-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.mkt-stat__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--mkt-royal);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
}

.mkt-stat__icon--aurora { color: var(--mkt-aurora); }
.mkt-stat__icon--mint   { color: var(--mkt-mint); }
.mkt-stat__icon--purple { color: #c4b5fd; }
.mkt-stat__icon--gold   { color: var(--mkt-gold); }

.mkt-stat__number {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    color: var(--mkt-royal);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 0.45rem;
}

.mkt-stat__sub {
    font-size: 0.7em;
    font-weight: 600;
    color: var(--mkt-text-soft);
    margin-left: 0.2em;
}

.mkt-stat__label {
    font-size: 0.95rem;
    color: var(--mkt-text-soft);
    max-width: 220px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ============================================================
   THE WORK BEHIND EVERY REVIEW — split section
   ============================================================ */

.mkt-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}

.mkt-split__visual {
    position: relative;
    width: 100%;
    isolation: isolate;
    padding: 1.5rem 0;
}

.mkt-work__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.mkt-tile--work {
    aspect-ratio: 4 / 5;
}

.mkt-split__title {
    color: var(--mkt-royal);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 800;
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

.mkt-split__body p {
    color: var(--mkt-text-soft);
    margin: 0 0 1rem;
    font-size: 1rem;
}

.mkt-split__body a {
    color: var(--mkt-aurora);
    text-decoration: underline;
}

/* Scoped accents inside split visual override hero positioning */
.mkt-split__visual .mkt-acc--dots-tr {
    top: -5px; right: -15px; width: 100px; height: 100px;
}
.mkt-split__visual .mkt-acc--squiggle-l {
    top: auto; bottom: -10px; left: -20px; width: 95px; height: 55px;
}
.mkt-split__visual .mkt-acc--blob-l {
    top: 30%; left: 30%; width: 200px; height: 200px;
}

/* ============================================================
   VALUES
   ============================================================ */

.mkt-values { text-align: center; }

.mkt-values__title {
    color: var(--mkt-royal);
    font-size: clamp(1.7rem, 2.7vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.mkt-values__intro {
    max-width: 720px;
    margin: 0 auto 3rem;
    color: var(--mkt-text-soft);
    font-size: 1.05rem;
}

.mkt-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto 2.5rem;
}

.mkt-values__grid--row2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin-bottom: 0;
}

.mkt-value { text-align: center; }

.mkt-value__disc {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #E8FBF5 0%, var(--mkt-mint) 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 14px 34px -16px rgba(91, 230, 201, 0.5);
}

.mkt-value__star { display: block; }

.mkt-value__title {
    color: var(--mkt-royal);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.mkt-value__desc {
    color: var(--mkt-text-soft);
    font-size: 0.95rem;
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============================================================
   PROOF — recent reviews
   ============================================================ */

.mkt-proof__title {
    text-align: center;
    color: var(--mkt-royal);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 800;
    margin: 0 0 2.5rem;
    letter-spacing: -0.01em;
}

.mkt-proof__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 880px;
    margin: 0 auto;
}

.mkt-proof__card-title {
    color: var(--mkt-royal);
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1rem;
}

.mkt-proof__body {
    color: var(--mkt-text-soft);
    font-style: italic;
    margin: 0 0 1rem;
    text-align: center;
    line-height: 1.6;
}

.mkt-proof__attrib {
    color: var(--mkt-muted);
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

/* ============================================================
   TWIN CTAs
   ============================================================ */

.mkt-twin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mkt-cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2.25rem;
    background: var(--mkt-bg-tint);
    border-radius: 20px;
    border: 1px solid var(--mkt-border);
}

.mkt-cta-card__title {
    color: var(--mkt-royal);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.mkt-cta-card__desc {
    color: var(--mkt-text-soft);
    margin: 0;
    font-size: 0.92rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
    .mkt-vision__cols { grid-template-columns: 1fr; gap: 1.5rem; }
    .mkt-split { grid-template-columns: 1fr; gap: 2.5rem; }
    .mkt-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .mkt-values__grid { grid-template-columns: repeat(2, 1fr); }
    .mkt-values__grid--row2 { grid-template-columns: 1fr; }
    .mkt-proof__grid { grid-template-columns: 1fr; }
    .mkt-twin { grid-template-columns: 1fr; }
    .mkt-cta-card { flex-direction: column; text-align: center; padding: 1.75rem 1.5rem; }
    .mkt-hero__row--bot { padding: 0 6%; }
    .mkt-rcard--bl, .mkt-rcard--br { bottom: 8px; }
    .mkt-rcard--tl, .mkt-rcard--tr { top: 8px; }
    .mkt-rcard--bl, .mkt-rcard--tl { left: 8px; }
    .mkt-rcard--br, .mkt-rcard--tr { right: 8px; }
}

@media (max-width: 767px) {
    .mkt-hero { padding: 3rem 0 3.5rem; }
    .mkt-hero__row--top { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; margin-bottom: 1.75rem; }
    .mkt-hero__row--bot { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0; }
    .mkt-acc--squiggle-l, .mkt-acc--squiggle-r { display: none; }
    .mkt-acc--dots-tr { width: 70px; height: 70px; }
    .mkt-acc--dots-bl { width: 70px; height: 70px; }
    .mkt-vision__star { width: 56px !important; height: 56px !important; }
}

@media (max-width: 575px) {
    .mkt-section { padding: 3rem 0; }
    .mkt-stats__grid { grid-template-columns: 1fr; gap: 2rem; }
    .mkt-values__grid { grid-template-columns: 1fr; }
    .mkt-work__pair { grid-template-columns: 1fr; gap: 1rem; }
    .mkt__inner { padding: 0 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mkt-vision__star, .mkt-tile { animation: none !important; transition: none !important; }
}
