/* Poker coaching page (poker.html) in The Campaign world. Shared world: css/campaign.css. DESIGN.md records the system. */

/* ---------- First viewport: the green field with the offer, then May at the table ---------- */
.p-field .site-header { padding-block: 18px 0; }
.p-copy { padding: clamp(20px, 5vw, 40px) var(--gutter) clamp(28px, 6vw, 48px); }
.p-label { max-width: 46ch; color: var(--green-ink); font-size: 14px; font-weight: 500; line-height: 1.45; }
.p-title {
    margin-top: 16px;
    max-width: 15em;
    font-size: clamp(32px, 8vw, 64px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.p-title-2 { display: block; color: var(--green-ink); }
[dir="rtl"] .p-title { font-size: clamp(36px, 9vw, 72px); line-height: 1.1; letter-spacing: -0.005em; }
.p-sub { margin-top: 16px; max-width: 42ch; font-size: 16px; line-height: 1.45; color: var(--green-ink); }
.p-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.p-actions .text-link { position: relative; font-size: 14px; }
.p-actions .text-link::before { content: ''; position: absolute; inset: -12px -6px; }

/* The photographer's credit sits in the frame's bottom corner: every crop keeps that corner. */
.p-photo { display: block; position: relative; overflow: hidden; margin: 0; aspect-ratio: 16 / 10; background: var(--ink); }
.p-photo picture { display: block; width: 100%; height: 100%; }
/* Phones crop the frame to a short band around May; the photographer's credit, printed in the full frame, is set as a caption. */
.p-photo-credit { position: absolute; inset-block-end: 6px; inset-inline-end: 8px; padding: 1px 6px; background: rgba(20, 20, 20, 0.55); color: var(--ivory); font-size: 11px; line-height: 1.5; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; animation: settle 1600ms var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
@keyframes rise { from { transform: translateY(0.4em); } to { transform: none; } }
.p-copy > * { animation: rise 760ms var(--ease-out) both; }
.p-copy > :nth-child(2) { animation-delay: 60ms; }
.p-copy > :nth-child(3) { animation-delay: 120ms; }
.p-copy > :nth-child(4) { animation-delay: 180ms; }

/* ---------- Proof row ---------- */
.p-trust { padding: 28px var(--gutter); border-bottom: 1px solid var(--rule-ivory); display: grid; gap: 10px; }
.p-trust-head { font-size: clamp(17px, 4vw, 22px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.p-trust-countries { color: var(--ink-2); word-spacing: 0.6em; }
[dir="rtl"] .p-trust-countries { text-align: right; letter-spacing: 0.3em; font-size: 11px; }
.p-trust-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 14px; color: var(--ink-2); }
.p-trust-proof .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink); text-decoration-color: var(--rule-ivory); }

/* ---------- The offer: two plans with their prices ---------- */
.p-offer { padding: clamp(36px, 8vw, 88px) var(--gutter); }
.p-lead { max-width: 44ch; font-size: clamp(17px, 4.4vw, 24px); line-height: 1.38; letter-spacing: -0.01em; }
/* emphasis by colour, not weight: mixing Hebrew weights inside one large line renders the bold run visibly smaller */
.p-lead strong { font-weight: inherit; color: var(--green); }

/* Two plans that read the same way: title, length, price, the booking key, then who it is for.
   The recommended plan is a green field; the single session is an outlined ivory block beside it. */
.p-plans { margin-top: clamp(28px, 6vw, 48px); display: grid; gap: 14px; align-items: stretch; }
.p-plan { display: flex; flex-direction: column; padding: clamp(22px, 5.6vw, 40px); }
.p-plan-main { background: var(--green); color: var(--ivory); }
.p-plan-single { border: 1px solid var(--ink); }
.p-plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.p-plan-title { font-size: clamp(22px, 5vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
[dir="rtl"] .p-plan-title { letter-spacing: -0.005em; line-height: 1.3; }
.p-plan-tag {
    flex-shrink: 0; margin-top: 4px; padding: 4px 9px;
    background: var(--ivory); color: var(--green);
    font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.4;
}
[dir="rtl"] .p-plan-tag { font-size: 12.5px; letter-spacing: 0.04em; }
.p-plan-meta { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.p-plan-main .p-plan-meta { color: var(--green-ink); }
.p-plan-price { margin-top: clamp(16px, 4vw, 26px); font-size: clamp(44px, 11vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.p-plan-btn { align-self: flex-start; margin-top: 22px; }
.p-plan-label { margin-top: 28px; font-size: 14px; font-weight: 600; }
.p-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.p-plan-single .p-list { margin-top: 28px; }
.p-list li { position: relative; padding-inline-start: 20px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.p-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.5em; width: 7px; height: 7px; background: var(--green); }
.p-plan-main .p-list li { color: var(--ivory); }
.p-plan-main .p-list li::before { background: var(--ivory); }
.p-plan-note { margin-top: auto; padding-top: 24px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.p-plan-main .p-plan-note { color: var(--green-ink); }
.p-plan-main .btn-ivory:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }

/* When it helps most: four moments in a row of their own. */
.p-helps { margin-top: clamp(36px, 7vw, 56px); }
.p-helps-label { font-size: 14px; font-weight: 600; }
.p-helps-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.p-helps-list li { padding: 14px 0; border-top: 1px solid var(--rule-ivory); font-size: 16px; line-height: 1.45; color: var(--ink); }

.p-info { margin-top: clamp(32px, 6vw, 48px); padding-inline-start: 20px; border-inline-start: 1px solid var(--green); display: grid; gap: 12px; max-width: 72ch; }
.p-info p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.p-info strong { color: var(--ink); font-weight: 600; }

/* ---------- Section heads ---------- */
.p-h2 { font-size: clamp(28px, 6.6vw, 44px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
[dir="rtl"] .p-h2 { letter-spacing: -0.005em; line-height: 1.15; }
.p-h2-sub { margin-top: 14px; max-width: 60ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ---------- What to expect: three numbered outcomes ---------- */
.p-expect { padding: clamp(40px, 8vw, 88px) var(--gutter); background: var(--ivory-2); }
.p-goals { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.p-goals li { padding-top: 18px; border-top: 1px solid var(--ink); }
.p-goal-num { display: block; color: var(--green); }
.p-goals h3 { margin-top: 10px; font-size: clamp(17px, 4vw, 22px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.p-goals p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Related reading: hairline rows ---------- */
.p-related { padding: clamp(40px, 8vw, 88px) var(--gutter) 24px; }
.p-related-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.p-related-head .text-link { font-size: 14px; }
.p-rows { list-style: none; margin: 24px 0 0; padding: 0; border-bottom: 1px solid var(--rule-ivory); }
.p-rows a { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule-ivory); text-decoration: none; }
.p-row-thumb { flex: 0 0 clamp(88px, 24vw, 132px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory-2); }
.p-row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.p-rows a:hover .p-row-thumb img { transform: scale(1.06); }
.p-row-text { flex: 1 1 auto; min-width: 0; }
.p-row-tag { display: block; color: var(--ink-2); }
.p-row-title { display: block; margin-top: 4px; font-size: clamp(17px, 4vw, 22px); font-weight: 600; line-height: 1.3; }
.p-rows i { color: var(--green); font-size: 14px; transition: translate 200ms var(--ease-out); }
.p-rows a:hover .p-row-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- FAQ: hairline accordion, one open at a time ---------- */
.p-faq { padding: clamp(40px, 8vw, 88px) var(--gutter); }
.faq-list { margin-top: 24px; border-bottom: 1px solid var(--rule-ivory); }
.faq-item { border-top: 1px solid var(--rule-ivory); transition: background-color 400ms var(--ease-out); }
.faq-item.highlighted { background: var(--ivory-2); }
.faq-question {
    position: relative;
    display: block; width: 100%;
    min-height: 56px;
    padding: 16px 0; padding-inline-end: 36px;
    background: none; border: 0; cursor: pointer;
    font: 600 16px/1.4 var(--font); color: var(--ink); text-align: start;
}
.faq-question::before, .faq-question::after {
    content: ''; position: absolute; inset-inline-end: 4px; top: 50%;
    width: 13px; height: 1.5px; background: var(--green);
    transition: transform 220ms var(--ease-out);
}
.faq-question::after { transform: rotate(90deg); }
.faq-item.active .faq-question::after { transform: rotate(0deg); }
.faq-question:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.faq-answer { display: none; padding: 0 0 22px; max-width: 68ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.faq-answer strong { color: var(--ink); font-weight: 600; }
.faq-answer p + p { margin-top: 10px; }
.faq-item.active .faq-answer { display: block; animation: answer-in 240ms var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Closing band extras, cross-link, responsible-play note ---------- */
.closing-label { display: block; color: var(--green-ink); margin-bottom: 12px; }
.closing-sub strong { font-weight: 600; color: var(--ivory); }
.p-cross { padding: 36px var(--gutter) 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 16px; }
.p-cross strong { font-weight: 600; }
.p-risk { margin: 24px var(--gutter) 40px; padding-inline-start: 16px; border-inline-start: 2px solid var(--ink-2); max-width: 82ch; }
.p-risk p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.p-risk strong { color: var(--ink); }

/* ---------- Gallery: May at the table, three real photographs ----------
   Phone: a swipeable row that peeks the next photo. Desktop: one tall portrait beside two landscapes.
   Photographers' credits sit in the bottom corners; crops keep them. */
.p-gallery {
    display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: 10px;
    padding: 28px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.p-gallery::-webkit-scrollbar { display: none; }
.p-shot { margin: 0; overflow: hidden; aspect-ratio: 1 / 1; background: var(--ivory-2); scroll-snap-align: start; }
.p-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 100%; }
.p-shot-tall img { object-position: 50% 22%; }
.p-shot-ring img { object-position: 50% 50%; }

/* ---------- Motion: scroll-led, finished by default ----------
   Without scroll timelines, or with reduced motion, everything above is already in its final state. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        /* The photographs open like a curtain as they arrive. */
        /* the row is its own horizontal scroller on phones, so the photos follow the row's place on the page */
        .p-gallery { view-timeline: --gallery block; }
        .p-shot { animation: shot-in linear both; animation-timeline: --gallery; animation-range: entry 0% entry 80%; }
        .p-shot:nth-child(2) { animation-range: entry 10% entry 90%; }
        .p-shot:nth-child(3) { animation-range: entry 20% cover 45%; }
        .p-shot img { animation: shot-settle linear both; animation-timeline: --gallery; animation-range: entry 0% cover 60%; }
    }
}
@keyframes shot-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes shot-settle { from { transform: scale(1.12); } to { transform: none; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Desktop: the field and May side by side; plans in two columns ---------- */
@media (min-width: 640px) {
    /* one quiet row of three, the same height */
    .p-gallery { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; gap: 12px; }
    .p-shot { aspect-ratio: auto; height: clamp(170px, 20vw, 240px); }
}
@media (min-width: 1024px) {
    .p-gallery { max-width: 1040px; margin-inline: auto; padding-top: 32px; gap: 16px; }
}
@media (min-width: 1024px) {
    .p-hero { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); min-height: min(82svh, 700px); }
    .p-field { display: flex; flex-direction: column; }
    .p-copy { margin-block: auto; padding-block: 48px 72px; }
    .p-photo { aspect-ratio: auto; min-height: 100%; }
    .p-photo img { position: absolute; inset: 0; object-position: 100% 100%; }
    .p-photo-credit { display: none; }
    .p-field .site-nav { gap: clamp(16px, 1.6vw, 28px); }
    html:not([dir="rtl"]) .p-field .site-nav .caps { letter-spacing: 0.2em; }

    .p-trust, .p-offer, .p-related, .p-faq, .p-cross { max-width: 1280px; margin-inline: auto; }
    .p-expect { padding-inline: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))); }
    .p-trust { grid-template-columns: auto 1fr; align-items: center; gap: 8px 40px; padding-block: 24px; }
    .p-trust-head { grid-column: 1; }
    .p-trust-countries { grid-column: 1; }
    .p-trust-proof { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }

    .p-plans { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
    .p-helps-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
    .p-helps-list li { padding-top: 16px; border-top-color: var(--ink); }
    .p-info { grid-template-columns: 1fr 1fr; gap: 0 40px; max-width: none; padding-inline-start: 0; border-inline-start: 0; }
    .p-info p { padding-inline-start: 18px; border-inline-start: 1px solid var(--green); }
    .p-goals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
    /* Reading list and FAQ: heading in the start column, the list in the end column. */
    .p-related, .p-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 56px; align-items: start; }
    .p-related-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .p-rows, .faq-list { margin-top: 0; }
    .p-faq .p-h2 { grid-column: 1; }
    .p-faq .faq-list { grid-column: 2; grid-row: 1 / span 2; }
    .p-risk { max-width: 1280px; margin-inline: max(var(--gutter), calc((100% - 1280px) / 2)); }
    .p-rows a:hover i { translate: -4px 0; }
    [dir="ltr"] .p-rows a:hover i { translate: 4px 0; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
    .p-field .site-nav .nav-wide { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .p-photo { aspect-ratio: 12 / 5; }
    .p-photo img { object-position: 50% 16%; }
}
