/*
Theme Name: Mutual Promotion Landing
Description: Single-page marketing site for the Mutual Promotion app — one landing page whose
             only job is to explain the app and drive a Play Store download. No blog, no other
             templates; every request WordPress would otherwise route elsewhere still renders
             this same page via index.php.
Author: Indian Admin
Author URI: https://indianadmin.com
Version: 2.2
*/

/* ---------- Tokens — the app logo's own blue-to-cyan gradient, not a generic palette ---------- */

:root {
    --paper: #f5f7fa;
    --paper-raised: #ffffff;
    --ink: #1a2332;
    --ink-soft: #5b6b7c;
    --rule: rgba(26, 35, 50, 0.12);
    --primary: #1877f2;
    --cyan: #29b6f6;
    --brick: #d64545;
    --shadow: rgba(26, 35, 50, 0.12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #121826;
        --paper-raised: #1b2333;
        --ink: #eaf1fb;
        --ink-soft: #9fb0c3;
        --rule: rgba(234, 241, 251, 0.14);
        --primary: #4c9aff;
        --cyan: #61d8ff;
        --brick: #ff6b6b;
        --shadow: rgba(0, 0, 0, 0.45);
    }
}

* {
    box-sizing: border-box;
}

html {
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Karla", -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

h1, h2, h3 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    text-wrap: balance;
    margin: 0;
}

.mono {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- Header ---------- */

.mp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
}

.mp-header-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-brand-mark {
    height: 34px;
    width: auto;
}

.mp-wordmark {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: #ffffff;
    font-family: "Karla", sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px -4px color-mix(in srgb, var(--primary) 55%, transparent);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -6px color-mix(in srgb, var(--primary) 65%, transparent);
}

.mp-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--primary) 55%, transparent);
}

.mp-btn-small {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 11px;
    box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--primary) 45%, transparent);
}

.mp-btn-small:hover {
    box-shadow: 0 8px 18px -4px color-mix(in srgb, var(--primary) 55%, transparent);
}

/* ---------- Hero ---------- */

.mp-hero {
    position: relative;
    padding: 76px 0 64px;
    overflow: clip;
}

.mp-hero::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -160px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 32%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.mp-hero::after {
    content: "";
    position: absolute;
    top: 40px;
    left: -220px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.mp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 760px) {
    .mp-hero-grid {
        grid-template-columns: 1fr;
    }
}

.mp-eyebrow {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 22px;
}

.mp-hero h1 {
    font-size: clamp(34px, 5.4vw, 58px);
    line-height: 1.08;
    max-width: 15ch;
    margin-bottom: 22px;
}

.mp-hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mp-hero-sub {
    max-width: 46ch;
    font-size: 18px;
    color: var(--ink-soft);
    margin-bottom: 30px;
}

.mp-hero-note {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 14px;
}

/* pinned card — the ticket-style CTA */

.mp-ticket {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 22px;
    padding: 28px 26px;
    box-shadow: 0 20px 48px -12px var(--shadow);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mp-ticket:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px -14px var(--shadow);
}

.mp-ticket::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--primary) 55%, transparent);
}

.mp-ticket .mp-ticket-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.mp-ticket .mp-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

.mp-ticket p {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- Section shells ---------- */

.mp-section {
    padding: 72px 0;
    border-top: 1px solid var(--rule);
}

.mp-kicker {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.mp-section h2 {
    font-size: clamp(26px, 3.6vw, 38px);
    max-width: 20ch;
    margin-bottom: 16px;
}

.mp-section-sub {
    max-width: 56ch;
    color: var(--ink-soft);
    font-size: 17px;
    margin-bottom: 44px;
}

/* ---------- The Receipt ---------- */

.mp-receipt {
    max-width: 460px;
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 20px;
    padding: 30px 30px 26px;
    box-shadow: 0 20px 44px -14px var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mp-receipt:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 52px -14px var(--shadow);
}

.mp-receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--rule);
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
}

.mp-receipt-row .label {
    color: var(--ink-soft);
    text-decoration: line-through;
    text-decoration-color: var(--brick);
    text-decoration-thickness: 2px;
}

.mp-receipt-row .price {
    color: var(--ink-soft);
    text-decoration: line-through;
    text-decoration-color: var(--brick);
    text-decoration-thickness: 2px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.mp-receipt-row.total {
    border-bottom: none;
    padding-top: 18px;
    font-family: "Karla", sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.mp-receipt-row.total .label {
    color: var(--ink);
    text-decoration: none;
}

.mp-receipt-row.total .price {
    color: var(--primary);
    text-decoration: none;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
}

/* ---------- The Passbook ---------- */

.mp-passbook {
    max-width: 640px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    overflow: hidden;
    background: var(--paper-raised);
    box-shadow: 0 20px 44px -14px var(--shadow);
}

.mp-passbook-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 24px 28px;
    transition: background 0.2s ease;
}

.mp-passbook-row:hover {
    background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.mp-passbook-row + .mp-passbook-row {
    border-top: 1px dashed var(--rule);
}

.mp-passbook-num {
    font-family: "IBM Plex Mono", monospace;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mp-passbook-row h3 {
    font-family: "Karla", sans-serif;
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.mp-passbook-row p {
    color: var(--ink-soft);
    margin: 0;
    font-size: 15.5px;
}

/* ---------- Manifesto (deliberately dark navy, regardless of color scheme) ---------- */

.mp-manifesto {
    background: #16233a;
    color: #eaf1fb;
    padding: 84px 0;
}

.mp-manifesto .container {
    max-width: 700px;
}

.mp-manifesto .mp-kicker {
    color: #9fb0c3;
}

.mp-manifesto h2 {
    color: #eaf1fb;
    font-size: clamp(26px, 3.8vw, 36px);
    max-width: none;
    line-height: 1.3;
    margin-bottom: 24px;
}

.mp-manifesto h2 em {
    font-style: italic;
    background: linear-gradient(135deg, #4c9aff 0%, #61d8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mp-manifesto p {
    color: #9fb0c3;
    font-size: 17px;
    max-width: 56ch;
}

/* ---------- Final CTA ---------- */

.mp-final {
    padding: 84px 0 96px;
    text-align: left;
}

.mp-final .mp-ticket {
    max-width: 420px;
}

.mp-final h2 {
    font-size: clamp(28px, 4vw, 42px);
    max-width: 16ch;
    margin-bottom: 34px;
}

/* ---------- Footer ---------- */

.mp-footer {
    border-top: 1px solid var(--rule);
    padding: 28px 0;
}

.mp-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12.5px;
    color: var(--ink-soft);
}

/* ---------- Generic WP pages (Privacy Policy, Terms, etc.) ---------- */

.mp-page-content {
    padding: 20px 0 60px;
}

.mp-page-content p {
    margin: 0 0 18px;
    line-height: 1.6;
}

.mp-page-content h2,
.mp-page-content h3 {
    font-family: "Fraunces", Georgia, serif;
    margin: 34px 0 12px;
}

.mp-page-content ul,
.mp-page-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
    line-height: 1.6;
}

/* ---------- Scroll reveal — sections fade/rise into place once, as they enter the
   viewport (see the IntersectionObserver in mp_landing_render_footer()). Respects
   reduced-motion and degrades to fully visible if JS never runs. ---------- */

.mp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.mp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .mp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
