/* ============================================================
   Askpilot shared brand theme (extracted from the v8 redesign).
   Used by subpages that keep their own content layout but adopt
   the site-wide look: tokens, type, nav, footer, buttons.
   Loaded AFTER tailwind.css so its overrides win the cascade.
   ============================================================ */

:root {
    --cream: #FCF9F7;
    --surface: #FFFFFF;
    --ink: #16121A;
    --body: #4E4854;
    --muted: #8B8492;
    --line: #EAE3E1;
    --soft: #F4EFED;

    --brand-orange: #E6763B;
    --brand-blue: #4C6BEE;
    --brand-magenta: #D53BD5;

    --pink-wash: #FFF3FF;
    --pink-surface: #FFD9FF;
    --pink-core: #FFA7FF;
    --pink-deep: var(--brand-magenta);

    --ok-fg: #1F6B49; --ok-bg: #E3F5EA;

    --font-sans: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
    --t-fast: 160ms;
    --shadow-low: 0 8px 30px rgba(38, 20, 40, 0.08);
}

html, body { font-family: var(--font-sans) !important; }
body { background-color: var(--cream) !important; }

.brand-sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 18px;
    border-radius: 16px; border: 1px solid transparent;
    font-size: 0.9375rem; font-weight: 500; text-decoration: none;
    transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2B2430; transform: translateY(-1px); box-shadow: var(--shadow-low); }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-low); }
.btn-lg { min-height: 42px; padding: 0 20px; font-size: 1rem; }
.btn-nav { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn-arrow { width: 15px; height: 15px; flex: none; transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-phone { width: 18px; height: 18px; flex: none; }
.link-btn {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    font-size: 1.25rem; font-weight: 750; color: var(--ink); letter-spacing: -0.01em;
    text-decoration: none; padding-bottom: 5px;
}
.link-btn::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--brand-magenta); border-radius: 2px;
    transform: scaleX(0); transform-origin: left center;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.link-btn:hover::after { transform: scaleX(1); }
.link-btn:hover .btn-arrow { transform: translateX(3px); }
.link-btn .btn-arrow { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
    .btn-arrow, .link-btn::after { transition: none; }
    .btn:hover .btn-arrow { transform: none; }
}

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(12px); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.nav-logo { display: inline-flex; }
.nav-logo img { height: 23px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links > a {
    font-size: 0.9375rem; font-weight: 600; color: var(--body);
    text-decoration: none; padding: 8px 14px; border-radius: 999px;
}
.nav-links > a:hover { color: var(--ink); background: var(--soft); }

.nav-dd { position: relative; display: inline-flex; }
.nav-dd-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: none; border: 0; cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9375rem; font-weight: 600; color: var(--body);
    padding: 8px 14px; border-radius: 999px;
}
.nav-dd-btn:hover { color: var(--ink); background: var(--soft); }
.nav-dd-chev { width: 13px; height: 13px; color: var(--muted); transition: transform 0.18s ease; }
.nav-dd:hover .nav-dd-chev, .nav-dd:focus-within .nav-dd-chev { transform: rotate(180deg); }
.nav-dd-panel {
    position: absolute; top: 100%; left: 50%;
    transform: translate(-50%, 6px); padding-top: 12px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease; z-index: 60;
}
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.nav-dd-inner {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 40px -16px rgba(22, 18, 26, 0.22), 0 2px 6px -2px rgba(22, 18, 26, 0.08);
    padding: 6px; min-width: 260px;
}
.nav-dd-item { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.nav-dd-item:hover { background: var(--pink-wash); }
.nav-dd-title { font-size: 0.9063rem; font-weight: 650; color: var(--ink); }
.nav-dd-sub { font-size: 0.8125rem; color: var(--muted); }

.nav-burger {
    display: none; width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: transparent; border: 0; border-radius: 10px; color: var(--ink);
    cursor: pointer;
}
.nav-burger svg { width: 24px; height: 24px; }
.nav-burger:hover { background: var(--soft); }
.nav-menu { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; background: transparent; }
.nav-menu::backdrop { background: rgba(22, 18, 26, 0.24); }
.nav-menu-panel {
    position: fixed; inset: 0 0 0 auto; width: min(100%, 360px);
    background: var(--cream); padding: 14px 20px 24px;
    display: flex; flex-direction: column;
    box-shadow: -20px 0 60px rgba(22, 18, 26, 0.18);
}
.nav-menu-head { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.nav-menu-head img { height: 23px; }
.nav-menu-links { display: flex; flex-direction: column; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; gap: 2px; }
.nav-menu-links a {
    font-size: 1.0625rem; font-weight: 650; color: var(--ink);
    text-decoration: none; padding: 12px 10px; border-radius: 12px;
}
.nav-menu-links a:hover { background: var(--soft); }
.nav-menu-cta { margin-top: 22px; }

/* ---------- mobile menu: Use cases accordion (matches index) ---------- */
.nav-menu-acc { border-radius: 14px; }
.nav-menu-acc > summary {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 1.0625rem; font-weight: 650; color: var(--ink);
    padding: 12px 10px; border-radius: 12px;
    cursor: pointer; list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.nav-menu-acc > summary::-webkit-details-marker { display: none; }
.nav-menu-acc > summary:hover { background: var(--soft); }
.nav-menu-acc > summary:focus { outline: none; }
.nav-menu-acc > summary:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.nav-menu-acc-chev { width: 15px; height: 15px; color: var(--muted); transition: transform 0.2s ease; }
.nav-menu-acc[open] > summary .nav-menu-acc-chev { transform: rotate(180deg); }
.nav-menu-acc[open] { background: var(--soft); padding-bottom: 8px; }
.nav-menu-acc[open] > summary { background: transparent; }
.nav-menu-acc-item {
    display: flex; flex-direction: column; gap: 2px;
    margin: 0 8px; padding: 11px 13px;
    border-radius: 10px; text-decoration: none;
    background: #fff; border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(22, 18, 26, 0.04);
}
.nav-menu-acc-item + .nav-menu-acc-item { margin-top: 6px; }
.nav-menu-acc-item:hover { background: var(--pink-wash); border-color: var(--pink-surface); }
.nav-menu-acc-title { font-size: 0.9688rem; font-weight: 650; color: var(--ink); }
.nav-menu-acc-sub { font-size: 0.8125rem; color: var(--muted); line-height: 1.35; }

@media (max-width: 900px) {
    .nav-links, .nav-dd { display: none; }
    .nav-in { gap: 12px; padding: 0 16px; }
    .nav-logo img { height: 20px; }
    /* subpages have no hero CTA, so the nav CTA stays visible */
    .nav .btn-nav { margin-left: auto; padding: 0 13px; font-size: 0.78rem; min-height: 36px; white-space: nowrap; }
    .nav .btn-nav .btn-arrow { display: none; }
    .nav-burger { display: inline-flex; margin-left: 0; flex: none; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 56px; background: var(--cream); }
.foot .wrap, .foot-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 24px; }
.foot-brand p { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.foot-col h3 {
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink); margin-bottom: 16px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { font-size: 0.9375rem; color: var(--body); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pink-surface); }
@media (max-width: 820px) {
    .foot { padding: 48px 0 44px; }
    .foot .wrap, .foot-wrap { padding: 0 16px; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .foot-brand { grid-column: 1 / -1; }
}


/* the old blue-green hero wash reads off-brand on the cream site;
   flatten it wherever legacy pages still use the class */
.bg-gradient-hero { background: var(--cream) !important; }

/* pages that reuse the How It Works stages get the brand accents
   (mirrors the overrides the homepage applies via v8.css) */
.hiw-step-eyebrow { --hiw-accent: var(--brand-magenta); --hiw-accent-2: var(--brand-magenta); --hiw-soft: #FFF3FF; }
.hiw-link { --hiw-accent: var(--brand-blue); --hiw-accent-2: var(--brand-blue); --hiw-soft: #EEF2FE; }
.hiw-step-eyebrow .hiw-step-num { color: var(--brand-magenta); }
.hiw-chip-ico { color: var(--brand-magenta); }
.hiw-doc-code .chip { background: var(--pink-wash); color: var(--brand-magenta); }

/* ============================================================
   Typography layer: subpages match the homepage type system.
   Homepage scale: H1 800/-0.035em, section titles 800/-0.025em,
   sub titles 750/-0.02em, eyebrows 800 caps, body 400 #4E4854.
   Tailwind pages used font-medium(500)/font-light(300); these
   overrides pull them onto the same scale.
   ============================================================ */
h1 { font-weight: 800 !important; letter-spacing: -0.03em !important; }
h2 { font-weight: 800 !important; letter-spacing: -0.025em !important; }
h3, h4 { font-weight: 750 !important; letter-spacing: -0.015em !important; }
.foot-col h3 { font-weight: 800 !important; letter-spacing: 0.12em !important; }
.font-light { font-weight: 400 !important; }
.text-gray-950 { color: var(--ink) !important; }
.text-gray-700, .text-gray-600 { color: var(--body) !important; }
.text-gray-500 { color: var(--muted) !important; }

/* ============================================================
   Pricing cards (mirrors the homepage .price-card component so
   the full pricing page uses the exact same card design).
   ============================================================ */
.price-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    max-width: 900px; margin: 0 auto;
}
.price-card {
    position: relative;
    background: #fff; border: 1px solid var(--ink); border-radius: 24px;
    padding: 34px 32px 30px;
    box-shadow: 0 1px 2px rgba(22, 18, 26, 0.03);
    display: flex; flex-direction: column;
}
.price-card--pro {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 1px var(--brand-blue), 0 24px 60px -30px rgba(76, 107, 238, 0.28);
}
.price-flag {
    position: absolute; top: -13px; left: 28px;
    background: var(--brand-blue); color: #fff;
    font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px;
}
.price-name {
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted);
}
.price-amount {
    margin-top: 14px;
    font-size: 2.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1;
}
.price-cur { font-size: 1.8rem; vertical-align: 6px; margin-right: 2px; }
.price-per { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-runs {
    margin-top: 18px;
    font-size: 1.125rem; color: var(--body);
}
.price-runs strong { font-weight: 800; color: var(--brand-blue); }
.price-credits { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.price-list {
    list-style: none; margin: 22px 0 0; padding: 18px 0 0;
    border-top: 1px solid var(--line);
    display: grid; gap: 10px;
}
.price-list li {
    position: relative; padding-left: 24px;
    font-size: 0.9375rem; color: var(--body); line-height: 1.45;
}
.price-list li::before {
    content: ""; position: absolute; left: 2px; top: 7px;
    width: 12px; height: 7px;
    border-left: 2.2px solid var(--brand-blue); border-bottom: 2.2px solid var(--brand-blue);
    transform: rotate(-48deg); border-radius: 1px;
}
.price-btn { width: 100%; margin-top: 22px; }
.price-trial {
    margin-top: 12px;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 0.875rem; font-weight: 650; color: var(--brand-magenta);
}
.price-trial svg { width: 14px; height: 14px; flex: none; }
.price-amount--talk { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.01em; padding: 14px 0 12px; }
@media (max-width: 820px) {
    .price-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* the included-onboarding strip under the pricing cards (blue wash) */
.price-incl {
    max-width: 900px; margin: 20px auto 0;
    display: flex; align-items: center; gap: 14px;
    background: #EEF2FE; border: 1px solid #CBD8FC;
    border-radius: 18px; padding: 18px 22px;
}
.price-incl-badge {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand-blue); color: #fff;
}
.price-incl-badge svg { width: 15px; height: 15px; }
.price-incl p { font-size: 0.9875rem; line-height: 1.55; color: var(--body); }
.price-incl strong { color: var(--ink); font-weight: 750; }
@media (max-width: 820px) { .price-incl { max-width: 480px; } }

/* free-onboarding value anchor in the included strip */
.price-incl-value {
    flex: none; margin-left: auto;
    display: grid; justify-items: center; gap: 1px; text-align: center;
    background: #fff; border: 1px solid var(--pink-surface); border-radius: 14px;
    padding: 9px 20px;
}
.price-incl-value s { font-size: 0.8125rem; color: var(--muted); }
.price-incl-value b { font-size: 1.375rem; font-weight: 800; color: var(--brand-magenta); line-height: 1.1; }
@media (max-width: 560px) {
    .price-incl { flex-wrap: wrap; align-items: flex-start; }
    .price-incl p { flex: 1 1 0; min-width: 0; }
    .price-incl-value {
        flex-basis: 100%; margin-left: 0; margin-top: 4px;
        display: flex; justify-content: center; align-items: baseline; gap: 8px;
    }
}

/* the free-onboarding tag: brand-pink pill with the struck price anchor */
.free-onb-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    background: #EEF2FE; border: 1px solid #CBD8FC; border-radius: 999px;
    font-size: 0.9375rem; font-weight: 750; color: var(--brand-blue);
}
.free-onb-tag svg { width: 16px; height: 16px; flex: none; }
.free-onb-tag s { font-weight: 600; color: var(--muted); }

/* app-window stage boxes framed like the index hero cards:
   white window, cream ring, 1px ink outline */
body .hiw-panel,
body .hiw-doc,
body .hiw-desktop,
body .hsd-left,
body .hsd-right {
    margin: 12px;
    border-radius: 18px;
    box-shadow:
        0 0 0 10px var(--cream),
        0 0 0 11px var(--ink),
        0 30px 60px -30px rgba(38, 20, 40, 0.24);
}
/* the uncertain-demo right pane is a TRANSPARENT stage; its inner
   .unc-desk window carries the frame instead, so don't ring the stage. */
body #unc-demo .hsd-right { box-shadow: none; margin: 12px; }
body #unc-demo .unc-desk {
    border-radius: 18px;
    box-shadow:
        0 0 0 10px var(--cream),
        0 0 0 11px var(--ink),
        0 30px 60px -30px rgba(38, 20, 40, 0.24);
}

/* ink borders for content-card boxes, matching index. Scoped to
   rounded-2xl/3xl cards so pills, chips and inner dividers keep
   their light borders. */
a.rounded-3xl.border-gray-200, div.rounded-3xl.border-gray-200,
a.rounded-2xl.border-gray-200, div.rounded-2xl.border-gray-200,
li.rounded-2xl.border-gray-200, article.rounded-2xl.border-gray-200,
a.rounded-3xl.border-gray-100, div.rounded-3xl.border-gray-100,
a.rounded-2xl.border-gray-100, div.rounded-2xl.border-gray-100,
body .wy-card,
body .kps-card,
body .kps-module {
    border-color: var(--ink) !important;
}
body .kps-module { border: 1px solid var(--ink) !important; }

/* Call us buttons: soft pink wash, no hover overlay */
a.btn-outline[href^="tel:"] { background: #FFF9FF; }
a.btn-outline[href^="tel:"]:hover { background: #FFF9FF; }
a[href^="tel:"].bg-white,
a[href^="tel:"].bg-white:hover { background-color: #FFF9FF !important; }

/* hero demo canvas: the same blueprint grid as the index hero stage */
#hero-split-demo {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 32px;
    background-color: rgba(255, 255, 255, 0.36);
    background-image:
        linear-gradient(rgba(22, 18, 26, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 18, 26, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    padding: 30px;
}
@media (max-width: 640px) { #hero-split-demo { padding: 14px; border-radius: 24px; } }

/* corner plus-marks on the hero canvas, same as the index stage */
.hero-canvas-mark { position: absolute; width: 17px; height: 17px; opacity: 0.45; }
.hero-canvas-mark::before,
.hero-canvas-mark::after { content: ""; position: absolute; background: var(--body); }
.hero-canvas-mark::before { left: 8px; top: 0; width: 1px; height: 17px; }
.hero-canvas-mark::after { left: 0; top: 8px; width: 17px; height: 1px; }
.hero-canvas-mark.is-tl { top: 15px; left: 15px; }
.hero-canvas-mark.is-tr { top: 15px; right: 15px; }
.hero-canvas-mark.is-bl { bottom: 15px; left: 15px; }
.hero-canvas-mark.is-br { right: 15px; bottom: 15px; }
