/* ============================================================
 * Readify Pages — shared styles
 * Nav · mega menu · hamburger · user icon · drawer · footer · utilities
 * ============================================================ */

.readify-pages-wrap {
    --rdfy-cream: #F9F7F2;
    --rdfy-cream-warm: #F4EFE6;
    --rdfy-pergamino: #EDE8DC;
    --rdfy-ink: #1C1A16;
    --rdfy-ink-muted: #55524B;
    --rdfy-ink-soft: #7A766D;
    --rdfy-line: rgba(28, 26, 22, 0.10);
    --rdfy-line-soft: rgba(28, 26, 22, 0.06);
    --rdfy-verde: #2E4A22;
    --rdfy-verde-deep: #1E3216;
    --rdfy-terracota: #BE4A2C;
    --rdfy-terracota-soft: #E8B8A6;
    --rdfy-ambar: #8A6015;
    --rdfy-ambar-soft: #D4A76A;
    --rdfy-f-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --rdfy-f-ui: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    font-family: var(--rdfy-f-ui);
    font-size: 16px;
    line-height: 1.6;
    color: var(--rdfy-ink);
    background: var(--rdfy-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(190, 74, 44, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(138, 96, 21, 0.03) 0%, transparent 50%);
}

.readify-pages-wrap * { box-sizing: border-box; }
.readify-pages-wrap :where(a) { color: inherit; text-decoration: none; }
.readify-pages-wrap :where(h1, h2, h3, h4, h5, h6, p, li, span, div) { color: inherit; }
.readify-pages-wrap em { font-style: italic; color: var(--rdfy-terracota); font-weight: inherit; }
.readify-pages-wrap h1, .readify-pages-wrap h2, .readify-pages-wrap h3, .readify-pages-wrap h4 {
    font-family: var(--rdfy-f-display); margin: 0;
}
.readify-pages-wrap p { margin: 0; }
.readify-pages-wrap ul { list-style: none; margin: 0; padding: 0; }

/* ============================================================
 * NAV
 * ============================================================ */
.rdfy-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(249, 247, 242, 0.72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(28, 26, 22, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
/* Fallback when backdrop-filter isn't supported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .rdfy-nav { background: var(--rdfy-cream); }
}
.rdfy-nav.scrolled {
    background: rgba(249, 247, 242, 0.88);
    box-shadow: 0 2px 12px -8px rgba(28, 26, 22, 0.15);
}
.rdfy-nav.mm-open {
    background: var(--rdfy-cream);
    border-bottom-color: var(--rdfy-line);
}

.rdfy-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px;
    max-width: 100%;
    position: relative;
    transition: padding 0.3s ease;
}
.rdfy-nav.scrolled .rdfy-nav-inner { padding: 14px 40px; }

.rdfy-logo {
    font-family: var(--rdfy-f-display); font-size: 34px; font-weight: 700;
    letter-spacing: -0.04em; color: var(--rdfy-ink);
    display: flex; align-items: baseline;
    flex-shrink: 0;
    z-index: 2;
}
.rdfy-logo-dot { margin-left: -2px; }

/* Center trigger row */
.rdfy-nav-center {
    display: flex;
    gap: 4px;
    font-family: var(--rdfy-f-ui);
    position: absolute; left: 50%;
    transform: translateX(-50%);
}
.rdfy-nav-trigger {
    display: inline-flex; align-items: center; gap: 7px;
    background: transparent; border: 0;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--rdfy-ink);
    font-family: inherit; font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.rdfy-nav-trigger:hover,
.rdfy-nav-trigger[aria-expanded="true"] {
    color: var(--rdfy-ink);
    background: var(--rdfy-pergamino);
}
.rdfy-caret { transition: transform 0.25s ease; flex-shrink: 0; }
.rdfy-nav-trigger[aria-expanded="true"] .rdfy-caret { transform: rotate(180deg); }

/* Right cluster */
.rdfy-nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; z-index: 2; }
.rdfy-nav-ctas { display: flex; gap: 8px; }

.rdfy-user {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--rdfy-ink);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}
.rdfy-user:hover {
    background: var(--rdfy-pergamino);
}

/* ============================================================
 * BUTTONS
 * ============================================================ */
.rdfy-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-family: var(--rdfy-f-ui);
    font-size: 14px; font-weight: 600;
    letter-spacing: -0.005em;
    transition: all 0.2s ease;
    line-height: 1; cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none !important;
}
.readify-pages-wrap .rdfy-btn-primary,
.readify-pages-wrap a.rdfy-btn-primary {
    background: var(--rdfy-ink);
    color: var(--rdfy-cream) !important;
}
.readify-pages-wrap .rdfy-btn-primary:hover { background: var(--rdfy-verde-deep); transform: translateY(-1px); color: var(--rdfy-cream) !important; }
.readify-pages-wrap .rdfy-btn-ghost,
.readify-pages-wrap a.rdfy-btn-ghost {
    color: var(--rdfy-ink) !important;
    border-color: var(--rdfy-line);
    background: transparent;
}
.readify-pages-wrap .rdfy-btn-ghost:hover { background: var(--rdfy-pergamino); border-color: var(--rdfy-ink); }

/* ============================================================
 * HAMBURGER (2-line → X)
 * ============================================================ */
.rdfy-hamburger {
    display: none;
    width: 40px; height: 40px;
    background: transparent;
    border: 0; cursor: pointer;
    padding: 0;
    position: relative;
    border-radius: 50%;
    transition: background 0.2s ease;
}
.rdfy-hamburger:hover { background: var(--rdfy-pergamino); }
.rdfy-hamburger-bar {
    position: absolute;
    left: 11px; right: 11px;
    height: 2px;
    background: var(--rdfy-ink);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
                top 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rdfy-hamburger-bar-top { top: 15px; }
.rdfy-hamburger-bar-bot { top: 23px; }
.rdfy-hamburger[aria-expanded="true"] .rdfy-hamburger-bar-top { top: 19px; transform: rotate(45deg); }
.rdfy-hamburger[aria-expanded="true"] .rdfy-hamburger-bar-bot { top: 19px; transform: rotate(-45deg); }

/* ============================================================
 * MEGA MENU (desktop dropdown)
 * ============================================================ */
.rdfy-mm-backdrop {
    position: fixed; inset: 0;
    background: rgba(28, 26, 22, 0.32);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s 0.25s;
    z-index: 90;
    backdrop-filter: blur(2px);
}
.rdfy-mm-backdrop.visible {
    opacity: 1; visibility: visible;
    transition: opacity 0.25s ease, visibility 0s;
}

.rdfy-megamenu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--rdfy-cream);
    border-bottom: 1px solid var(--rdfy-line);
    box-shadow: 0 24px 40px -20px rgba(28, 26, 22, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
                visibility 0s 0.28s;
    z-index: 91;
}
.rdfy-megamenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
                visibility 0s;
}
.rdfy-mm-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 80px;
    padding: 60px 48px 72px;
    position: relative;
}

/* Left column — big serif items */
.rdfy-mm-left {
    display: flex; flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 2;
}
.rdfy-mm-main {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--rdfy-f-display);
    font-size: clamp(36px, 3.8vw, 52px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--rdfy-ink);
    padding: 4px 0;
    position: relative;
    width: fit-content;
    transition: color 0.2s ease;
}
.rdfy-mm-main-label {
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
    background-image: linear-gradient(var(--rdfy-ink), var(--rdfy-ink));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rdfy-mm-main:hover .rdfy-mm-main-label {
    background-size: 100% 2px;
}
.rdfy-mm-main em { color: var(--rdfy-terracota); font-style: italic; font-weight: 600; }
.rdfy-mm-badge {
    font-family: var(--rdfy-f-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rdfy-ink-muted);
    background: var(--rdfy-pergamino);
    padding: 4px 10px;
    border-radius: 999px;
    align-self: center;
    border: 1px solid var(--rdfy-line);
}

/* Right column */
.rdfy-mm-right {
    display: flex; flex-direction: column;
    gap: 26px;
    position: relative; z-index: 2;
}
.rdfy-mm-section {
    display: block;
    padding: 2px 0;
}
.rdfy-mm-section-title {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--rdfy-f-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--rdfy-ink);
    margin-bottom: 6px;
}
.rdfy-mm-arrow {
    font-size: 15px;
    color: var(--rdfy-ink);
    transition: transform 0.22s ease;
}
.rdfy-mm-section:hover .rdfy-mm-arrow { transform: translateX(4px); color: var(--rdfy-terracota); }
.rdfy-mm-section-desc {
    display: block;
    font-size: 14px;
    color: var(--rdfy-ink-muted);
    line-height: 1.55;
    max-width: 440px;
}

/* Featured card */
.readify-pages-wrap .rdfy-mm-featured,
.readify-pages-wrap a.rdfy-mm-featured {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-top: 8px;
    padding: 28px 28px 26px;
    border-radius: 18px;
    color: var(--rdfy-cream) !important;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rdfy-mm-feat-grain {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,0.18) 0%, transparent 45%),
        radial-gradient(circle at 12% 92%, rgba(0,0,0,0.3) 0%, transparent 55%);
    pointer-events: none;
}
.rdfy-mm-featured::before {
    content: "";
    position: absolute;
    right: -30px; top: -20px;
    width: 160px; height: 220px;
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%);
    border-radius: 3px;
    transform: rotate(8deg);
    box-shadow: -8px 8px 30px -4px rgba(0,0,0,0.2);
    pointer-events: none;
}
.rdfy-mm-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px -14px rgba(28, 26, 22, 0.32);
}
.rdfy-mm-feat-content { position: relative; z-index: 1; max-width: 82%; }
.rdfy-mm-feat-badge {
    display: inline-block;
    font-family: var(--rdfy-f-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rdfy-ambar-soft);
    margin-bottom: 16px;
}
.rdfy-mm-feat-title {
    font-family: var(--rdfy-f-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.1;
    color: var(--rdfy-cream);
    margin-bottom: 6px;
}
.rdfy-mm-feat-title em { color: var(--rdfy-terracota-soft); font-weight: 600; font-style: italic; }
.rdfy-mm-feat-sub {
    font-size: 13px;
    color: rgba(249, 247, 242, 0.72);
    letter-spacing: -0.005em;
}
.rdfy-mm-feat-arrow {
    position: relative; z-index: 1;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--rdfy-cream);
    color: var(--rdfy-ink);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.rdfy-mm-featured:hover .rdfy-mm-feat-arrow {
    transform: translateX(3px);
}

/* ============================================================
 * MOBILE DRAWER
 * ============================================================ */
.rdfy-drawer {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--rdfy-cream);
    z-index: 95;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.rdfy-drawer.open { transform: translateY(0); }

.rdfy-drawer-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 76px 24px 24px;
}
.rdfy-drawer-inner {
    max-width: 640px;
    margin: 0 auto;
}

.rdfy-drawer-group {
    border-bottom: 1px solid var(--rdfy-line-soft);
    padding: 8px 0;
}
.rdfy-drawer-group[open] { padding-bottom: 16px; }
.rdfy-drawer-group:last-of-type { border-bottom: 0; }
.rdfy-drawer-summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 0;
    font-family: var(--rdfy-f-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--rdfy-ink);
    cursor: pointer;
    list-style: none;
}
.rdfy-drawer-summary::-webkit-details-marker { display: none; }
.rdfy-drawer-caret {
    color: var(--rdfy-ink-soft);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.rdfy-drawer-group[open] .rdfy-drawer-caret { transform: rotate(180deg); }

.rdfy-drawer-body {
    display: flex; flex-direction: column;
    gap: 2px;
    padding-top: 4px;
    animation: rdfy-drawer-fade 0.25s ease;
}
@keyframes rdfy-drawer-fade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rdfy-drawer-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 0;
    font-family: var(--rdfy-f-display);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--rdfy-ink-muted);
}
.rdfy-drawer-link em { color: var(--rdfy-terracota); font-style: italic; }
.rdfy-drawer-badge {
    font-family: var(--rdfy-f-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rdfy-verde);
    background: rgba(46, 74, 34, 0.12);
    padding: 3px 8px;
    border-radius: 999px;
}
.rdfy-drawer-sublink {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
    font-family: var(--rdfy-f-ui);
    font-size: 14px;
    color: var(--rdfy-ink-soft);
    font-weight: 500;
    border-top: 1px dashed var(--rdfy-line-soft);
    margin-top: 12px;
}
.rdfy-drawer-sublink:first-of-type { border-top: 1px solid var(--rdfy-line-soft); padding-top: 16px; margin-top: 16px; }
.rdfy-drawer-arrow { color: var(--rdfy-terracota); font-size: 14px; }

/* Fixed footer with two buttons side by side */
.rdfy-drawer-footer {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--rdfy-cream);
    border-top: 1px solid var(--rdfy-line);
    box-shadow: 0 -8px 24px -12px rgba(28, 26, 22, 0.12);
}
.readify-pages-wrap .rdfy-drawer-btn {
    flex: 1;
    justify-content: center;
    padding: 14px 12px;
    font-size: 14px;
    min-height: 48px;
}

/* ============================================================
 * FOOTER
 * ============================================================ */
.rdfy-footer {
    background: var(--rdfy-cream-warm);
    padding: 80px 48px 40px;
    border-top: 1px solid var(--rdfy-line);
}
.rdfy-footer-inner { max-width: 1440px; margin: 0 auto; }

/* Newsletter block */
.rdfy-footer-newsletter {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 44px 48px;
    background: var(--rdfy-ink);
    color: var(--rdfy-cream);
    border-radius: 20px;
    margin-bottom: 64px;
}
.rdfy-nl-eyebrow {
    font-family: var(--rdfy-f-ui);
    font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; font-weight: 700;
    color: var(--rdfy-ambar-soft);
    margin-bottom: 14px;
}
.rdfy-nl-title {
    font-family: var(--rdfy-f-display);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 12px;
}
.rdfy-nl-sub {
    font-size: 14px;
    color: rgba(249,247,242,0.7);
    line-height: 1.55;
    margin: 0;
    max-width: 420px;
}
.rdfy-nl-form {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 5px 5px 18px;
    background: rgba(249,247,242,0.08);
    border: 1px solid rgba(249,247,242,0.18);
    border-radius: 999px;
    transition: border-color 0.2s ease;
    max-width: 420px;
}
.rdfy-nl-form:focus-within { border-color: var(--rdfy-cream); }
.rdfy-nl-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--rdfy-cream) !important;
    font-family: var(--rdfy-f-ui);
    font-size: 14px;
    padding: 10px 4px;
    min-width: 0;
}
.rdfy-nl-form input[type="email"]:focus { outline: none; }
.rdfy-nl-form input[type="email"]::placeholder { color: rgba(249,247,242,0.45); }

.rdfy-footer .rdfy-nl-btn,
.rdfy-footer button.rdfy-nl-btn,
footer.rdfy-footer form .rdfy-nl-btn {
    background: var(--rdfy-cream) !important;
    color: var(--rdfy-ink) !important;
    border: 0 !important;
    cursor: pointer;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    font-family: var(--rdfy-f-ui) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: -0.005em !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    text-transform: none !important;
    height: auto !important;
    width: auto !important;
    min-height: 0 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
.rdfy-footer .rdfy-nl-btn:hover {
    background: var(--rdfy-pergamino) !important;
    color: var(--rdfy-ink) !important;
    transform: translateY(-1px);
}
.rdfy-footer .rdfy-nl-btn span {
    color: inherit !important;
    font-size: inherit !important;
    display: inline-block;
}

.rdfy-footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--rdfy-line);
}
.rdfy-footer-brand .rdfy-logo,
.rdfy-footer-brand .rdfy-footer-logo { font-size: 40px; }
.rdfy-footer-tagline {
    font-family: var(--rdfy-f-display);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.015em;
    color: var(--rdfy-ink-muted);
    margin: 16px 0 20px;
    max-width: 300px;
    line-height: 1.45;
}
.rdfy-footer-address {
    font-family: var(--rdfy-f-ui);
    font-size: 12px;
    color: var(--rdfy-ink-soft);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 280px;
}

/* Social icons */
.rdfy-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.rdfy-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--rdfy-ink-muted);
    background: transparent;
    border: 1px solid var(--rdfy-line);
    transition: all 0.2s ease;
}
.rdfy-social:hover {
    color: var(--rdfy-cream);
    background: var(--rdfy-ink);
    border-color: var(--rdfy-ink);
    transform: translateY(-2px);
}
.rdfy-social svg { width: 16px; height: 16px; display: block; }

.rdfy-footer-col h4 {
    font-family: var(--rdfy-f-ui);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rdfy-ink-soft);
    margin-bottom: 18px;
}
.rdfy-footer-col ul { list-style: none; padding: 0; margin: 0; }
.rdfy-footer-col li { padding: 5px 0; }
.rdfy-footer-col a {
    font-size: 13px;
    color: var(--rdfy-ink-muted);
    transition: color 0.2s;
    line-height: 1.45;
}
.rdfy-footer-col a:hover { color: var(--rdfy-ink); }

.rdfy-footer-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--rdfy-ink-soft);
    flex-wrap: wrap;
    gap: 20px;
}
.rdfy-footer-legal-left {
    display: inline-flex; align-items: center; gap: 10px;
}
.rdfy-footer-dot { opacity: 0.5; }
.rdfy-footer-legal-right {
    display: inline-flex; flex-wrap: wrap; gap: 20px;
}
.rdfy-footer-legal-right a {
    color: var(--rdfy-ink-soft);
    font-size: 12px;
    transition: color 0.2s;
}
.rdfy-footer-legal-right a:hover { color: var(--rdfy-ink); }

/* ============================================================
 * MARQUEE
 * ============================================================ */
.rdfy-marquee {
    overflow: hidden;
    border-top: 1px solid var(--rdfy-line);
    border-bottom: 1px solid var(--rdfy-line);
    background: var(--rdfy-pergamino);
    padding: 22px 0;
}
.rdfy-marquee-track {
    display: flex; gap: 64px;
    white-space: nowrap;
    animation: rdfy-marquee 40s linear infinite;
    font-family: var(--rdfy-f-display);
    font-size: 20px; font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--rdfy-ink-muted);
}
.rdfy-marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.rdfy-marquee-track span::after {
    content: "·"; color: var(--rdfy-terracota); font-size: 28px;
}
@keyframes rdfy-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
 * CHAPTER LABEL / EYEBROW / DISPLAY / LEAD
 * ============================================================ */
.rdfy-chapter-label {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--rdfy-f-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rdfy-terracota);
    margin-bottom: 28px;
}
.rdfy-chapter-num {
    font-family: var(--rdfy-f-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--rdfy-ambar);
    letter-spacing: -0.02em;
}
.rdfy-chapter-line { width: 40px; height: 1px; background: var(--rdfy-terracota); }

.rdfy-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; color: var(--rdfy-terracota);
    letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; margin-bottom: 32px;
}
.rdfy-eyebrow::before {
    content: ""; width: 28px; height: 1px; background: var(--rdfy-terracota);
}
.rdfy-display {
    font-family: var(--rdfy-f-display);
    font-size: clamp(52px, 6.8vw, 104px);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 36px;
    color: var(--rdfy-ink);
}
.rdfy-lead {
    font-size: 20px;
    line-height: 1.5;
    color: var(--rdfy-ink-muted);
    max-width: 480px;
    margin-bottom: 44px;
    font-weight: 400;
}

/* ============================================================
 * SCROLL REVEAL
 * ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ============================================================
 * PAGE INTRO placeholder
 * ============================================================ */
.rdfy-page-intro {
    padding: 200px 48px 160px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Prevent body scroll when drawer open */
body.rdfy-drawer-open { overflow: hidden; }

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

/* On shorter desktop screens (e.g. 13-inch laptops), cap mega-menu height so
 * the featured card at the bottom doesn't get cut off the viewport. */
@media (min-height: 0) and (max-height: 840px) and (min-width: 1101px) {
    .rdfy-megamenu { max-height: calc(100vh - 80px); overflow-y: auto; }
    .rdfy-mm-inner { padding: 40px 48px 48px; }
    .rdfy-mm-item { padding: 12px 0; font-size: 30px; }
    .rdfy-mm-featured { margin-top: 24px; padding: 24px; }
}

@media (max-width: 1100px) {
    .rdfy-nav-center { display: none; }
    .rdfy-nav-ctas { display: none; }
    .rdfy-user { display: inline-flex; } /* keep user icon on mobile, next to hamburger */
    .rdfy-hamburger { display: block; }
    .rdfy-megamenu { display: none; }
}

@media (max-width: 960px) {
    .rdfy-nav-inner,
    .rdfy-nav.scrolled .rdfy-nav-inner { padding: 14px 20px; }
    .rdfy-logo { font-size: 30px; }
    .rdfy-nav-right { gap: 4px; }
    .rdfy-user { width: 38px; height: 38px; }
    .rdfy-footer { padding: 80px 24px 40px; }
    .rdfy-footer-newsletter {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 28px;
        margin-bottom: 48px;
    }
    .rdfy-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }
    .rdfy-footer-brand { grid-column: 1 / -1; }
    .rdfy-footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
    .rdfy-page-intro { padding: 140px 24px 100px; }
}

@media (max-width: 480px) {
    .rdfy-drawer-summary { font-size: 28px; }
    .rdfy-drawer-link { font-size: 18px; }
}

/* ============================================================
 * MENU ENTRY ANIMATIONS — smooth stagger on open
 * ============================================================ */

/* Keyframes */
@keyframes rdfy-fall-in {
    0%   { opacity: 0; transform: translateY(-14px); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes rdfy-fall-in-right {
    0%   { opacity: 0; transform: translateX(14px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Desktop mega menu: items start hidden, animate on .open */
.rdfy-megamenu .rdfy-mm-item,
.rdfy-megamenu .rdfy-mm-section,
.rdfy-megamenu .rdfy-mm-featured {
    opacity: 0;
}
.rdfy-megamenu.open .rdfy-mm-item {
    animation: rdfy-fall-in 0.45s cubic-bezier(0.22, 0.82, 0.26, 1) forwards;
}
.rdfy-megamenu.open .rdfy-mm-item:nth-child(1) { animation-delay: 0.04s; }
.rdfy-megamenu.open .rdfy-mm-item:nth-child(2) { animation-delay: 0.08s; }
.rdfy-megamenu.open .rdfy-mm-item:nth-child(3) { animation-delay: 0.12s; }
.rdfy-megamenu.open .rdfy-mm-item:nth-child(4) { animation-delay: 0.16s; }
.rdfy-megamenu.open .rdfy-mm-item:nth-child(5) { animation-delay: 0.20s; }
.rdfy-megamenu.open .rdfy-mm-item:nth-child(6) { animation-delay: 0.24s; }
.rdfy-megamenu.open .rdfy-mm-item:nth-child(7) { animation-delay: 0.28s; }
.rdfy-megamenu.open .rdfy-mm-item:nth-child(8) { animation-delay: 0.32s; }

.rdfy-megamenu.open .rdfy-mm-section {
    animation: rdfy-fall-in-right 0.5s cubic-bezier(0.22, 0.82, 0.26, 1) forwards;
}
.rdfy-megamenu.open .rdfy-mm-section:nth-child(1) { animation-delay: 0.12s; }
.rdfy-megamenu.open .rdfy-mm-section:nth-child(2) { animation-delay: 0.18s; }
.rdfy-megamenu.open .rdfy-mm-section:nth-child(3) { animation-delay: 0.24s; }
.rdfy-megamenu.open .rdfy-mm-section:nth-child(4) { animation-delay: 0.30s; }

.rdfy-megamenu.open .rdfy-mm-featured {
    animation: rdfy-fall-in 0.55s cubic-bezier(0.22, 0.82, 0.26, 1) forwards;
    animation-delay: 0.34s;
}

/* Mobile drawer: items stagger in when drawer opens (body.rdfy-drawer-open) */
.rdfy-drawer .rdfy-drawer-group { opacity: 0; }
body.rdfy-drawer-open .rdfy-drawer .rdfy-drawer-group {
    animation: rdfy-fall-in 0.42s cubic-bezier(0.22, 0.82, 0.26, 1) forwards;
}
body.rdfy-drawer-open .rdfy-drawer .rdfy-drawer-group:nth-child(1) { animation-delay: 0.08s; }
body.rdfy-drawer-open .rdfy-drawer .rdfy-drawer-group:nth-child(2) { animation-delay: 0.14s; }
body.rdfy-drawer-open .rdfy-drawer .rdfy-drawer-group:nth-child(3) { animation-delay: 0.20s; }
body.rdfy-drawer-open .rdfy-drawer .rdfy-drawer-group:nth-child(4) { animation-delay: 0.26s; }

.rdfy-drawer-footer { opacity: 0; transform: translateY(12px); transition: opacity 0.35s ease 0.25s, transform 0.35s ease 0.25s; }
body.rdfy-drawer-open .rdfy-drawer-footer { opacity: 1; transform: translateY(0); }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .rdfy-megamenu .rdfy-mm-item,
    .rdfy-megamenu .rdfy-mm-section,
    .rdfy-megamenu .rdfy-mm-featured,
    .rdfy-drawer .rdfy-drawer-group,
    .rdfy-drawer-footer {
        animation: none !important;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
 * MODAL — base styles (shared across pages)
 * Pages can add their own .e-modal-* child styles scoped to themselves
 * ============================================================ */
.e-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.e-modal.is-open { display: flex; opacity: 1; }
.e-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 26, 22, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.e-modal-container {
    position: relative;
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--rdfy-cream);
    border-radius: 20px;
    transform: translateY(24px) scale(0.98);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow:
        0 40px 80px -20px rgba(28, 26, 22, 0.45),
        0 0 0 1px rgba(28, 26, 22, 0.06);
}
.e-modal.is-open .e-modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.e-modal-container > .e-modal-head,
.e-modal-container > .e-modal-footer { padding-left: 56px; padding-right: 56px; }
.e-modal-container > .e-modal-head { padding-top: 64px; padding-bottom: 32px; max-width: none; }
.e-modal-container > .e-modal-footer { padding-bottom: 48px; padding-top: 24px; border-top: 1px solid var(--rdfy-line); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.e-modal-close {
    position: absolute;
    top: 24px; right: 24px;
    width: 40px; height: 40px;
    border: 1px solid var(--rdfy-line);
    background: var(--rdfy-cream);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--rdfy-ink);
    transition: all 0.2s ease;
    z-index: 2;
}
.e-modal-close:hover {
    background: var(--rdfy-ink);
    color: var(--rdfy-cream);
    border-color: var(--rdfy-ink);
    transform: rotate(90deg);
}
.e-modal-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px;
    background: rgba(46, 74, 34, 0.1);
    border: 1px solid rgba(46, 74, 34, 0.22);
    color: var(--rdfy-verde);
    border-radius: 999px;
    font-family: var(--rdfy-f-ui);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.e-modal-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rdfy-verde);
    animation: e-pulse 2.5s ease-in-out infinite;
}
@keyframes e-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.e-modal-head h2 {
    font-family: var(--rdfy-f-display);
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 20px;
}
.e-modal-head h2 em { color: var(--rdfy-terracota); font-style: italic; }
.e-modal-sub {
    font-size: 16px;
    color: var(--rdfy-ink-muted);
    line-height: 1.55;
    margin: 0;
}
.e-modal-cta { font-size: 15px; padding: 14px 28px !important; }
.e-modal-dismiss {
    background: transparent;
    border: none;
    color: var(--rdfy-ink-soft);
    font-family: var(--rdfy-f-ui);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--rdfy-line);
}
.e-modal-dismiss:hover { color: var(--rdfy-ink); }

/* Lock body scroll when modal open */
body.e-modal-open { overflow: hidden; }

@media (max-width: 768px) {
    .e-modal { padding: 12px; }
    .e-modal-container { max-height: 94vh; border-radius: 14px; }
    .e-modal-container > .e-modal-head { padding: 48px 24px 24px; }
    .e-modal-container > .e-modal-footer { padding: 20px 24px 32px; flex-direction: column; align-items: stretch; }
    .e-modal-close { top: 14px; right: 14px; width: 36px; height: 36px; }
    .e-modal-cta { justify-content: center; text-align: center; }
}

/* ============================================================
 * WIZARD — plan recommendation modal
 * ============================================================ */
.w-modal .w-container {
    max-width: 780px;
    padding: 0;
    background: var(--rdfy-cream);
}

/* Progress */
.w-modal .w-progress {
    padding: 28px 48px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--rdfy-line-soft);
}
.w-modal .w-progress-track {
    flex: 1;
    height: 4px;
    background: var(--rdfy-pergamino);
    border-radius: 999px;
    overflow: hidden;
}
.w-modal .w-progress-bar {
    height: 100%;
    background: var(--rdfy-terracota);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.w-modal .w-progress-text {
    font-family: var(--rdfy-f-ui);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rdfy-ink-soft);
    white-space: nowrap;
}

/* Steps */
.w-modal .w-step {
    display: none;
    padding: 44px 48px 48px;
    animation: w-fade-in 0.35s cubic-bezier(0.22, 0.82, 0.26, 1);
}
.w-modal .w-step-active { display: block; }
@keyframes w-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.w-modal .w-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px;
    background: rgba(190, 74, 44, 0.1);
    border: 1px solid rgba(190, 74, 44, 0.2);
    color: var(--rdfy-terracota);
    border-radius: 999px;
    font-family: var(--rdfy-f-ui);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 20px;
}
.w-modal .w-eyebrow .e-modal-dot { background: var(--rdfy-terracota); }
.w-modal .w-eyebrow-result {
    background: rgba(46, 74, 34, 0.1);
    border-color: rgba(46, 74, 34, 0.22);
    color: var(--rdfy-verde);
}
.w-modal .w-eyebrow-result .e-modal-dot { background: var(--rdfy-verde); }

.w-modal .w-h {
    font-family: var(--rdfy-f-display);
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 16px;
    color: var(--rdfy-ink);
}
.w-modal .w-h em { color: var(--rdfy-terracota); font-style: italic; }
.w-modal .w-sub {
    font-size: 16px;
    color: var(--rdfy-ink-muted);
    line-height: 1.55;
    margin: 0 0 36px;
    max-width: 580px;
}

/* Options */
.w-modal .w-options {
    display: grid;
    gap: 12px;
}
.w-modal .w-options-3 { grid-template-columns: 1fr; }
.w-modal .w-option {
    all: unset;
    cursor: pointer;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 24px;
    background: var(--rdfy-cream);
    border: 1px solid var(--rdfy-line);
    border-radius: 14px;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.w-modal .w-option:hover {
    transform: translateX(4px);
    border-color: var(--rdfy-ink);
    background: var(--rdfy-cream-warm);
}
.w-modal .w-option:focus-visible {
    outline: 2px solid var(--rdfy-terracota);
    outline-offset: 2px;
}
.w-modal .w-option::after {
    content: "→";
    font-family: var(--rdfy-f-display);
    font-size: 22px;
    color: var(--rdfy-ink-soft);
    transition: all 0.25s ease;
    line-height: 1;
}
.w-modal .w-option:hover::after { color: var(--rdfy-terracota); transform: translateX(4px); }

.w-modal .w-opt-ico {
    width: 48px; height: 48px;
    background: var(--rdfy-pergamino);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--rdfy-ink);
    flex-shrink: 0;
}
/* Options without an icon (freq / taste / priority / duration / team) */
.w-modal .w-step[data-step="freq"] .w-option,
.w-modal .w-step[data-step="taste"] .w-option,
.w-modal .w-step[data-step="priority"] .w-option,
.w-modal .w-step[data-step="duration"] .w-option,
.w-modal .w-step[data-step="team"] .w-option {
    grid-template-columns: 1fr auto;
    gap: 16px;
}

.w-modal .w-opt-t {
    font-family: var(--rdfy-f-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--rdfy-ink);
    margin-bottom: 4px;
    line-height: 1.15;
}
.w-modal .w-opt-d {
    font-size: 13px;
    color: var(--rdfy-ink-muted);
    line-height: 1.5;
}
.w-modal .w-opt-d strong { font-weight: 600; color: var(--rdfy-ink); }

/* Result card */
.w-modal .w-step[data-step="result"] .w-h { font-size: clamp(28px, 3.2vw, 40px); }
.w-modal .w-result-why {
    font-size: 15px;
    max-width: none;
}
.w-modal .w-result-card {
    background: var(--rdfy-ink);
    color: var(--rdfy-cream);
    border-radius: 18px;
    padding: 32px 32px 28px;
    margin: 8px 0 20px;
    position: relative;
    overflow: hidden;
}
.w-modal .w-result-card::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(190, 74, 44, 0.24) 0%, transparent 65%);
    pointer-events: none;
}
.w-modal .w-result-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(249,247,242,0.14);
    position: relative;
}
.w-modal .w-result-plan {
    font-family: var(--rdfy-f-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--rdfy-cream);
    flex: 1;
    min-width: 0;
}
.w-modal .w-result-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
    text-align: right;
    flex-direction: column;
}
.w-modal .w-result-price {
    font-family: var(--rdfy-f-display);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--rdfy-cream);
}
.w-modal .w-result-per {
    font-size: 12px;
    color: var(--rdfy-ambar-soft);
    font-weight: 500;
}
.w-modal .w-result-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.w-modal .w-result-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(249, 247, 242, 0.92);
}
.w-modal .w-result-features svg {
    color: var(--rdfy-ambar-soft);
    flex-shrink: 0;
}
.w-modal .w-result-card a.w-result-cta,
.readify-pages-wrap .w-modal .w-result-card a.w-result-cta,
.w-modal a.rdfy-btn.w-result-cta {
    width: 100%;
    justify-content: center !important;
    background: var(--rdfy-cream) !important;
    color: var(--rdfy-ink) !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: 0 !important;
    margin-bottom: 14px;
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.w-modal .w-result-card a.w-result-cta:hover,
.readify-pages-wrap .w-modal .w-result-card a.w-result-cta:hover {
    background: var(--rdfy-pergamino) !important;
    color: var(--rdfy-ink) !important;
    transform: translateY(-1px);
}
.w-modal .w-result-card a.w-result-cta span {
    color: inherit !important;
    font-size: inherit !important;
    display: inline-block;
}
.w-modal .w-result-alt {
    display: block;
    text-align: center;
    font-family: var(--rdfy-f-ui);
    font-size: 13px;
    color: rgba(249,247,242,0.65) !important;
    padding: 4px;
    position: relative;
    transition: color 0.2s;
}
.w-modal .w-result-alt:hover { color: var(--rdfy-cream) !important; }

.w-modal .w-restart {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rdfy-f-ui);
    font-size: 13px;
    color: var(--rdfy-ink-soft);
    padding: 10px 16px;
    border: 1px solid var(--rdfy-line);
    border-radius: 999px;
    transition: all 0.2s;
    margin-top: 4px;
}
.w-modal .w-restart:hover {
    border-color: var(--rdfy-ink);
    color: var(--rdfy-ink);
}

@media (max-width: 768px) {
    .w-modal .w-progress { padding: 20px 24px 16px; gap: 14px; }
    .w-modal .w-step { padding: 28px 24px 32px; }
    .w-modal .w-h { font-size: 26px; }
    .w-modal .w-sub { font-size: 14px; margin-bottom: 24px; }
    .w-modal .w-option { grid-template-columns: 44px 1fr auto; padding: 18px 20px; gap: 14px; }
    .w-modal .w-step[data-step="freq"] .w-option,
    .w-modal .w-step[data-step="taste"] .w-option,
    .w-modal .w-step[data-step="priority"] .w-option,
    .w-modal .w-step[data-step="duration"] .w-option,
    .w-modal .w-step[data-step="team"] .w-option { grid-template-columns: 1fr auto; }
    .w-modal .w-opt-ico { width: 40px; height: 40px; }
    .w-modal .w-opt-t { font-size: 17px; }
    .w-modal .w-opt-d { font-size: 12px; }
    .w-modal .w-result-card { padding: 24px; }
    .w-modal .w-result-top { flex-direction: column; align-items: flex-start; }
    .w-modal .w-result-price-row { text-align: left; flex-direction: row; }
}

/* ============================================================
 * BOOK COVER PHOTO OVERRIDES — for pages using custom book markup
 * (.rdfy-book in inicio, .e-book in estrena)
 * ============================================================ */
.rdfy-book.rdfy-book-photo,
.e-book.e-book-photo {
    overflow: hidden;
    position: relative;
}
.rdfy-book-img,
.e-book-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}
.rdfy-book-photo .rdfy-book-title,
.e-book-photo .e-book-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.05) 100%);
    min-height: 55%;
}
.rdfy-book-notext .rdfy-book-title,
.e-book-notext .e-book-inner { display: none; }
