/* ============================================
   OOG - /ai sales page (AI enquiry assistant)
   Builds on styles.css: same tokens, nav, buttons, section headers and footer.
   ============================================ */

.ai-page {
    --ai-card: var(--grey-800);
    --ai-line: rgba(255, 255, 255, 0.08);
    --ai-radius: 20px;
    --ai-space: clamp(80px, 10vw, 120px);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--orange);
    color: var(--grey-900);
    font-weight: 600;
}
.skip-link:focus { top: 16px; }

.ai-page a:focus-visible,
.ai-page button:focus-visible,
.ai-page summary:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    border-radius: 6px;
}

.ai-center { text-align: center; }
.ai-narrow { max-width: calc(860px + var(--gutter) * 2); }
.ai-small { font-size: 0.875rem; color: var(--grey-300); }

/* --- Hero --- */
.ai-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(120px, 16vw, 170px) 0 var(--ai-space);
}
.ai-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.ai-hero .hero-badge { margin-bottom: 28px; line-height: 1.4; }
.ai-hero-title {
    font-size: clamp(2.75rem, 6.4vw, 5.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--white);
    margin-bottom: 24px;
}
.ai-lead {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    color: var(--grey-200);
    max-width: 600px;
    margin-bottom: 36px;
}
.ai-ctas { justify-content: flex-start; margin-bottom: 24px; }
.ai-ctas-center { justify-content: center; margin: 36px 0 24px; }
.ai-hero-copy .ai-small { max-width: 520px; }

/* Example lead email */
.ai-mock { margin: 0; }
.ai-mock-card {
    padding: 28px;
    border-radius: var(--ai-radius);
    background: #fffaf2;
    color: #1a1a1a;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(243, 146, 0, 0.25);
    transform: rotate(1.5deg);
}
.ai-mock-meta {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c5c5c;
    margin-bottom: 10px;
}
.ai-mock-hot {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 6px;
    border-radius: 6px;
    background: #b5262f;
    color: #fff;
}
.ai-mock-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.ai-mock-text { font-size: 0.95rem; line-height: 1.55; color: #333; margin-bottom: 16px; }
.ai-mock-list { display: grid; gap: 6px; font-size: 0.875rem; border-top: 1px solid #eadfcd; padding-top: 14px; }
.ai-mock-list div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; }
.ai-mock-list dt { color: #5c5c5c; }
.ai-mock-list dd { margin: 0; }
.ai-mock-link { color: #a35f00; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ai-mock figcaption { margin-top: 18px; text-align: center; }

/* --- Sections --- */
.ai-section { padding: var(--ai-space) 0; position: relative; }
.ai-section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 15%, rgba(255, 255, 255, 0.02) 85%, transparent); }
.ai-section .section-header { margin-bottom: 56px; }

.ai-problems,
.ai-steps,
.ai-plan-list,
.ai-trust { list-style: none; }

.ai-problems {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ai-card,
.ai-promise,
.ai-step {
    padding: 32px 28px;
    border-radius: var(--ai-radius);
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
}
.ai-card h3,
.ai-promise h3,
.ai-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.ai-card p,
.ai-promise p,
.ai-step p { color: var(--grey-200); font-size: 0.975rem; }

/* Promises */
.ai-promises {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ai-promise { padding: 40px 32px; transition: border-color var(--transition-fast), transform var(--transition-med); }
.ai-promise:hover { border-color: rgba(243, 146, 0, 0.4); transform: translateY(-4px); }
.ai-promise .ai-promise-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.ai-promise h3 { font-size: 1.6rem; }

.ai-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-top: 48px;
}
.ai-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--grey-100);
}
.ai-trust li::before,
.ai-plan-list li::before {
    content: '';
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(243, 146, 0, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='%23f39200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Steps */
.ai-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}
.ai-step { counter-increment: step; position: relative; }
.ai-step::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--grey-900);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Packages */
.ai-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 460px));
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
}
.ai-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 36px;
    border-radius: var(--ai-radius);
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
}
.ai-plan-featured {
    border-color: rgba(243, 146, 0, 0.55);
    box-shadow: 0 30px 80px rgba(243, 146, 0, 0.08);
}
.ai-plan-badge {
    position: absolute;
    top: -13px;
    left: 36px;
    padding: 4px 14px;
    border-radius: 100px;
    background: var(--orange);
    color: var(--grey-900);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.ai-plan-name { font-size: 1.6rem; font-weight: 800; color: var(--white); }
.ai-plan-for { color: var(--grey-200); margin-bottom: 24px; }
.ai-plan-price { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--white); letter-spacing: -0.03em; }
.ai-plan-from { font-size: 1rem; font-weight: 500; color: var(--grey-300); letter-spacing: 0; }
.ai-plan-per { font-size: 1rem; font-weight: 500; color: var(--grey-200); letter-spacing: 0; }
.ai-plan-setup { margin: 8px 0 28px; color: var(--grey-200); }
.ai-plan-list {
    display: grid;
    gap: 12px;
    padding-top: 24px;
    margin-bottom: 32px;
    border-top: 1px solid var(--ai-line);
    flex: 1;
}
.ai-plan-list li { display: flex; gap: 12px; color: var(--grey-100); font-size: 0.975rem; }
.ai-plan-list li::before { margin-top: 3px; }

/* FAQ */
.ai-faq { display: grid; gap: 12px; }
.ai-faq details {
    border-radius: 16px;
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
    transition: border-color var(--transition-fast);
}
.ai-faq details[open] { border-color: rgba(243, 146, 0, 0.35); }
.ai-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    list-style: none;
}
.ai-faq summary::-webkit-details-marker { display: none; }
.ai-faq summary::after {
    content: '+';
    flex: none;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--orange);
    transition: transform var(--transition-fast);
}
.ai-faq details[open] summary::after { transform: rotate(45deg); }
.ai-faq details p { padding: 0 24px 22px; color: var(--grey-200); }

/* Closing CTA */
.ai-cta {
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(243, 146, 0, 0.1), transparent 70%);
}
.ai-cta .section-desc { max-width: 680px; }

/* Leave room for the chat launcher at the bottom of the page */
.ai-page .footer { padding-bottom: 96px; }

/* --- Responsive --- */
@media (max-width: 1100px) {
    .ai-problems,
    .ai-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .ai-hero-grid { grid-template-columns: 1fr; }
    .ai-mock { max-width: 520px; }
    .ai-promises { grid-template-columns: 1fr; }
    .ai-plans { grid-template-columns: minmax(0, 520px); }
}

@media (max-width: 768px) {
    .ai-page .nav-links .nav-link-cta { font-size: 1.25rem; }
}

@media (max-width: 600px) {
    .ai-problems,
    .ai-steps { grid-template-columns: 1fr; }
    .ai-section .section-title br { display: none; }
    .ai-hero .hero-badge { font-size: 0.8rem; padding: 8px 14px; }
    .ai-mock-card { padding: 22px; transform: none; }
    .ai-plan { padding: 36px 24px; }
    .ai-plan-badge { left: 24px; }
    .ai-faq summary { padding: 18px 20px; }
    .ai-faq details p { padding: 0 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge-dot { animation: none; }
    .ai-promise:hover { transform: none; }
    [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* --- Privacy page --- */
.legal { padding-top: clamp(130px, 16vw, 170px); }
.legal h1 { margin-bottom: 12px; }
.legal h2 { font-size: 1.35rem; font-weight: 700; color: var(--white); margin: 40px 0 12px; scroll-margin-top: 100px; }
.legal p:not(.section-tag), .legal li { color: var(--grey-200); }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.legal-updated { color: var(--grey-300); }
.tbc { background: #ffe58a; color: #1a1a1a; padding: 0 4px; border-radius: 3px; }

/* ============================================
   Scroll-scrubbed video panels (.scrub)
   Static by default; scrub.js adds .is-live for the tall sticky version.
   ============================================ */
.scrub { position: relative; background: #000; }
.scrub-stick { position: relative; min-height: 78vh; overflow: hidden; display: grid; }
.scrub-video,
.scrub-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% 50%, rgba(10, 10, 10, var(--shade, 0.55)), transparent 80%),
        linear-gradient(180deg, var(--grey-900) 0%, rgba(10, 10, 10, 0.2) 18%, rgba(10, 10, 10, 0.2) 75%, var(--grey-900) 100%);
}
.scrub-label {
    position: absolute;
    top: clamp(90px, 12vh, 120px);
    left: var(--gutter);
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange-light);
}
.scrub-caps {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 140px var(--gutter) 100px;
    text-align: center;
    list-style: none;
}
.scrub-cap {
    max-width: 16ch;
    font-size: clamp(1.9rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--white);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 60px rgba(0, 0, 0, 0.6);
}
.scrub-cap em { font-style: normal; color: var(--orange); }
.scrub-progress { display: none; }

/* Live (animated) version */
.scrub.is-live { height: var(--scrub-h, 320vh); }
.scrub.is-live .scrub-stick { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.scrub.is-live .scrub-caps { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--gutter); gap: 0; }
.scrub.is-live .scrub-cap {
    grid-area: 1 / 1;
    max-width: 14ch;
    font-size: clamp(2.2rem, 6.5vw, 5.4rem);
    opacity: 0;
    will-change: opacity, transform;
}
.scrub.is-live .scrub-progress {
    display: block;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 32px;
    z-index: 2;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}
.scrub-progress span {
    display: block;
    height: 100%;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
}

/* --- Split header with photo --- */
.ai-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    margin-bottom: 56px;
}
.ai-split .section-header { text-align: left; margin: 0; }
.ai-split .section-desc { margin-left: 0; }
.ai-photo { margin: 0; border-radius: var(--ai-radius); overflow: hidden; border: 1px solid var(--ai-line); }
.ai-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* --- Services cards --- */
.ai-svcs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
}
.ai-svc {
    display: flex;
    flex-direction: column;
    border-radius: var(--ai-radius);
    background: var(--ai-card);
    border: 1px solid var(--ai-line);
    overflow: hidden;
    transition: border-color var(--transition-fast), transform var(--transition-med);
}
.ai-svc:hover { border-color: rgba(243, 146, 0, 0.4); transform: translateY(-4px); }
.ai-svc img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ai-svc-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.ai-svc h3 { font-size: 1.35rem; font-weight: 700; color: var(--white); margin-bottom: 10px; letter-spacing: -0.01em; }
.ai-svc p { color: var(--grey-200); font-size: 0.975rem; }
.ai-svc-price { margin: 18px 0 20px; font-weight: 700; color: var(--white) !important; }
.ai-svc-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--orange);
}
.ai-svc-link::after { content: '→'; transition: transform var(--transition-fast); }
.ai-svc:hover .ai-svc-link::after { transform: translateX(4px); }
/* Make the whole card clickable via its link */
.ai-svc { position: relative; }
.ai-svc-link::before { content: ''; position: absolute; inset: 0; }

/* Grow bundle banner */
.ai-grow {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px 40px;
    align-items: center;
    margin-top: 28px;
    padding: 36px 40px;
    border-radius: var(--ai-radius);
    border: 1px solid rgba(243, 146, 0, 0.55);
    background: linear-gradient(120deg, rgba(243, 146, 0, 0.12), rgba(243, 146, 0, 0.02) 60%), var(--ai-card);
}
.ai-grow h3 { font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.ai-grow p { color: var(--grey-200); }
.ai-grow .ai-grow-price { color: var(--white); font-weight: 700; margin-top: 10px; }

/* Sub-page hero photo */
.ai-hero-photo { margin: 0; border-radius: var(--ai-radius); overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(243, 146, 0, 0.25); }
.ai-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Honest-note callout */
.ai-note {
    margin-top: 40px;
    padding: 24px 28px;
    border-left: 3px solid var(--orange);
    border-radius: 0 12px 12px 0;
    background: var(--ai-card);
    color: var(--grey-100);
}
.ai-note strong { color: var(--white); }

.ai-plans-single { grid-template-columns: minmax(0, 520px); }

@media (max-width: 1100px) {
    .ai-svcs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .ai-split { grid-template-columns: 1fr; }
    .ai-grow { grid-template-columns: 1fr; padding: 28px 24px; }
    .ai-hero-photo { max-width: 560px; }
}
@media (max-width: 600px) {
    .ai-svcs { grid-template-columns: 1fr; }
    .scrub.is-live { height: var(--scrub-h-sm, 260vh); }
    .scrub-label { top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-svc:hover { transform: none; }
}
.ai-inline-link { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.scrub-video,
.scrub-still { object-position: var(--focus, 50%) 50%; }

/* Footer: brand plus any number of link columns on one row */
.footer-top {
    grid-template-columns: minmax(0, 1.6fr);
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
}
@media (max-width: 900px) {
    .footer-top {
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .footer-brand { grid-column: 1 / -1; }
}

/* styles.css sets img { display: block }, which beats the hidden attribute */
.scrub [hidden] { display: none !important; }

/* ============================================
   /packages
   ============================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ai-hero-short { padding-bottom: clamp(60px, 8vw, 90px); }
.ai-lead-center { margin-left: auto; margin-right: auto; }
.pk-after { margin-top: 32px; }

.pk-grow-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: var(--ai-radius);
    border: 1px solid rgba(243, 146, 0, 0.55);
    background: linear-gradient(120deg, rgba(243, 146, 0, 0.1), rgba(243, 146, 0, 0.02) 60%), var(--ai-card);
}
.pk-grow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.pk-grow-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; color: var(--grey-200); font-size: 0.95rem; }
.pk-grow-steps img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.pk-grow-steps strong { color: var(--white); font-size: 1.1rem; }
.pk-num {
    position: absolute; top: 10px; left: 10px;
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--orange); color: var(--grey-900); font-weight: 800;
}
.pk-grow-price { text-align: center; min-width: 220px; }
.pk-grow-price .ai-plan-setup { margin-bottom: 20px; }

.pk-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pk-cards .ai-plan { padding: 32px 26px; }
.pk-cards .ai-plan-name { font-size: 1.25rem; }
.pk-cards .ai-plan-price { font-size: 2.4rem; }
.pk-cards .ai-plan-setup { flex: 1; }

.pk-table-wrap { overflow-x: auto; border-radius: var(--ai-radius); border: 1px solid var(--ai-line); background: var(--ai-card); }
.pk-table-wrap:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.pk-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.95rem; }
.pk-table th, .pk-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--ai-line); color: var(--grey-100); }
.pk-table thead th { color: var(--white); font-weight: 800; font-size: 1rem; }
.pk-table tbody th { text-align: left; font-weight: 500; color: var(--grey-100); }
.pk-table tbody tr:nth-child(-n+2) td { font-weight: 700; color: var(--white); }
.pk-table tbody tr:last-child th, .pk-table tbody tr:last-child td { border-bottom: 0; }
.pk-table .pk-grow { background: rgba(243, 146, 0, 0.08); }
.pk-table thead .pk-grow { color: var(--orange); }
.pk-yes {
    display: inline-block; width: 20px; height: 20px; border-radius: 50%; vertical-align: middle;
    background: rgba(243, 146, 0, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='%23f39200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pk-no { color: var(--grey-400); }
.pk-scroll-hint { display: none; margin-top: 12px; }

@media (max-width: 1100px) {
    .pk-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .pk-grow-hero { grid-template-columns: 1fr; }
    .pk-scroll-hint { display: block; }
}
@media (max-width: 600px) {
    .pk-cards, .pk-grow-steps { grid-template-columns: 1fr; }
    .pk-grow-hero { padding: 20px; }
}

/* Homepage additions */
.home-trades { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { min-height: 1.4em; margin-top: 14px; color: var(--grey-100); font-size: 0.95rem; }
.contact-privacy { margin-top: 6px; font-size: 0.85rem; color: var(--grey-300); }
.contact-privacy a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================
   /consultants
   ============================================ */
.ai-promises { list-style: none; }
.cf-switch { margin-bottom: 8px; }
.cf-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}
.cf-switch:not(.is-js) .cf-tabs { display: none; }
.cf-switch:not(.is-js) .cf-panel { margin-bottom: 32px; }
.cf-switch:not(.is-js) .cf-panel .sr-only { position: static; width: auto; height: auto; margin: 0 0 12px; clip: auto; overflow: visible; color: var(--white); font-size: 1.2rem; }
.cf-tab {
    padding: 10px 18px;
    border-radius: 100px;
    border: 1px solid var(--ai-line);
    background: var(--ai-card);
    color: var(--grey-100);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.cf-tab:hover { border-color: rgba(243, 146, 0, 0.5); }
.cf-tab[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: var(--grey-900); }
.cf-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.cf-tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
.cf-extra { text-align: center; margin-top: 20px; }
.cf-panel[hidden] { display: none; }
.cf-plans .ai-plan-price { margin-bottom: 20px; }
.cf-steps { grid-template-columns: repeat(3, 1fr); }
.cf-quote { max-width: 760px; margin: 0 auto; text-align: center; }
.cf-quote p { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; color: var(--white); line-height: 1.45; margin-bottom: 14px; }
.cf-quote footer { color: var(--grey-300); }

@media (max-width: 1100px) {
    .cf-steps { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
    .cf-tasks, .cf-steps { grid-template-columns: 1fr; }
    .cf-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; }
    .cf-tabs::-webkit-scrollbar { display: none; }
    .cf-tab { flex: none; }
}

/* ============================================
   Navigation fixes and section switcher (all pages)
   ============================================ */
/* A backdrop-filter on the bar traps the fixed phone menu inside it, so the blur lives on a pseudo-element instead */
.nav { padding-top: 0; }
.nav.scrolled { padding-top: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.scrolled::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.nav .nav-inner { padding-top: 16px; }
.nav.scrolled .nav-inner { padding-top: 10px; }

.site-switch {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 10, 0.55);
}
.site-switch-inner {
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}
.site-switch-link {
    position: relative;
    padding: 8px 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--grey-300);
    transition: color var(--transition-fast);
}
.site-switch-link:hover { color: var(--white); }
.site-switch-link[aria-current] { color: var(--orange); }
.site-switch-link[aria-current]::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--orange);
}
.site-switch-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.nav-switch-m { display: none; }

@media (max-width: 768px) {
    .site-switch { display: none; }
    .nav-links { background: var(--grey-900); }
    .nav-switch-m {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 16px 8px;
    }
    .nav-links .nav-switch-pill {
        font-size: 0.95rem;
        font-weight: 600;
        padding: 9px 16px;
        border-radius: 100px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: var(--grey-100);
    }
    .nav-links .nav-switch-pill::after { display: none; }
    .nav-links .nav-switch-pill[aria-current] { border-color: var(--orange); background: rgba(243, 146, 0, 0.14); color: var(--orange); }
}

/* ============================================
   Homepage hero v2: background film and two routes
   ============================================ */
.hero-v2 { isolation: isolate; padding-top: 150px; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--grey-900); }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 65% 55% at 50% 45%, rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.86) 75%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, transparent 25%, transparent 70%, var(--grey-900) 100%);
}
.hero-v2 .hero-subtitle { color: var(--grey-100); }
.hero-v2 .hero-ctas { margin-bottom: 48px; }
.hero-routes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto 24px;
    text-align: left;
}
.hero-route {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 64px 22px 24px;
    border-radius: 18px;
    background: rgba(20, 20, 20, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: border-color var(--transition-fast), transform var(--transition-med), background var(--transition-fast);
}
.hero-route:hover { border-color: var(--orange); background: rgba(30, 20, 8, 0.7); transform: translateY(-3px); }
.hero-route:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.hero-route-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.hero-route-title { font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--white); }
.hero-route-go {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--grey-900);
    font-weight: 800;
    transition: transform var(--transition-fast);
}
.hero-route:hover .hero-route-go { transform: translateY(-50%) translateX(3px); }

@media (max-width: 768px) {
    .hero-v2 { padding-top: 110px; min-height: auto; padding-bottom: 72px; }
    .hero-routes { grid-template-columns: 1fr; }
    .hero-route { padding: 18px 60px 18px 20px; }
    .hero-v2 .hero-ctas { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-route:hover { transform: none; }
}

/* ============================================
   Case studies (/work/*)
   ============================================ */
.cs-hero .ai-hero-title { max-width: 14ch; }
.cs-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 0 32px;
    padding: 20px 0;
    border-top: 1px solid var(--ai-line);
    border-bottom: 1px solid var(--ai-line);
}
.cs-meta dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.cs-meta dd { margin: 0; color: var(--grey-100); font-size: 0.95rem; }
.cs-cover { margin: 48px 0 0; border-radius: var(--ai-radius); overflow: hidden; border: 1px solid var(--ai-line); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); }
.cs-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.cs-text { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.75; color: var(--grey-100); }
.cs-did { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
.cs-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: auto; gap: 20px; }
.cs-shot { margin: 0; border-radius: var(--ai-radius); overflow: hidden; border: 1px solid var(--ai-line); }
.cs-shot img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.cs-shot:first-child { grid-row: span 2; }
.cs-shot:first-child img { aspect-ratio: auto; min-height: 100%; }
.cs-built { margin-top: 48px; max-width: 760px; }
.cs-built h3 { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.cs-built .ai-plan-list { border-top: 0; padding-top: 8px; }

/* Work section: case study link next to the live site link */
.work-project-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

@media (max-width: 900px) {
    .cs-meta { grid-template-columns: 1fr 1fr; }
    .cs-did { grid-template-columns: 1fr; }
    .cs-gallery { grid-template-columns: 1fr; }
    .cs-shot:first-child { grid-row: auto; }
    .cs-shot:first-child img { aspect-ratio: 16 / 9; }
}

/* Work previews: click to explore the live site */
.work-project-frame .wp-explore {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: rgba(10, 10, 10, 0);
    color: var(--white);
    font: inherit;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast);
}
.work-project-frame .wp-explore span {
    padding: 12px 22px;
    border-radius: 100px;
    background: var(--orange);
    color: var(--grey-900);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.work-project-frame .wp-explore small { color: var(--white); font-size: 0.8rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.work-project-frame:hover .wp-explore,
.work-project-frame .wp-explore:focus-visible { opacity: 1; background: rgba(10, 10, 10, 0.45); }
.work-project-frame .wp-explore:focus-visible span { outline: 2px solid var(--white); outline-offset: 3px; }
.work-project-frame .wp-done {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: none;
    padding: 6px 14px;
    border-radius: 100px;
    border: 0;
    background: var(--orange);
    color: var(--grey-900);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.work-project-frame.is-live iframe { pointer-events: auto; }
.work-project-frame.is-live .wp-explore { display: none; }
.work-project-frame.is-live .wp-done { display: block; }
.work-project-frame.is-live { box-shadow: inset 0 0 0 2px var(--orange); }
/* Touch screens have no hover, so show the button all the time */
@media (hover: none) {
    .work-project-frame .wp-explore { opacity: 1; background: rgba(10, 10, 10, 0.25); justify-content: flex-end; padding-bottom: 16px; }
    .work-project-frame .wp-explore small { display: none; }
}

/* ============================================
   One menu on every page, with a Trades dropdown
   ============================================ */
.nav .nav-inner { padding-top: 20px; }
.nav.scrolled .nav-inner { padding-top: 0; }
.nav.scrolled { padding-top: 12px; }
.hero-v2 { padding-top: 130px; }
.nav-link-home { display: none; }
.nav-link[aria-current="page"], .nav-drop.is-current > .nav-drop-btn { color: var(--white); }
.nav-link[aria-current="page"]::after, .nav-drop.is-current > .nav-drop-btn::after { width: 100%; }

.nav-drop { position: relative; }
.nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey-200);
    cursor: pointer;
}
.nav-drop-btn:hover { color: var(--white); }
.nav-drop-caret {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--transition-fast);
}
.nav-drop.open .nav-drop-caret { transform: translateY(1px) rotate(-135deg); }
.nav-drop-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 230px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}
/* Invisible bridge so the menu stays open while the mouse moves down to it */
.nav-drop-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 769px) {
    .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .nav-drop:hover .nav-drop-caret { transform: translateY(1px) rotate(-135deg); }
}
.nav-drop-link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--grey-100);
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-drop-link:hover, .nav-drop-link:focus-visible { background: rgba(243, 146, 0, 0.12); color: var(--white); }
.nav-drop-link[aria-current="page"] { color: var(--orange); }
.nav-drop-btn:focus-visible, .nav-drop-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

/* Phones: one list, Trades pages grouped underneath */
@media (max-width: 768px) {
    .nav .nav-inner { padding-top: 16px; }
    .nav-links { gap: 22px; overflow-y: auto; padding: 90px 0 40px; justify-content: flex-start; }
    .nav-link-home { display: inline-block; }
    .nav-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; }
    .nav-drop-btn { font-size: 1.5rem; pointer-events: none; color: var(--grey-200); }
    .nav-drop-caret { display: none; }
    .nav-drop-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
        display: grid;
        gap: 2px;
        text-align: center;
    }
    .nav-drop-menu::before { display: none; }
    .nav-drop-link { font-size: 1.05rem; color: var(--grey-300); padding: 6px 12px; }
}
@media (max-width: 768px) and (max-height: 700px) {
    .nav-links .nav-link { font-size: 1.25rem; }
    .nav-links { gap: 16px; }
}

/* Hide the chat button while the phone menu is open */
body:has(.nav.menu-open) .rca { display: none; }

/* Room for the chat button at the bottom of the homepage */
body[data-audience="studio"] .footer { padding-bottom: 96px; }

/* Homepage headline v2: longer words, so it wraps and is a little smaller */
.hero-title.hero-title-v2 {
    font-size: clamp(2.6rem, 5.6vw, 5.3rem);
    line-height: 1.04;
    white-space: normal;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}
.hero-v2 .hero-content { max-width: 1100px; }
@media (max-width: 768px) {
    .hero-title.hero-title-v2 { font-size: clamp(2.3rem, 11vw, 3.4rem); white-space: normal; }
}

.footer-legal { font-size: 0.78rem; color: var(--grey-300); }
@media (min-width: 769px) { .footer-bottom { flex-wrap: wrap; gap: 8px 24px; } }

/* ============================================
   /prompt-pack
   ============================================ */
.pp-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pp-list { border-top: 0; padding-top: 0; margin-bottom: 20px; }
.pp-side { display: grid; grid-template-columns: 0.8fr 1fr; gap: 20px; align-items: start; scroll-margin-top: 110px; }
.pp-cover { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--ai-line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); transform: rotate(-2deg); }
.pp-cover img { display: block; width: 100%; height: auto; }
.pp-form, .pp-done { padding: 24px; border-radius: var(--ai-radius); background: var(--ai-card); border: 1px solid rgba(243, 146, 0, 0.4); box-shadow: 0 30px 80px rgba(243, 146, 0, 0.08); }
.pp-done:focus { outline: none; }
.pp-form-title { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.pp-label { display: block; margin: 12px 0 6px; font-size: 0.85rem; font-weight: 600; color: var(--grey-100); }
.pp-input { width: 100%; font: inherit; font-size: 1rem; color: var(--white); background: #0f0f0f; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 12px 14px; }
.pp-input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.pp-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 16px; font-size: 0.85rem; color: var(--grey-200); }
.pp-check input { margin-top: 3px; accent-color: var(--orange); }
.pp-status { min-height: 1.2em; margin-top: 10px; font-size: 0.9rem; color: var(--orange-light); }
.pp-small { margin-top: 8px; font-size: 0.8rem; color: var(--grey-300); }
.pp-small a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.pp-done p { color: var(--grey-100); margin-bottom: 16px; }
.pp-inside { grid-template-columns: 1fr; }
.pp-page img { aspect-ratio: auto; }
@media (max-width: 1100px) {
    .pp-grid { grid-template-columns: 1fr; }
    .pp-side { max-width: 720px; }
}
@media (max-width: 600px) {
    .pp-side { grid-template-columns: 1fr; }
    .pp-cover { max-width: 220px; margin: 0 auto; }
}
/* Prompt Pack layout fixes: let columns shrink, stack cover above the form */
.pp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.pp-grid > * { min-width: 0; }
.pp-side { grid-template-columns: 1fr; justify-items: center; }
.pp-cover { width: 200px; margin-bottom: -40px; position: relative; z-index: 1; }
.pp-form, .pp-done { width: 100%; padding-top: 52px; }
.pp-hero .ai-hero-title { overflow-wrap: normal; font-size: clamp(2.2rem, 4.4vw, 4.4rem); text-wrap: balance; }
@media (max-width: 1100px) {
    .pp-grid { grid-template-columns: minmax(0, 1fr); }
    .pp-side { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
    .pp-cover { width: 160px; max-width: none; }
    .pp-hero .ai-hero-title { font-size: clamp(2.2rem, 10vw, 2.8rem); }
}
.pp-jump { margin-bottom: 28px; }
@media (min-width: 1101px) { .pp-jump { display: none; } }
/* Make the "Your field" dropdown match the text boxes in every browser (Safari draws its own otherwise) */
select.pp-input {
    -webkit-appearance: none;
    appearance: none;
    height: auto;
    padding-right: 44px;
    line-height: 1.4;
    min-height: 52px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%23f39200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    cursor: pointer;
}
select.pp-input option { background: #141414; color: #f5f5f5; }

/* --- Free website and AI check (/check) --- */
.ck-hero, .ck-results { --ck-good: #4cd38a; --ck-ok: var(--orange); --ck-low: #ff6b5b; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ck-grid > * { min-width: 0; }
.ck-hero .ai-hero-title { font-size: clamp(2.4rem, 5vw, 4.6rem); text-wrap: balance; }
.ck-list { border-top: 0; padding-top: 0; }
.ck-side { scroll-margin-top: 110px; }
.ck-form .pp-input::placeholder { color: var(--grey-400); }
.ck-go { margin-top: 18px; }
.ck-progress:focus, .ck-results:focus { outline: none; }
.ck-steps { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; gap: 12px; }
.ck-steps li { display: flex; align-items: center; gap: 12px; color: var(--grey-300); transition: color var(--transition-fast); }
.ck-steps li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--grey-500); }
.ck-steps li.is-active { color: var(--white); }
.ck-steps li.is-active::before { border-color: var(--orange); border-top-color: transparent; animation: ck-spin 0.9s linear infinite; }
.ck-steps li.is-done { color: var(--grey-100); }
.ck-steps li.is-done::before { border-color: var(--orange); background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@keyframes ck-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ck-steps li.is-active::before { animation: none; border-top-color: var(--orange); } }

.ck-results { padding-top: clamp(40px, 6vw, 72px); scroll-margin-top: 80px; }
.ck-res-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.ck-score-card { position: sticky; top: 100px; padding: 28px; border-radius: var(--ai-radius); background: var(--ai-card); border: 1px solid var(--ai-line); text-align: center; }
.ck-res-title { font-size: 1.35rem; font-weight: 800; color: var(--white); margin: 4px 0 20px; overflow-wrap: anywhere; }
.ck-ring { --c: var(--ck-ok); width: 180px; aspect-ratio: 1; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--pct) * 1%), var(--grey-600) 0); }
.ck-ring[data-band="good"] { --c: var(--ck-good); }
.ck-ring[data-band="low"] { --c: var(--ck-low); }
.ck-ring-num { width: 148px; aspect-ratio: 1; border-radius: 50%; background: var(--grey-900); display: grid; place-content: center; }
.ck-ring-num b { font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--white); }
.ck-ring-num small { color: var(--grey-300); font-size: 0.9rem; }
.ck-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.ck-bars li { display: grid; grid-template-columns: 1fr 90px 30px; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--grey-100); }
.ck-bars b { text-align: right; color: var(--white); }
.ck-bar { height: 8px; border-radius: 99px; background: var(--grey-600); overflow: hidden; }
.ck-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ck-ok); transition: width 1s var(--ease-out-expo); }
.ck-bar i[data-band="good"] { background: var(--ck-good); }
.ck-bar i[data-band="low"] { background: var(--ck-low); }

.ck-ai { padding: 20px 22px; border-radius: var(--ai-radius); background: rgba(243, 146, 0, 0.07); border: 1px solid rgba(243, 146, 0, 0.35); margin-bottom: 28px; }
.ck-ai-q { color: var(--grey-200); font-size: 0.95rem; margin-bottom: 8px; }
.ck-ai-verdict { font-size: 1.25rem; font-weight: 800; color: var(--white); display: flex; gap: 10px; align-items: center; }
.ck-ai-verdict::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ck-ok); }
.ck-ai-verdict[data-band="good"]::before { background: var(--ck-good); }
.ck-ai-verdict[data-band="low"]::before { background: var(--ck-low); }
.ck-ai-names { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--grey-200); font-size: 0.9rem; }
.ck-ai-names span { padding: 4px 10px; border-radius: 99px; background: var(--grey-700); color: var(--white); }
.ck-ai-names .ck-more { background: none; color: var(--grey-300); padding: 0; }
.ck-h3 { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.ck-fixes { list-style: none; counter-reset: fix; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.ck-fixes li { counter-increment: fix; position: relative; padding: 16px 18px 16px 58px; border-radius: 14px; background: var(--ai-card); border: 1px solid var(--ai-line); color: var(--grey-100); line-height: 1.55; }
.ck-fixes li::before { content: counter(fix); position: absolute; left: 18px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--grey-900); font-weight: 800; font-size: 0.9rem; }
.ck-all { margin-bottom: 28px; }
.ck-all summary { cursor: pointer; color: var(--orange); font-weight: 600; }
.ck-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.ck-checks li { display: flex; align-items: center; gap: 10px; color: var(--grey-100); font-size: 0.92rem; }
.ck-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ck-low); }
.ck-checks [data-state="pass"] .ck-dot { background: var(--ck-good); }
.ck-checks [data-state="part"] .ck-dot { background: var(--ck-ok); }
.ck-gate-p { color: var(--grey-200); font-size: 0.95rem; margin-bottom: 4px; }
.ck-gate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-bottom: 16px; }
.ck-again { margin-top: 18px; background: none; border: 0; padding: 0; font: inherit; color: var(--grey-300); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ck-again:hover { color: var(--white); }

.ck-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: var(--ai-radius); background: var(--ai-card); border: 1px solid var(--ai-line); }
.ck-calc-inputs { display: grid; gap: 26px; }
.ck-slider { display: grid; gap: 10px; }
.ck-slider span { display: flex; justify-content: space-between; gap: 12px; color: var(--grey-100); font-weight: 600; font-size: 0.95rem; }
.ck-slider output { color: var(--orange); font-weight: 800; white-space: nowrap; }
.ck-slider input { width: 100%; accent-color: var(--orange); height: 28px; }
.ck-calc-out { padding: 24px; border-radius: 16px; background: var(--grey-900); border: 1px solid rgba(243, 146, 0, 0.4); }
.ck-calc-label { color: var(--grey-200); font-size: 0.9rem; }
.ck-calc-num b { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; color: var(--white); line-height: 1.1; }
.ck-calc-num small { color: var(--grey-200); }
.ck-calc-year { color: var(--grey-100); margin: 4px 0 10px; }
.ck-calc-out .ai-small { margin-bottom: 18px; }
.ck-note { margin-top: 28px; max-width: 760px; }

@media (max-width: 1000px) {
    .ck-grid, .ck-res-grid, .ck-calc { grid-template-columns: minmax(0, 1fr); }
    .ck-side { max-width: 520px; width: 100%; }
    .ck-score-card { position: static; }
}
@media (max-width: 560px) {
    .ck-hero .ai-hero-title { font-size: clamp(2.1rem, 10vw, 2.7rem); }
    .ck-gate-row { grid-template-columns: 1fr; }
    .ck-bars li { grid-template-columns: 1fr 70px 28px; }
}
.ck-teaser { margin-top: 14px; } .ck-teaser a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.ck-form, .ck-progress, .ck-gate, .ck-gate-done { padding-top: 24px; }

/* The menu bar keeps one height on every page and at every scroll position; only the background fades in */
.nav, .nav.scrolled { padding: 14px 0; transition: background-color var(--transition-med), border-color var(--transition-med); }
.nav .nav-inner, .nav.scrolled .nav-inner { padding-top: 0; }
.nav { border-bottom: 1px solid transparent; }

/* Work cards that show a still image instead of a live preview */
.work-project-frame--still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* The section spacing and card tokens are set on .ai-page; the homepage body does not have that class,
   so give every page the same values (the homepage consultants and trades sections had no spacing at all) */
:root { --ai-card: var(--grey-800); --ai-line: rgba(255, 255, 255, 0.08); --ai-radius: 20px; --ai-space: clamp(80px, 10vw, 120px); }
