/*
 * Brand studio (hub, advisors, teasers). Colours, radii and shadows come from the theme's semantic tokens,
 * so every brand that names a studio in the registry renders in its own design; fallbacks are neutral.
 * Buy buttons stay the theme's native product cards (black/white).
 */
.popy-studio,
.popy-studio-teaser {
    --st-fg: var(--color-fg, #1e1a1c);
    --st-muted: var(--color-fg-secondary, #5f5559);
    --st-surface: var(--color-surface, #ffffff);
    --st-panel: var(--color-panel, #f6f1ee);
    --st-raised: var(--color-panel-raised, #ffffff);
    --st-line: var(--color-line, rgb(30 26 28 / 0.12));
    --st-accent: var(--color-apricot, #c2185b);
    --st-on-accent: var(--color-on-accent, #ffffff);
    --st-primary: var(--color-primary, #111111);
    --st-on-primary: var(--color-on-primary, #ffffff);
    --st-radius: var(--radius-card, 0.875rem);
    --st-radius-lg: var(--radius-card-lg, 1.25rem);
    --st-radius-input: var(--radius-input, 0.625rem);
    --st-radius-pill: var(--radius-pill, 999px);
    color: var(--st-fg);
}

.popy-studio {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-block: 1rem 3rem;
}

.popy-studio__crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: var(--st-muted);
}

.popy-studio__crumbs li + li::before {
    content: "/";
    margin-inline-end: 0.5rem;
    color: var(--st-line);
}

.popy-studio__crumbs a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.popy-studio__hero {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: var(--st-radius-lg);
    background: var(--st-panel);
}

.popy-studio__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--st-accent);
}

.popy-studio__title {
    font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
}

.popy-studio__intro {
    max-width: 44rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--st-muted);
}

.popy-studio__section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popy-studio__section p {
    max-width: 48rem;
    line-height: 1.65;
}

.popy-studio__h2 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
}

.popy-studio__h3 {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.popy-studio__copy {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .popy-studio__copy {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 3rem;
    }
}

/* Tiles: hub, teasers. */
.popy-studio__tiles {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .popy-studio__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .popy-studio__tiles {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
}

.popy-studio__tile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: var(--st-raised);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.popy-studio__tile:hover,
.popy-studio__tile:focus-visible {
    border-color: var(--st-accent);
    box-shadow: var(--shadow-lg, 0 10px 30px rgb(0 0 0 / 0.08));
}

.popy-studio__tile-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.popy-studio__tile-text {
    flex: 1;
    line-height: 1.5;
    color: var(--st-muted);
}

.popy-studio__tile-cta {
    font-weight: 700;
    color: var(--st-accent);
}

.popy-studio__tile-cta::after {
    content: " \2192";
}

/* Questions. */
.popy-studio__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-lg);
    background: var(--st-surface);
}

.popy-studio__field {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.popy-studio__legend {
    margin-bottom: 0.625rem;
    font-weight: 700;
}

.popy-studio__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.popy-studio__option {
    position: relative;
    cursor: pointer;
}

.popy-studio__option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.popy-studio__option span {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-pill);
    background: var(--st-raised);
    line-height: 1.2;
}

.popy-studio__option input:checked + span {
    border-color: var(--st-accent);
    background: var(--st-accent);
    color: var(--st-on-accent);
}

.popy-studio__option input:focus-visible + span {
    outline: 2px solid var(--st-accent);
    outline-offset: 2px;
}

.popy-studio__button {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--st-radius-pill);
    background: var(--st-primary);
    color: var(--st-on-primary);
    font-weight: 700;
}

.popy-studio__button:hover {
    opacity: 0.9;
}

.popy-studio__privacy,
.popy-studio__empty {
    font-size: 0.875rem;
    color: var(--st-muted);
}

/* Result. */
.popy-studio__panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--st-radius-lg);
    background: var(--st-panel);
    scroll-margin-top: 6rem;
}

.popy-studio__reason {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--st-muted);
}

.popy-studio__total {
    font-weight: 700;
}

.popy-studio__notes,
.popy-studio__messages {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-inline-start: 1.25rem;
    list-style: disc;
    line-height: 1.5;
}

.popy-studio__link {
    align-self: flex-start;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Traffic light. */
.popy-studio__light {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border-radius: var(--st-radius-pill);
}

.popy-studio__light-dot {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
}

.popy-studio__light--green {
    background: var(--color-success-bg, #e7f5ec);
    color: var(--color-success-fg, #14532d);
}

.popy-studio__light--green .popy-studio__light-dot {
    background: var(--color-success, #16a34a);
}

.popy-studio__light--yellow {
    background: var(--color-warning-bg, #fdf3d8);
    color: var(--color-warning-fg, #713f12);
}

.popy-studio__light--yellow .popy-studio__light-dot {
    background: var(--color-warning, #d97706);
}

.popy-studio__light--red {
    background: var(--color-danger-bg, #fbe4e6);
    color: var(--color-danger-fg, #7f1d1d);
}

.popy-studio__light--red .popy-studio__light-dot {
    background: var(--color-danger, #dc2626);
}

/* Date idea. */
.popy-studio__idea {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .popy-studio__idea {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.popy-studio__idea > div {
    padding: 1rem;
    border-radius: var(--st-radius);
    background: var(--st-raised);
}

.popy-studio__idea dt {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--st-accent);
}

.popy-studio__idea dd {
    margin: 0.375rem 0 0;
    line-height: 1.5;
}

/* FAQ, chips. */
.popy-studio__faq details {
    border-bottom: 1px solid var(--st-line);
    padding-block: 0.875rem;
}

.popy-studio__faq summary {
    cursor: pointer;
    font-weight: 700;
}

.popy-studio__faq details p {
    margin-top: 0.5rem;
    line-height: 1.6;
    color: var(--st-muted);
}

.popy-studio__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.popy-studio__chips a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.375rem 1rem;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-pill);
    background: var(--st-raised);
}

.popy-studio__chips a:hover {
    border-color: var(--st-accent);
}

/* Teaser on shop pages: plain server-rendered block, no images, no layout shift. */
.popy-studio-teaser {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-block: 2rem;
    padding: 1.25rem;
    border-radius: var(--st-radius-lg);
    background: var(--st-panel);
}

.popy-studio-teaser__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}
