/* Portrait tool promo: homepage band + category-page block.
   Markup: frontend/views/partials/_portrait-promo.php. Every rule is scoped
   under .tpp so landing-page and homepage section styles can't reach in. */

.tpp {
    --tpp-ink: #0f2d4d;
    --tpp-text: #374151;
    --tpp-muted: #5b6472;
    --tpp-blue: #1776C8;
    --tpp-blue-d: #125A9C;
    --tpp-line: #e3eaf3;
    --tpp-head: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--tpp-text);
    background: #fff;
    padding: 64px 0;
}
.tpp *, .tpp *::before, .tpp *::after { box-sizing: border-box; }
.tpp .tpp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---- stage ---- */
.tpp .tpp-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid #d6e8f8;
    background: linear-gradient(135deg, #e8f3fe 0%, #f4f9ff 46%, #ffffff 100%);
    padding: 48px 44px;
    display: grid;
    grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
    grid-template-areas: "copy cards" "cta cards";
    grid-template-rows: 1fr auto;
    column-gap: 40px;
    row-gap: 28px;
}
/* soft light in the corner + a faint dot grid under the copy */
.tpp .tpp-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -160px;
    top: -200px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 144, 231, 0.16) 0%, rgba(43, 144, 231, 0) 68%);
    pointer-events: none;
}
.tpp .tpp-stage::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(rgba(23, 118, 200, 0.13) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, 0.35) 30%, transparent 55%);
    mask-image: linear-gradient(115deg, #000 0%, rgba(0, 0, 0, 0.35) 30%, transparent 55%);
    pointer-events: none;
}
.tpp .tpp-copy { grid-area: copy; align-self: end; min-width: 0; }
.tpp .tpp-cta { grid-area: cta; min-width: 0; }

/* ---- type ---- */
.tpp .tpp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 16px;
    padding: 7px 13px 7px 10px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #cfe3f6;
    box-shadow: 0 1px 2px rgba(15, 45, 77, 0.05);
    color: var(--tpp-blue-d);
    font: 700 11.5px/1 var(--tpp-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tpp .tpp-eyebrow svg { color: var(--tpp-blue); flex: 0 0 auto; }
.tpp .tpp-h {
    font-family: var(--tpp-head);
    font-weight: 800;
    font-size: clamp(30px, 3.1vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--tpp-ink);
    margin: 0 0 14px;
    text-wrap: balance;
}
.tpp .tpp-lede {
    font-size: 16px;
    line-height: 1.65;
    color: var(--tpp-text);
    margin: 0 0 20px;
    max-width: 46ch;
}

/* ---- the four looks, each with a swatch drawn in its own style ---- */
.tpp .tpp-looks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tpp .tpp-looks li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 12px 6px 7px;
    background: #fff;
    border: 1px solid var(--tpp-line);
    border-radius: 9999px;
    font: 600 13px/1 var(--tpp-head);
    color: var(--tpp-ink);
}
.tpp .tpp-sw { display: block; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; }
.tpp .tpp-sw--wc {
    background:
        radial-gradient(circle at 30% 32%, #8ccdf6 0 30%, transparent 58%),
        radial-gradient(circle at 70% 66%, #f5a9c6 0 30%, transparent 60%),
        radial-gradient(circle at 66% 26%, #fde49a 0 22%, transparent 52%),
        #eef6fd;
}
.tpp .tpp-sw--st { background: #b97a4c; border: 1.5px dashed #fbe7d3; box-shadow: 0 0 0 1.5px #b97a4c; }
.tpp .tpp-sw--la { background: #fff linear-gradient(135deg, transparent 44%, #111827 44% 56%, transparent 56%); border: 1.5px solid #111827; }
.tpp .tpp-sw--ct { background: #fbbf24; border: 2.5px solid #111827; }

/* ---- actions ---- */
.tpp .tpp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 16px; }
.tpp .tpp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #125A9C 0%, #1776C8 50%, #2B90E7 100%);
    color: #fff !important;
    font: 700 16px/1.1 var(--tpp-head);
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(23, 118, 200, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tpp .tpp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 118, 200, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.tpp .tpp-btn svg { flex: 0 0 auto; transition: transform 0.18s ease; }
.tpp .tpp-btn:hover svg { transform: translateX(3px); }
.tpp .tpp-link {
    font: 600 15px/1.2 var(--tpp-head);
    color: var(--tpp-blue-d);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(18, 90, 156, 0.35);
    text-underline-offset: 5px;
}
.tpp .tpp-link:hover { color: var(--tpp-blue); text-decoration-color: currentColor; }
.tpp .tpp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; line-height: 1.3; color: var(--tpp-muted); }
.tpp .tpp-facts li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.tpp .tpp-facts svg { color: #10b981; flex: 0 0 auto; }

/* ---- cards ---- */
.tpp .tpp-cards {
    grid-area: cards;
    align-self: center;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.tpp .tpp-cards > li { margin: 0; min-width: 0; }
.tpp .tpp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 45, 77, 0.07);
    box-shadow: 0 1px 2px rgba(15, 45, 77, 0.06), 0 10px 28px rgba(15, 45, 77, 0.08);
    color: inherit;
    text-decoration: none !important;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}
.tpp .tpp-card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(15, 45, 77, 0.06), 0 22px 44px rgba(15, 45, 77, 0.16); }
.tpp .tpp-card-b { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 15px 16px 18px; border-top: 1px solid #eef2f7; }
.tpp .tpp-card-b b { font: 700 17px/1.2 var(--tpp-head); letter-spacing: -0.01em; color: var(--tpp-ink); }
.tpp .tpp-card-b > span { font-size: 13.5px; line-height: 1.45; color: var(--tpp-muted); }
.tpp .tpp-card-b > .tpp-card-go {
    margin-top: auto;
    padding-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 700 14px/1 var(--tpp-head);
    color: var(--tpp-blue);
}
.tpp .tpp-card-go svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.tpp .tpp-card:hover .tpp-card-go svg { transform: translateX(3px); }

/* ---- the shot: mockup + the original photo pinned in the corner ---- */
.tpp .tpp-shot { position: relative; display: block; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.tpp .tpp-mock { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.tpp .tpp-card:hover .tpp-mock, .tpp .tpp-blockshot:hover .tpp-mock { transform: scale(1.04); }
.tpp .tpp-from { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tpp .tpp-from img {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(15, 45, 77, 0.28);
    transform: rotate(-4deg);
}
.tpp .tpp-from-l {
    font: 700 9.5px/1 var(--tpp-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--tpp-ink);
    padding: 4px 8px;
    border-radius: 9999px;
}
.tpp .tpp-swoop { position: absolute; z-index: 2; top: 26px; left: 80px; width: 46px; height: 33px; color: var(--tpp-blue); }
.tpp .tpp-look {
    position: absolute;
    z-index: 2;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--tpp-line);
    font: 600 11.5px/1 var(--tpp-head);
    color: var(--tpp-ink);
}

.tpp .tpp-card:focus-visible,
.tpp .tpp-btn:focus-visible,
.tpp .tpp-link:focus-visible,
.tpp .tpp-blockshot:focus-visible { outline: 3px solid #2B90E7; outline-offset: 3px; }

/* ---- gift season (Nov 12 to Dec 20): dark stage, gold accents ---- */
.tpp.tpp--gift .tpp-stage {
    border-color: transparent;
    background:
        radial-gradient(900px 420px at 88% -12%, rgba(43, 144, 231, 0.5), rgba(43, 144, 231, 0) 62%),
        linear-gradient(135deg, #0a2140 0%, #0f2d4d 42%, #125A9C 100%);
    box-shadow: 0 24px 60px rgba(10, 33, 64, 0.25);
}
.tpp.tpp--gift .tpp-stage::before { background: radial-gradient(circle, rgba(253, 230, 138, 0.14) 0%, rgba(253, 230, 138, 0) 68%); }
.tpp.tpp--gift .tpp-stage::after {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.22) 1.2px, transparent 1.7px),
        radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.4px);
    background-size: 28px 28px, 28px 28px;
    background-position: 0 0, 14px 14px;
}
.tpp.tpp--gift .tpp-eyebrow { background: rgba(255, 255, 255, 0.1); border-color: rgba(253, 230, 138, 0.4); box-shadow: none; color: #fde68a; }
.tpp.tpp--gift .tpp-eyebrow svg { color: #fde68a; }
.tpp.tpp--gift .tpp-h { color: #fff; }
.tpp.tpp--gift .tpp-lede { color: rgba(255, 255, 255, 0.88); }
.tpp.tpp--gift .tpp-looks li { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.tpp.tpp--gift .tpp-btn { background: #fff; color: var(--tpp-blue-d) !important; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); }
.tpp.tpp--gift .tpp-btn:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34); }
.tpp.tpp--gift .tpp-link { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.tpp.tpp--gift .tpp-link:hover { color: #fde68a; }
.tpp.tpp--gift .tpp-facts { color: rgba(255, 255, 255, 0.8); }
.tpp.tpp--gift .tpp-facts svg { color: #6ee7b7; }
.tpp.tpp--gift .tpp-card { border-color: transparent; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }

/* ---- category-page block ---- */
.tpp.tpp-block { padding: 56px 0; }
.tpp .tpp-stage--block {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    grid-template-areas: "shot copy";
    grid-template-rows: auto;
    align-items: center;
    column-gap: 56px;
    padding: 40px 48px;
}
.tpp .tpp-blockshot {
    grid-area: shot;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 45, 77, 0.07);
    box-shadow: 0 1px 2px rgba(15, 45, 77, 0.06), 0 14px 34px rgba(15, 45, 77, 0.12);
    transform: rotate(-1.5deg);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.tpp .tpp-blockshot:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 2px 4px rgba(15, 45, 77, 0.06), 0 24px 48px rgba(15, 45, 77, 0.18); }
.tpp .tpp-stage--block .tpp-copy { align-self: center; }
.tpp .tpp-stage--block .tpp-h { font-size: clamp(26px, 2.6vw, 34px); }
.tpp .tpp-stage--block .tpp-lede { max-width: 58ch; }
.tpp .tpp-stage--block .tpp-looks { margin-bottom: 24px; }

/* band copy column is narrow on desktop: the four looks sit as a tidy 2 x 2 */
@media (min-width: 1200px) {
    .tpp.tpp-band .tpp-looks { display: grid; grid-template-columns: repeat(2, max-content); }
}

/* ---- tablet ---- */
@media (max-width: 1199px) {
    .tpp .tpp-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "cards" "cta"; grid-template-rows: auto; padding: 40px; }
    .tpp .tpp-copy { align-self: start; }
    .tpp .tpp-lede { max-width: 62ch; }
    .tpp .tpp-stage--block { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "shot copy"; column-gap: 36px; padding: 36px; }
}

/* ---- phone ---- */
@media (max-width: 767px) {
    .tpp { padding: 36px 0; }
    .tpp .tpp-wrap { padding: 0 12px; }
    .tpp .tpp-stage { padding: 26px 16px 22px; border-radius: 22px; row-gap: 20px; }
    .tpp .tpp-eyebrow { margin-bottom: 12px; font-size: 10.5px; }
    .tpp .tpp-h { font-size: 27px; margin-bottom: 10px; }
    .tpp .tpp-lede { font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
    .tpp .tpp-looks { gap: 6px; }
    .tpp .tpp-looks li { padding: 5px 10px 5px 6px; font-size: 12.5px; }
    .tpp .tpp-sw { width: 16px; height: 16px; }

    /* cards become a swipe row that peeks the next card */
    .tpp .tpp-cards {
        display: flex;
        gap: 12px;
        margin: 0 -16px;
        padding: 4px 16px 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .tpp .tpp-cards::-webkit-scrollbar { display: none; }
    .tpp .tpp-cards > li { flex: 0 0 74%; scroll-snap-align: start; }
    .tpp .tpp-card:hover { transform: none; }
    .tpp .tpp-card .tpp-shot { aspect-ratio: 1 / 1; }
    .tpp .tpp-card .tpp-mock { object-position: 50% 45%; }
    .tpp .tpp-card-b { padding: 13px 15px 15px; }
    .tpp .tpp-card-b b { font-size: 17px; }
    .tpp .tpp-from img { width: 54px; height: 54px; }
    .tpp .tpp-swoop { top: 22px; left: 68px; width: 40px; height: 29px; }

    .tpp .tpp-actions { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 14px; }
    .tpp .tpp-btn { width: 100%; }
    .tpp .tpp-link { align-self: center; padding: 10px 8px; }
    .tpp .tpp-facts { flex-direction: column; align-items: flex-start; width: fit-content; margin: 0 auto; gap: 7px; font-size: 13px; }

    .tpp.tpp-block { padding: 28px 0; }
    .tpp .tpp-stage--block { grid-template-columns: minmax(0, 1fr); grid-template-areas: "shot" "copy"; padding: 16px 16px 22px; row-gap: 18px; }
    .tpp .tpp-blockshot { transform: none; border-radius: 16px; }
    .tpp .tpp-blockshot .tpp-shot { aspect-ratio: 4 / 3; }
    .tpp .tpp-blockshot .tpp-mock { object-position: 50% 42%; }
    .tpp .tpp-stage--block .tpp-h { font-size: 25px; }

    /* landing pages reorder their sections on phones (te-landing-phone.css):
       the block follows the shipping bar, right under the product grid */
    main.landing-page-new > .tpp-block { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
    .tpp .tpp-card, .tpp .tpp-mock, .tpp .tpp-btn, .tpp .tpp-btn svg, .tpp .tpp-card-go svg, .tpp .tpp-blockshot { transition: none !important; }
}

/* gift season: "Portrait Gifts" leads the homepage category pills */
.te-cat-pill.te-cat-pill-gift { background: linear-gradient(135deg, #0f2d4d 0%, #125A9C 100%); border-color: #0f2d4d; color: #fff; box-shadow: 0 4px 12px rgba(15, 45, 77, 0.25); }
.te-cat-pill.te-cat-pill-gift svg { color: #fde68a; }
.te-cat-pill.te-cat-pill-gift:hover { background: linear-gradient(135deg, #0a2140 0%, #0f2d4d 100%); border-color: #0a2140; color: #fff; }
.te-cat-pill.te-cat-pill-gift:hover svg { color: #fde68a; }
