/* =========================================================================
   Adentra AI — app theme
   Public pages use Bootstrap defaults; the authenticated app + admin use a
   fixed vertical sidebar ("WP-admin" style) defined below.
   ========================================================================= */

:root {
    --ad-accent: #4f46e5;
    --ad-accent-2: #6d28d9;
    --ad-sidebar-bg: #171a21;
    --ad-sidebar-bg-2: #1f232d;
    --ad-sidebar-fg: #c7cbd4;
    --ad-sidebar-fg-muted: #838a99;
    --ad-content-bg: #f5f6fa;
    --ad-border: #e6e8ef;
    --ad-sidebar-w: 244px;
    --ad-admin-accent: #d97706;
}

body { font-feature-settings: "cv02", "cv03", "cv04", "cv11"; }
.navbar-brand { letter-spacing: .02em; }

/* =========================================================================
   Authenticated app shell
   ========================================================================= */
body.app-body { margin: 0; background: var(--ad-content-bg); color: #1f2430; }
.app-layout { display: flex; min-height: 100vh; }

/* ---- Sidebar ------------------------------------------------------------ */
.app-sidebar {
    width: var(--ad-sidebar-w);
    flex: 0 0 var(--ad-sidebar-w);
    background: linear-gradient(180deg, var(--ad-sidebar-bg-2), var(--ad-sidebar-bg));
    color: var(--ad-sidebar-fg);
    display: flex; flex-direction: column;
    position: sticky; top: 0; align-self: flex-start; height: 100vh;
}
.app-brand {
    display: flex; align-items: center; gap: .55rem;
    padding: 1.15rem 1.25rem; color: #fff; font-weight: 700; letter-spacing: .02em;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.app-brand .logo {
    width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--ad-accent), var(--ad-accent-2)); color: #fff; font-size: .95rem;
}
.app-brand small { display:block; font-weight:500; font-size:.68rem; color:var(--ad-sidebar-fg-muted); letter-spacing:.04em; }

/* ---- Brand lockup ------------------------------------------------------
   The mark is now the Engage icon rather than a letter, so every .logo box
   below is an <img>. The tile rules already set the size and radius; these
   just stop the image stretching and clip it to the same corner.

   .brand-lockup is the wordmark beside it — "Engage" over "by Adentra AI" —
   for the surfaces that had no subtitle slot of their own (marketing nav,
   auth panel, installer). The sidebar keeps using .app-brand small above. */
img.logo, img.logo-sm, img.brand-badge { object-fit: cover; display: block; }
.brand-lockup { display: inline-flex; flex-direction: column; line-height: 1.15; }
.brand-lockup small {
    display: block; font-weight: 500; font-size: .68rem;
    letter-spacing: .04em; opacity: .72;
}
.brand-badge { width: 44px; height: 44px; border-radius: 11px; margin: 0 auto; }

.app-nav { padding: .75rem .6rem; overflow-y: auto; flex: 1; }
.app-nav .nav-label {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
    color: var(--ad-sidebar-fg-muted); padding: .9rem .65rem .35rem;
}
.app-nav a {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem .7rem; margin: .12rem 0; border-radius: 9px;
    color: var(--ad-sidebar-fg); text-decoration: none; font-size: .92rem; font-weight: 500;
    transition: background .12s ease, color .12s ease;
}
/* The workspace name heading a group, so "Automations" reads as THIS client's.
   Two lines when there is a note above it ("Currently viewing"), which is the
   difference between a label and a piece of context. */
.app-nav .nav-label { line-height: 1.3; }
.app-nav .nav-note {
    display: block; font-size: .6rem; letter-spacing: .1em;
    color: rgba(255, 255, 255, .32); margin-bottom: .1rem;
}
.app-nav .nav-group-name {
    display: block; color: rgba(255, 255, 255, .78); font-weight: 600;
    text-transform: none; letter-spacing: .01em; font-size: .8rem;
    /* A long client name must not push the sidebar wider or wrap to four
       lines — it is a heading, not the content. */
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Items belonging to the workspace sit visually inside it. The rule is the
   whole point: everything to the right of it changes when you switch client. */
.app-nav .nav-nested {
    margin-left: .65rem;
    padding-left: .5rem;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.app-nav a .ico { width: 1.2rem; text-align: center; opacity: .95; }
.app-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-nav a.active {
    background: linear-gradient(135deg, var(--ad-accent), var(--ad-accent-2));
    color: #fff; box-shadow: 0 6px 16px -6px rgba(79,70,229,.7);
}
.app-sidebar.admin { --ad-accent: var(--ad-admin-accent); --ad-accent-2:#b45309; }

/* ---- Main column -------------------------------------------------------- */
.app-main-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
    background: #fff; border-bottom: 1px solid var(--ad-border);
    padding: .7rem 1.4rem; display: flex; align-items: center; gap: 1rem;
    position: sticky; top: 0; z-index: 5;
}
.app-topbar .page-title { font-weight: 600; font-size: 1.02rem; margin: 0; }
.app-topbar .spacer { flex: 1; }
.app-topbar .client-chip-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; }
.app-topbar .client-chip-label {
    font-size: .62rem; text-transform: uppercase; letter-spacing: .08em;
    color: #9299a8; font-weight: 600; padding-left: .1rem;
}
.app-topbar .client-chip {
    font-size: .86rem; font-weight: 600; background: #eef0ff;
    border: 1.5px solid var(--ad-accent); padding: .32rem .8rem; border-radius: 8px;
    color: var(--ad-accent-2); display: inline-flex; align-items: center; gap: .4rem;
}
.app-topbar .client-chip:hover { background: #e3e5ff; }
.app-topbar button.client-chip { cursor: pointer; }
.app-topbar .user { display:flex; align-items:center; gap:.55rem; font-size:.88rem; color:#3a4150; }
.app-topbar .avatar {
    width: 32px; height: 32px; border-radius: 50%; display:grid; place-items:center;
    color:#fff; font-weight:600; background: linear-gradient(135deg, var(--ad-accent), var(--ad-accent-2));
}
.app-topbar .btn-logout { border:0; background:none; color:#8a90a0; font-size:.85rem; padding:.2rem .4rem; }
.app-topbar .btn-logout:hover { color:#d33; }

.app-main { padding: 1.6rem 1.4rem 3rem; }
.app-main .container, .app-main .container-fluid { padding-left: 0; padding-right: 0; max-width: 1120px; }

/* ---- Cards / tables polish --------------------------------------------- */
.app-body .card { border: 1px solid var(--ad-border); border-radius: 12px; }
.app-body .card.shadow-sm { box-shadow: 0 1px 2px rgba(18,20,30,.04), 0 6px 18px -12px rgba(18,20,30,.18) !important; }
.app-body .card-header { background: #fff; border-bottom: 1px solid var(--ad-border); font-weight: 600; }
.app-body .table > :not(caption) > * > * { padding: .7rem .75rem; }
.app-body h1.h3 { font-weight: 700; letter-spacing: -.01em; }

.kpi .card { position: relative; overflow: hidden; }
.kpi .card::before {
    content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
    background: linear-gradient(180deg, var(--ad-accent), var(--ad-accent-2));
}

/* ---- Responsive: sidebar becomes a top strip --------------------------- */
@media (max-width: 860px) {
    .app-layout { flex-direction: column; }
    .app-sidebar {
        width: 100%; height: auto; position: static; flex-basis: auto;
        flex-direction: row; align-items: center; overflow-x: auto;
    }
    .app-brand { border-bottom: 0; border-right: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
    .app-nav { display: flex; padding: .4rem; gap: .2rem; }
    .app-nav .nav-label { display: none; }
    .app-nav a { margin: 0; white-space: nowrap; }
}

/* =========================================================================
   Auth pages (login / register / reset) — split brand panel + form card
   ========================================================================= */
body.auth-body { margin: 0; background: #0f1117; }
.auth-wrap { min-height: 100vh; display: flex; }
.auth-brandside {
    flex: 1 1 46%;
    background: radial-gradient(1200px 600px at -10% -10%, #4f46e5 0%, transparent 55%),
                radial-gradient(1000px 700px at 120% 120%, #7c3aed 0%, transparent 50%),
                linear-gradient(160deg, #1b1f2b, #0f1117);
    color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brandside .brand { display:flex; align-items:center; gap:.6rem; font-weight:700; font-size:1.15rem; }
.auth-brandside .brand .logo {
    width: 38px; height: 38px; border-radius: 10px; display:grid; place-items:center;
    background: linear-gradient(135deg,#6366f1,#8b5cf6); font-size:1.1rem;
}
.auth-brandside .pitch { max-width: 26rem; }
.auth-brandside .pitch h2 { font-weight:700; font-size:1.9rem; line-height:1.2; letter-spacing:-.02em; }
.auth-brandside .pitch p { color:#aab1c4; }
.auth-brandside .feat { display:flex; align-items:center; gap:.6rem; color:#c8cde0; margin:.5rem 0; font-size:.95rem; }
.auth-brandside .feat .dot { color:#8b5cf6; }
.auth-brandside .foot { color:#6a7186; font-size:.8rem; }

.auth-formside { flex: 1 1 54%; background:#f5f6fa; display:flex; align-items:center; justify-content:center; padding:2rem; }
.auth-card { width:100%; max-width: 24rem; }
.auth-card .card { border:1px solid var(--ad-border); border-radius:14px; box-shadow:0 10px 40px -20px rgba(20,22,40,.4); }
.auth-card .auth-head { text-align:center; margin-bottom:1.25rem; }
.auth-card .auth-head .logo-sm {
    width:44px; height:44px; border-radius:11px; margin:0 auto .75rem; display:grid; place-items:center; color:#fff;
    background: linear-gradient(135deg,#4f46e5,#7c3aed); font-weight:700;
}
.auth-card h1 { font-size:1.3rem; font-weight:700; margin:0; }
.auth-card .sub { color:#6b7280; font-size:.9rem; }
.auth-mobile-brand { display:none; }

@media (max-width: 820px) {
    .auth-brandside { display:none; }
    .auth-formside { flex-basis:100%; }
    .auth-mobile-brand { display:block; }
}

/* =========================================================================
   Public marketing landing
   ========================================================================= */
.mkt-nav { background: rgba(15,17,23,.85); backdrop-filter: saturate(160%) blur(8px); }
.mkt-nav .navbar-brand { color:#fff; font-weight:700; display:flex; align-items:center; gap:.5rem; }
.mkt-nav .navbar-brand .logo { width:30px; height:30px; border-radius:8px; display:grid; place-items:center;
    background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; font-size:.9rem; }

.hero {
    background: radial-gradient(1100px 560px at 12% -10%, rgba(99,102,241,.55) 0%, transparent 55%),
                radial-gradient(1000px 640px at 110% 10%, rgba(124,58,237,.5) 0%, transparent 50%),
                linear-gradient(180deg, #0f1117, #14172033 90%), #0f1117;
    color:#fff;
}
.hero .eyebrow {
    display:inline-flex; align-items:center; gap:.45rem; font-size:.8rem; letter-spacing:.02em;
    background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
    padding:.3rem .75rem; border-radius:999px; color:#d7d9e6;
}
.hero h1 { font-weight:800; font-size:clamp(2rem,4.6vw,3.5rem); line-height:1.08; letter-spacing:-.02em; }
.hero .lead { color:#aeb4c8; font-size:1.12rem; max-width:40rem; }
.hero .gradient-text { background:linear-gradient(90deg,#818cf8,#c084fc); -webkit-background-clip:text; background-clip:text; color:transparent; }

.mock {
    border-radius:16px; border:1px solid rgba(255,255,255,.1); overflow:hidden;
    box-shadow:0 40px 90px -40px rgba(0,0,0,.8); background:#0d0f15;
}
.mock .bar { display:flex; gap:.4rem; padding:.6rem .8rem; background:#171a22; border-bottom:1px solid rgba(255,255,255,.06); }
.mock .bar span { width:11px; height:11px; border-radius:50%; background:#3a3f4d; }
.mock .mrow { display:flex; justify-content:space-between; align-items:center; padding:.7rem 1rem; border-bottom:1px solid rgba(255,255,255,.05); color:#c7cbd8; font-size:.85rem; }
.mock .pill { font-size:.72rem; padding:.15rem .5rem; border-radius:999px; }
.pill-g { background:rgba(34,197,94,.16); color:#4ade80; }
.pill-b { background:rgba(99,102,241,.18); color:#a5b4fc; }

.trust-band { background:#0d0f15; color:#8b91a3; border-top:1px solid #1c1f2a; border-bottom:1px solid #1c1f2a; }
.sec-title { font-weight:700; letter-spacing:-.01em; }
.step-num { width:34px; height:34px; border-radius:9px; display:grid; place-items:center; color:#fff; font-weight:700;
    background:linear-gradient(135deg,#4f46e5,#7c3aed); }
.mkt-feature .ico { font-size:1.4rem; }
.cta-band { background:linear-gradient(135deg,#4f46e5,#7c3aed); color:#fff; border-radius:18px; }

/* ---- Motion -------------------------------------------------------------
   Scroll-reveal + hero entrance. Elements start hidden ONLY when JS is able
   to reveal them (the .js-motion class is set by script), so a visitor with
   JavaScript disabled still sees everything. Every effect is disabled under
   prefers-reduced-motion.
   ------------------------------------------------------------------------- */
.js-motion .reveal { opacity: 0; transform: translateY(22px); }
.js-motion .reveal.in {
    opacity: 1; transform: none;
    transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.js-motion .reveal.d1.in { transition-delay: .08s; }
.js-motion .reveal.d2.in { transition-delay: .16s; }
.js-motion .reveal.d3.in { transition-delay: .24s; }
.js-motion .reveal.d4.in { transition-delay: .32s; }
.js-motion .reveal.d5.in { transition-delay: .40s; }

/* Hero copy slides up on load. */
@keyframes ad-rise { from { opacity:0; transform: translateY(26px); } to { opacity:1; transform:none; } }
.hero .rise { animation: ad-rise .8s cubic-bezier(.2,.7,.3,1) both; }
.hero .rise.r1 { animation-delay: .05s; }
.hero .rise.r2 { animation-delay: .15s; }
.hero .rise.r3 { animation-delay: .25s; }
.hero .rise.r4 { animation-delay: .35s; }

/* The product mock breathes gently, and its rows arrive in sequence so the
   pipeline visibly "runs" rather than sitting static. */
/* The float lives on the STAGE, not the panel: an animation's transform
   overrides a static one, so floating .mock silently cancelled its 3D tilt. */
@keyframes ad-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.stage { animation: ad-float 7s ease-in-out infinite; }

@keyframes ad-rowin { from { opacity:0; transform: translateX(-14px); } to { opacity:1; transform:none; } }
.js-motion .mock .mrow { opacity: 0; }
/* Kept deliberately brisk: the whole sequence finishes inside ~1.2s, so the
   hero visual is never an empty box while a visitor is forming a first
   impression. */
.js-motion .mock.run .mrow { animation: ad-rowin .4s ease-out both; }
.js-motion .mock.run .mrow:nth-child(2) { animation-delay: .05s; }
.js-motion .mock.run .mrow:nth-child(3) { animation-delay: .22s; }
.js-motion .mock.run .mrow:nth-child(4) { animation-delay: .39s; }
.js-motion .mock.run .mrow:nth-child(5) { animation-delay: .56s; }
.js-motion .mock.run .mrow:nth-child(6) { animation-delay: .73s; }

/* A live pulse next to the mock's status pill. */
@keyframes ad-pulse { 0% { box-shadow:0 0 0 0 rgba(74,222,128,.6); } 70% { box-shadow:0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow:0 0 0 0 rgba(74,222,128,0); } }
.dot-live { display:inline-block; width:7px; height:7px; border-radius:50%; background:#4ade80; margin-right:.4rem; animation: ad-pulse 2.2s ease-out infinite; }

/* Cards lift slightly on hover — desktop pointers only. */
@media (hover: hover) and (pointer: fine) {
    .lift { transition: transform .25s ease, box-shadow .25s ease; }
    .lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(20,22,40,.55) !important; }
}

/* Step numbers draw a connecting line on wide screens. */
@media (min-width: 768px) {
    .steps-row { position: relative; }
    .steps-row::before {
        content:""; position:absolute; top:2.9rem; left:12%; right:12%; height:2px;
        background:linear-gradient(90deg, rgba(79,70,229,.25), rgba(124,58,237,.25));
        z-index:0;
    }
    .steps-row > * { position: relative; z-index: 1; }
}

/* ---- 3D / depth -------------------------------------------------------- */
/* The hero mock sits on a perspective stage and tilts toward the pointer. */
.stage { perspective: 1400px; perspective-origin: 50% 40%; }
.tilt {
    transform-style: preserve-3d;
    transition: transform .35s cubic-bezier(.2,.7,.3,1);
    will-change: transform;
}
.js-motion .stage .mock { transform: rotateY(-9deg) rotateX(4deg); }

/* Glow behind the mock, so it reads as floating above the hero. */
.stage { position: relative; }
.stage::after {
    content:""; position:absolute; inset: 12% 6% -6%;
    background: radial-gradient(closest-side, rgba(124,58,237,.45), transparent 70%);
    filter: blur(46px); z-index: -1;
}

/* Feature/step cards get a subtle 3D lift instead of a flat shadow. */
@media (hover: hover) and (pointer: fine) {
    .tilt-card { transform-style: preserve-3d; transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease; }
    .tilt-card:hover { transform: translateY(-6px) rotateX(3deg); box-shadow: 0 26px 50px -28px rgba(20,22,40,.6) !important; }
}

/* Animated aurora behind dark sections. */
@keyframes ad-aurora {
    0%   { transform: translate3d(-6%, -4%, 0) scale(1); }
    50%  { transform: translate3d(6%, 4%, 0) scale(1.12); }
    100% { transform: translate3d(-6%, -4%, 0) scale(1); }
}
.aurora { position: relative; overflow: hidden; }
.aurora > .aurora-blob {
    position:absolute; width: 46rem; height: 46rem; border-radius: 50%;
    filter: blur(70px); opacity: .32; pointer-events: none; z-index: 0;
    animation: ad-aurora 18s ease-in-out infinite;
}
.aurora > .aurora-blob.b1 { background:#6366f1; top:-14rem; left:-10rem; }
.aurora > .aurora-blob.b2 { background:#a855f7; bottom:-18rem; right:-12rem; animation-delay: -9s; }
.aurora > .container { position: relative; z-index: 1; }

/* Counter row + logo marquee. */
.stat-num { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.02em; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: ad-marquee 26s linear infinite; }
@keyframes ad-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Comparison table + FAQ accordion polish. */
.cmp td, .cmp th { vertical-align: middle; }
.cmp .yes { color:#16a34a; font-weight:700; }
.cmp .no  { color:#9aa1ad; }
.faq-q { cursor:pointer; list-style:none; }
.faq-q::-webkit-details-marker { display:none; }
.faq-item { border-bottom:1px solid var(--ad-border); }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-q .chev { transition: transform .2s ease; display:inline-block; }

@media (prefers-reduced-motion: reduce) {
    .js-motion .reveal,
    .js-motion .mock .mrow { opacity: 1 !important; transform: none !important; }
    .hero .rise, .stage, .mock, .js-motion .mock.run .mrow, .dot-live,
    .aurora > .aurora-blob, .marquee-track { animation: none !important; }
    .lift:hover, .tilt-card:hover { transform: none; }
    .js-motion .stage .mock { transform: none; }
    .tilt { transition: none; }
}

/* ---- Marketing responsive polish ---------------------------------------- */
@media (max-width: 575.98px) {
    .hero .lead { font-size: 1rem; }
    .hero .btn-lg { width: 100%; }
    .trust-band .container { gap: .75rem !important; font-size: .72rem; }
    .mock .mrow { font-size: .78rem; padding: .6rem .75rem; gap: .5rem; }
    .cta-band { border-radius: 14px; }
}
.mkt-foot { background:#0d0f15; color:#8b91a3; }
.mkt-foot a { color:#aeb4c8; text-decoration:none; }
.mkt-foot a:hover { color:#fff; }

/* =========================================================================
   Guided installer — centered branded card with a step rail
   ========================================================================= */
body.install-body {
    margin:0; min-height:100vh; color:#1f2430;
    background: radial-gradient(900px 500px at 50% -12%, rgba(99,102,241,.35) 0%, transparent 60%),
                linear-gradient(180deg,#0f1117,#141720);
    display:flex; flex-direction:column; align-items:center; padding:2.5rem 1rem 3rem;
}
.install-shell { width:100%; max-width:34rem; }
.install-brand { display:flex; align-items:center; justify-content:center; gap:.55rem;
    color:#fff; font-weight:700; font-size:1.15rem; margin-bottom:1.5rem; }
.install-brand .logo { width:34px; height:34px; border-radius:9px; display:grid; place-items:center;
    background:linear-gradient(135deg,#6366f1,#8b5cf6); font-size:1rem; }
.install-steps { display:flex; gap:.4rem; margin-bottom:1.25rem; }
.install-steps .st { flex:1; text-align:center; font-size:.72rem; letter-spacing:.03em;
    color:#7f8698; padding-top:.5rem; border-top:3px solid #2a2f3d; text-transform:uppercase; }
.install-steps .st.done { color:#a5b4fc; border-top-color:#6366f1; }
.install-steps .st.active { color:#fff; border-top-color:#8b5cf6; font-weight:600; }
.install-card { background:#fff; border-radius:14px; border:1px solid var(--ad-border);
    box-shadow:0 24px 60px -28px rgba(10,12,25,.7); padding:1.75rem; }
.install-card h1 { font-size:1.35rem; font-weight:700; margin:0 0 .25rem; }
.install-foot { text-align:center; color:#6a7186; font-size:.78rem; margin-top:1.25rem; }

/* =========================================================================
   Pricing page
   Prices for every currency/term combination are rendered up front and
   toggled with .pr-price[data-cur][data-term]; without JS they all show,
   which is verbose but correct rather than blank.
   ========================================================================= */
/* Background + white text come from the shared .hero class on the landing
   page, so all three pages open the same way. Only spacing differs here. */
.pr-hero { padding: 4rem 0 3rem; }
.pr-hero h1 { max-width: 20ch; margin-inline: auto; }
.pr-hero .lead { max-width: 46rem; }

/* Detected-currency line: one quiet sentence, not a control to operate. */
.pr-detected {
    margin-top: 1.75rem; font-size: .88rem; color: #aeb4c8;
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center;
}
.pr-linkbtn {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: #c4b5fd; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px;
}
.pr-linkbtn:hover { color: #fff; }

/* A billing toggle now sits in EVERY plan section, so the control is always
   within reach instead of scrolled off the top of the page. */
.pr-section-toggle { display: flex; justify-content: center; margin-top: 1.5rem; }
.pr-toggle {
    display: inline-flex; gap: .25rem; padding: .25rem;
    background: #eef0f6; border-radius: 999px;
}
.pr-toggle-btn {
    border: 0; background: transparent; border-radius: 999px;
    padding: .5rem 1.1rem; font-size: .93rem; font-weight: 600; color: #5a6273;
    display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.pr-toggle-btn:hover { color: #1f2430; }
.pr-toggle-btn.is-active {
    background: #fff; color: #1f2430; box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}
.pr-toggle--sm .pr-toggle-btn { font-size: .85rem; padding: .4rem .85rem; }
.pr-pill {
    background: #dcfce7; color: #15803d; border-radius: 999px;
    padding: .1rem .45rem; font-size: .72rem; font-weight: 700;
}

.pr-section { padding: 3.5rem 0; }
.pr-section--alt { background: #f7f8fc; }
.pr-section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.25rem; }
.pr-section-head h2 { font-weight: 700; letter-spacing: -.01em; }
.pr-section-head p { color: #5a6273; margin-bottom: 0; }

.pr-card {
    position: relative; height: 100%;
    background: #fff; border: 1px solid var(--ad-border); border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex; flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pr-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16, 24, 40, .09); }
.pr-card--popular {
    border-color: var(--ad-accent);
    box-shadow: 0 10px 34px rgba(79, 70, 229, .14);
}
.pr-badge {
    position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%);
    background: var(--ad-accent); color: #fff; font-size: .72rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: 999px; white-space: nowrap;
}
.pr-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.pr-tagline { color: #5a6273; font-size: .9rem; min-height: 2.6em; margin-bottom: .75rem; }

.pr-amount { font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.pr-per { color: #5a6273; font-size: .95rem; margin-left: .25rem; }
.pr-billed { color: #79808f; font-size: .82rem; margin-top: .35rem; }
.pr-save { color: #15803d; font-weight: 700; }

.pr-features { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.pr-features li { display: flex; gap: .5rem; padding: .3rem 0; color: #3b4252; }
.pr-tick { color: #16a34a; font-weight: 700; flex: 0 0 auto; }
.pr-feature-heading {
    font-weight: 700; color: #1f2430; padding-top: .5rem !important;
}
.pr-note { text-align: center; color: #5a6273; margin-top: 1.75rem; margin-bottom: 0; }

.pr-compare { max-width: 52rem; margin: 0 auto; display: grid; gap: .85rem; }
.pr-compare-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    background: #fff; border: 1px solid var(--ad-border); border-radius: 14px; padding: 1.1rem 1.25rem;
}
.pr-compare-them, .pr-compare-us { font-size: .93rem; color: #3b4252; }
.pr-compare-them { color: #79808f; }
.pr-compare-tag {
    display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: #9aa1af; margin-bottom: .3rem;
}
.pr-compare-tag--us { color: var(--ad-accent); }

.pr-faq details {
    background: #fff; border: 1px solid var(--ad-border); border-radius: 12px;
    padding: .9rem 1.1rem; margin-bottom: .7rem;
}
.pr-faq summary { font-weight: 600; cursor: pointer; color: #1f2430; }
.pr-faq p { margin: .7rem 0 0; color: #5a6273; font-size: .93rem; }

.pr-cta { padding: 4rem 0; background: linear-gradient(135deg, var(--ad-accent) 0%, var(--ad-accent-2) 100%); color: #fff; }
.pr-cta h2 { font-weight: 700; }
.pr-cta .lead { max-width: 38rem; color: rgba(255, 255, 255, .9); }
.pr-cta .btn-primary { background: #fff; border-color: #fff; color: var(--ad-accent); font-weight: 600; }
.pr-cta .btn-primary:hover { background: #f1f1ff; border-color: #f1f1ff; color: var(--ad-accent-2); }
.pr-cta-sub { margin-top: 1rem; font-size: .85rem; color: rgba(255, 255, 255, .78); }

@media (max-width: 640px) {
    .pr-hero { padding: 2.5rem 0 1.75rem; }
    .pr-compare-row { grid-template-columns: 1fr; gap: .6rem; }
    .pr-tagline { min-height: 0; }

    /* The billing toggle is the most-tapped control on this page; at the
       desktop size it lands under the 44px touch-target guideline. */
    .pr-section-toggle { width: 100%; }
    .pr-toggle { width: 100%; }

    /* The override is only needed when detection is wrong, but that is exactly
       when it must be easy to hit — a 21px tap target there loses the sale. */
    .pr-detected { flex-direction: column; gap: .25rem; }
    .pr-linkbtn { min-height: 44px; padding: .5rem 1rem; }
    .pr-toggle-btn { flex: 1 1 0; justify-content: center; min-height: 44px; }
    .pr-toggle--sm .pr-toggle-btn { min-height: 44px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pr-card, .pr-toggle-btn { transition: none; }
    .pr-card:hover { transform: none; }
}

/* =========================================================================
   Setup guide (/guide)
   Illustrations are CSS/markup diagrams that echo the real interface — never
   presented as screenshots, because a screenshot goes stale silently the
   moment a button moves. All motion is additive and off under
   prefers-reduced-motion.
   ========================================================================= */
/* Background + white text come from the shared .hero class. */
.gd-hero { padding: 4rem 0 3rem; }
.gd-hero h1 { max-width: 18ch; margin-inline: auto; }
.gd-hero .lead { max-width: 42rem; }
.gd-hero-meta {
    display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center;
    margin-top: 1.5rem; font-size: .9rem; color: #aeb4c8;
}

.gd-section { padding: 3.5rem 0; }
.gd-section--alt { background: #f7f8fc; }
.gd-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.gd-head h2 { font-weight: 700; letter-spacing: -.01em; }
.gd-head p { color: #5a6273; margin-bottom: 0; }

/* ---- Animated loop ------------------------------------------------------ */
.gd-flow { position: relative; max-width: 56rem; margin: 0 auto; }
.gd-flow-track {
    position: absolute; left: 8%; right: 8%; top: 30px; height: 3px;
    background: var(--ad-border); border-radius: 2px; overflow: hidden;
}
.gd-flow-pulse {
    position: absolute; top: 0; left: 0; height: 100%; width: 26%;
    background: linear-gradient(90deg, transparent, var(--ad-accent), transparent);
    animation: gd-travel 3.4s linear infinite;
}
@keyframes gd-travel { from { transform: translateX(-100%); } to { transform: translateX(420%); } }

.gd-flow-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gd-flow-step { text-align: center; }
.gd-flow-ico {
    width: 62px; height: 62px; margin: 0 auto .7rem; border-radius: 50%;
    background: #fff; border: 3px solid var(--ad-border);
    display: grid; place-items: center; font-size: 1.5rem;
}
.gd-flow-step strong { display: block; font-size: .95rem; }
.gd-flow-step span { display: block; color: #79808f; font-size: .82rem; }

/* ---- Steps -------------------------------------------------------------- */
.gd-steps { list-style: none; padding: 0; margin: 0; max-width: 62rem; margin-inline: auto; }
.gd-step {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
    padding: 2rem 0; border-bottom: 1px solid var(--ad-border);
}
.gd-step:last-child { border-bottom: 0; }
.gd-step:nth-child(even) .gd-step-body { order: 2; }
.gd-num {
    display: inline-grid; place-items: center; width: 34px; height: 34px;
    border-radius: 50%; background: var(--ad-accent); color: #fff;
    font-weight: 700; font-size: .95rem; margin-bottom: .75rem;
}
.gd-step h3 { font-weight: 700; font-size: 1.25rem; margin-bottom: .5rem; }
.gd-step p { color: #5a6273; }
.gd-step code {
    background: #eef0f6; padding: .1rem .35rem; border-radius: 5px;
    font-size: .86em; color: #3b3070;
}

.gd-check, .gd-warn {
    display: flex; gap: .6rem; border-radius: 10px; padding: .7rem .9rem;
    font-size: .89rem; margin-top: .9rem; line-height: 1.5;
}
.gd-check { background: #ecfdf5; color: #166534; }
.gd-check::before { content: "✓"; font-weight: 700; }
.gd-warn { background: #fffbeb; color: #92400e; }
.gd-warn::before { content: "!"; font-weight: 700; }

.gd-perms-intro { margin-bottom: .4rem; font-size: .92rem; }
.gd-perms { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.gd-perms li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; padding: .25rem 0; }
.gd-perms span { color: #79808f; }

.gd-triggers { display: grid; gap: .6rem; margin-top: 1rem; }
.gd-trigger {
    background: #fff; border: 1px solid var(--ad-border); border-radius: 10px; padding: .75rem .9rem;
}
.gd-trigger strong { display: block; font-size: .95rem; }
.gd-trigger span { color: #5a6273; font-size: .86rem; }

/* ---- Fake UI chrome ----------------------------------------------------- */
.gd-window {
    background: #fff; border: 1px solid var(--ad-border); border-radius: 12px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .1); overflow: hidden;
}
.gd-window-bar { background: #f1f2f7; padding: .55rem .8rem; display: flex; gap: .35rem; }
.gd-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d6e0; }
.gd-window-body { padding: 1.1rem; }
.gd-center { text-align: center; }

.gd-label { font-size: .75rem; font-weight: 700; color: #79808f; text-transform: uppercase; letter-spacing: .05em; margin: .6rem 0 .3rem; }
.gd-label:first-child { margin-top: 0; }
.gd-select, .gd-input, .gd-textarea {
    border: 1px solid var(--ad-border); border-radius: 8px; padding: .5rem .7rem;
    font-size: .87rem; color: #3b4252; background: #fff;
}
.gd-select { display: flex; justify-content: space-between; align-items: center; }
.gd-caret, .gd-arrow { color: #9aa1af; }
.gd-inputs { display: flex; gap: .5rem; margin-bottom: .45rem; }
.gd-input { flex: 1; }
.gd-input--sm { flex: 0 0 34%; color: #79808f; }
.gd-textarea { min-height: 3.4rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }

.gd-preview-label { font-size: .72rem; color: #79808f; margin: .6rem 0 .25rem; text-transform: uppercase; letter-spacing: .05em; }
.gd-preview { position: relative; min-height: 1.5rem; font-size: .84rem; color: #5a6273; }
.gd-preview span { display: block; }
/* Without JS both examples show, which reads fine; with JS they alternate. */
.gd-preview span.is-on ~ span, .gd-preview span:not(.is-on) { display: none; }
.gd-preview span.is-on { display: block; }

.gd-oauth-logo { font-size: 2rem; color: var(--ad-accent); }
.gd-oauth-title { font-weight: 600; margin: .4rem 0 .8rem; }
.gd-oauth-perm { font-size: .84rem; color: #166534; }
.gd-btn-fake {
    margin-top: 1rem; background: var(--ad-accent); color: #fff; border-radius: 8px;
    padding: .5rem; font-weight: 600; font-size: .9rem;
}

.gd-phone {
    max-width: 260px; margin: 0 auto; background: #fff; border: 1px solid var(--ad-border);
    border-radius: 22px; padding: .8rem; box-shadow: 0 12px 34px rgba(16, 24, 40, .1);
}
.gd-phone-bar { width: 60px; height: 5px; border-radius: 3px; background: #e2e5ee; margin: 0 auto .9rem; }
/* flex-start, not space-between: the latter pushed each label away from its
   own bullet and across to the right edge. The chevron is pushed out instead. */
.gd-phone-row {
    display: flex; align-items: center; gap: .5rem; justify-content: flex-start;
    padding: .55rem .6rem; border-radius: 8px; font-size: .84rem; color: #3b4252;
    text-align: left;
}
.gd-phone-row .gd-arrow { margin-left: auto; }
.gd-phone-row.is-hl { background: #eef0ff; color: var(--ad-accent); font-weight: 600; }
.gd-dot { width: 7px; height: 7px; border-radius: 50%; background: #d3d6e0; }

.gd-status-row { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: #5a6273; padding: .4rem 0; }
.gd-status-arrow { text-align: center; color: #b9bfcc; }
.gd-pill { border-radius: 999px; padding: .15rem .6rem; font-size: .74rem; font-weight: 700; }
.gd-pill--draft { background: #f1f2f7; color: #79808f; }
.gd-pill--live { background: #dcfce7; color: #15803d; }

.gd-log { display: flex; gap: .6rem; align-items: center; font-size: .84rem; color: #5a6273; padding: .3rem 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.gd-ok { background: #dcfce7; color: #15803d; border-radius: 5px; padding: .05rem .4rem; font-size: .74rem; font-weight: 700; }

/* ---- Agency cards + gotchas -------------------------------------------- */
.gd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 62rem; margin-inline: auto; }
.gd-card { background: #fff; border: 1px solid var(--ad-border); border-radius: 12px; padding: 1.2rem; }
.gd-card-num {
    width: 28px; height: 28px; border-radius: 8px; background: #eef0ff; color: var(--ad-accent);
    display: grid; place-items: center; font-weight: 700; font-size: .85rem; margin-bottom: .6rem;
}
.gd-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.gd-card p { font-size: .87rem; color: #5a6273; margin: 0; }

.gd-gotchas { display: grid; gap: .8rem; }
.gd-gotcha {
    display: flex; gap: .9rem; background: #fff; border: 1px solid var(--ad-border);
    border-radius: 12px; padding: 1rem 1.1rem;
}
.gd-gotcha-ico { font-size: 1.3rem; flex: 0 0 auto; }
.gd-gotcha strong { display: block; margin-bottom: .2rem; }
.gd-gotcha div { font-size: .89rem; color: #5a6273; }

.gd-cta { padding: 4rem 0; background: linear-gradient(135deg, var(--ad-accent) 0%, var(--ad-accent-2) 100%); color: #fff; }
.gd-cta h2 { font-weight: 700; }
.gd-cta .lead { max-width: 38rem; color: rgba(255, 255, 255, .9); }
.gd-cta .btn-primary { background: #fff; border-color: #fff; color: var(--ad-accent); font-weight: 600; }
.gd-cta .btn-primary:hover { background: #f1f1ff; border-color: #f1f1ff; color: var(--ad-accent-2); }
.gd-cta-sub { margin-top: 1rem; font-size: .88rem; color: rgba(255, 255, 255, .82); }
.gd-cta-sub a { color: #fff; }

@media (max-width: 860px) {
    .gd-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .gd-step { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem 0; }
    .gd-step:nth-child(even) .gd-step-body { order: 0; }
    .gd-flow-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
    .gd-flow-track { display: none; }
    .gd-cards { grid-template-columns: 1fr; }
    .gd-hero { padding: 2.5rem 0 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gd-flow-pulse { animation: none; opacity: .35; }
}

/* =========================================================================
   Choice cards — "which sounds like you?" at signup, and the same control
   after a Google sign-up. A radio the size of a card, because the decision
   changes which dashboard someone lands on and deserves more than a 13px dot.
   The native input stays in the DOM (keyboard, screen readers, form
   submission) and is visually replaced by the card.
   ========================================================================= */
.choice-grid { display: grid; gap: .75rem; }
@media (min-width: 576px) {
    .choice-grid { grid-template-columns: 1fr 1fr; }
}

.choice { position: relative; display: block; cursor: pointer; }

/* Not display:none — that removes it from the accessibility tree and from
   keyboard focus order. Kept in place, invisible, and the card reacts to it. */
.choice input {
    position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
}

.choice-body {
    display: block; height: 100%;
    border: 1.5px solid var(--ad-border); border-radius: 14px;
    padding: 1rem .95rem; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.choice:hover .choice-body { border-color: #c7ccf7; }
.choice input:focus-visible + .choice-body {
    outline: 3px solid rgba(79, 70, 229, .35); outline-offset: 2px;
}
.choice input:checked + .choice-body {
    border-color: var(--ad-accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.choice-ico { display: block; font-size: 1.4rem; line-height: 1; margin-bottom: .5rem; }
.choice-title { display: block; font-weight: 650; color: #1f2430; margin-bottom: .2rem; }
.choice-blurb { display: block; font-size: .82rem; line-height: 1.45; color: #6b7280; }

/* A tick, so "selected" is not carried by colour alone. */
.choice input:checked + .choice-body::after {
    content: "✓";
    position: absolute; top: .7rem; right: .8rem;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ad-accent); color: #fff;
    font-size: .78rem; line-height: 22px; text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .choice-body { transition: none; }
}

/* =========================================================================
   Forms on phones
   Below 16px, iOS Safari zooms the page the moment a field is focused — and
   does not zoom back out, leaving the person pinching their way around a form
   they were halfway through. Bootstrap's .form-control-sm is 14px, so this
   catches every small input in the app rather than the one page that happened
   to expose it. Only on phones: 16px everywhere would coarsen dense desktop
   tables for no benefit.
   ========================================================================= */
@media (max-width: 575.98px) {
    .form-control,
    .form-select,
    .form-control-sm,
    .form-select-sm,
    textarea.form-control {
        font-size: 16px;
    }

    /* Row actions in a table are the smallest thing anyone has to hit on a
       phone, and .btn-sm lands around 31px. Buttons only — links in prose keep
       their natural size, since padding them out would wreck the paragraph. */
    .table .btn,
    .table .btn-sm {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* =========================================================================
   Ada — support assistant
   Present on public and authenticated pages alike. Sits above page content
   but below Bootstrap modals (1055). All motion is disabled under
   prefers-reduced-motion.
   ========================================================================= */
.ada-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040;
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff; box-shadow: 0 8px 24px rgba(79, 70, 229, .38);
    display: grid; place-items: center;
    transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s ease;
}
.ada-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 32px rgba(79, 70, 229, .48); }
.ada-fab:active { transform: translateY(-1px) scale(.98); }

/* A slow breathing ring — enough to notice, not enough to nag. */
.ada-fab::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, .45);
    animation: ada-ring 2.8s ease-out infinite;
}
@keyframes ada-ring {
    0%   { transform: scale(.85); opacity: .7; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}
.ada-fab[aria-expanded="true"]::after { animation: none; opacity: 0; }

/* The mark itself: three dots that drift, so the button reads as conversation. */
.ada-fab-ico { display: flex; gap: 4px; align-items: center; }
.ada-fab-ico i {
    width: 6px; height: 6px; border-radius: 50%; background: #fff; display: block;
    animation: ada-bob 1.6s ease-in-out infinite;
}
.ada-fab-ico i:nth-child(2) { animation-delay: .18s; }
.ada-fab-ico i:nth-child(3) { animation-delay: .36s; }
@keyframes ada-bob {
    0%, 100% { transform: translateY(0); opacity: .65; }
    50%      { transform: translateY(-4px); opacity: 1; }
}

.ada-panel {
    position: fixed; right: 22px; bottom: 94px; z-index: 1041;
    width: min(392px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 140px));
    /* dvh tracks the *visible* viewport, so the panel is not sized against
       browser chrome that is currently covering it. vh stays above as the
       fallback for anything that does not know the unit. */
    max-height: min(620px, calc(100dvh - 140px));
    background: #fff; border-radius: 18px;
    box-shadow: 0 2px 8px rgba(16,24,40,.06), 0 24px 64px rgba(16, 24, 40, .24);
    display: flex; flex-direction: column; overflow: hidden;
    transform-origin: bottom right;
    animation: ada-in .22s cubic-bezier(.2,.8,.3,1);
}
.ada-panel[hidden] { display: none; }
@keyframes ada-in {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

.ada-head {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .9rem 1.05rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff;
}
.ada-head-id { display: flex; align-items: center; gap: .65rem; }
.ada-avatar {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .2); font-weight: 700; font-size: .95rem;
    position: relative;
}
/* Online dot — small signal that a person-ish thing is there. */
.ada-avatar::after {
    content: ""; position: absolute; right: -1px; bottom: -1px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #34d399; border: 2px solid #6d28d9;
}
.ada-head strong { display: block; font-size: .96rem; line-height: 1.15; }
.ada-sub { font-size: .74rem; opacity: .82; }
.ada-close {
    background: none; border: 0; color: #fff; font-size: 1.35rem; line-height: 1;
    cursor: pointer; opacity: .8; border-radius: 8px;
    /* 44px: the close button is the one control a frustrated person stabs at. */
    width: 44px; height: 44px; margin: -4px -8px -4px 0;
    display: grid; place-items: center; flex: none;
}
.ada-close:hover { opacity: 1; background: rgba(255,255,255,.14); }

.ada-body {
    flex: 1; overflow-y: auto; padding: 1rem; background: #f8f9fc;
    /* Without this, flinging past the last message scrolls the page behind —
       on a phone that reads as the chat throwing you out. */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.ada-body::-webkit-scrollbar { width: 8px; }
.ada-body::-webkit-scrollbar-thumb { background: #d9dce6; border-radius: 8px; }

.ada-msg {
    margin-bottom: .65rem; font-size: .9rem; line-height: 1.55;
    animation: ada-msg-in .2s ease-out;
    /* A pasted URL or token must wrap, not widen the panel past the screen. */
    overflow-wrap: anywhere;
}
@keyframes ada-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ada-msg p { margin: 0 0 .6rem; }
.ada-msg p:last-child { margin-bottom: 0; }
.ada-msg--bot {
    background: #fff; border-radius: 14px 14px 14px 5px;
    padding: .8rem .9rem; color: #384152;
    box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 12px rgba(16,24,40,.04);
}
.ada-msg--bot strong { display: block; margin-bottom: .4rem; color: #1f2430; font-size: .95rem; }
.ada-msg--me {
    background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff;
    border-radius: 14px 14px 5px 14px;
    padding: .6rem .85rem; margin-left: auto; max-width: 86%; width: fit-content;
    box-shadow: 0 2px 10px rgba(99,102,241,.25);
}
.ada-cta {
    display: inline-block; margin-top: .6rem; font-size: .85rem; font-weight: 600;
    color: #5b21b6; text-decoration: none;
    border: 1px solid #ddd6fe; background: #f5f3ff;
    padding: .35rem .75rem; border-radius: 999px;
}
.ada-cta:hover { background: #ede9fe; color: #4c1d95; }
.ada-tag {
    display: inline-block; margin-top: .55rem; font-size: .66rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    background: #f1f5f9; color: #64748b; border-radius: 999px; padding: .12rem .5rem;
}

/* Three drifting dots while she thinks — the same language as the button. */
.ada-thinking { display: flex; gap: 5px; align-items: center; padding: .15rem 0; }
.ada-thinking i {
    width: 7px; height: 7px; border-radius: 50%; background: #b6bccb; display: block;
    animation: ada-bob 1.3s ease-in-out infinite;
}
.ada-thinking i:nth-child(2) { animation-delay: .16s; }
.ada-thinking i:nth-child(3) { animation-delay: .32s; }

.ada-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ada-chip {
    background: #fff; border: 1px solid #e4e7ef; border-radius: 999px;
    padding: .55rem .85rem; min-height: 44px; font-size: .82rem;
    color: #475069; cursor: pointer; text-align: left;
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.ada-chip:hover { border-color: #a5b4fc; color: #4f46e5; transform: translateY(-1px); }

.ada-form {
    display: flex; gap: .5rem; padding: .75rem; background: #fff;
    border-top: 1px solid #eef0f5;
    /* Clears the iPhone home indicator when the panel runs to the bottom edge. */
    padding-bottom: max(.75rem, env(safe-area-inset-bottom));
}
.ada-input {
    flex: 1; min-width: 0; border: 1px solid #e4e7ef; border-radius: 999px;
    padding: .6rem .95rem; font-size: .89rem; outline: none; color: #1f2430;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ada-input::placeholder { color: #a3a9b8; }
.ada-input:focus { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.ada-send {
    border: 0; border-radius: 50%; width: 44px; height: 44px; flex: none; cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff; font-size: 1rem;
    display: grid; place-items: center;
    transition: transform .15s ease, opacity .15s ease;
}
.ada-send:hover { transform: scale(1.06); }
.ada-send:disabled { opacity: .45; cursor: default; transform: none; }

/* ---- Phones -------------------------------------------------------------
   A floating card on a 390px screen is the worst of both: too small to read a
   real answer in, too big to see the page behind. Every messaging app on a
   phone is full-screen, so this is. */
@media (max-width: 575.98px) {
    .ada-panel {
        inset: 0; width: auto; border-radius: 0;
        max-height: none; height: 100vh; height: 100dvh;
        transform-origin: center;
    }
    .ada-head {
        padding: .85rem 1rem;
        padding-top: max(.85rem, env(safe-area-inset-top));
    }
    .ada-body { padding: .85rem; }
    .ada-msg { font-size: .95rem; }
    /* 16px exactly: below it, iOS Safari zooms the entire page in on focus and
       leaves the person pinching their way back out. */
    .ada-input { font-size: 16px; padding: .7rem 1rem; }
    .ada-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }

    /* The sheet covers the screen — the launcher under it is just a bump, and
       the page behind must not scroll while the chat is open. */
    body.ada-open { overflow: hidden; }
    body.ada-open .ada-fab { display: none; }
}

/* Landscape phones and short windows: the desktop panel would be taller than
   the screen it is anchored in. */
@media (min-width: 576px) and (max-height: 540px) {
    .ada-panel { bottom: 84px; max-height: calc(100dvh - 100px); }
}
@media (prefers-reduced-motion: reduce) {
    .ada-fab, .ada-chip, .ada-send, .ada-input { transition: none; }
    .ada-fab:hover { transform: none; }
    .ada-fab::after, .ada-fab-ico i, .ada-thinking i { animation: none; }
    .ada-panel, .ada-msg { animation: none; }
    .ada-thinking i { opacity: .6; }
}

/* =========================================================================
   Landing page
   Written for paid traffic: one decision per screenful, the offer inside the
   button rather than beneath it, and enough contrast that a phone in daylight
   is still readable. Sections alternate tone so scrolling has a rhythm and the
   eye knows where one idea stops.
   ========================================================================= */
.lp-hero {
    background:
        radial-gradient(1100px 520px at 12% -8%, rgba(99, 102, 241, .34), transparent 62%),
        radial-gradient(900px 480px at 92% 4%, rgba(124, 58, 237, .26), transparent 60%),
        linear-gradient(180deg, #14161f, #0f1117);
    color: #fff; padding: 4.5rem 0 4rem; overflow: hidden;
}
.lp-eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 600;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
    color: #dfe2ee; border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1.15rem;
}
.lp-h1 {
    font-size: clamp(2rem, 5.2vw, 3.35rem); line-height: 1.1;
    font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem;
}
.lp-grad {
    background: linear-gradient(100deg, #a78bfa, #6366f1);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-sub { font-size: 1.06rem; line-height: 1.65; color: #c3c8d8; max-width: 34rem; margin-bottom: 1.6rem; }

.lp-cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }
/* The offer lives IN the button. It used to be grey 12px text underneath —
   the whole proposition, in the smallest type on the page. */
.lp-cta { font-weight: 650; padding-inline: 1.5rem; box-shadow: 0 12px 30px -12px rgba(79, 70, 229, .85); }
.lp-reassure { font-size: .84rem; color: #9aa1b4; margin: .8rem 0 0; }

.lp-ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .3rem; }
.lp-ticks li { font-size: .89rem; color: #c3c8d8; }

.lp-demo {
    background: #14161f; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85); overflow: hidden;
}
.lp-demo-bar { display: flex; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.lp-demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.lp-demo-body { padding: .4rem .2rem; }
.lp-demo .mrow {
    display: flex; align-items: center; gap: .6rem; justify-content: space-between;
    padding: .7rem .95rem; font-size: .86rem; color: #c7cbd8;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.lp-demo .mrow:last-child { border-bottom: 0; }
.lp-demo .tag {
    font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; border-radius: 999px; padding: .18rem .5rem; white-space: nowrap;
}
.t-match { background: rgba(99,102,241,.22); color: #c7d2fe; }
.t-wait  { background: rgba(245,158,11,.18); color: #fcd34d; }
.t-sent  { background: rgba(16,185,129,.18); color: #6ee7b7; }
.t-log   { background: rgba(148,163,184,.18); color: #cbd5e1; }
.lp-demo-note { text-align: center; font-size: .8rem; color: #8b92a6; margin: .7rem 0 0; }

/* ---- Sections ----------------------------------------------------------- */
.lp-section { padding: 4rem 0; }
.lp-alt { background: #f6f7fb; }
.lp-h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 750; letter-spacing: -.015em; margin-bottom: .6rem; }
.lp-lede { color: #5b6478; max-width: 46rem; margin-inline: auto; margin-bottom: 0; }

/* The differentiator, high up — it used to sit two thirds down the page. */
.lp-wedge { background: #101219; color: #fff; padding: 3.5rem 0; }
.lp-wedge .lp-lede { color: #b9c0d1; margin-bottom: 1.8rem; }
.lp-compare { border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; }
.lp-compare table { color: #d7dbe6; margin: 0; }
.lp-compare thead th { background: rgba(255,255,255,.04); border-bottom-color: rgba(255,255,255,.09); font-size: .84rem; }
.lp-compare td, .lp-compare th { border-color: rgba(255,255,255,.06); padding: .85rem 1rem; }
.lp-compare .lp-us { background: rgba(99,102,241,.12); color: #fff; }
.lp-footnote { font-size: .78rem; color: #7f8798; text-align: center; margin: .9rem 0 0; }

.lp-step { height: 100%; }
.lp-step-n {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff; font-weight: 700;
    margin-bottom: .7rem;
}
.lp-step h3 { font-size: 1.05rem; font-weight: 650; margin-bottom: .35rem; }
.lp-step p { color: #5b6478; font-size: .93rem; margin: 0; }

.lp-persona {
    height: 100%; background: #fff; border: 1px solid var(--ad-border);
    border-radius: 16px; padding: 1.6rem;
}
.lp-persona-ico { font-size: 1.7rem; display: block; margin-bottom: .5rem; }
.lp-persona h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.lp-persona p { color: #5b6478; }
.lp-persona ul { padding-left: 1.1rem; color: #4b5464; font-size: .93rem; margin-bottom: 1rem; }
.lp-persona li { margin-bottom: .3rem; }
.lp-inline-cta { font-weight: 650; text-decoration: none; color: var(--ad-accent); }
.lp-inline-cta:hover { text-decoration: underline; }

.lp-trust {
    display: flex; gap: .9rem; height: 100%; background: #fff;
    border: 1px solid var(--ad-border); border-radius: 14px; padding: 1.2rem;
}
.lp-trust span { font-size: 1.35rem; line-height: 1; }
.lp-trust h3 { font-size: 1rem; font-weight: 650; margin-bottom: .25rem; }
.lp-trust p { color: #5b6478; font-size: .9rem; margin: 0; }

.lp-plan {
    height: 100%; background: #fff; border: 1px solid var(--ad-border);
    border-radius: 16px; padding: 1.6rem; position: relative;
}
.lp-plan-hi { border-color: var(--ad-accent); box-shadow: 0 14px 40px -22px rgba(79,70,229,.75); }
.lp-badge {
    position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%);
    background: var(--ad-accent); color: #fff; font-size: .68rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: .2rem .7rem;
}
.lp-plan h3 { font-size: 1.05rem; font-weight: 650; }
.lp-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.lp-price span { display: block; font-size: .78rem; font-weight: 500; color: #7b8397; letter-spacing: 0; }
.lp-plan ul { list-style: none; padding: 0; margin-bottom: 1.2rem; }
.lp-plan li { font-size: .92rem; color: #4b5464; padding: .3rem 0 .3rem 1.4rem; position: relative; }
.lp-plan li::before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: 700; }

.lp-faq details {
    background: #fff; border: 1px solid var(--ad-border); border-radius: 12px;
    padding: .95rem 1.1rem; margin-bottom: .6rem;
}
.lp-faq summary { font-weight: 600; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "＋"; float: right; color: #9aa1b4; font-weight: 400; }
.lp-faq details[open] summary::after { content: "－"; }
.lp-faq p { margin: .7rem 0 0; color: #5b6478; font-size: .94rem; line-height: 1.65; }

.lp-close {
    background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; padding: 4rem 0;
}
.lp-close .lp-lede { color: rgba(255,255,255,.86); margin-bottom: 1.5rem; }
.lp-close .btn-primary { background: #fff; border-color: #fff; color: #4338ca; }
.lp-close .btn-primary:hover { background: #f3f4f6; border-color: #f3f4f6; color: #3730a3; }
.lp-close .lp-reassure { color: rgba(255,255,255,.75); }

@media (max-width: 575.98px) {
    .lp-hero { padding: 3rem 0 2.5rem; }
    .lp-section, .lp-wedge, .lp-close { padding: 2.75rem 0; }
    /* Full-width primary action: a thumb should not have to aim. */
    .lp-cta-row .btn { width: 100%; }
    .lp-demo .mrow { font-size: .8rem; padding: .6rem .75rem; }
}

/* Use cases — a real comment and the real reply, because "for coaches" makes
   the reader do the imagining and most will not bother. */
.lp-use {
    height: 100%; background: #fff; border: 1px solid var(--ad-border);
    border-radius: 14px; padding: 1.15rem 1.2rem;
    transition: border-color .15s ease, transform .15s ease;
}
.lp-use:hover { border-color: #c7ccf7; transform: translateY(-2px); }
.lp-use-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .5rem; }
.lp-use-head span { font-size: 1.3rem; line-height: 1; }
.lp-use-head h3 { font-size: 1rem; font-weight: 650; margin: 0; }
.lp-use-comment { font-size: .88rem; color: #5b6478; font-style: italic; margin-bottom: .7rem; }
.lp-use-flow { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.lp-kw {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; font-weight: 700;
    letter-spacing: .04em; background: #eef0fe; color: #4338ca;
    border: 1px solid #d9ddfb; border-radius: 6px; padding: .2rem .5rem;
}
.lp-arrow { color: #9aa1b4; }
.lp-use-out {
    font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: rgba(16,185,129,.12); color: #047857; border-radius: 999px; padding: .2rem .55rem;
}
.lp-use-result { font-size: .88rem; color: #4b5464; margin: 0; }

@media (prefers-reduced-motion: reduce) { .lp-use { transition: none; } .lp-use:hover { transform: none; } }

/* The reach loop. A vertical chain rather than a row of cards, because the
   claim is that each step CAUSES the next — a grid would present them as five
   unrelated benefits. */
.lp-loop { background: #0f1117; color: #fff; padding: 4rem 0; }
.lp-loop .lp-lede { color: #b9c0d1; margin-bottom: 2rem; }
.lp-loop-grid { max-width: 44rem; margin-inline: auto; }
.lp-loop-step {
    position: relative; display: flex; gap: 1rem; align-items: flex-start;
    background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: 2.1rem;
}
.lp-loop-n {
    flex: none; display: grid; place-items: center; width: 32px; height: 32px;
    border-radius: 9px; background: linear-gradient(135deg, #6366f1, #7c3aed);
    font-weight: 700; font-size: .9rem;
}
.lp-loop-step h3 { font-size: 1rem; font-weight: 650; margin-bottom: .3rem; }
.lp-loop-step p { font-size: .9rem; color: #b3bacb; margin: 0; line-height: 1.6; }
.lp-loop-arrow {
    position: absolute; left: 50%; bottom: -1.65rem; transform: translateX(-50%);
    color: #6b7280; font-size: 1.1rem; line-height: 1;
}
/* The last one points back to the top: it is a loop, and saying so in one
   glyph is cheaper than a sentence explaining it. */
.lp-loop-back { color: #a78bfa; font-size: 1.25rem; }
.lp-loop-step:last-child { margin-bottom: 1.4rem; }
.lp-loop-note {
    max-width: 44rem; margin: 0 auto; text-align: center;
    font-size: .92rem; color: #9aa2b5; line-height: 1.65;
}

@media (max-width: 575.98px) {
    .lp-loop { padding: 2.75rem 0; }
    .lp-loop-step { margin-bottom: 1.9rem; }
}

/* =========================================================================
   Landing: points, key facts, animation states, cookie notice
   =========================================================================

   ANIMATION IS OPT-IN, NOT OPT-OUT. Elements are only hidden while
   html[data-lp-anim="on"] is set, and that attribute is written by a tiny
   inline script that first checks prefers-reduced-motion. So with JavaScript
   off, with GSAP failing to load, or with reduced motion asked for, nothing is
   ever hidden — the page just renders. Hiding first and revealing later is how
   a page ends up blank for the people least able to fix it.
   ========================================================================= */

.lp-hero-points { list-style: none; padding: 0; margin: 1.35rem 0 1.7rem; display: grid; gap: .55rem; }
.lp-hero-points li {
    position: relative; padding-left: 1.5rem; font-size: .95rem; line-height: 1.55; color: #c3c8d8;
}
.lp-hero-points li::before {
    content: ""; position: absolute; left: 0; top: .48em;
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
}
.lp-hero-points b { color: #fff; font-weight: 650; }

.lp-demo-bar .lp-demo-label {
    margin-left: auto; font-style: normal; font-size: .66rem; letter-spacing: .1em;
    text-transform: uppercase; color: #6f7789;
}
.lp-demo-progress { height: 2px; background: rgba(255, 255, 255, .06); }
.lp-demo-progress i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--ad-accent), var(--ad-accent-2));
}

/* Key facts — four checkable numbers, scannable in one pass. */
.lp-facts { background: #0d0f15; border-block: 1px solid #1c1f2a; padding: 1.6rem 0; }
.lp-facts-grid {
    margin: 0; display: grid; gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.lp-fact dt {
    font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #7b8296; margin-bottom: .3rem;
}
.lp-fact dd { margin: 0; font-size: .92rem; line-height: 1.5; color: #c3c8d8; }
.lp-fact dd b { color: #fff; font-weight: 650; }

.lp-step-points { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .35rem; }
.lp-step-points li { position: relative; padding-left: 1.15rem; font-size: .87rem; color: #aab1c4; }
.lp-step-points li::before { content: "✓"; position: absolute; left: 0; color: #6ee7b7; font-size: .8rem; }

/* Reveal + hero timeline start states. Scoped to the opt-in attribute. */
[data-lp-anim="on"] [data-lp-reveal] { opacity: 0; transform: translateY(18px); }
[data-lp-anim="on"] [data-lp-demo] [data-lp-row] { opacity: 0; }

/* ---- Cookie notice ------------------------------------------------------
   The site sets no advertising or analytics cookies — only the session and
   CSRF cookies needed to sign in — so this is a notice with an acknowledgement,
   not a consent gate pretending to offer a choice it does not have. */
.ck-bar {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1080;
    max-width: 46rem; margin-inline: auto;
    background: #14161f; color: #c9cee0;
    border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
    padding: .95rem 1.1rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    font-size: .86rem; line-height: 1.5;
}
.ck-bar p { margin: 0; flex: 1 1 20rem; }
.ck-bar a { color: #a5b4fc; }
.ck-actions { display: flex; gap: .5rem; margin-left: auto; }
.ck-bar .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
    .ck-actions { width: 100%; }
    .ck-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-demo-progress i { transition: none !important; }
}
