/* ==========================================================================
   Product pages (Licensing 1, pull.credit) — shared components layered on the
   site's design tokens in css/styles.css. Page-specific extras live in
   css/<product>.css.
   ========================================================================== */

/* --- Page hero ------------------------------------------------------------ */
.page-hero {
    padding-top: clamp(8rem, 16vh, 11rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-hero .eyebrow { margin-bottom: 1.5rem; }

.page-hero h1 {
    max-width: 16ch;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 700;
    font-stretch: 112%;
    letter-spacing: -0.035em;
    line-height: 1;
}

.page-hero .hero-lead { max-width: 58ch; margin-top: 1.5rem; }

.page-hero .hero-actions { align-items: center; }
/* Secondary text links stay together when the action row wraps */
.hero-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }

.text-link {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.04em;
    color: var(--text-2);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 0.15rem;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link:hover { color: var(--accent-light); border-color: var(--accent); }

.proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}
.proof-strip span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.6rem;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
}

/* --- Video ---------------------------------------------------------------- */
.video-section { padding-block: 0 var(--section); }

.video-frame {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(15, 164, 184, 0.12);
}

.video-frame video {
    display: block;
    width: 100%;
    height: auto;            /* beats the height="" attribute so the box stays 16:9 */
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-caption {
    max-width: 1040px;
    margin: 1.25rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    font-size: var(--step--1);
    color: var(--text-3);
}

.video-caption .len {
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* Chapter list — clicking a row seeks the video */
.chapters {
    max-width: 1040px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chapter {
    text-align: left;
    padding: 1rem 1.1rem 1.1rem;
    background: var(--bg);
    color: var(--text-2);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.chapter:hover, .chapter.is-active { background: var(--bg-2); color: var(--text-1); }
.chapter.is-active { box-shadow: inset 0 2px 0 var(--accent); }

.chapter time {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.chapter span { font-size: var(--step--1); line-height: 1.4; }

.transcript {
    max-width: 1040px;
    margin: 1.25rem auto 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.transcript summary {
    cursor: pointer;
    list-style: none;
    padding: 0.9rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-2);
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: '+ '; color: var(--accent); }
.transcript[open] summary::before { content: '\2212  '; }

.transcript dl {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0.6rem 1.25rem;
    padding: 0.25rem 1.25rem 1.25rem;
    font-size: var(--step--1);
}
.transcript dt { font-family: var(--font-mono); color: var(--text-3); }
.transcript dd { color: var(--text-2); }
.transcript dd strong { display: block; color: var(--text-1); font-weight: 600; }

/* --- Section shells ------------------------------------------------------- */
.l1-section {
    padding-block: var(--section);
    border-top: 1px solid var(--line);
}
.l1-section--raised { background: var(--bg-1); }

.l1-section .section-header { max-width: 72ch; }

/* --- Generic grids of tiles ----------------------------------------------- */
.tiles {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile {
    padding: clamp(1.4rem, 2.6vw, 2rem);
    background: var(--bg);
    transition: background 0.25s var(--ease);
}
.l1-section--raised .tile { background: var(--bg-1); }
.tile:hover { background: var(--bg-2); }

.tile .num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.tile h3 {
    font-size: var(--step-1);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 0.65rem;
}

.tile p { font-size: var(--step--1); line-height: 1.7; color: var(--text-2); }

.tiles-note {
    margin-top: 1.5rem;
    max-width: 78ch;
    font-size: var(--step--1);
    color: var(--text-3);
}

/* --- How it works --------------------------------------------------------- */
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.step-col { padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }

.step-col .step-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.step-col h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: 0.6rem; }
.step-col p { font-size: var(--step--1); line-height: 1.7; }

/* --- Feature groups ------------------------------------------------------- */
.feature-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
}

.feature-group h3 {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.feature-group li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.1rem;
    font-size: var(--step--1);
    line-height: 1.6;
    color: var(--text-2);
}
.feature-group li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95em;
    width: 5px;
    height: 1px;
    background: var(--accent);
}

/* --- Portals table -------------------------------------------------------- */
.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--step--1);
}
.portal-table th,
.portal-table td {
    text-align: left;
    vertical-align: top;
    padding: 1rem 1.25rem 1rem 0;
    border-bottom: 1px solid var(--line);
}
.portal-table th {
    width: 14rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: -0.01em;
}
.portal-table td { color: var(--text-2); line-height: 1.6; }
.portal-table tr:last-child th,
.portal-table tr:last-child td { border-bottom: 0; }

/* --- AI + proof + pricing bands ------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.split h2 { font-size: var(--step-3); font-weight: 700; font-stretch: 112%; }
.split p { max-width: 58ch; font-size: var(--step-0); line-height: 1.7; }
.split p + p { margin-top: 1rem; }

.proof-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--text-2);
}
.proof-line a { color: var(--accent-light); }
.proof-line a:hover { color: var(--accent); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.15rem 0;
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text-1);
    transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-light); }
.faq summary::after {
    content: '+';
    flex: none;
    font-family: var(--font-mono);
    color: var(--accent);
    transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
    max-width: 70ch;
    padding-bottom: 1.25rem;
    font-size: var(--step-0);
    line-height: 1.7;
    color: var(--text-2);
}

/* --- Final CTA ------------------------------------------------------------ */
.cta-band {
    text-align: center;
    padding-block: var(--section);
    border-top: 1px solid var(--line);
    background:
        radial-gradient(700px 320px at 50% 100%, rgba(15, 164, 184, 0.12), transparent 70%),
        var(--bg-1);
}
.cta-band h2 {
    font-size: var(--step-3);
    font-weight: 700;
    font-stretch: 112%;
    max-width: 20ch;
    margin-inline: auto;
}
.cta-band p { max-width: 44ch; margin: 1.25rem auto 0; font-size: var(--step-1); }
.cta-band .hero-actions { justify-content: center; margin-top: 2.25rem; }
.cta-band .contact-meta { margin-top: 2rem; }

/* --- A look inside: screenshot gallery ------------------------------------ */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
}
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gallery figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
/* The hover zoom (picture and caption together) lives in animations.js
   section 7 and styles.css 12b. A CSS :hover scale can't do it here: the
   scroll-reveal rule sets transform on every child of a [data-animate] grid
   with higher specificity, which is why the old 1.04 scale never showed. */
.gallery figure:hover .shot-frame {
    border-color: rgba(15, 164, 184, 0.55);
}
.gallery .wide { grid-column: 1 / -1; }

.shot-frame {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.shot-frame img {
    display: block;
    width: 100%;
    height: auto;
}
.shot-frame { transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }

/* --- Pictures attached to copy ------------------------------------------- */
/* A figure inside a tile: sits above the tile's heading at a fixed ratio */
.tile-figure {
    margin: -0.25rem 0 1rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-2);
}
.tile-figure img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.tile-figure--contain { background: #f6f7f8; }
.tile-figure--contain img { object-fit: contain; object-position: center; }
.tile-figure--auto { aspect-ratio: auto; }          /* wide strips keep their own height */
.tile-figure--auto img { height: auto; }

.section-figure--after { margin: clamp(2rem, 4vw, 3rem) 0 0; }

/* A hero with a picture beside the copy */
.page-hero--split .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-figure {
    margin: 0;
    justify-self: end;
    width: 100%;
    max-width: 460px;
}
.hero-figure--tall { max-width: 400px; }
.hero-figure .shot-frame { box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 60px rgba(15, 164, 184, 0.14); }
.hero-figure figcaption {
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* A picture that belongs to a section's words: full width under the header */
.section-figure {
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.section-figure figcaption {
    margin-top: 0.75rem;
    font-size: var(--step--1);
    color: var(--text-3);
}
.section-figure--narrow { max-width: 820px; }

.gallery figcaption {
    font-size: var(--step--1);
    line-height: 1.6;
    color: var(--text-2);
}
.gallery figcaption strong {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-display);
    font-size: var(--step-0);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-1);
}

@media (max-width: 1024px) {
    .gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .gallery, .gallery--3 { grid-template-columns: 1fr; }
    .page-hero--split .hero-inner { grid-template-columns: 1fr; }
    .hero-figure { justify-self: start; max-width: 420px; }
}

/* --- Back link in the nav ------------------------------------------------- */
.nav-back {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}
.nav-back:hover { color: var(--text-1); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
    .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .tiles--2, .tiles--3, .tiles--4, .chapters, .steps-row, .feature-groups { grid-template-columns: 1fr; }
    .portal-table th { width: auto; display: block; padding-bottom: 0.25rem; border-bottom: 0; }
    .portal-table td { display: block; padding-top: 0; }
    .transcript dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
    .transcript dt { margin-top: 0.75rem; }
}
