@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --rp-yellow: #f5bc04;
    --rp-yellow-dark: #d9a500;
    --rp-charcoal: #222222;
    --rp-black: #080808;
    --rp-grey: #777777;
    --rp-light: #f4f4f4;
    --rp-border: #dddddd;
    --rp-white: #ffffff;
    --rp-shadow: 0 15px 40px rgba(0, 0, 0, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--rp-charcoal);
    background: #fff;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.65;
}

body,
button,
input {
    font-family: "Poppins", Arial, sans-serif;
}

a {
    color: var(--rp-yellow-dark);
}

button {
    font: inherit;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

/* ReviewPainting header */
.rp-top-line {
    height: 5px;
    background: #1f2730;
}

.rp-site-header {
    position: relative;
    z-index: 50;
    background: #fff;
}

.rp-header-inner,
.rp-nav-inner {
    width: 100%;
    margin: 0 auto;
}

.rp-header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.rp-logo-link {
    display: inline-flex;
    width: 145px;
    align-items: center;
}

.rp-social-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rp-social-links a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #777;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rp-social-links a:hover {
    color: var(--rp-yellow-dark);
}

.rp-navigation {
    background: #f6f6f6;
}

.rp-nav-inner {
    padding: 0 74px;
}

.rp-menu {
    display: flex;
    min-height: 74px;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.rp-menu > li > a,
.rp-menu > li > button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 19px;
    border: 0;
    color: #161616;
    background: transparent;
    cursor: pointer;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.rp-menu > li > a:hover,
.rp-menu > li > button:hover {
    color: #000;
    background: #ffe795;
}

.rp-menu > li > .rp-tool-active {
    position: relative;
    color: #fff;
    background: var(--rp-yellow);
    font-weight: 600;
    clip-path: polygon(100% 0, 100% 86%, 14% 86%, 0 100%, 0 0);
}

.rp-has-submenu > ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 255px;
    margin: 0;
    padding: 8px 0;
    border-top: 3px solid var(--rp-yellow);
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    list-style: none;
}

.rp-has-submenu:hover > ul,
.rp-has-submenu:focus-within > ul {
    display: block;
}

.rp-has-submenu ul a {
    display: block;
    padding: 10px 16px;
    color: #333;
    font-size: 0.86rem;
    text-decoration: none;
}

.rp-has-submenu ul a:hover {
    color: #000;
    background: #fff5d1;
}

.rp-menu-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 15px 3px;
    border: 0;
    color: #222;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
}

/* Tool hero */
.finder-page,
.result-page {
    min-height: 70vh;
    padding: 0 18px 90px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98)),
        repeating-linear-gradient(135deg, #f3f3f3 0, #f3f3f3 1px, transparent 1px, transparent 14px);
}

.finder-shell,
.result-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.finder-hero {
    position: relative;
    padding: 74px 20px 44px;
    overflow: hidden;
    text-align: center;
}

.finder-hero::before,
.finder-hero::after {
    position: absolute;
    width: 210px;
    height: 210px;
    border: 30px solid rgba(245, 188, 4, 0.09);
    border-radius: 50%;
    content: "";
}

.finder-hero::before {
    top: -95px;
    left: -85px;
}

.finder-hero::after {
    right: -95px;
    bottom: -115px;
}

.hero-art-mark {
    display: flex;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding: 15px;
    border-radius: 50%;
    background: var(--rp-charcoal);
    box-shadow: 0 9px 0 rgba(245, 188, 4, 0.25);
}

.hero-art-mark span {
    display: block;
    width: 7px;
    border-radius: 5px 5px 0 0;
    background: var(--rp-yellow);
    transform-origin: bottom center;
}

.hero-art-mark span:nth-child(1) { height: 20px; transform: rotate(-16deg); }
.hero-art-mark span:nth-child(2) { height: 35px; }
.hero-art-mark span:nth-child(3) { height: 27px; transform: rotate(10deg); }
.hero-art-mark span:nth-child(4) { height: 17px; transform: rotate(23deg); }

.eyebrow,
.card-kicker {
    margin-bottom: 9px;
    color: var(--rp-yellow-dark);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.finder-hero h1,
.result-hero h1 {
    margin-bottom: 16px;
    color: var(--rp-charcoal);
    font-size: clamp(2.1rem, 5.2vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.finder-hero h1 em {
    position: relative;
    color: var(--rp-charcoal);
    font-style: normal;
}

.finder-hero h1 em::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 8px;
    background: var(--rp-yellow);
    content: "";
    opacity: 0.85;
    transform: skewX(-18deg);
    z-index: -1;
}

.intro {
    max-width: 760px;
    margin: 0 auto 25px;
    color: #666;
    font-size: 1.03rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-points li {
    position: relative;
    padding: 8px 15px 8px 30px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 0.83rem;
}

.hero-points li::before {
    position: absolute;
    left: 12px;
    color: var(--rp-yellow-dark);
    content: "✓";
    font-weight: 800;
}

/* Quiz */
.quiz-card,
.result-card,
.project-card {
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: var(--rp-shadow);
}

.quiz-card {
    position: relative;
    max-width: 900px;
    min-height: 540px;
    margin: 0 auto;
    padding: clamp(26px, 5vw, 52px);
    border-top: 7px solid var(--rp-yellow);
}

.quiz-card::after {
    position: absolute;
    top: -7px;
    right: 0;
    width: 95px;
    height: 7px;
    background: var(--rp-charcoal);
    content: "";
}

.progress-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.82rem;
    font-weight: 600;
}

.progress-track,
.meter-track {
    height: 8px;
    overflow: hidden;
    background: #ececec;
}

.progress-track {
    margin-bottom: 42px;
}

.progress-track span,
.meter-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--rp-charcoal) 0 12%, var(--rp-yellow) 12% 100%);
    transition: width 0.35s ease;
}

.question-panel {
    display: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.question-panel.is-active {
    display: block;
    animation: questionIn 0.3s ease;
}

.question-panel legend {
    width: 100%;
    margin-bottom: 8px;
    padding: 0;
    color: #222;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.question-helper {
    margin-bottom: 30px;
    color: #777;
    text-align: center;
}

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

.answer-card {
    position: relative;
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    border: 1px solid #d8d8d8;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.answer-card::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: transparent;
    content: "";
}

.answer-card:hover {
    border-color: #c9a735;
    background: #fffdf5;
    transform: translateY(-2px);
}

.answer-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-check {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 2px solid #bbb;
    border-radius: 50%;
    color: transparent;
    font-size: 0.8rem;
}

.answer-text {
    color: #333;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.4;
}

.answer-card:has(input:checked) {
    border-color: var(--rp-yellow-dark);
    background: #fff8df;
}

.answer-card:has(input:checked)::after {
    background: var(--rp-yellow);
}

.answer-card:has(input:checked) .answer-check {
    border-color: var(--rp-yellow);
    color: #222;
    background: var(--rp-yellow);
}

.answer-card:has(input:focus-visible) {
    outline: 3px solid rgba(245, 188, 4, 0.32);
    outline-offset: 3px;
}

.question-error {
    display: none;
    margin: 18px 0 0;
    color: #b42318;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.quiz-actions,
.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--rp-yellow);
    box-shadow: 7px 7px 0 var(--rp-charcoal);
}

.button-primary:hover {
    color: #fff;
    background: var(--rp-yellow-dark);
}

.button-secondary {
    border: 1px solid #bbb;
    color: #333;
    background: #fff;
}

.button-secondary:hover {
    border-color: #222;
    color: #fff;
    background: #222;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.is-hidden {
    display: none !important;
}

.trust-section {
    padding: 75px 0 15px;
    text-align: center;
}

.trust-section > h2 {
    margin-bottom: 28px;
    color: #333;
    font-size: 1.85rem;
    font-weight: 600;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    text-align: left;
}

.trust-grid article {
    position: relative;
    padding: 28px 25px;
    border: 1px solid #ddd;
    background: #fff;
}

.trust-grid article > span {
    color: var(--rp-yellow);
    font-size: 2rem;
    font-weight: 800;
}

.trust-grid h3 {
    margin: 7px 0;
    color: #333;
    font-size: 1.05rem;
}

.trust-grid p {
    margin-bottom: 0;
    color: #777;
    font-size: 0.88rem;
}

.notice {
    max-width: 760px;
    margin: 30px auto;
    padding: 20px;
}

.notice.error {
    border: 1px solid #fecaca;
    color: #991b1b;
    background: #fff1f2;
}

/* Result page */
.result-page {
    padding-top: 40px;
}

.result-hero {
    position: relative;
    padding: 55px 25px 68px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.result-icon {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 0 auto 24px;
    place-items: center;
    color: #222;
    background: var(--rp-yellow);
    box-shadow: 8px 8px 0 var(--rp-charcoal);
    font-size: 2rem;
}

.result-tagline {
    max-width: 660px;
    margin: 0 auto;
    color: #666;
    font-size: 1.05rem;
}

.match-meter {
    max-width: 430px;
    margin: 32px auto 0;
}

.match-number {
    margin-bottom: 12px;
    color: #222;
    font-size: 2.35rem;
    font-weight: 700;
}

.match-number small {
    margin-left: 6px;
    color: #777;
    font-size: 0.82rem;
}

.result-summary {
    margin: 28px 0 22px;
    padding: clamp(26px, 5vw, 44px);
    border-top: 5px solid var(--rp-yellow);
    text-align: center;
}

.result-card h2,
.project-card h2 {
    margin-bottom: 13px;
    color: #222;
    font-size: 1.55rem;
    font-weight: 600;
}

.result-summary > p {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
    color: #666;
}

.secondary-match {
    margin-top: 22px !important;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

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

.result-grid .result-card {
    padding: clamp(24px, 4vw, 36px);
}

.feature-list,
.painting-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li,
.painting-list li {
    position: relative;
    margin: 10px 0;
    padding-left: 23px;
    color: #555;
}

.feature-list li::before,
.painting-list li::before {
    position: absolute;
    left: 0;
    color: var(--rp-yellow-dark);
    content: "›";
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 26px;
}

.palette span {
    width: 49px;
    height: 49px;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #ccc;
}

.medium {
    margin-bottom: 0;
    color: #666;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pill-list span {
    padding: 8px 13px;
    border-left: 4px solid var(--rp-yellow);
    color: #333;
    background: #f3f3f3;
    font-size: 0.88rem;
    font-weight: 600;
}

.project-card {
    position: relative;
    display: flex;
    margin-top: 22px;
    padding: clamp(28px, 5vw, 46px);
    overflow: hidden;
    border: 0;
    color: #fff;
    background: var(--rp-charcoal);
}

.project-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 10px;
    background: var(--rp-yellow);
    content: "";
}

.project-card > div {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.project-card h2 {
    color: #fff;
}

.project-card .card-kicker {
    color: var(--rp-yellow);
}

.project-card p:last-child {
    margin-bottom: 0;
    color: #ddd;
}

.project-brush {
    position: absolute;
    right: 35px;
    bottom: -45px;
    color: rgba(245, 188, 4, 0.2);
    font-size: 10rem;
}

/* Footer */
.rp-footer {
    position: relative;
    padding-top: 80px;
    color: #fff;
    background: var(--rp-charcoal);
}

.rp-footer-angle {
    position: absolute;
    top: -1px;
    right: 0;
    left: 0;
    height: 80px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 15%, 0 100%);
}

.rp-footer-inner {
    width: calc(100% - 54px);
    margin: 0 auto;
    padding: 0 0 36px;
}

.rp-footer-logo {
    margin-top: -8px;
    margin-bottom: 18px;
    text-align: right;
}

.rp-footer-logo img {
    width: 210px;
    height: auto;
}

.rp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.85fr 0.85fr 0.85fr 1.25fr;
    gap: 25px;
}

.rp-footer h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
}

.rp-footer p {
    color: #c9c8c8;
    font-size: 0.86rem;
    line-height: 1.55;
}

.rp-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-footer li {
    margin: 11px 0;
}

.rp-footer li a {
    position: relative;
    display: inline-block;
    padding-left: 16px;
    color: #fff;
    font-size: 0.86rem;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.rp-footer li a::before {
    position: absolute;
    left: 0;
    color: #ddd;
    content: "›";
}

.rp-footer li a:hover {
    color: var(--rp-yellow);
    transform: translateX(7px);
}

.rp-footer-social {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.rp-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    color: #777;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.rp-footer-social a:hover {
    color: var(--rp-yellow);
}

.rp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 14px;
    padding: 20px 27px;
    color: #fff;
    background: #000;
    font-size: 0.82rem;
}

.rp-footer-bottom > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
}

.rp-footer-bottom nav {
    display: flex;
    gap: 22px;
}

.rp-footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.rp-footer-bottom a:hover {
    color: var(--rp-yellow);
}

@keyframes questionIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
    .rp-nav-inner {
        padding: 0 20px;
    }

    .rp-menu {
        gap: 2px;
    }

    .rp-menu > li > a,
    .rp-menu > li > button {
        padding: 0 11px;
        font-size: 0.82rem;
    }
}

@media (max-width: 980px) {
    .rp-header-inner {
        min-height: 72px;
    }

    .rp-social-links {
        display: none;
    }

    .rp-menu-toggle {
        display: flex;
    }

    .rp-menu {
        display: none;
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 0 0 12px;
    }

    .rp-menu.is-open {
        display: flex;
    }

    .rp-menu > li,
    .rp-menu > li > a,
    .rp-menu > li > button {
        width: 100%;
    }

    .rp-menu > li > a,
    .rp-menu > li > button {
        min-height: 48px;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .rp-menu > li > .rp-tool-active {
        clip-path: none;
    }

    .rp-has-submenu:hover > ul {
        display: none;
    }

    .rp-has-submenu.is-open > ul {
        position: static;
        display: block;
        width: 100%;
        border-top: 0;
        border-left: 4px solid var(--rp-yellow);
        box-shadow: none;
    }

    .rp-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rp-footer-review-space {
        display: none;
    }
}

@media (max-width: 720px) {
    .rp-header-inner,
    .rp-nav-inner,
    .rp-footer-inner {
        width: min(100% - 28px, 1160px);
    }

    .finder-page,
    .result-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .finder-hero {
        padding: 55px 8px 35px;
    }

    .answer-grid,
    .trust-grid,
    .result-grid,
    .rp-footer-grid {
        grid-template-columns: 1fr;
    }

    .quiz-card {
        min-height: 0;
        padding: 25px 17px;
    }

    .progress-head {
        font-size: 0.74rem;
    }

    .answer-card {
        min-height: 70px;
    }

    .quiz-actions .button,
    .result-actions .button {
        flex: 1 1 100%;
    }

    .result-hero {
        padding: 38px 8px 50px;
    }

    .rp-footer {
        padding-top: 45px;
    }

    .rp-footer-angle {
        height: 45px;
    }

    .rp-footer-grid {
        gap: 25px;
    }

    .rp-footer-logo {
        text-align: left;
    }

    .rp-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .rp-footer-bottom nav {
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}

@media print {
    .rp-site-header,
    .rp-footer,
    .result-actions {
        display: none !important;
    }

    .result-page {
        padding: 0;
    }

    .result-card,
    .project-card {
        break-inside: avoid;
        box-shadow: none;
    }
}
