/**
 * Shared landing components — ported from the WP theme (theme.css).
 * Tokens translated to www/base.css names: --gw-bg → --gw-cream, --gw-text-muted → --gw-muted-fg.
 * Classes: .gw-section, .gw-btn-xl, .gw-landing-*, .gw-info-badges, .gw-steps, .gw-benefit-*, .gw-trust-badges, .gw-faq.
 */

.gw-btn-xl {
    padding-inline: 2rem;
    padding-block: .9rem;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}
@media (min-width: 992px) {
    .gw-btn-xl {
        padding-inline: 2.25rem;
        padding-block: 1rem;
        font-size: 1.0625rem;
    }
}

.gw-landing-title {
    font-family: var(--gw-font-serif);
    font-weight: 500;
    color: hsl(var(--gw-fg));
    margin-bottom: 1rem;
}
.gw-landing-title em {
    font-style: italic;
    color: hsl(var(--gw-wine));
}

.gw-info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    margin-top: 1.75rem;
}
.gw-info-badges__item {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: hsl(var(--gw-fg));
    font-size: .9375rem;
    font-weight: 600;
}
.gw-info-badges__item svg {
    width: 1.7rem;
    height: 1.7rem;
    padding: .42rem;
    box-sizing: border-box;
    border-radius: 50%;
    background: hsl(var(--gw-wine) / .12);
    color: hsl(var(--gw-wine));
    flex-shrink: 0;
}

/* How-it-works steps — connected timeline: white icon circles joined by a thin
   wine line (same hairline language as .gw-eyebrow), no boxes. */
.gw-steps { display: grid; gap: 2.25rem 1.5rem; }
@media (min-width: 768px) { .gw-steps--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .gw-steps--4 { grid-template-columns: repeat(4, 1fr); } }

.gw-steps__item {
    position: relative;
    text-align: center;
    padding-inline: .5rem;
}
@media (min-width: 768px) {
    .gw-steps__item::before {
        content: '';
        position: absolute;
        top: 1.75rem;
        left: calc(50% + 2.5rem);
        width: calc(100% - 5rem);
        height: 1px;
        background: hsl(var(--gw-wine) / .35);
    }
    .gw-steps__item:last-child::before { display: none; }
}
@media (max-width: 767.98px) {
    .gw-steps__item + .gw-steps__item::before {
        content: '';
        position: absolute;
        top: -1.75rem;
        left: 50%;
        width: 1px;
        height: 1.25rem;
        background: hsl(var(--gw-wine) / .35);
    }
}

.gw-steps__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid hsl(var(--gw-wine) / .18);
    box-shadow: var(--gw-shadow-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--gw-wine));
    margin-bottom: .9rem;
    transition: transform .25s ease;
}
.gw-steps__item:hover .gw-steps__icon { transform: scale(1.08); }
.gw-steps__icon svg { width: 1.5rem; height: 1.5rem; }

.gw-steps__badge {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    color: hsl(var(--gw-wine));
    margin-bottom: .35rem;
}

.gw-steps__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: hsl(var(--gw-fg));
    margin-bottom: .4rem;
}
.gw-steps__desc {
    color: hsl(var(--gw-muted-fg));
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
    max-width: 15rem;
    margin-inline: auto;
}

/* Benefit card grid */
.gw-benefit-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .gw-benefit-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .gw-benefit-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.gw-benefit-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: #fff;
    border: 1px solid hsl(var(--gw-border));
    box-shadow: var(--gw-shadow-card);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    text-align: center;
}
.gw-benefit-card:hover {
    border-color: hsl(var(--gw-wine) / .3);
    transform: translateY(-4px);
}
.gw-benefit-card__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: hsl(var(--gw-wine) / .1);
    color: hsl(var(--gw-wine));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform .25s ease;
}
.gw-benefit-card:hover .gw-benefit-card__icon { transform: scale(1.1); }
.gw-benefit-card__icon svg { width: 2rem; height: 2rem; }
.gw-benefit-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--gw-fg));
    margin-bottom: .5rem;
}
.gw-benefit-card__desc {
    color: hsl(var(--gw-muted-fg));
    font-size: .9375rem;
    line-height: 1.5;
    margin: 0;
}

.gw-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    color: hsl(var(--gw-muted-fg));
    font-size: .875rem;
}
.gw-trust-badges__item { display: inline-flex; align-items: center; gap: .375rem; }
.gw-trust-badges__item svg { width: 1rem; height: 1rem; color: hsl(var(--gw-wine)); }

/* Browser frame hosting a product image/video (slot for real screenshots) */
.gw-frame { background: #fff; border: 1px solid hsl(var(--gw-border)); border-radius: 1rem; overflow: hidden; box-shadow: var(--gw-shadow-elevated); }
.gw-frame__bar { background: hsl(var(--gw-cream)); padding: .5rem .875rem; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid hsl(var(--gw-border) / .5); }
.gw-frame__dots { display: flex; gap: .3125rem; flex-shrink: 0; }
.gw-frame__dots span { width: .6rem; height: .6rem; border-radius: 50%; background: hsl(var(--gw-border)); display: inline-block; }
.gw-frame__url { flex: 1; text-align: center; font-size: .7rem; color: hsl(var(--gw-muted-fg)); background: #fff; border-radius: .3rem; padding: .22rem .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-frame__img { display: block; width: 100%; height: auto; object-fit: cover; background: hsl(var(--gw-champagne)); }

/* Mid-page sign-up call (partials/components/cta-inline.php) */
.gw-cta-inline { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.gw-cta-inline p { margin: 0; font-size: .88rem; color: hsl(var(--gw-muted-fg)); }
.gw-cta-inline p a { color: hsl(var(--gw-wine)); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 767.98px) {
    .gw-cta-inline { align-items: stretch; text-align: left; }
    .gw-cta-inline .btn-wine { text-align: center; }
}

/* Tool cross-links (partials/components/tools-links.php): one panel, the tools as its rows.
   The 1px gap over a border-coloured panel draws the hairlines between cells. */
.gw-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 68rem;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    list-style: none;
    border-radius: 1.5rem;
    background: hsl(var(--gw-border) / .7);
    box-shadow: 0 0 0 1px hsl(var(--gw-border) / .7), 0 18px 40px -26px hsl(340 40% 25% / .35);
}
.gw-tools li { display: flex; background: #fff; }
/* A last row left short takes the whole width: an empty cell would show the panel's grey through the gap. */
@media (min-width: 992px) {
    .gw-tools li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
    .gw-tools li:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .gw-tools li:last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
}
.gw-tools__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    color: inherit;
    text-decoration: none;
    transition: background .2s ease;
}
.gw-tools__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .8rem;
    background: hsl(var(--gw-champagne));
    color: hsl(var(--gw-wine));
    font-size: 1.1rem;
    transition: background .2s ease;
}
.gw-tools__text { flex: 1; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.gw-tools__text b { font-size: .98rem; font-weight: 600; line-height: 1.3; color: hsl(var(--gw-fg)); }
.gw-tools__text small { font-size: .84rem; line-height: 1.45; color: hsl(var(--gw-muted-fg)); }
.gw-tools__go { flex: none; font-size: 1rem; color: hsl(var(--gw-wine) / .45); transition: transform .2s ease, color .2s ease; }
.gw-tools__item:hover { background: hsl(var(--gw-champagne-light)); }
.gw-tools__item:hover .gw-tools__icon { background: #fff; }
.gw-tools__item:hover .gw-tools__go { color: hsl(var(--gw-wine)); transform: translateX(3px); }
.gw-tools__item:focus-visible { outline: 2px solid hsl(var(--gw-wine)); outline-offset: -2px; }
@media (max-width: 991.98px) { .gw-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .gw-tools { grid-template-columns: minmax(0, 1fr); border-radius: 1.25rem; }
    .gw-tools__item { padding: 1.1rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-tools__item, .gw-tools__icon, .gw-tools__go { transition: none; }
}

/* ── Feature deep-dive: airy asymmetric splits on the open canvas ── */
.gw-cs-feature { padding: 4.5rem 0; overflow-x: clip; }
.gw-cs-feature__title {
    font-family: var(--gw-font-serif);
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.15;
    margin: .5rem 0 1rem;
}
.gw-cs-feature__title em {
    font-style: italic;
    color: hsl(var(--gw-wine));
}
.gw-cs-feature__subtitle {
    font-size: 1.0625rem;
    color: hsl(var(--gw-muted-fg));
    line-height: 1.55;
    margin: 0 0 1.5rem;
}
.gw-cs-feature__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.gw-cs-feature__bullets li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9375rem;
    font-weight: 500;
    color: hsl(var(--gw-fg));
}
.gw-cs-feature__bullets li svg {
    width: 1.7rem;
    height: 1.7rem;
    padding: .42rem;
    box-sizing: border-box;
    border-radius: 50%;
    background: hsl(150 55% 40% / .12);
    color: hsl(150 55% 32%);
    flex-shrink: 0;
}
.gw-cs-feature__link {
    font-weight: 500;
    color: hsl(var(--gw-wine));
    text-decoration: none;
}
.gw-cs-feature__link:hover { text-decoration: underline; }

/* Media slot: image/video-loop placeholder → real capture later */
.gw-media-slot {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid hsl(var(--gw-border));
    box-shadow: 0 30px 70px -28px hsl(var(--gw-wine) / .4);
    background: hsl(var(--gw-champagne));
}
.gw-media-slot img { display: block; width: 100%; height: auto; }

/* Asymmetry: visuals escape the grid on desktop (html/body clip overflow-x) */
@media (min-width: 992px) {
    .gw-loose-end .gw-media-slot   { width: calc(100% + 7vw); transform: translateY(var(--par, 0px)) rotate(.6deg); }
    .gw-loose-start .gw-media-slot { width: calc(100% + 7vw); margin-left: -7vw; transform: translateY(var(--par, 0px)) rotate(-.6deg); }
    .gw-loose-down { margin-top: 3rem; }
    .gw-tilt .gw-media-slot { transform: translateY(var(--par, 0px)) rotate(-.6deg); }
}

/* Wide variant: centered head, inline bullets, full-width media (dashboard-shaped UI) */
.gw-cs-feature--wide .gw-cs-feature__head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 1.5rem;
}
.gw-cs-feature__bullets--row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1.75rem;
    margin-bottom: 2.5rem;
}
.gw-cs-feature__wide-media { max-width: 62rem; margin-inline: auto; }

/* ── Overlap chips: small white cards that sit on top of a media slot ── */
.gw-stage { position: relative; }
.gw-over-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .95rem;
    background: #fff;
    border: 1px solid hsl(var(--gw-border) / .6);
    border-radius: 1rem;
    box-shadow: var(--gw-shadow-elevated);
    font-size: .8rem;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(var(--par, 0px));
}
.gw-over-chip__icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--gw-wine) / .12);
    color: hsl(var(--gw-wine));
}
.gw-over-chip__icon svg { width: 1rem; height: 1rem; }
.gw-over-chip__icon--green { background: hsl(150 55% 40% / .12); color: hsl(150 55% 32%); }
.gw-over-chip__glyph {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--gw-champagne));
    color: hsl(var(--gw-wine));
    font-family: var(--gw-font-serif);
    font-size: 1.05rem;
    font-weight: 500;
}
.gw-over-chip__txt { display: flex; flex-direction: column; gap: .1rem; }
.gw-over-chip__txt b { font-weight: 600; color: hsl(var(--gw-fg)); }
.gw-over-chip__txt small { color: hsl(var(--gw-muted-fg)); font-size: .72rem; }
.gw-swatches { display: flex; gap: .3rem; margin-top: .1rem; }
.gw-swatches span {
    width: .95rem;
    height: .95rem;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px hsl(var(--gw-border));
}

.gw-over-chip--tl { top: 1rem; left: 1rem; }
.gw-over-chip--tr { top: 1rem; right: 1rem; }
.gw-over-chip--bl { bottom: 1rem; left: 1rem; }
.gw-over-chip--br { bottom: 1rem; right: 1rem; }
@media (min-width: 992px) {
    .gw-over-chip--tl { top: 1.75rem; left: -1.75rem; }
    .gw-over-chip--tr { top: 1.75rem; right: -1.75rem; }
    .gw-over-chip--bl { bottom: 1.75rem; left: -1.75rem; }
    .gw-over-chip--br { bottom: 1.75rem; right: -1.75rem; }
}
.gw-over-chip--bob { animation: bob 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .gw-over-chip--bob { animation: none; }
}

/* FAQ accordion (wine accents) */
.gw-faq { max-width: 44rem; margin-inline: auto; }
.gw-faq .accordion-item { border: 1px solid hsl(var(--gw-border)); border-radius: var(--gw-radius) !important; margin-bottom: .75rem; overflow: hidden; background: #fff; }
.gw-faq .accordion-button { font-weight: 600; color: hsl(var(--gw-fg)); background: #fff; padding: 1.15rem 1.35rem; }
.gw-faq .accordion-button:not(.collapsed) { color: hsl(var(--gw-wine)); background: hsl(var(--gw-champagne) / .5); box-shadow: none; }
.gw-faq .accordion-button:focus { border-color: transparent; box-shadow: 0 0 0 .2rem hsl(var(--gw-wine) / .15); }
.gw-faq .accordion-button::after { filter: hue-rotate(300deg) saturate(.6); }
.gw-faq .accordion-body { padding: 1rem 1.35rem 1.35rem; font-size: .92rem; line-height: 1.6; color: hsl(var(--gw-muted-fg)); }
