/* ============================================================
   v17 inner pages. Loaded after quill.css and motion.css, so every
   page inherits the homepage's type, color, header, closing and
   footer. This file only adds the pieces the inner pages need.
   ============================================================ */

/* ---- Page hero: the homepage's dawn sky, shorter ---- */
.hero--page { min-height: 0; }
.hero--page .hero-inner { padding-top: 196px; padding-bottom: 128px; }
.hero--page .label { display: block; margin-bottom: 20px; }
.hero--page h1 { max-width: 18ch; }
.nav-links a[aria-current="page"] { color: var(--ink-900); }
@media (max-width: 900px) { .hero--page .hero-inner { padding-top: 140px; padding-bottom: 88px; } }

/* A lavender word in a heading, as on the homepage's process section */
.accent-em h2 em { color: var(--lavender-600); }

/* ---- The problem: records that should be one ---- */
.dupes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dupe { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; }
.dupe-n { font-size: 0.75rem; font-weight: 500; color: var(--ink-500); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--ink-100); }
.dupe dl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; font-size: 0.875rem; }
.dupe dt { color: var(--ink-500); }
.dupe dd { color: var(--ink-900); overflow-wrap: anywhere; }
.dupe dd.off { color: #A86248; }
.dupe dd.nil { color: var(--ink-400); font-style: italic; }
@media (max-width: 1000px) { .dupes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dupes { grid-template-columns: 1fr; } }

/* ---- A scroll-lit statement inside a page ---- */
.statement--page { padding: 24px 0 144px; }
.statement--page .statement-sub { font-family: var(--font); font-weight: 450; font-size: 1.1875rem; line-height: 1.6; letter-spacing: 0; color: var(--ink-600); max-width: 62ch; margin-top: 40px; }

/* ---- What we fix: an open three-column list ---- */
.fixlist { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
.fixlist li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-800); }
.fixlist .fixlist-more { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--lavender-700); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 64px; padding: 32px 36px; background: var(--sand); border-radius: var(--r); }
.callout h3 { font-family: var(--serif); font-weight: 450; font-size: 1.375rem; letter-spacing: -0.01em; color: var(--ink-900); }
.callout p { margin-top: 8px; color: var(--ink-600); max-width: 62ch; }
.callout .btn { flex: none; }
@media (max-width: 900px) { .fixlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } .callout { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px) { .fixlist { grid-template-columns: 1fr; } }

/* ---- Example findings: the homepage console, one finding per agent ---- */
.plate--console { margin-top: 112px; }
.app--findings { min-height: 0; }
.app--findings .app-side a { cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.app--findings .app-side a:not(.is-agent):hover { background: var(--ink-100); color: var(--ink-900); }
.app--findings .finding { margin-top: 0; }
.app--findings .finding[hidden] { display: none; }
.app--findings .finding.is-current { animation: finding-in .45s var(--ease-out); }
.app--findings .finding dd { font-size: 13px; color: var(--ink-800); }
.finding-fix { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.finding-fix span { font-size: 12px; font-weight: 600; color: var(--lavender-700); }
.finding-fix p { margin-top: 4px; }
.finding .conf { font-size: 12px; color: var(--ink-500); }
@keyframes finding-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .app--findings .finding.is-current { animation: none; } }

/* ---- Your CRM: the platforms as a row of names ---- */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.platforms h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.75rem, 3.2vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.05; color: var(--ink-900); }
.platforms-note { margin-top: 56px; max-width: 72ch; color: var(--ink-600); }
@media (max-width: 640px) { .platforms { grid-template-columns: 1fr; gap: 12px; } }

/* ---- Autonomy: three stops on one track, filling with lavender ---- */
.levels { list-style: none; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.levels::before, .levels::after { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; }
.levels::before { background: var(--ink-200); }
.levels::after { background: var(--lavender-500); transform-origin: left center; }
.levels li { position: relative; padding-top: 44px; }
.levels li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--lavender-500); background: var(--sand); z-index: 1; box-sizing: border-box; }
.levels li:nth-child(1)::before { background: var(--lavender-100); }
.levels li:nth-child(2)::before { background: var(--lavender-300); }
.levels li:nth-child(3)::before { background: var(--lavender-600); border-color: var(--lavender-600); }
.levels h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.375rem, 1.8vw, 1.5rem); letter-spacing: -0.015em; color: var(--ink-900); }
.levels p { margin-top: 10px; color: var(--ink-600); }
html.js .levels::after { transform: scaleX(0); transition: transform 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s; }
html.js .levels.is-shown::after { transform: none; }
.audited { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.audited h3 { font-family: var(--serif); font-weight: 450; font-size: 1.375rem; color: var(--ink-900); }
.audited p { color: var(--ink-600); }
@media (max-width: 760px) {
    .levels { grid-template-columns: 1fr; gap: 32px; }
    .levels::before, .levels::after { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
    .levels::after { transform-origin: center top; }
    html.js .levels::after { transform: scaleY(0); }
    .levels li { padding: 0 0 0 40px; }
    .audited { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html.js .levels::after { transform: none !important; transition: none; } }

/* ---- FAQ: sticky title, questions on the right ---- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-family: var(--serif); font-weight: 450; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink-900); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
    background: linear-gradient(var(--lavender-600), var(--lavender-600)) center / 14px 1.5px no-repeat, linear-gradient(var(--lavender-600), var(--lavender-600)) center / 1.5px 14px no-repeat;
    transition: transform .3s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--lavender-700); }
.faq-list details p { padding: 0 44px 24px 0; color: var(--ink-600); max-width: 64ch; }
.faq-list details p a { color: var(--lavender-700); border-bottom: 1px solid var(--lavender-200); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 24px; } .faq-side { position: static; } }
.caption b { white-space: nowrap; }
/* On small screens the homepage hides the console sidebar; here it becomes a row of tabs */
@media (max-width: 900px) {
    .app--findings .app-side { display: flex; gap: 4px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
    .app--findings .app-side::-webkit-scrollbar { display: none; }
    .app--findings .app-side .app-org, .app--findings .app-side .app-side-label { display: none; }
    .app--findings .app-side a { flex: none; white-space: nowrap; }
}

/* ---- "What we fix" list: on hover the row fills with a soft lavender band
   from the left and the text turns deep lavender ---- */
.fixlist { position: relative; z-index: 0; }
.fixlist li { position: relative; transition: color .25s ease, padding-left .3s var(--ease-out); }
.fixlist li::before { content: ""; position: absolute; inset: 0 -12px; z-index: -1; background: var(--lavender-50); border-radius: 4px; transform: scaleX(0); transform-origin: left center; transition: transform .4s var(--ease-out); }
@media (hover: hover) {
    .fixlist li:hover { color: var(--lavender-800); padding-left: 6px; }
    .fixlist li:hover::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
    .fixlist li, .fixlist li::before { transition: none; }
    .fixlist li:hover { padding-left: 0; }
}

/* 10) consoles on phones: the agent list stacks instead of scrolling tabs */
@media (max-width: 900px) {
    .app--findings .app-side { display: grid !important; overflow: visible !important; gap: 4px; padding: 12px !important; }
    .app--findings .app-side a { white-space: normal !important; }
}

/* 7) two card-title sizes site-wide: 28px for main cards, 22px (serif) for
   dense cards and list items */
.why li h3, .breaks h3, .levels h3, .crm-card--other h3, .paths h3, .paths a h3, .move h3, .handoff h3, .audience h3 {
    font-family: var(--serif); font-weight: 450; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink-900); }
main .why li h3, main .breaks h3, main .levels h3, main .crm-card--other h3, main .paths h3, main .move h3, main .handoff h3, main .audience h3 { font-size: 1.375rem; }

/* 11) Two-line statements on the product pages: a wider measure so each fits on two lines */
.page--crm-hygiene .statement p:not(.statement-sub),
.page--crm-migration .statement p:not(.statement-sub),
.page--revops-mcp .statement p:not(.statement-sub),
.page--data-capture .statement p:not(.statement-sub) { max-width: 38ch; }

/* Product page heroes fill the screen like the homepage's: the text block
   centered, the logo strip along the bottom edge, no white showing below */
.page--crm-hygiene .hero--page, .page--crm-migration .hero--page, .page--revops-mcp .hero--page, .page--data-capture .hero--page { min-height: 100vh; min-height: 100svh; }
.page--crm-hygiene .hero--page .hero-inner, .page--crm-migration .hero--page .hero-inner, .page--revops-mcp .hero--page .hero-inner, .page--data-capture .hero--page .hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0; padding-top: 120px; padding-bottom: 72px; }
.page--crm-hygiene .hero--page .hero-inner > *, .page--crm-migration .hero--page .hero-inner > *, .page--revops-mcp .hero--page .hero-inner > *, .page--data-capture .hero--page .hero-inner > * { width: 100%; }
@media (max-width: 900px) { .page--crm-hygiene .hero--page .hero-inner, .page--crm-migration .hero--page .hero-inner, .page--revops-mcp .hero--page .hero-inner, .page--data-capture .hero--page .hero-inner { padding-top: 120px; padding-bottom: 56px; } }

/* Guides: links from a product page to its blog guides */
.guides { list-style: none; margin: 0; padding: 0; }
.guides li { border-bottom: 1px solid var(--line); }
.guides li:first-child { border-top: 1px solid var(--line); }
.guides a { display: block; padding: 16px 0; }
.guide-title { display: block; font-family: var(--serif); font-weight: 450; font-size: 1.25rem; line-height: 1.3; color: var(--ink-900); transition: color .15s ease; }
.guides a:hover .guide-title { color: var(--lavender-700); }
