/* ==========================================================================
   The index page's own layer over home.css and home-refresh.css (index only).

   Designed for conversions, from a look at what works on legal case-management
   sites and on sites that don't read as templates (2026-11-18): say plainly
   what it is and for whom; one action, with what it costs to try right under
   it; the real product, not decoration; true specifics instead of slogans.

   Colour is CasePloy's own, each with one job, and nothing else:
     paper  #fafafa  the page          ink     #232323  words, the main button
     lavender #edeef6  panels          sky #dce9ff, peach #f1d9ca  second panels
     blue   #006dfc  the brand: small labels, links, one highlight
   No gradients, glows, glass or patterns. Motion is small: headlines rise,
   blocks fade up, the tour plays, the letter fills in (home-motion.js).
   ========================================================================== */

.home-index main { overflow-x: clip; }

/* ---------- Type: big, bold, easy to read ---------- */
.home-index h1, .home-index h2, .home-index h3 { font-weight: 700; color: var(--ink); }
.home-index h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.045em; }
.home-index h2 em { color: var(--tail); }
.home-index .home-eyebrow, .home-index .hero-copy .home-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; color: var(--blue-text); }
.home-index main .home-button { min-height: 52px; padding: 12px 26px; font-size: 16px; font-weight: 600; }   /* the page's own buttons, not the header's */
.home-index .home-text-link { font-size: 16px; font-weight: 600; color: var(--ink); }
.home-index .home-section-heading, .home-index .home-section-heading.is-centered { margin-bottom: 64px; }
.home-index .home-section-heading h2, .home-index .demand-copy h2, .home-index .home-faq h2 { margin-top: 16px; }
.home-index .home-section-heading.is-centered > p:not(.home-eyebrow) { max-width: 600px; margin: 22px auto 0; padding: 0; font-size: 19px; line-height: 1.6; color: var(--muted); }
.home-index .demand-copy > p:not(.home-eyebrow) { font-size: 18.5px; line-height: 1.65; max-width: 440px; }
.home-index .demand-copy h3 { font-size: 19px; }
.home-index .demand-copy li p { font-size: 16px; line-height: 1.6; }
.home-index .demand-copy li > span { width: 34px; height: 34px; font-size: 13px; font-weight: 700; }
.home-index .letter-line { font-size: 16px; }
.home-index .letter-legend { font-size: 14px; }
.home-index .evidence-caption { font-size: 15px; line-height: 1.6; }
.home-index .faq-items summary { font-size: 19px; font-weight: 600; }
.home-index .faq-items details > p { font-size: 17px; line-height: 1.7; }
.home-index .home-faq > div > p:not(.home-eyebrow) { font-size: 16.5px; }
.home-index .home-footer > p, .home-index .home-footer > nav { font-size: 15px; }
.home-index .public-information { font-size: 14px; }
.home-index .home-footer { margin-top: var(--section); }
/* pricing: the same words, large enough to read without leaning in */
.home-index .pricing-heading h2 { font-weight: 700; }
.home-index .pricing-heading > p { font-size: 17.5px; line-height: 1.65; color: var(--muted); }
.home-index .pricing-period button { font-size: 15px; font-weight: 600; }
.home-index .pricing-period button span { font-size: 13px; }
.home-index .pricing-currency, .home-index .price-billing { font-size: 14px; color: var(--muted); }
.home-index .price-card h3 { font-size: 23px; font-weight: 700; }
.home-index .price-recommendation { font-size: 12.5px; font-weight: 700; }
.home-index .price-card-intro > p { font-size: 15.5px; min-height: 47px; color: var(--muted); }
.home-index .price-amount strong { font-weight: 700; }
.home-index .price-amount > span:last-child { font-size: 14px; color: var(--muted); }
.home-index .price-card .price-cta { font-size: 15px; font-weight: 600; }
.home-index .price-feature-label { font-size: 14px; font-weight: 700; }
.home-index .price-card li { font-size: 15.5px; }
.home-index .price-roadmap-heading strong { font-size: 14px; font-weight: 700; }
.home-index .price-roadmap-heading > span { font-size: 12px; font-weight: 600; }
.home-index .price-roadmap p { font-size: 14px; color: var(--muted); }
.home-index .pricing-roadmap-note { font-size: 14px; color: var(--muted); }
.home-index .pricing-comparison summary { font-size: 16.5px; font-weight: 600; }
.home-index .pricing-comparison table { font-size: 14.5px; }
.home-index .pricing-comparison caption { font-size: 13.5px; }
.home-index .comparison-planned { font-size: 12px; font-weight: 600; }
.home-index .pricing-estimator h3 { font-size: 17.5px; font-weight: 700; }
.home-index .pricing-estimator p { font-size: 14.5px; color: var(--muted); }
.home-index .pricing-estimator label { font-size: 13.5px; font-weight: 600; }
.home-index .pricing-estimator select, .home-index .pricing-estimator input { font-size: 15.5px; }
.home-index .pricing-estimate strong span { font-size: 14px; }
.home-index .pricing-footnote { font-size: 13.5px; color: var(--muted); }
.home-index .pricing-help { font-size: 16px; }

/* ---------- 1. Hero: what it is, one action, what it costs to try; the real dashboard beside it ---------- */
.home-index .home-hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; padding-top: 96px; padding-bottom: 64px; min-height: 0; }
.home-index .hero-copy h1 { max-width: none; margin: 22px 0 26px; font-size: clamp(40px, 4.3vw, 64px); line-height: 1.05; letter-spacing: -.045em; }
.home-index .hero-copy h1 em { color: var(--tail); white-space: nowrap; }
.home-index .home-lede { max-width: 500px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.home-index .home-hero-actions { gap: 14px 28px; margin-top: 36px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks .icon { box-sizing: content-box; width: 12px; height: 12px; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; stroke-width: 2.4; }
.home-index .studio-dashboard { cursor: default; border-radius: 14px; }
.home-index .studio-note { font-size: 16px; }
.home-index .hero-studio-actual .studio-disclosure { font-size: 13px; color: var(--muted); }

/* ---------- 2. The offer in four plain facts, then what it works with ---------- */
.facts { margin-top: 56px; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.facts-row li { padding: 32px 28px 34px; border-left: 1px solid var(--line-strong); }
.facts-row li:first-child { border-left: 0; padding-left: 0; }
.facts-row strong { display: block; font-size: clamp(30px, 2.9vw, 42px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.facts-row span { display: block; max-width: 260px; margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.facts-works { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 30px; margin-top: 30px; font-size: 16px; font-weight: 600; color: var(--ink); }
.facts-works > span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.facts-works > .facts-works-label { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); }
.facts-works .brand { flex: none; width: 24px; height: 24px; }
.facts-works .brand.is-wide { width: 26px; height: 20px; }

/* ---------- 3. See it work: the recordings on a lavender panel, the stops named under it ---------- */
.home-index .home-how { padding-top: var(--section); }
/* sized so the picture and the names under it are on screen together */
.tour { width: min(100%, 1180px, max(880px, calc((100vh - 300px) * 16 / 9))); margin-inline: auto; container-type: inline-size; }
.tour-panel { padding: clamp(14px, 2.4vw, 32px); border-radius: 32px; background: var(--lavender); }
.tour-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--frame-shadow); cursor: pointer; }
.tour-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.tour-video.is-active { opacity: 1; }
.tour-toggle { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #232323e6; color: #fff; opacity: 0; transition: opacity .25s, background-color .2s; }
.tour-stage:hover .tour-toggle, .tour-toggle:focus-visible, .tour-toggle[aria-pressed="false"] { opacity: 1; }
.tour-toggle:hover { background: var(--blue-hover); }
.tour-toggle .tour-icon-pause, .tour-toggle[aria-pressed="true"] .tour-icon-play { display: none; }
.tour-toggle[aria-pressed="true"] .tour-icon-pause { display: block; }
@media (hover: none) { .tour-toggle { opacity: 1; } }
.tour-tabs { display: grid; grid-template-columns: repeat(var(--stops, 9), minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
.tour-tab { position: relative; padding: 16px 2px 4px; border: 0; background: none; text-align: center; font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--faint); white-space: nowrap; transition: color .25s; }
.tour-tab:hover, .tour-tab.is-active { color: var(--ink); }
.tour-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.tour-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--played, 0)); }
.tour-tab.is-done .tour-bar > i { transform: none; }
.tour-captions { display: grid; justify-items: center; margin-top: 28px; text-align: center; }
.tour-caption { grid-area: 1 / 1; max-width: 720px; font-size: 20px; line-height: 1.5; letter-spacing: -.01em; color: var(--muted); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.tour-caption strong { font-weight: 700; color: var(--ink); }
.tour-caption.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease .1s; }
@container (max-width: 980px) {   /* not room for every name in a row: the row scrolls sideways */
    .tour-tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
    .tour-tabs::-webkit-scrollbar { display: none; }
    .tour-tab { flex: none; min-width: 84px; }
    .tour-caption { font-size: 18px; }
}

/* ---------- 4. What you get: each part of a case with its real screen, on the brand's three tints ---------- */
.home-index .home-benefits { padding-top: var(--section); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento-card { position: relative; display: flex; flex-direction: column; min-height: 420px; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: box-shadow .35s, translate .5s var(--ease), border-color .3s; }
.bento-card.is-wide { grid-column: span 2; }
.bento-card:hover { translate: 0 -4px; border-color: var(--line-strong); box-shadow: var(--card-shadow-lift); }
.bento-art { position: relative; flex: 1; min-height: 250px; overflow: hidden; background: var(--lavender); }
.bento-card:nth-child(3n + 2) .bento-art { background: var(--sky); }
.bento-card:nth-child(3n) .bento-art { background: #f6e3d7; }
.bento-art img { position: absolute; left: 32px; top: 32px; width: var(--w, 880px); max-width: none; height: auto; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--frame-shadow); transition: transform .7s var(--ease); }
.bento-card:hover .bento-art img { transform: translate3d(0, -8px, 0); }
.bento-card.is-case { --w: 920px; } .bento-card.is-records { --w: 940px; } .bento-card.is-settlement { --w: 920px; }
.bento-card.is-intake { --w: 600px; } .bento-card.is-today { --w: 357px; } .bento-card.is-calendar { --w: 760px; }
.bento-card.is-today .bento-art img { left: 50%; margin-left: -178px; }
.bento-copy { padding: 26px 32px 32px; }
.bento-icon { display: none; }
.bento-copy h3 { font-size: 23px; letter-spacing: -.03em; line-height: 1.2; }
.bento-copy p { max-width: 520px; margin-top: 8px; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ---------- 4. The letter: the section carries the space above it, so its inside can hold still while you scroll ---------- */
.home-demands-scroll { padding-top: var(--section); }
.home-demands-scroll > .home-demands { padding-top: 0; }
.motion [data-scene="pin"].is-pinned > [data-stage] { position: sticky; top: var(--stage-top, 100px); }
.motion [data-scene="pin"].is-pinned::after { content: ''; display: block; height: var(--pin-length, 0px); }
.letter-meter { display: none; }
.motion .letter-meter { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: #1f3f7a; }
.letter-meter-bar { flex: 1; height: 6px; border-radius: 6px; background: #ffffffb3; overflow: hidden; }
.letter-meter-bar > span { display: block; height: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); background: linear-gradient(90deg, #4384ee, #1f4f9c); transition: transform .5s var(--ease); }
.motion .blank.is-js { display: inline-block; animation: none; background: var(--lavender); color: #474a6d; font-weight: 600; transition: background-color .35s, box-shadow .35s, color .35s; }
.motion .blank.is-js::before, .motion .blank.is-js::after { content: none; animation: none; }
.motion .blank.is-marked { box-shadow: 0 0 0 2px #8e92d4; }
.motion .blank.is-typing { background: #e6efff; color: #1f4f9c; box-shadow: 0 0 0 2px #4384ee; }
.motion .blank.is-typing::after { content: ''; display: inline-block; opacity: 1; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: #1f4f9c; animation: caret .8s steps(1) infinite; }
.motion .blank.is-filled { background: #dbe8ff; color: #1f4f9c; }
@keyframes caret { 50% { opacity: 0; } }
.motion [data-letter-step] > span { transition: background-color .35s, color .35s, scale .45s var(--ease); }
.motion [data-letter-step].is-active > span { background: var(--ink); color: #fff; scale: 1.1; }
.motion [data-letter-step].is-done > span { background: #1c7c54; color: #fff; }
.motion .home-demands-scroll { --p: 0; }
@media (min-width: 901px) and (max-height: 780px) {   /* a shorter window: the held letter tightens up so it still fits whole */
    .motion .home-demands-scroll .evidence-caption { display: none; }
    .motion .home-demands-scroll .demand-panel { padding: 22px 26px 22px; }
    .motion .home-demands-scroll .letter-demo { margin-top: 14px; padding: 20px 24px 16px; }
    .motion .home-demands-scroll .letter-line { line-height: 1.75; margin-bottom: 4px; }
    .motion .home-demands-scroll .demand-copy h2 { font-size: clamp(34px, 3.4vw, 44px); }
    .motion .home-demands-scroll .demand-copy > p:not(.home-eyebrow) { margin-top: 14px; font-size: 17px; }
    .motion .home-demands-scroll .demand-copy ol { margin: 18px 0 8px; }
    .motion .home-demands-scroll .demand-copy li { padding: 11px 0; }
}

/* ---------- 7. The ask, once more, with what it costs to try ---------- */
.home-index .home-closing { padding: 112px 32px 104px; border-radius: 32px; }
.home-index .home-closing h2 { max-width: none; margin: 18px auto 0; font-size: clamp(40px, 5.4vw, 72px); }
.closing-lede { max-width: 520px; margin: 22px auto 36px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.closing-terms { margin-top: 16px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.home-index .home-closing > .closing-links { margin-top: 26px; font-size: 15px; color: var(--muted); }

/* ---------- Coming in on scroll, and headlines rising word by word ---------- */
.motion .reveal-pending { opacity: 0; translate: 0 20px; }
.motion .reveal-seen { opacity: 1; translate: 0 0; transition: opacity .8s var(--ease) var(--reveal-delay, 0ms), translate .8s var(--ease) var(--reveal-delay, 0ms); }
.motion .bento-card.reveal-seen { transition: opacity .8s var(--ease) var(--reveal-delay, 0ms), box-shadow .35s, translate .5s var(--ease), border-color .3s; }
.motion [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.motion [data-split] .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform .9s var(--ease); transition-delay: calc(var(--wi, 0) * 60ms + var(--split-delay, 0ms)); will-change: transform; }
.motion [data-split].is-in .w > span { transform: none; }
.motion .hero-copy > h1 { animation: none; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1150px) and (min-width: 901px) {
    .home-index .home-hero { gap: 32px; grid-template-columns: .9fr 1.1fr; }
    .home-index .hero-copy h1 { font-size: clamp(36px, 4vw, 46px); }
}
@media (max-width: 1100px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento-card.is-wide { grid-column: span 2; }
    .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts-row li:nth-child(3) { border-left: 0; padding-left: 0; }
    .facts-row li:nth-child(n + 3) { border-top: 1px solid var(--line-strong); }
}
@media (max-width: 900px) {
    .tour { width: 100%; }
    .home-index .home-hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 56px; padding-bottom: 40px; }
    .home-index .hero-copy h1 { font-size: clamp(40px, 7.4vw, 60px); }
    .tour-tabs { margin-inline: -24px; padding-inline: 24px; }
    .facts { margin-top: 32px; }
}
@media (max-width: 700px) {
    .bento { grid-template-columns: minmax(0, 1fr); }
    .bento-card.is-wide { grid-column: auto; }
    .bento-card { min-height: 380px; }
    .bento-art img { left: 20px; top: 20px; width: calc(var(--w) * .8); }
    .bento-card.is-today .bento-art img { width: 320px; margin-left: -160px; }
    .bento-copy { padding: 22px 24px 26px; }
}
@media (max-width: 600px) {
    .home-index .home-hero { padding-top: 36px; }
    .home-index .hero-copy h1 { font-size: clamp(36px, 10vw, 46px); }
    .home-index .hero-copy h1 br { display: none; }
    .home-index .home-lede { font-size: 18px; }
    .home-index .home-hero-actions .home-button { width: 100%; }
    .hero-checks { font-size: 15px; gap: 10px 18px; }
    .facts-row { grid-template-columns: minmax(0, 1fr); }
    .facts-row li, .facts-row li:first-child, .facts-row li:nth-child(3) { padding: 22px 0 24px; border-left: 0; }
    .facts-row li + li { border-top: 1px solid var(--line-strong); }
    .facts-row span { max-width: none; }
    .facts-works { justify-content: flex-start; gap: 12px 22px; font-size: 15px; }
    .facts-works > .facts-works-label { flex-basis: 100%; }
    .home-index .hero-copy h1 em { white-space: normal; }
    .tour-panel { border-radius: 20px; }
    .tour-stage { border-radius: 11px; }
    .tour-tabs { margin-top: 20px; margin-inline: -20px; padding-inline: 20px; }
    .tour-captions { margin-top: 20px; }
    .home-index .home-closing { padding: 72px 22px 64px; border-radius: 24px; }
    .home-index .faq-items summary { font-size: 17.5px; }
    .home-index .demand-copy > p:not(.home-eyebrow) { font-size: 17px; }
}
