/* Homepage touches (2026-10, CHANGES.md section 17). Only loaded by home.php.
   Everything else on the homepage comes from style.css, unchanged. */

/* ---------- 1. Customer logo strip ---------- */
.logo-strip-section { padding-top: 8px; padding-bottom: 8px; }
.logo-strip {
    overflow: hidden;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-strip-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: logo-strip-move 60s linear infinite;
}
.logo-strip.is-normal .logo-strip-track { animation-duration: 35s; }
.logo-strip:hover .logo-strip-track,
.logo-strip:focus-within .logo-strip-track { animation-play-state: paused; }
.logo-strip-item {
    flex: none;
    display: inline-flex;
    align-items: center;
    margin: 0 40px;
    opacity: var(--logo-opacity, 0.4);
    transition: opacity 0.2s ease, filter 0.2s ease;
}
.logo-strip-item img { display: block; height: 36px; width: auto; max-width: 150px; object-fit: contain; }
.logo-strip.is-mono .logo-strip-item img { filter: grayscale(1) brightness(0); transition: filter 0.2s ease; }
[data-theme="dark"] .logo-strip.is-mono .logo-strip-item img { filter: grayscale(1) brightness(0) invert(1); }
.logo-strip-item:hover,
.logo-strip-item:focus-visible { opacity: 1; }
.logo-strip.is-mono .logo-strip-item:hover img,
.logo-strip.is-mono .logo-strip-item:focus-visible img { filter: none; }
@keyframes logo-strip-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 2. Leo types live (hero card) ---------- */
.hero-proof-chat.is-live { min-height: 180px; align-content: start; }
.hero-proof-chat .is-new { animation: touch-pop 0.3s ease both; }
.hero-proof-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-self: start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
}
[data-theme="dark"] .hero-proof-typing { background: rgba(255, 255, 255, 0.06); }
.hero-proof-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: touch-dot 1.2s infinite; }
.hero-proof-typing span:nth-child(2) { animation-delay: 0.15s; }
.hero-proof-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes touch-dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes touch-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 3. Gentle fade-in on scroll (only when JS runs) ---------- */
.touch-js .touch-reveal { opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease; }
.touch-js .touch-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 4. Soft light that follows the mouse on glass cards ---------- */
.touch-glow { position: relative; isolation: isolate; }
.touch-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.75), transparent 65%);
}
[data-theme="dark"] .touch-glow::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 65%); }
.touch-glow:hover::after { opacity: 1; }

/* ---------- 5. Small colour accents ---------- */
.touch-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.trust-card .touch-icon { margin-bottom: 12px; }
.touch-icon.touch-tint-1, .step-index.touch-tint-1 { background: #f8dcc6; color: #7a3e17; }
.touch-icon.touch-tint-2, .step-index.touch-tint-2 { background: #dfe7d6; color: #3f5338; }
.touch-icon.touch-tint-3, .step-index.touch-tint-3 { background: #f3e6b8; color: #6b5210; }
[data-theme="dark"] .touch-icon.touch-tint-1, [data-theme="dark"] .step-index.touch-tint-1 { background: rgba(246, 199, 164, 0.16); color: #f6c7a4; }
[data-theme="dark"] .touch-icon.touch-tint-2, [data-theme="dark"] .step-index.touch-tint-2 { background: rgba(201, 214, 189, 0.16); color: #c9d6bd; }
[data-theme="dark"] .touch-icon.touch-tint-3, [data-theme="dark"] .step-index.touch-tint-3 { background: rgba(243, 230, 184, 0.14); color: #f3e6b8; }
.step-index[class*="touch-tint-"] { display: inline-block; padding: 4px 10px; border-radius: 999px; }

/* ---------- 6. Real embed code in "How it works" ---------- */
.step-code {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 10px 10px 12px;
    border-radius: 12px;
    background: #1f1a14;
    color: #ece6da;
}
.step-code code {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-all;
}
.step-code-copy {
    flex: none;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: #fffbec;
    color: #1f1a14;
    cursor: pointer;
}
[data-theme="dark"] .step-code { background: rgba(0, 0, 0, 0.35); }

@media (prefers-reduced-motion: reduce) {
    .logo-strip-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .logo-strip-item[aria-hidden="true"] { display: none; }
    .hero-proof-typing span,
    .hero-proof-chat .is-new { animation: none; }
    .touch-js .touch-reveal { opacity: 1; transform: none; transition: none; }
}

/* Section 52: four plans with what they include. */
.pricing-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (min-width: 1100px) {
    .pricing-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .pricing-grid-4 { grid-template-columns: 1fr; }
}
.pricing-grid-4 .pricing-card { display: flex; flex-direction: column; gap: 8px; }
.pricing-grid-4 .pricing-price { font-size: 1.35rem; font-weight: 600; }
.pricing-features { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; font-size: 0.92rem; line-height: 1.45; }
.pricing-features li { position: relative; padding-left: 22px; color: var(--text-primary); }
.pricing-features li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: 0.7; }
.pricing-features .pricing-support { color: var(--text-secondary); }
.pricing-grid-4 .pricing-cta-form,
.pricing-grid-4 .billing-coming-soon-btn,
.pricing-grid-4 a.billing-start-trial-btn { margin-top: auto; }
.pricing-grid-4 .pricing-features { margin-bottom: 12px; }
.pricing-grid-4 a.billing-start-trial-btn { text-align: center; justify-content: center; }
.pricing-all { margin-top: 16px; color: var(--text-secondary); font-size: 0.92rem; text-align: center; }

/* Section 53: short plan cards; the details open in a small window. */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { position: relative; border-radius: 20px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.plan-card:hover { transform: translateY(-3px); }
.plan-card.is-popular { border: 1px solid var(--text-primary); }
.plan-badge { position: absolute; top: 16px; right: 16px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--text-primary); color: var(--bg); }
.plan-bots { display: flex; gap: 5px; align-items: center; height: 26px; }
.plan-bot { width: 24px; height: 24px; border-radius: 50% 50% 50% 8px; background: var(--text-primary); opacity: .85; position: relative; }
.plan-bot::after { content: ""; position: absolute; left: 7px; top: 10px; width: 10px; height: 3px; border-radius: 2px; background: var(--bg); box-shadow: 0 -5px 0 -1px var(--bg); }
.plan-bot:nth-child(2) { opacity: .6; }
.plan-bot:nth-child(3) { opacity: .42; }
.plan-bot:nth-child(4) { opacity: .3; }
.plan-bot-more { font-weight: 700; color: var(--text-secondary); margin-left: 2px; }
.plan-name { margin: 6px 0 0; font-size: 1.15rem; font-weight: 600; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; color: var(--text-primary); }
.plan-price b { font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; }
.plan-price span { color: var(--text-secondary); font-size: .92rem; }
.plan-price .plan-from { font-size: .92rem; }
.plan-tagline { margin: 0; color: var(--text-secondary); font-size: .95rem; line-height: 1.45; min-height: 2.9em; }
.plan-facts { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border, rgba(0,0,0,.08)); display: grid; gap: 7px; font-size: .9rem; line-height: 1.4; }
.plan-facts li { position: relative; padding-left: 20px; }
.plan-facts li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .7; }
.plan-actions { margin-top: auto; padding-top: 10px; display: grid; gap: 4px; }
.plan-actions .pricing-cta-form, .plan-actions .plan-cta { width: 100%; }
.plan-actions .plan-cta { text-align: center; }
.plan-more { background: none; border: 0; padding: 8px; font: inherit; font-size: .88rem; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.plan-more:hover { color: var(--text-primary); }
.plan-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; border: 0; padding: 0; border-radius: 22px; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 40px); background: var(--bg); color: var(--text-primary); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.plan-dialog::backdrop { background: rgba(20, 15, 10, .5); backdrop-filter: blur(2px); }
.plan-dialog[open] { animation: plan-pop .18s ease-out; }
@keyframes plan-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.plan-dialog-inner { position: relative; padding: 26px 24px 22px; display: grid; gap: 10px; }
.plan-dialog-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--text-primary); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.plan-dialog-close:hover { background: var(--bg-soft); }
.plan-dialog-kicker { margin: 0; font-size: .85rem; color: var(--text-secondary); }
.plan-dialog-title { margin: 0; font-size: 1.6rem; }
.plan-dialog-lead { margin: 0; color: var(--text-secondary); line-height: 1.5; }
.plan-dialog .pricing-features { margin: 6px 0 0; }
.plan-dialog-every { margin: 8px 0 0; font-size: .82rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.plan-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plan-chips li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--text-primary); }
.plan-dialog-trial { margin: 6px 0 0; font-size: .88rem; color: var(--text-secondary); }
.plan-dialog-cta, .plan-dialog .plan-cta { width: 100%; }
.plan-dialog .plan-cta { text-align: center; }
@media (prefers-reduced-motion: reduce) { .plan-card, .plan-dialog[open] { transition: none; animation: none; } }

/* Section 56: second line of the hero headline. */
.hero-headline .hero-headline-tail { display: block; font-size: .44em; line-height: 1.15; font-weight: 500; letter-spacing: -0.005em; color: var(--text-secondary); margin-top: .4em; max-width: 22ch; text-wrap: balance; }

/* Section 61: customer quotes (only rendered when at least one is visible) */
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 28px; }
.quotes-grid.is-single { max-width: 720px; margin-left: auto; margin-right: auto; grid-template-columns: minmax(0, 1fr); }
.quote-card { margin: 0; padding: 26px 26px 22px; border-radius: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.quote-text { margin: 0; }
.quote-text p { margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--text-primary); text-wrap: pretty; }
.quote-by { display: flex; align-items: center; gap: 14px; }
.quote-logo { height: 32px; width: auto; max-width: 110px; object-fit: contain; flex: none; }
.quote-by b { display: block; font-weight: 600; }
.quote-meta { display: block; color: var(--text-secondary); font-size: .9rem; }
[data-theme="dark"] .quote-logo { filter: brightness(0) invert(1); opacity: .85; }
