/* ==========================================================================
   /projects/ — "Rebuild my website" tool
   Builds on ../styles.css (tokens, nav, footer, buttons, forms, sections).
   Everything here is prefixed .rb- so it can't clash with the main site.
   ========================================================================== */

/* Shared bits ------------------------------------------------------------- */
.rb-main {
    padding-top: 72px; /* fixed navbar */
}

.rb-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rb-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.rb-error {
    color: #ff8f86;
    font-size: 0.92rem;
    margin: 0.75rem 0 0;
    min-height: 1.4em;
}

.rb-error:empty {
    margin: 0;
    min-height: 0;
}

/* Landing hero ------------------------------------------------------------ */
.rb-hero {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
    overflow: hidden;
}

.rb-hero::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto auto;
    width: 60vw;
    height: 60vw;
    max-width: 820px;
    max-height: 820px;
    background: radial-gradient(circle, rgba(95, 211, 196, 0.13), transparent 62%);
    pointer-events: none;
}

.rb-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.rb-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.rb-hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.rb-hero .hero-eyebrow {
    animation: none;
    opacity: 1;
}

.rb-lede {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    max-width: 34rem;
}

.rb-form {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.rb-form h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.rb-url-field {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color 0.3s ease;
}

.rb-url-field:focus-within {
    border-color: var(--accent);
}

.rb-url-field span {
    padding-left: 16px;
    color: var(--muted);
    font-size: 1rem;
    user-select: none;
}

.form-group .rb-url-field input {
    border: 0;
    padding-left: 4px;
    background: transparent;
}

.rb-consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.rb-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: none;
    accent-color: var(--accent);
}

.rb-turnstile {
    min-height: 65px;
    margin-bottom: 1.25rem;
}

.rb-submit {
    width: 100%;
}

.rb-submit[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.rb-small {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 1rem 0 0;
}

/* Landing sections -------------------------------------------------------- */
.rb-section {
    padding: var(--section-pad) 0;
}

.rb-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.rb-template {
    padding: 1.25rem 1.25rem 1.75rem;
}

.rb-template h3 {
    margin-top: 1.25rem;
}

.rb-template p {
    font-size: 0.93rem;
    margin-bottom: 0;
}

/* CSS-only mini site mockups, so the page needs no screenshots yet */
.rb-mock {
    aspect-ratio: 16 / 11;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: grid;
    grid-template-rows: 14% 1fr 26%;
}

.rb-mock i {
    display: block;
}

.rb-mock-bar {
    display: flex;
    align-items: center;
    gap: 6%;
    padding: 0 6%;
}

.rb-mock-bar i {
    height: 18%;
    border-radius: 2px;
}

.rb-mock-bar i:first-child {
    width: 18%;
    margin-right: auto;
}

.rb-mock-bar i:not(:first-child) {
    width: 9%;
}

.rb-mock-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7%;
    padding: 0 8%;
}

.rb-mock-hero i:nth-child(1) { width: 70%; height: 11%; border-radius: 2px; }
.rb-mock-hero i:nth-child(2) { width: 48%; height: 6%; border-radius: 2px; opacity: 0.6; }
.rb-mock-hero i:nth-child(3) { width: 22%; height: 11%; border-radius: 99px; }

.rb-mock-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5%;
    padding: 4% 8% 6%;
}

.rb-mock-cards i {
    border-radius: 2px;
}

/* aurora: clean, light, airy */
.rb-mock--aurora { background: #f6f7fb; }
.rb-mock--aurora .rb-mock-bar i { background: #c9cede; }
.rb-mock--aurora .rb-mock-bar i:first-child { background: #3b5bdb; }
.rb-mock--aurora .rb-mock-hero { background: linear-gradient(120deg, #e7ecff, #f6f7fb); }
.rb-mock--aurora .rb-mock-hero i:nth-child(-n+2) { background: #1f2540; }
.rb-mock--aurora .rb-mock-hero i:nth-child(3) { background: #3b5bdb; }
.rb-mock--aurora .rb-mock-cards i { background: #fff; box-shadow: 0 1px 4px rgba(31, 37, 64, 0.12); }

/* ledger: classic, serif, navy and gold */
.rb-mock--ledger { background: #fbf9f4; }
.rb-mock--ledger .rb-mock-bar { background: #14284b; }
.rb-mock--ledger .rb-mock-bar i { background: #8c9ab3; }
.rb-mock--ledger .rb-mock-bar i:first-child { background: #c9a227; }
.rb-mock--ledger .rb-mock-hero i:nth-child(-n+2) { background: #14284b; }
.rb-mock--ledger .rb-mock-hero i:nth-child(3) { background: #c9a227; border-radius: 2px; }
.rb-mock--ledger .rb-mock-cards i { background: transparent; border-top: 3px solid #c9a227; }

/* harbour: image-led, bold */
.rb-mock--harbour { background: #101418; }
.rb-mock--harbour .rb-mock-bar i { background: rgba(255, 255, 255, 0.5); }
.rb-mock--harbour .rb-mock-bar i:first-child { background: #fff; }
.rb-mock--harbour .rb-mock-hero { background: linear-gradient(160deg, rgba(16, 20, 24, 0.1), rgba(16, 20, 24, 0.85)), linear-gradient(120deg, #2f6f73, #d98e4a); }
.rb-mock--harbour .rb-mock-hero i:nth-child(-n+2) { background: #fff; }
.rb-mock--harbour .rb-mock-hero i:nth-child(3) { background: #f2b544; }
.rb-mock--harbour .rb-mock-cards i { background: linear-gradient(135deg, #3c4a52, #1d252b); }

.rb-price-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin: -0.5rem 0 1rem;
}

.rb-includes {
    list-style: none;
    color: var(--muted);
    font-size: 0.93rem;
}

.rb-includes li {
    padding: 0.45rem 0;
    border-top: 1px solid var(--border);
}

.rb-includes li::before {
    content: '✓';
    color: var(--accent);
    margin-right: 0.6rem;
}

.rb-privacy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem 3rem;
}

.rb-privacy h3 {
    font-size: 1.05rem;
}

.rb-privacy p {
    font-size: 0.93rem;
}

/* Scan screen ------------------------------------------------------------- */
.rb-scan {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--section-pad);
}

.rb-scan-head h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    margin-bottom: 0.5rem;
}

.rb-scan-head p {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.rb-host {
    color: var(--accent);
    word-break: break-all;
}

.rb-scan-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    align-items: start;
}

.rb-progress {
    padding: 1.5rem;
    position: sticky;
    top: 92px;
}

.rb-progress-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.rb-bar {
    height: 3px;
    background: var(--ghost);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.rb-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.6s ease;
}

.rb-bar.is-working i {
    width: 35%;
    animation: rb-indeterminate 1.4s ease-in-out infinite;
}

@keyframes rb-indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

.rb-lines {
    list-style: none;
}

.rb-lines li {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.5rem 0;
    color: var(--muted);
    font-size: 0.95rem;
    animation: rb-in 0.4s ease both;
}

.rb-lines li::before {
    content: '';
    flex: none;
    width: 1.1rem;
    text-align: center;
    font-weight: 600;
}

.rb-lines li.is-done { color: var(--text); }
.rb-lines li.is-done::before { content: '✓'; color: var(--accent); }
.rb-lines li.is-active::before { content: '→'; color: var(--accent); }
.rb-lines li.is-failed::before { content: '✕'; color: #ff8f86; }

.rb-lines li.is-active span::after {
    content: '';
    animation: rb-dots 1.2s steps(4) infinite;
}

@keyframes rb-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

@keyframes rb-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.rb-lines small {
    color: var(--muted);
    font-size: 0.82rem;
}

.rb-swatches {
    display: inline-flex;
    gap: 4px;
    vertical-align: middle;
}

.rb-swatches i {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid var(--border-strong);
}

.rb-outcome {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.rb-outcome[hidden] {
    display: none;
}

.rb-outcome p {
    font-size: 0.95rem;
}

.rb-outcome .cta-button {
    margin: 0.25rem 0.75rem 0.5rem 0;
}

/* Questionnaire ----------------------------------------------------------- */
.rb-questions {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.rb-q-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rb-q-intro {
    font-family: var(--font-display);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin: 0;
}

.rb-dots {
    display: flex;
    gap: 6px;
}

.rb-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: background 0.3s ease;
}

.rb-dots i.is-done { background: var(--accent); }
.rb-dots i.is-current { background: var(--text); }

.rb-q {
    flex: 1;
    animation: rb-in 0.35s ease both;
}

.rb-q h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    margin-bottom: 1.5rem;
    outline: none;
}

.rb-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.rb-option {
    text-align: left;
    padding: 1.1rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rb-option:hover {
    border-color: var(--accent);
}

.rb-option:focus-visible,
.rb-chip:focus-visible,
.rb-q-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.rb-option[aria-pressed="true"] {
    border-color: var(--accent);
    background: rgba(95, 211, 196, 0.08);
}

.rb-option strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
}

.rb-option span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.rb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rb-chip {
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.rb-chip[aria-pressed="true"] {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}

.rb-q textarea {
    width: 100%;
    min-height: 90px;
    padding: 13px 16px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

.rb-q textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.rb-q-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.rb-q-link {
    background: none;
    border: 0;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-strong);
    padding: 0 0 2px;
}

.rb-q-link:hover {
    color: var(--text);
}

.rb-q-link[hidden] {
    visibility: hidden;
}

.rb-q-done p {
    font-size: 1rem;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
    .rb-hero-grid,
    .rb-scan-grid {
        grid-template-columns: 1fr;
    }

    /* Phone/tablet: progress becomes a slim sticky strip showing the latest line */
    .rb-progress {
        top: 72px;
        z-index: 5;
        padding: 0.9rem 1rem;
        background: rgba(18, 18, 18, 0.96);
        backdrop-filter: blur(8px);
    }

    .rb-progress .rb-bar {
        margin-bottom: 0.5rem;
    }

    .rb-progress:not(.is-finished) .rb-lines li:not(:last-child) {
        display: none;
    }

    .rb-progress:not(.is-finished) .rb-lines li {
        padding: 0.15rem 0;
        font-size: 0.9rem;
    }

    .rb-questions {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .rb-options {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rb-bar.is-working i,
    .rb-lines li,
    .rb-q {
        animation: none;
    }

    .rb-lines li.is-active span::after {
        animation: none;
        content: '…';
    }
}

/* Scan summary (logo, name, palette) ------------------------------------- */
.rb-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.rb-summary-logo {
    max-height: 48px;
    max-width: 160px;
    padding: 6px;
    background: #fff;           /* most logos are designed for light backgrounds */
    border-radius: 4px;
}

.rb-summary strong {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text);
}

/* Preview page ------------------------------------------------------------ */
.pv-body {
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    overflow: hidden;
    background: #060606;
}

.pv-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 10px clamp(12px, 2vw, 24px);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.pv-logo img {
    height: 30px;
    display: block;
}

.pv-title {
    margin: 0 auto 0 0;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-title span {
    color: var(--accent);
}

.pv-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pv-seg {
    display: inline-flex;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    overflow: hidden;
}

.pv-seg button {
    background: transparent;
    color: var(--muted);
    border: 0;
    padding: 7px 14px;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.pv-seg button[aria-pressed="true"] {
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
}

.pv-select select {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 7px 14px;
    font: inherit;
    font-size: 0.85rem;
}

.pv-designs {
    display: flex;
    gap: 10px;
    padding: 10px clamp(12px, 2vw, 24px);
    overflow-x: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.pv-design {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pv-design[aria-pressed="true"] {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.pv-design .rb-mock {
    width: 78px;
    border-radius: 3px;
}

.pv-design-label strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
}

.pv-design-label small {
    color: var(--muted);
    font-size: 0.78rem;
}

.pv-design-label em {
    display: inline-block;
    margin-left: 6px;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 999px;
    padding: 1px 7px;
    vertical-align: 1px;
}

.pv-stage {
    min-height: 0;
    display: flex;
    justify-content: center;
    padding: 14px;
    overflow: hidden;
}

.pv-frame {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: width 0.35s ease;
    box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}

.pv-frame.is-tablet { width: min(100%, 820px); }
.pv-frame.is-phone { width: min(100%, 390px); border-radius: 22px; border: 8px solid #222; }

.pv-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.pv-message {
    align-self: center;
    max-width: 520px;
    text-align: center;
    color: var(--text);
    font-size: 1.1rem;
}

.pv-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px 24px;
    padding: 12px clamp(12px, 2vw, 24px);
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.pv-cta[hidden] { display: none; }

.pv-cta-text strong {
    display: block;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 500;
}

.pv-cta-text span {
    color: var(--muted);
    font-size: 0.85rem;
}

.pv-cta-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.pv-ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: 999px;
    padding: 13px 24px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.pv-ghost:hover { border-color: var(--accent); }

.pv-cta-small {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.78rem;
    color: var(--muted);
}

.pv-cta-small a, .pv-linkbtn {
    color: var(--muted);
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.pv-cta-small a:hover, .pv-linkbtn:hover { color: var(--text); }

/* Dialogs */
.pv-dialog {
    margin: auto;               /* the site's global reset (* { margin: 0 }) otherwise pins dialogs to the top-left */
    width: min(92vw, 480px);
    max-height: 92vh;
    padding: clamp(20px, 4vw, 32px);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
}

.pv-dialog-wide { width: min(94vw, 760px); }
.pv-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.pv-dialog h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.pv-dialog p { font-size: 0.95rem; }

.pv-dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
}

.pv-dialog-close button {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.pv-packages {
    border: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 1rem 0 0.5rem;
}

.pv-package input {
    position: absolute;
    opacity: 0;
}

.pv-package span {
    display: block;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
}

.pv-package input:checked + span {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    background: rgba(95, 211, 196, 0.06);
}

.pv-package input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pv-package strong { display: block; font-family: var(--font-display); font-weight: 500; }
.pv-package em { display: block; font-style: normal; color: var(--accent); font-weight: 600; margin-top: 4px; }
.pv-package small { color: var(--muted); font-size: 0.78rem; }
.pv-included { color: var(--muted); font-size: 0.82rem !important; margin-bottom: 1.25rem; }

.pv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.pv-dialog .form-group { margin-bottom: 1rem; }
.pv-dialog .form-group textarea { min-height: 80px; }
.pv-done h2 { color: var(--accent); }

@media (max-width: 900px) {
    .pv-devices { display: none; }
    .pv-cta { grid-template-columns: 1fr; text-align: center; }
    .pv-cta-actions { justify-content: center; }
    .pv-cta-small { flex-direction: row; justify-content: center; gap: 14px; flex-wrap: wrap; }
    .pv-cta-text { display: none; }
    .pv-stage { padding: 0; }
    .pv-frame { border-radius: 0; }
}

@media (max-width: 560px) {
    .pv-title { display: none; }
    .pv-top { justify-content: space-between; }
    .pv-packages, .pv-grid { grid-template-columns: 1fr; }
    .pv-cta-actions .cta-button, .pv-cta-actions .pv-ghost { flex: 1 1 100%; padding: 11px 16px; }
    .pv-design .rb-mock { display: none; }
}

/* Mock thumbnails for the later templates */
/* atelier: warm white, black type, one rust accent */
.rb-mock--atelier { background: #faf8f4; }
.rb-mock--atelier .rb-mock-bar i { background: #bdb6aa; }
.rb-mock--atelier .rb-mock-bar i:first-child { background: #1c1c1c; }
.rb-mock--atelier .rb-mock-hero i:nth-child(1) { width: 82%; height: 16%; background: #1c1c1c; }
.rb-mock--atelier .rb-mock-hero i:nth-child(2) { background: #8b8378; }
.rb-mock--atelier .rb-mock-hero i:nth-child(3) { background: transparent; border-bottom: 2px solid #b5543a; border-radius: 0; height: 6%; }
.rb-mock--atelier .rb-mock-cards i { background: transparent; border-top: 1px solid #1c1c1c; }
/* local: blue call bar, yellow buttons */
.rb-mock--local { background: #fff; }
.rb-mock--local .rb-mock-bar { background: #0b3d73; }
.rb-mock--local .rb-mock-bar i { background: #7fa6cf; }
.rb-mock--local .rb-mock-bar i:first-child { background: #fff; }
.rb-mock--local .rb-mock-hero { background: linear-gradient(#e7f0fa, #fff); }
.rb-mock--local .rb-mock-hero i:nth-child(-n+2) { background: #11161c; }
.rb-mock--local .rb-mock-hero i:nth-child(3) { background: #ffb703; border-radius: 3px; width: 34%; }
.rb-mock--local .rb-mock-cards i { background: #eef2f6; border-left: 3px solid #0b5cad; }
/* haven: sage and peach, soft shapes */
.rb-mock--haven { background: #fdfcfa; }
.rb-mock--haven .rb-mock-bar i { background: #c5d3cd; }
.rb-mock--haven .rb-mock-bar i:first-child { background: #4f7c6d; }
.rb-mock--haven .rb-mock-hero { background: radial-gradient(circle at 15% 10%, #e3ece8, transparent 70%); }
.rb-mock--haven .rb-mock-hero i:nth-child(-n+2) { background: #2f3532; }
.rb-mock--haven .rb-mock-hero i:nth-child(3) { background: #4f7c6d; }
.rb-mock--haven .rb-mock-cards i { background: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(47, 53, 50, 0.15); }
/* nightfall: near-black, violet glow, mint accent */
.rb-mock--nightfall { background: #0b0c10; }
.rb-mock--nightfall .rb-mock-bar i { background: #3a3d4a; }
.rb-mock--nightfall .rb-mock-bar i:first-child { background: #fff; }
.rb-mock--nightfall .rb-mock-hero { background: radial-gradient(ellipse at 50% 0%, rgba(124, 92, 255, 0.55), transparent 70%); align-items: center; }
.rb-mock--nightfall .rb-mock-hero i:nth-child(1) { background: linear-gradient(#fff, #b9a8ff); }
.rb-mock--nightfall .rb-mock-hero i:nth-child(2) { background: #6b7080; }
.rb-mock--nightfall .rb-mock-hero i:nth-child(3) { background: #7c5cff; border-radius: 3px; }
.rb-mock--nightfall .rb-mock-cards i { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
/* market: pink promo panel, product squares */
.rb-mock--market { background: #fff; }
.rb-mock--market .rb-mock-bar i { background: #d4d7de; }
.rb-mock--market .rb-mock-bar i:first-child { background: #d6336c; }
.rb-mock--market .rb-mock-hero { background: #fbe7ee; margin: 0 6%; border-radius: 6px; }
.rb-mock--market .rb-mock-hero i:nth-child(-n+2) { background: #121419; }
.rb-mock--market .rb-mock-hero i:nth-child(3) { background: #d6336c; }
.rb-mock--market .rb-mock-cards { grid-template-columns: repeat(4, 1fr); }
.rb-mock--market .rb-mock-cards i { background: #fbe7ee; border-radius: 4px; }

/* Edit details ------------------------------------------------------------ */
.pv-edit-btn {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 7px 14px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.pv-edit-btn:hover { background: var(--accent); color: var(--accent-ink); }

.pv-fs {
    border: 0;
    border-top: 1px solid var(--border);
    padding: 1.1rem 0 0.25rem;
    margin-top: 0.75rem;
}

.pv-fs legend, .pv-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    padding-right: 10px;
}

.pv-label { margin: 0.25rem 0 0.6rem; }

.pv-photos {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 0.75rem;
}

.pv-photo { flex: none; cursor: pointer; }
.pv-photo input { position: absolute; opacity: 0; }

.pv-photo img, .pv-photo span {
    display: grid;
    place-items: center;
    width: 112px;
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--border-strong);
    color: var(--muted);
    font-size: 0.8rem;
    background: var(--bg);
}

.pv-photo input:checked + img, .pv-photo input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pv-photo input:focus-visible + img, .pv-photo input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.pv-service {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    margin-bottom: 12px;
}

.pv-service input, .pv-service textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.pv-service textarea { grid-column: 1 / -1; resize: vertical; }
.pv-service input:focus, .pv-service textarea:focus { outline: none; border-color: var(--accent); }

.pv-service-remove {
    width: 38px;
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 1.3rem;
    cursor: pointer;
}

.pv-service-remove:hover { color: #ff8f86; border-color: #ff8f86; }
.pv-ghost-sm { padding: 8px 16px; font-size: 0.88rem; margin-bottom: 0.5rem; }

.pv-edit-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 1.25rem;
}

@media (max-width: 560px) {
    .pv-edit-btn { padding: 7px 12px; }
}
