
/* Phase 5: full-width site shell, branded header/footer and homepage live wheel */
.rngw-branded-site {
    overflow-x: clip;
    background: #fffdfa;
}

.rngw-branded-site .site-header,
.rngw-branded-site #site-navigation,
.rngw-branded-site .site-footer,
.rngw-branded-site .footer-widgets,
.rngw-branded-site .footer-widgets-container,
.rngw-branded-site .site-info {
    display: none !important;
}

.rngw-brand-header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    border-bottom: 1px solid rgba(18,32,51,.08);
    background: rgba(255,253,249,.96);
    box-shadow: 0 10px 30px rgba(18,32,51,.05);
    backdrop-filter: blur(16px);
}

.admin-bar .rngw-brand-header { top: 32px; }

.rngw-brand-header__inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.rngw-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #122033;
    text-decoration: none;
    min-width: max-content;
}

.rngw-brand-logo:hover,
.rngw-brand-logo:focus-visible { color: #122033; }


.rngw-brand-logo__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(300px, 30vw);
    max-height: 58px;
    object-fit: contain;
}

.rngw-brand-logo__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 3px solid #d8b878;
    border-radius: 50%;
    background:
        conic-gradient(
            #32506d 0 45deg,
            #4b7469 45deg 90deg,
            #8c664e 90deg 135deg,
            #675772 135deg 180deg,
            #315a68 180deg 225deg,
            #7c6838 225deg 270deg,
            #365a78 270deg 315deg,
            #6d4d55 315deg 360deg
        );
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.35),
        0 7px 18px rgba(18,32,51,.14);
}

.rngw-brand-logo__mark::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 9px solid #c7a56a;
}

.rngw-brand-logo__mark span {
    width: 14px;
    height: 14px;
    border: 2px solid #e8d4a9;
    border-radius: 50%;
    background: #122033;
}

.rngw-brand-logo__copy strong,
.rngw-brand-logo__copy span {
    display: block;
    line-height: 1.02;
}

.rngw-brand-logo__copy strong {
    font-size: 1.12rem;
    letter-spacing: -.02em;
}

.rngw-brand-logo__copy span {
    margin-top: 3px;
    color: #6a7482;
    font-size: .81rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.rngw-brand-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-left: auto;
}

.rngw-brand-nav a {
    position: relative;
    padding: 27px 0 25px;
    color: #4f5c6e;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.rngw-brand-nav a:hover,
.rngw-brand-nav a:focus-visible,
.rngw-brand-nav a.is-current {
    color: #122033;
}

.rngw-brand-nav a.is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 2px;
    border-radius: 999px;
    background: #c7a56a;
}

.rngw-brand-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    background: #122033;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(18,32,51,.15);
}

.rngw-brand-header__cta:hover,
.rngw-brand-header__cta:focus-visible {
    background: #1b2f49;
    color: #fff;
}

.rngw-mobile-menu { display: none; }

/* The homepage must leave GeneratePress' boxed shell completely. */
.rngw-homepage #page,
.rngw-homepage #content,
.rngw-homepage #primary,
.rngw-homepage #main,
.rngw-homepage article,
.rngw-homepage .inside-article,
.rngw-homepage .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.rngw-homepage #content,
.rngw-homepage .inside-article {
    padding: 0 !important;
}

.rngw-homepage .entry-content {
    margin-top: 0 !important;
}

/* Break the branded footer out of any GeneratePress container on inner pages. */
.rngw-brand-footer {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}



.rngw-homepage .entry-header,
.rngw-homepage .inside-article > header,
.rngw-homepage .featured-image,
.rngw-homepage .post-image,
.rngw-homepage .comments-area {
    display: none !important;
}

.rngw-homepage .inside-article,
.rngw-homepage .entry-content,
.rngw-homepage .site-main,
.rngw-homepage .content-area {
    width: 100%;
    max-width: 100%;
}

.rngw-homepage .entry-content {
    margin-top: 0;
}

.rngw-homepage .entry-content > [class*="wp-block"],
.rngw-homepage .entry-content > * {
    max-width: none;
}

.rngw-home-page {
    background: #fffdfa;
    color: #122033;
}

.rngw-home-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.rngw-home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 94px) 0 clamp(52px, 7vw, 86px);
    background:
        radial-gradient(circle at 85% 5%, rgba(214, 184, 122, .20), transparent 24%),
        linear-gradient(135deg, #0d1b2c 0%, #162b43 55%, #1d3850 100%);
    color: #fff;
}

.rngw-home-hero::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -62px;
    height: 110px;
    border-radius: 50% 50% 0 0;
    background: #fffdfa;
}

.rngw-home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: center;
}

.rngw-home-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    color: #e8d4a9;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.rngw-home-copy h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -.04em;
}


.rngw-home-hero-line {
    margin: -2px 0 16px;
    color: #e8d4a9;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.rngw-home-intro {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 1.7vw, 1.16rem);
    line-height: 1.8;
}

.rngw-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.rngw-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.rngw-home-btn:hover,
.rngw-home-btn:focus-visible {
    transform: translateY(-2px);
}

.rngw-home-btn--primary {
    background: linear-gradient(180deg, #f1ddb2 0%, #d2ae6a 100%);
    color: #122033;
    box-shadow: 0 14px 34px rgba(10, 16, 25, .18);
}

.rngw-home-btn--secondary {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.05);
    color: #fff;
}

.rngw-home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.rngw-home-stats div {
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.05);
}

.rngw-home-stats strong,
.rngw-home-stats span {
    display: block;
}

.rngw-home-stats strong {
    color: #fff;
    font-size: 1.3rem;
}

.rngw-home-stats span {
    color: rgba(255,255,255,.72);
    font-size: .83rem;
}

.rngw-home-showcase {
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid rgba(232, 212, 169, .20);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 100%);
    box-shadow: 0 24px 60px rgba(7, 13, 21, .22);
    backdrop-filter: blur(10px);
}

.rngw-home-showcase h2 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(1.75rem, 2.8vw, 2.4rem);
    line-height: 1.15;
}

.rngw-home-showcase ul {
    margin: 0 0 22px 1.1em;
    color: rgba(255,255,255,.82);
    line-height: 1.75;
}

.rngw-home-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rngw-home-mini-grid > div {
    padding: 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
}

.rngw-home-mini-grid strong,
.rngw-home-mini-grid span { display:block; }
.rngw-home-mini-grid strong { color:#fff; margin-bottom:4px; }
.rngw-home-mini-grid span { color:rgba(255,255,255,.72); font-size:.86rem; line-height:1.55; }

.rngw-home-section {
    padding: clamp(54px, 7vw, 88px) 0;
}

.rngw-home-section--soft {
    background: linear-gradient(180deg, #fffdfa 0%, #faf6ef 100%);
}

.rngw-home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rngw-home-steps article,
.rngw-home-category-card {
    padding: 24px;
    border: 1px solid #e7dfd2;
    border-radius: 22px;
    background: linear-gradient(145deg, #fffefa 0%, #fbf7f0 100%);
    box-shadow: 0 14px 34px rgba(20,31,49,.05);
}

.rngw-home-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #122033;
    color: #e8d4a9;
    font-weight: 800;
}

.rngw-home-steps h3,
.rngw-home-category-card h3 { margin: 0 0 8px; color: #122033; }
.rngw-home-steps p,
.rngw-home-category-card p { margin: 0; color: #5f6d80; line-height: 1.7; }

.rngw-home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rngw-home-category-card {
    display:flex;
    flex-direction:column;
    min-height:210px;
    text-decoration:none;
    color:#122033;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.rngw-home-category-card:hover,
.rngw-home-category-card:focus-visible {
    transform: translateY(-3px);
    border-color:#d3b77f;
    box-shadow:0 20px 44px rgba(20,31,49,.10);
    color:#122033;
}

.rngw-home-category-card .rngw-card-link { margin-top:auto; padding-top:18px; }

.rngw-brand-footer {
    margin-top: clamp(54px, 7vw, 84px);
    padding: clamp(56px, 7vw, 88px) 0;
    background: linear-gradient(180deg, #12324a 0%, #1b5877 100%);
    color: #fff;
}

.rngw-brand-footer__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.rngw-brand-footer__intro {
    max-width: 760px;
    margin-bottom: 30px;
}

.rngw-brand-footer__intro h2 {
    margin: 8px 0 12px;
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.06;
}

.rngw-brand-footer__intro p,
.rngw-footer-note {
    color: rgba(255,255,255,.80);
    line-height: 1.8;
}

.rngw-brand-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.14);
}

.rngw-brand-footer__grid h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.05rem;
}

.rngw-brand-footer__grid ul {
    margin: 0;
    padding-left: 1.1em;
    color: rgba(255,255,255,.82);
    line-height: 1.9;
}

.rngw-brand-footer__grid a {
    color: #fff;
    text-decoration: none;
}

.rngw-brand-footer__grid a:hover,
.rngw-brand-footer__grid a:focus-visible { text-decoration: underline; }

@media (max-width: 1024px) {
    .rngw-home-hero-grid,
    .rngw-home-steps,
    .rngw-home-category-grid,
    .rngw-brand-footer__grid {
        grid-template-columns: 1fr;
    }

    .rngw-home-mini-grid,
    .rngw-home-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .rngw-home-hero { padding-top: 42px; }
    .rngw-home-stats,
    .rngw-home-mini-grid { grid-template-columns: 1fr; }
    .rngw-home-actions { flex-direction: column; }
    .rngw-home-btn { width: 100%; }
}


.rngw-home-wheel-section {
    padding: clamp(66px, 8vw, 104px) 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(199,165,106,.10), transparent 28%),
        #fffdfa;
}

.rngw-home-wheel-intro {
    max-width: 820px;
    margin: 0 auto clamp(28px, 4vw, 46px);
    text-align: center;
}

.rngw-home-wheel-intro h2 {
    margin: 6px 0 12px;
    color: #122033;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.rngw-home-wheel-intro p {
    margin: 0;
    color: #5f6d80;
    font-size: 1.05rem;
    line-height: 1.8;
}

.rngw-home-demo-app {
    max-width: 1180px;
}

.rngw-home-info-section {
    background: #fff;
}

.rngw-home-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.rngw-home-info-copy {
    max-width: 780px;
}

.rngw-home-info-copy h2 {
    margin: 6px 0 18px;
    color: #122033;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.rngw-home-info-copy h3 {
    margin: 32px 0 8px;
    color: #122033;
    font-size: 1.35rem;
    line-height: 1.25;
}

.rngw-home-info-copy p {
    margin: 0 0 16px;
    color: #536276;
    font-size: 1.02rem;
    line-height: 1.85;
}

.rngw-home-use-card {
    position: sticky;
    top: 108px;
    padding: 28px;
    border: 1px solid #e3d7c5;
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(199,165,106,.14), transparent 34%),
        linear-gradient(145deg, #fffefa 0%, #f8f2e8 100%);
    box-shadow: 0 20px 50px rgba(18,32,51,.08);
}

.rngw-home-use-card h2 {
    margin: 6px 0 20px;
    color: #122033;
    font-size: 1.75rem;
    line-height: 1.15;
}

.rngw-home-use-list {
    display: grid;
    gap: 12px;
}

.rngw-home-use-list > div {
    padding: 15px 16px;
    border: 1px solid #e7dfd2;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
}

.rngw-home-use-list strong,
.rngw-home-use-list span {
    display: block;
}

.rngw-home-use-list strong {
    margin-bottom: 4px;
    color: #122033;
}

.rngw-home-use-list span {
    color: #667386;
    font-size: .88rem;
    line-height: 1.55;
}

.rngw-home-faq-section {
    background: linear-gradient(180deg, #faf6ef 0%, #fffdfa 100%);
}

.rngw-home-faqs {
    display: grid;
    gap: 12px;
    max-width: 900px;
}

.rngw-home-faqs details {
    overflow: hidden;
    border: 1px solid #e3d7c5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18,32,51,.04);
}

.rngw-home-faqs summary {
    cursor: pointer;
    padding: 18px 20px;
    color: #122033;
    font-weight: 800;
}

.rngw-home-faqs p {
    margin: 0;
    padding: 0 20px 20px;
    color: #5f6d80;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .rngw-brand-nav,
    .rngw-brand-header__cta {
        display: none;
    }

    .rngw-mobile-menu {
        position: relative;
        display: block;
        margin-left: auto;
    }

    .rngw-mobile-menu summary {
        cursor: pointer;
        list-style: none;
        padding: 9px 14px;
        border: 1px solid #d9cfbf;
        border-radius: 999px;
        color: #122033;
        font-weight: 800;
    }

    .rngw-mobile-menu summary::-webkit-details-marker { display:none; }

    .rngw-mobile-menu nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 20;
        width: 220px;
        padding: 10px;
        border: 1px solid #e3d7c5;
        border-radius: 16px;
        background: #fffdfa;
        box-shadow: 0 18px 44px rgba(18,32,51,.16);
    }

    .rngw-mobile-menu nav a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        color: #122033;
        font-weight: 700;
        text-decoration: none;
    }

    .rngw-mobile-menu nav a:hover { background:#f5eee3; }

    .rngw-home-info-grid {
        grid-template-columns: 1fr;
    }

    .rngw-home-use-card {
        position: static;
    }
}

@media (max-width: 782px) {
    .admin-bar .rngw-brand-header { top: 46px; }
}

@media (max-width: 560px) {
    .rngw-brand-header__inner {
        width: min(100% - 28px, 1180px);
        min-height: 68px;
    }

    .rngw-brand-logo__image {
        max-width: 220px;
        max-height: 48px;
    }

    .rngw-brand-logo__mark {
        width: 40px;
        height: 40px;
    }

    .rngw-brand-logo__copy strong {
        font-size: 1rem;
    }

    .rngw-brand-logo__copy span {
        font-size: .69rem;
    }
}
