/* =====================================================================
   MOAP — Mission On A Plan
   moap.css (CLEAN SINGLE SOURCE)
   - Consistent design tokens
   - Hero is a white tile; logo tile is cream and aligned to split media width
   - Split tile images get consistent “tile-style” shadow (on wrapper, not img)
   - List links don’t become pill buttons
   - Affiliate pills ONLY via .aff-link
   - Oxblood accents kept subtle
   ===================================================================== */

/* ============================================================
   THEME TOKENS
   ============================================================ */
:root {
    --moap-bg: #f0ede7;
    --moap-bg-alt: #d8d2c6;
    --moap-cream: #f8f3ea;

    --moap-text: #3d2f22;
    --moap-soft: #8a5b40;
    --moap-dark: #2a2118;
    --moap-accent: #3d2f22;

    --moap-oxblood: #5b1f2b;
    --moap-oxblood-soft: rgba(91, 31, 43, 0.12);

    --radius-lg: 18px;
    --radius-md: 12px;

    /* Shadows */
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.15);
    --shadow-tile: 0 10px 24px rgba(0, 0, 0, 0.12);

    /* Shared width for “media tiles” (split images + hero logo tile) */
    --media-max: 520px;

    /* Chat bubbles */
    --bubble-user: #dce9ff;
    --bubble-user-border: #a8c7ff;
    --bubble-user-text: #1a2a4a;

    --bubble-ai: #fff1cc;
    --bubble-ai-border: #e4c680;
    --bubble-ai-text: #3b2a11;
}

/* ============================================================
   BASE
   ============================================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--moap-bg);
    font-family: "Nunito Sans", sans-serif;
    color: var(--moap-text);
    font-size: 17px;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    main {
        padding: 26px 14px;
    }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
    width: 100%;
    background: var(--moap-dark);
    padding: 8px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 100px;
    width: auto;
}

header nav {
    display: flex;
    gap: 28px;
}

header nav a {
    color: var(--moap-cream);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.9;
    text-decoration: none;
}

header nav a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    header nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 14px;
    }

    header img {
        height: 74px;
    }
}

.nav-membership-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--moap-cream);
    color: var(--moap-dark) !important;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(248, 243, 234, 0.25);
}

.nav-membership-button:hover {
    filter: brightness(0.98);
}

/* ============================================================
   SHIELDS (shared)
   ============================================================ */
.moap-tier-shield {
    display: block;
}

.moap-tier-shield.size-c {
    margin: 0 auto 10px;
}

.dashboard-hero-shield {
    margin-bottom: 12px;
}

.membership-status-shield {
    float: left;
    margin-right: 16px;
}

.saved-hero-shield {
    margin-right: 12px;
}

/* ============================================================
   HERO (white tile + cream logo tile)
   ============================================================ */
.hero {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 26px;
    padding: 50px 40px;
    box-shadow: var(--shadow-soft);

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;

    margin-bottom: 60px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: var(--moap-cream);
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;

    border: 1px solid rgba(0, 0, 0, 0.10);
    border-left: 4px solid var(--moap-oxblood);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    width: fit-content;
}

.hero-badge img {
    width: 22px;
    height: 22px;
}

.hero h1 {
    font-size: 2.9rem;
    margin: 0 0 6px;
    line-height: 1.15;
    color: var(--moap-dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--moap-dark);
    max-width: 520px;
}

.hero-highlight {
    font-size: 1.05rem;
    font-weight: 800;
    max-width: 550px;
    margin: 10px 0 6px;
    color: var(--moap-dark);
    border-left: 4px solid var(--moap-oxblood);
    padding-left: 16px;
}

/* Optional email capture */
.email-box {
    display: flex;
    background: #fff;
    border-radius: 999px;
    padding: 5px;
    max-width: 380px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.email-box input {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 999px;
    font-size: 0.95rem;
}

.email-box button {
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--moap-accent);
    color: #fff;
    border: none;
    font-weight: 800;
    cursor: pointer;
}

.hero-note {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: -6px;
}

/* Cream logo tile — SAME width system as split media */
.hero-right {
    width: 100%;
    max-width: var(--media-max);
    margin: 0 auto;

    background: var(--moap-cream);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.hero-right img {
    max-width: 220px;
    width: 100%;
    display: block;
    border-radius: 18px;
}

/* Remove CTA buttons inside hero (you moved them elsewhere) */
.hero a.btn {
    display: none !important;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 32px 22px;
        text-align: center;
    }

    .hero-left,
    .hero-right {
        align-items: center;
    }

    .email-box {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.12;
    }

    .hero-subtitle,
    .hero-highlight {
        font-size: 1rem;
    }
}

/* ============================================================
   WIX-ISH STACK HEADINGS
   ============================================================ */
.stack {
    max-width: 1200px;
}

.stack-section {
    margin: 42px 0;
}

.stack-h2 {
    font-size: 2.2rem;
    margin: 0 0 16px;
    color: var(--moap-dark);
}

.moap-title {
    margin: 0;
    line-height: 1.05;
}

.moap-title-top {
    display: block;
    font-size: 3.1rem;
    letter-spacing: -0.02em;
}

.moap-title-sub {
    display: block;
    font-size: 1.55rem;
    font-weight: 900;
    opacity: 0.88;
    margin-top: 6px;
}

.moap-strapline {
    margin: 6px 0 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.moap-strapline--logo {
    margin-top: 10px;
    text-align: center;
}

/* ============================================================
   TILE UTILITY
   ============================================================ */
.tile {
    background: #fff;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    padding: 34px;
    margin: 34px 0;
}

/* ============================================================
   CARDS / TAGS / PILLARS
   ============================================================ */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 34px;
}

.card {
    padding: 18px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-tile);
}

.tag {
    display: inline-flex;
    align-items: center;
    background: var(--moap-cream);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--moap-dark);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--moap-accent);
    border-radius: 50%;
    margin-right: 8px;
}

/* ============================================================
   STORY TILE BACKGROUNDS
   ============================================================ */
.story-card {
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-tile);
}

.story-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(248, 243, 234, 0.88), rgba(248, 243, 234, 0.78));
    z-index: 1;
}

.story-card>* {
    position: relative;
    z-index: 2;
}

.story-card h2,
.story-card p {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.25);
}

.story-card.realbloke {
    background-image: url("/assets/bg/realbloke.png");
}

.story-card.story-loss {
    background-image: url("/assets/bg/smallchanges.png");
}

.story-card.story-everyone {
    background-image: url("/assets/bg/foreveryone.png");
}

@media (max-width: 900px) {
    .story-card::before {
        background: linear-gradient(rgba(248, 243, 234, 0.92), rgba(248, 243, 234, 0.85));
    }
}

/* ============================================================
   SPLIT TILE (About / Planner)
   - Shadow is on wrapper so it’s consistent + visible
   ============================================================ */
.split {
    background: #fff;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    padding: 34px;
    margin: 34px 0;

    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Media card: this is the “image tile” */
.split .split-media {
    width: 100%;
    max-width: var(--media-max);
    margin: 0 auto;

    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

/* Image: clean, no shadow (wrapper already has it) */
.split .split-media img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .split .split-media {
        margin-top: 18px;
    }
}

/* ============================================================
   WHY IT WORKS (feature grid)
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-tile);
}

.feature-card h3 {
    margin: 0 0 10px;
    color: var(--moap-dark);
}

.feature-card p {
    margin: 0;
    color: #4a3f32;
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CLEAN LIST (used in Balance Planner)
   ============================================================ */
.clean-list {
    list-style: none;
    padding-left: 0;
    margin: 14px 0 0;
}

.clean-list li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
    font-weight: 800;
}

.clean-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--moap-accent);
}

/* ============================================================
   CTA ACTIONS (shared)
   ============================================================ */
.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.cta-row--split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ============================================================
   HOW IT WORKS (tile)
   ============================================================ */
.how-tiles {
    background: #fff;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    padding: 34px;
    margin: 34px 0;
}

.how-tiles h2 {
    margin: 0 0 2rem;
    font-size: 2rem;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;

    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 10px;
    margin: 0;
}

.how-card {
    background: #e7dfd4;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    min-height: 230px;
    height: 100%;
}

.how-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 4px;
    background: var(--moap-oxblood);
    opacity: 0.85;
}

.how-pill {
    display: inline-block;
    background: #6c4f3d;
    color: #fff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.15s ease;
}

.how-pill:hover {
    background: #5a4031;
    transform: translateY(-2px);
}

.how-pill.how-btn-link {
    background: transparent;
    color: var(--moap-oxblood) !important;
    border: 2px solid var(--moap-oxblood);
    box-shadow: none;
}

.how-pill.how-btn-link:hover {
    background: var(--moap-oxblood-soft);
    transform: translateY(-2px);
}

.how-number {
    display: none !important;
}

.how-card p {
    margin: 0 0 1rem;
    color: #4a3f32;
    line-height: 1.55;
}

.how-btn,
.how-card .btn-small {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    background: #3a2d19;
    color: #fff !important;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .how-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CTA STRIP
   ============================================================ */
section#join.cta-strip {
    position: relative;
    overflow: hidden;
    background: var(--moap-bg-alt);
    border-radius: 26px;
    padding: 36px 32px;
    margin: 50px 0 60px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--moap-oxblood);
}

section#join.cta-strip .cta-row {
    max-width: 1200px;
    margin: 0 auto;
}

section#join.cta-strip h2 {
    margin: 0 0 6px;
    font-size: 1.9rem;
    color: var(--moap-dark);
}

section#join.cta-strip p {
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    section#join.cta-strip {
        padding: 28px 22px;
        text-align: center;
    }

    section#join.cta-strip .cta-row {
        justify-content: center;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--moap-dark);
    color: var(--moap-cream);
    margin-top: 60px;
    padding: 50px 20px 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 50px;
}

footer .footer-col img {
    height: 200px;
    margin-bottom: 0.1px;
}

footer a {
    color: var(--moap-cream);
    text-decoration: none;
    opacity: 0.85;
}

footer a:hover {
    opacity: 1;
}

footer .copyright {
    margin-top: 40px;
    text-align: center;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

footer .footer-col a {
    display: block;
    margin: 8px 0;
    line-height: 1.55;
}

footer .footer-col h4 {
    margin: 0 0 14px;
}

.footer-logo-round {
    width: 90px;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    margin-bottom: 16px;
}

/* ============================================================
   MEMBERSHIP PAGE
   ============================================================ */
.membership-page {
    max-width: 1000px;
    margin: 40px auto 70px;
    padding: 0 20px 10px;
}

.membership-hero {
    background: var(--moap-bg-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 28px 24px 26px;
    margin-bottom: 28px;
}

.membership-hero h1 {
    margin: 0 0 6px;
    font-size: 2.2rem;
    color: var(--moap-dark);
}

.membership-subtitle {
    margin: 0;
    font-size: 1rem;
    max-width: 640px;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .membership-grid {
        grid-template-columns: 1fr;
    }
}

.membership-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    padding: 24px 24px 26px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 560px;
}

@media (max-width: 900px) {
    .membership-card {
        min-height: auto;
    }
}

.membership-card-header {
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.membership-card-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--moap-dark);
}

.membership-price {
    margin: 4px 0 0;
    font-weight: 900;
    color: var(--moap-soft);
}

.membership-pill {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    background: var(--moap-cream);
    color: var(--moap-dark);
}

.membership-pill-premium {
    background: #f6e5c5;
}

.membership-pill-plus {
    background: #e9d2c5;
}

.membership-divider {
    border: none;
    border-bottom: 2px solid var(--moap-accent);
    margin: 10px 0 14px;
    opacity: 0.35;
}

.membership-tagline {
    font-size: 0.95rem;
    margin: 6px 0 12px;
}

.membership-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
    font-size: 0.92rem;
}

.membership-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

.membership-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--moap-accent);
    font-weight: 800;
}

.membership-btn-wrapper {
    margin-top: auto;
    text-align: center;
    padding-top: 18px;
}

.membership-btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 999px;
    background: var(--moap-dark);
    color: #fff !important;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease-in-out;
}

.membership-btn:hover {
    background: var(--moap-accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.membership-footnote {
    margin-top: 10px;
    font-size: 0.9rem;
}

.membership-faq {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px 22px 26px;
}

.membership-faq h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--moap-dark);
}

/* Tier visuals */
.tier-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.tier-shield {
    width: 44px;
    height: auto;
}

.tier-bronze {
    border-left: 4px solid #cd7f32;
}

.tier-silver {
    border-left: 4px solid #c0c0c0;
}

.tier-gold {
    border-left: 4px solid #d4af37;
}

.tier-platinum {
    border-left: 4px solid #e5e4e2;
}

.tier-pill-bronze {
    background: #f3e0cf;
}

.tier-pill-silver {
    background: #e5e5e8;
}

.tier-pill-gold {
    background: #f5ebc8;
}

.tier-pill-platinum {
    background: #ecebf5;
}

.tier-inline-shield {
    width: 18px;
    height: auto;
    vertical-align: -3px;
    margin-right: 6px;
    opacity: 0.9;
}

/* ============================================================
   PLANNER — LAYOUT
   ============================================================ */
#planner-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

@media (max-width: 900px) {
    #planner-container {
        grid-template-columns: 1fr;
    }
}

#moap-chat {
    background: var(--moap-bg-alt);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
}

#chat-log {
    height: 400px;
    overflow-y: auto;
    background: var(--moap-cream);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px;
    margin-bottom: 14px;
}

#planner-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 58px;
    opacity: 0.9;
}

.message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    margin-bottom: 14px;
    max-width: 85%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.message.user {
    background: var(--bubble-user);
    border: 1px solid var(--bubble-user-border);
    color: var(--bubble-user-text);
    margin-left: auto;
}

.message.ai {
    background: var(--bubble-ai);
    border: 1px solid var(--bubble-ai-border);
    color: var(--bubble-ai-text);
    margin-right: auto;
}

.chat-input-row {
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius-md);
}

#send-btn {
    padding: 10px 18px;
    background: var(--moap-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
}

#quick-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-btn {
    padding: 8px 12px;
    background: var(--moap-bg-alt);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
}

#typing {
    display: none;
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 10px;
}

/* Sidebar */
#sidebar {
    background: var(--moap-cream) !important;
    padding: 22px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-height: 82vh;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--moap-dark);
}

#sidebar h4 {
    margin: 18px 0 6px;
    font-size: 1rem;
    color: var(--moap-soft);
}

.sidebar-membership {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-badge {
    width: 70px;
    display: block;
    margin: 0 auto 8px;
    opacity: 0.95;
}

.sidebar-tier {
    font-weight: 800;
    color: var(--moap-dark);
}

.sidebar-usage {
    margin-bottom: 25px;
}

.usage-text {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.usage-bar {
    height: 10px;
    width: 100%;
    background: #e8e2d6;
    border-radius: 999px;
}

.usage-fill {
    height: 10px;
    background: var(--moap-soft);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.sidebar-upgrade {
    background: var(--moap-bg-alt);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--moap-accent);
}

.upgrade-text {
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.sidebar-upgrade-btn {
    display: inline-block;
    padding: 8px 12px;
    background: var(--moap-accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.85rem;
}

/* ============================================================
   PLANNER EXPLAINER
   ============================================================ */
#planner-explainer-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 60px 0;
    padding: 0 20px;
}

.explainer-box {
    background: var(--moap-bg-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 40px;
    max-width: 920px;
    width: 100%;
    color: var(--moap-text);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.explainer-box h2 {
    margin-top: 0;
    font-size: 1.9rem;
    color: var(--moap-dark);
    border-bottom: 2px solid var(--moap-accent);
    padding-bottom: 8px;
}

.explainer-box h3 {
    margin-top: 28px;
    color: var(--moap-soft);
}

.explainer-box ul.planner-features {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.explainer-box ul.planner-features li {
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
    font-weight: 700;
}

.explainer-box ul.planner-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--moap-accent);
    font-weight: 900;
}

.explainer-box .section-box {
    background: var(--moap-cream);
    border-left: 5px solid var(--moap-accent);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin: 20px 0;
}

/* ============================================================
   LEGAL / STATIC PAGES
   ============================================================ */
.page {
    max-width: 800px;
    margin: 40px auto 60px;
    padding: 28px 24px 32px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.page h1 {
    font-size: 2rem;
    margin: 0 0 12px;
}

.page h2 {
    font-size: 1.25rem;
    margin: 22px 0 8px;
}

.page p,
.page li {
    font-size: 0.98rem;
    color: var(--moap-text);
}

@media (max-width: 768px) {
    .page {
        margin: 24px 12px 50px;
        padding: 22px 18px 26px;
    }
}

.page h1 {
    margin-bottom: 20px;
}

.card ul {
    margin: 0;
    padding-left: 20px;
}

.card ul li {
    margin-bottom: 8px;
}

/* Stop list links being forced into pills */
.page ul li a {
    background: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-weight: inherit;
    text-decoration: underline;
    color: var(--moap-accent);
    box-shadow: none;
    transform: none !important;
}

.page ul li a:hover {
    color: var(--moap-dark);
}

/* ============================================================
   AFFILIATE LINKS
   ============================================================ */
.aff-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #fff9e6;
    border: 1px solid #e6c87c;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    color: var(--moap-dark);
    transition: 0.2s ease;
}

.aff-link:hover {
    background: #ffefc2;
    border-color: #d4b163;
}

.aff-link::before {
    content: "🛒";
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================================
   FORMS (shared)
   ============================================================ */
.contact-form {
    max-width: 700px;
    margin-top: 30px;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

@media (max-width: 700px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 800;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid #ccc;
    background: #fafafa;
}

.contact-btn {
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--moap-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: pointer;
}

.honeypot {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #fff;
    color: var(--moap-text);
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(61, 47, 34, 0.55);
    box-shadow: 0 0 0 3px rgba(61, 47, 34, 0.12);
}

/* ============================================================
   TABLES
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
}

th {
    background: var(--moap-bg-alt);
    color: var(--moap-dark);
    font-weight: 900;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.moap-cookie {
    position: fixed !important;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2147483647;
    pointer-events: auto;
}

.moap-cookie[hidden] {
    display: none !important;
}

.moap-cookie__inner {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--moap-dark);
    color: var(--moap-cream);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.moap-cookie__text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.moap-cookie__text p {
    margin: 0 0 8px;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.95;
}

.moap-cookie__links {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.moap-cookie__links a {
    color: var(--moap-cream);
    text-decoration: underline;
}

.moap-cookie__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 220px;
}

.moap-cookie__btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
    font-size: 0.9rem;
}

.moap-cookie__btn--primary {
    background: var(--moap-cream);
    color: var(--moap-dark);
}

.moap-cookie__btn--ghost {
    background: transparent;
    color: var(--moap-cream);
    border: 1px solid rgba(248, 243, 234, 0.35);
}

@media (max-width: 720px) {
    .moap-cookie__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .moap-cookie__actions {
        justify-content: flex-start;
        min-width: 0;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center {
    text-align: center;
}

.m-0 {
    margin: 0;
}

.mt-1 {
    margin-top: 6px;
}

.mt-2 {
    margin-top: 12px;
}

.mt-3 {
    margin-top: 18px;
}

.mt-4 {
    margin-top: 26px;
}

.mb-1 {
    margin-bottom: 6px;
}

.mb-2 {
    margin-bottom: 12px;
}

.mb-3 {
    margin-bottom: 18px;
}

.mb-4 {
    margin-bottom: 26px;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

    header,
    footer,
    nav {
        display: none !important;
    }

    body,
    main,
    section,
    div,
    p,
    h1,
    h2,
    h3,
    pre {
        color: #000 !important;
        background: #fff !important;
        -webkit-print-color-adjust: economy;
        print-color-adjust: economy;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* ============================================================
   BUTTONS (single source of truth)
   ============================================================ */
a.btn,
button.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    padding: 10px 18px !important;
    border-radius: 999px !important;

    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;

    border: 0 !important;
    cursor: pointer !important;

    transform: none !important;
    box-shadow: none !important;
}

a.btn.btn-primary,
button.btn.btn-primary {
    background: var(--moap-accent) !important;
    color: #fff !important;
}

a.btn.btn-ghost,
button.btn.btn-ghost {
    background: transparent !important;
    color: var(--moap-dark) !important;
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
}
/* ============================================================
   PATCH: Split tile media sizing + visible shadow
   Paste at VERY END of moap.css
   ============================================================ */

/* Make split columns comparable height again */
.split {
    align-items: stretch;
}

/* Media wrapper becomes the "image card" with visible depth */
.split .split-media {
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    overflow: hidden;

    /* stronger + clearer than before */
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

/* Stop the image going full-height/huge */
.split .split-media img {
    display: block;
    width: 100%;
    height: auto;

    /* this is the important bit */
    max-height: 320px;

    /* choose one:
     cover = fills nicely (may crop a bit)
     contain = never crops (may letterbox) */
    object-fit: cover;
}

/* Mobile */
@media (max-width: 900px) {
    .split .split-media img {
        max-height: 240px;
    }
}