/* ==========================================================
   DINOS OF THE WILD WEST — rustic western theme + section template
   Loaded after style.css: overrides the :root palette and adds the
   .t-* section classes used by index.php. Placeholder boxes (.ph)
   are swapped for real <img> tags as art arrives.
   ========================================================== */

:root {
    --primary: #8b4a1f;          /* saddle brown */
    --primary-light: #a8602b;
    --primary-dark: #5e3114;
    --secondary: #2b1d12;
    --accent: #d9a441;           /* brass */
    --accent-glow: rgba(217, 164, 65, 0.3);
    --bg-dark: #1a120b;          /* dark leather */
    --bg-card: #2a1c11;
    --bg-card-hover: #36251a;
    --bg-input: #efe0c0;         /* parchment */
    --text-primary: #efe3cc;
    --text-secondary: #cdb893;
    --text-muted: #9a8466;
    --border: #5a4330;
    --font-display: Georgia, 'Times New Roman', serif;
}

body { background: var(--bg-dark); }

/* ---- Placeholder image boxes ---- */
.ph {
    display: flex; align-items: center; justify-content: center;
    width: 100%;
    background: repeating-linear-gradient(135deg, #3a281a 0 14px, #33231a 14px 28px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font: 600 .8rem/1 var(--font-body);
    letter-spacing: .08em; text-transform: uppercase;
}
.ph--book   { aspect-ratio: 4 / 3; }
.ph--portrait { aspect-ratio: 2 / 3; }
.ph--spread { aspect-ratio: 4 / 3; }
.ph--wide   { aspect-ratio: 16 / 9; }
.ph--banner { aspect-ratio: 2 / 1; }
.ph--square { aspect-ratio: 1 / 1; }

/* ---- Video placeholder: swap the .t-video__frame contents for an <iframe>/<video> ---- */
.t-video { background: #0f0a06; padding: 0; }
.t-video__frame {
    position: relative; width: 100%; max-width: 1368px; margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: repeating-linear-gradient(135deg, #2c1d12 0 18px, #261910 18px 36px);
    display: flex; align-items: center; justify-content: center;
}
.t-video__play {
    width: 88px; height: 88px; border-radius: 50%;
    background: var(--accent); display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
}
.t-video__play::before {
    content: ''; margin-left: 8px;
    border-style: solid; border-width: 16px 0 16px 28px;
    border-color: transparent transparent transparent var(--bg-dark);
}
.t-video__label {
    position: absolute; left: 1rem; bottom: .9rem;
    color: var(--text-muted); font: 600 .8rem/1 var(--font-body);
    letter-spacing: .08em; text-transform: uppercase;
}

/* ---- Section template ---- */
.t-section { padding: 3.5rem 0; }
.t-section--alt { background: var(--secondary); }
.t-section--band { background: var(--bg-card); padding: 2.5rem 0; }

.t-title { font-family: var(--font-display); color: var(--accent); margin-bottom: .75rem; }
.t-heading-center { text-align: center; font-family: var(--font-display); color: var(--accent); margin-bottom: 1.75rem; font-size: 1.8rem; }

.t-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.t-split--text-left .t-split__media { order: 2; }
.t-split__text h2, .t-split__text h3 { font-family: var(--font-display); color: var(--accent); margin-bottom: .75rem; }
.t-split__text p { color: var(--text-secondary); margin-bottom: .75rem; }
.t-split__text ul { margin: .5rem 0 .75rem 1.2rem; color: var(--text-secondary); }
.t-split__text li { margin-bottom: .35rem; }

.t-hero { padding: 3rem 0; background: linear-gradient(180deg, #25170d, var(--bg-dark)); }
.t-hero .t-title { font-size: 2.2rem; }

.t-band { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.t-band h3 { font-family: var(--font-display); color: var(--text-primary); font-size: 1.15rem; margin-bottom: .35rem; }

.t-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.t-cols3 h3 { font-family: var(--font-display); color: var(--accent); margin-bottom: .5rem; }
.t-cols3 p { color: var(--text-secondary); margin-bottom: .6rem; }
.t-cols3__media { margin-top: 1rem; }

.t-banner { position: relative; }
.t-banner__text { text-align: center; max-width: 720px; margin: 1.25rem auto 0; }
.t-banner__text h2 { font-family: var(--font-display); color: var(--accent); margin-bottom: .5rem; }

/* ---- Real-content additions ---- */
.t-img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.t-img--plain { border: 0; border-radius: 0; }
.t-split__media--contain { max-width: 440px; margin-inline: auto; }
.t-logo { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 0 1rem; }
.t-hero__form { margin-top: 1.25rem; }
.t-wide { background: #000; padding: 0; margin: 0; line-height: 0; }
.t-wide__img { display: block; width: 100%; max-width: 1800px; height: auto; margin: 0 auto; }

/* Desktop hero: art runs edge to edge, top to bottom, and fades into the
   colour of its own left edge (#331f1e) so wide screens have no seam. */
@media (min-width: 761px) {
    .t-hero--full {
        padding: 0;
        background: linear-gradient(90deg, #331f1e 0 min(58.333%, calc(50% + 150px)), var(--bg-dark) 0);
    }
    .t-hero--full > .container { max-width: 1800px; padding: 0; }
    .t-hero--full .t-split { gap: 0; align-items: stretch; grid-template-columns: 1.4fr 1fr; }
    .t-hero__media { position: relative; }
    .t-hero__media .t-img {
        position: absolute; inset: 0; width: 100%; height: 100%;
        object-fit: cover; object-position: 22% center;
        border: 0; border-radius: 0;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%);
        mask-image: linear-gradient(90deg, transparent 0, #000 8%);
    }
    .t-hero__text { padding: 3.5rem 0; display: flex; flex-direction: column; justify-content: center; }
    .t-hero__text > * { width: min(520px, calc(100% - 4rem)); margin-inline: auto; }
    .t-hero .t-logo { width: min(350px, calc(100% - 4rem)); margin: 0 auto 1.25rem; }
    .t-hero__form { width: min(380px, calc(100% - 4rem)); margin-top: 1.25rem; }
}

.t-tagline { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.4; text-align: center; color: var(--accent); max-width: 760px; margin: 0 auto 1rem; }
.t-tagline--sub { font-size: 1.2rem; color: var(--text-primary); margin-bottom: .5rem; }
.t-prose { max-width: 760px; margin: 2rem auto 0; }
.t-prose p { color: var(--text-secondary); margin-bottom: .75rem; }
.t-prose ul { margin: .5rem 0 0 1.2rem; color: var(--text-secondary); }
.t-prose li { margin-bottom: .5rem; }
.t-lead { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-primary) !important; }
.t-steps { margin: .5rem 0 1.25rem 1.3rem; color: var(--text-secondary); }
.t-steps li { margin-bottom: .35rem; }
.t-split__text h3 { font-size: 1.05rem; margin-top: 1rem; }

.t-faq { max-width: 760px; margin: 0 auto; }
.t-faq details { border-bottom: 1px solid var(--border); padding: .9rem 0; }
.t-faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.1rem; color: var(--text-primary); }
.t-faq details[open] summary { color: var(--accent); }
.t-faq p { color: var(--text-secondary); margin: .6rem 0 0; }

.t-closing { text-align: center; padding: 3.5rem 0; }
.t-closing__form { max-width: 560px; margin: 1.5rem auto 0; }
.t-closing .form-note a { color: var(--accent); }
.t-smallprint { color: var(--text-muted); font-size: .8rem; max-width: 760px; margin: 0 auto 1rem; }

@media (max-width: 760px) {
    .t-tagline { font-size: 1.3rem; }
    .t-split, .t-band, .t-cols3 { grid-template-columns: 1fr; }
    .t-split--text-left .t-split__media { order: 0; }
    .t-section { padding: 2.5rem 0; }
}

/* Spinning-book video is 3:4 on near-black (#000002 edges, #030509 centre).
   Shown in a square of the same black; the side edges fade so no seam shows. */
.t-split__media--video {
    max-width: 460px; margin-inline: auto; aspect-ratio: 1 / 1;
    display: flex; justify-content: center;
    background: radial-gradient(circle at 50% 50%, #030509, #000002 75%);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.t-split__media--video video {
    display: block; height: 100%; width: auto; max-width: 100%; background: transparent;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

/* Tagline row: pachy art behind three columns (art | text | video). Mobile: the art is
   the section background under an even dark wash. Desktop: the art lives in the
   1800px-max container, so it stops growing there, and a long eased gradient into
   the band colour (--bg-card) keeps text and video readable with no visible edge. */
.t-pachy {
    padding: 0; position: relative; overflow: hidden;
    background: var(--bg-card) var(--pachy-img) 12% 40% / cover no-repeat;
}
.t-pachy::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: rgba(42, 28, 17, .72);
}
.t-pachy > .container { position: relative; }
.t-pachy__spacer { display: none; }
.t-pachy__grid { padding: 2.5rem 0; }
@media (min-width: 761px) {
    .t-pachy { background: var(--bg-card); }
    .t-pachy::before { display: none; }
    .t-pachy > .container { padding: 0; max-width: 1800px; }
    .t-pachy > .container::before {
        content: ''; position: absolute; inset: 0;
        background: var(--pachy-img) 0 28% / cover no-repeat;
    }
    .t-pachy > .container::after {
        content: ''; position: absolute; inset: 0; pointer-events: none;
        background: linear-gradient(90deg,
            rgba(42, 28, 17, 0) 0, rgba(42, 28, 17, 0) 18%,
            rgba(42, 28, 17, .04) 22%, rgba(42, 28, 17, .12) 26%,
            rgba(42, 28, 17, .26) 30%, rgba(42, 28, 17, .44) 34%,
            rgba(42, 28, 17, .62) 38%, rgba(42, 28, 17, .78) 42%,
            rgba(42, 28, 17, .90) 46%, rgba(42, 28, 17, .97) 50%,
            rgb(42, 28, 17) 54%, rgb(42, 28, 17) 100%);
    }
    .t-pachy__grid { position: relative; z-index: 1; grid-template-columns: 41fr 18fr 4.5fr 24.5fr; gap: 0; align-items: center; padding: 2.8rem 12% 2.8rem 0; }
    .t-pachy__grid .t-tagline-block { grid-column: 2; text-align: center; }
    .t-pachy__grid .t-split__media--video { grid-column: 4; margin-inline: 0; max-width: 460px; width: 100%; }
    .t-pachy__spacer { display: block; min-height: 300px; }
}
.t-tagline-block h2 { margin-bottom: .6rem; }
.t-tagline-block h2.t-white { color: #fff; }

/* "A frontier built around the animals": square crops on desktop (wide on mobile).
   Each image is positioned so the rider and head stay in frame. */
@media (min-width: 761px) {
    .t-cols3--square .t-img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
    .t-cols3--square > div:nth-child(1) .t-img { object-position: 49% 50%; }
    .t-cols3--square > div:nth-child(2) .t-img { object-position: 52% 50%; }
    .t-cols3--square > div:nth-child(3) .t-img { object-position: 55% 50%; }
}

/* VIP button: same width as the hero signup button, centred in its column. */
.t-vip-cta { display: block; width: min(380px, 100%); margin: 1.25rem auto; text-align: center; }

/* Mobile spacing: hero art and the two series/road images run edge to edge,
   no border or rounded corners; section padding is 2rem. */
@media (max-width: 760px) {
    .t-section, .t-section--band { padding-top: 2rem; padding-bottom: 2rem; }
    .t-pachy__grid { padding: 2rem 0; }

    .t-hero--full { padding: 0; }
    .t-hero--full > .container, .t-edge > .container { padding: 0; }
    .t-hero--full .t-split, .t-edge .t-split { gap: 0; }
    .t-hero__media .t-img, .t-edge .t-split__media .t-img { border: 0; border-radius: 0; }
    .t-hero__text { padding: 1.5rem 1.5rem 2rem; }
    .t-edge { padding-top: 0; }
    .t-edge .t-split__text { padding: 1.5rem 1.5rem 0; }
}

/* Mobile fixes: the pachy row's padding lives on its grid only (the generic 2rem
   section padding doubled it); the wide book render is 130% taller, with the
   sides cropped to fit, centred. */
@media (max-width: 760px) {
    .t-pachy { padding-top: 0; padding-bottom: 0; }
    .t-wide__img { aspect-ratio: 2400 / 1371; object-fit: cover; object-position: center; }
}

/* ==========================================================
   VIP / THANK-YOU / SHARE PAGES
   ========================================================== */
.t-flow { max-width: 760px; text-align: center; }
.t-flow__headline { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--accent); margin-bottom: .75rem; }
.t-flow__subhead { font-family: var(--font-display); font-size: 1.4rem; color: var(--text-primary); margin: 2rem 0 1rem; }
.t-flow__signoff { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--text-primary); margin: 1.5rem auto; max-width: 560px; }
.t-flow .dash-card { text-align: left; margin-top: 1.5rem; }
.t-flow .t-smallprint { margin-top: 1.5rem; text-align: center; }

.t-todo { list-style: none; counter-reset: todo; margin: 0 0 1.5rem; padding: 0; text-align: left; }
.t-todo li { counter-increment: todo; position: relative; padding: 1rem 1rem 1rem 3.75rem; margin-bottom: .75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.t-todo li::before { content: counter(todo); position: absolute; left: 1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.t-todo strong { display: block; color: var(--text-primary); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .25rem; }
.t-todo span { display: block; color: var(--text-secondary); margin-bottom: .75rem; }
.t-todo li > :last-child { margin-bottom: 0; }
.t-todo .btn, .t-todo .ks-follow-btn { display: inline-flex; padding: .7rem 1.4rem; font-size: 1rem; }

.t-trailer { position: relative; aspect-ratio: 16/9; margin: 2rem 0 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #000; }
.t-trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.t-notice { position: relative; text-align: left; background: rgba(217,164,65,.15); border: 1px solid var(--accent); border-radius: 8px; padding: 14px 40px 14px 18px; margin-bottom: 18px; color: var(--text-primary); font-size: .9rem; }
.t-notice button { position: absolute; top: 8px; right: 12px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }

.t-share-msg-label { color: var(--text-muted); font-size: .85rem; margin: 1.25rem 0 .25rem; }
.t-share-msg { color: var(--text-secondary); background: rgba(0,0,0,.2); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: .75rem; word-break: break-word; }

.t-vip-sub { max-width: 640px; margin: 0 auto 1.5rem; text-align: center; }
.t-vip-note { color: var(--text-secondary); font-size: .9rem; margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid var(--accent); background: rgba(0,0,0,.15); }
.t-vip-note strong { color: var(--text-primary); }

/* "From the world of the series": text above, full-width framed art, text below */
.t-canon__media { margin: 1.5rem 0; }
.t-canon__text { max-width: 760px; margin-inline: auto; }
.t-canon__top p:last-child, .t-canon__bottom p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
    .t-canon__media { margin: 1.5rem 0; }
    .t-canon__media .t-img { border: 0; border-radius: 0; }
    .t-canon__text { padding: 0 1.5rem; margin-inline: 0; }
    .t-canon__top { padding-top: 1.5rem; }
}

/* Mid-page and VIP-figure signup forms */
.t-closing--mid { padding: 2.5rem 0; background: #4a2814; }
.t-vip-form { width: min(380px, 100%); margin: 1.25rem auto; }
@media (max-width: 760px) { .t-closing--mid { padding: 2rem 0; } }

/* Mid-page CTA: text left, form right */
.t-cta2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1100px; margin: 0 auto; text-align: left; }
.t-cta2__text h2 { font-family: var(--font-display); color: var(--accent); margin-bottom: .6rem; }
.t-cta2__text p { color: var(--text-secondary); margin: 0; }
.t-cta2__form { max-width: none; margin: 0; }
.t-cta2 .form-note { margin-top: .6rem; }
@media (max-width: 760px) { .t-cta2 { grid-template-columns: 1fr; gap: 1.25rem; padding: 0 1.5rem; } }

/* Referral reward downloads (share page) */
.tier-files { margin-top: 10px; }
.tier-files:empty { display: none; }
.tier-files__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.tier-files__title { flex-basis: 100%; font-size: 0.85rem; color: var(--text-primary); }
.tier-files__btn { text-decoration: none; }

/* Locked first-wallpaper teaser: tiny pre-blurred image, not the real file */
.tier-teaser { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.tier-teaser img {
    width: 96px; height: 208px; object-fit: cover; border-radius: 12px;
    filter: blur(5px) saturate(1.1); transform: scale(1.02);
    border: 1px solid var(--border);
    pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.tier-teaser__lock { font-size: 0.9rem; color: var(--accent); }

/* Consent boxes under every email field */
.consent { margin: .75rem 0 0; text-align: left; font-size: .75rem; line-height: 1.4; }
.consent label { display: flex; align-items: flex-start; gap: .55em; margin: .35em 0; cursor: pointer; }
.consent input[type="checkbox"] { flex: 0 0 auto; width: 1em; height: 1em; margin: .2em 0 0; accent-color: var(--accent); }
.consent a { color: inherit; text-decoration: underline; }
.t-closing .consent { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Login / password pages and the dashboard account card */
.auth-form { display: grid; gap: 12px; margin-top: 24px; text-align: left; }
.auth-form label { font-size: .9rem; color: var(--text-muted); }
.auth-form input { width: 100%; box-sizing: border-box; padding: 14px 16px; font-size: 1rem; border: 1px solid #8a6a3a; border-radius: 8px; background: #f3e6c9; color: #2b1d10; }
.auth-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-form .btn { justify-self: stretch; }
.auth-links { margin-top: 18px; display: grid; gap: 8px; font-size: .95rem; }
.auth-links a { color: var(--accent); }
#accountCard .auth-form { margin-top: 12px; max-width: 420px; }

/* Cookie banner: Decline sits beside Accept */
.cookie-actions { display: inline-flex; gap: .6rem; flex: 0 0 auto; }
.cookie-btn--decline { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--text-muted); }
