/* CareNotes /agent-setup : Integration guide, layered on sample3.css (same system as /integrations). */

:root { --ag: #2563eb; --ag-deep: #1d4ed8; --ag-soft: #dbe7ff; --ok: #16a34a; --ok-soft: #dcfce7; }

/* Scoped so it never fights the nav's Tailwind `hidden lg:flex`. */
.ag-panel.hidden, .ag-callout.hidden, .ag-done.hidden,
.curve-only.hidden, .agent-generic.hidden { display: none !important; }

/* ---------------- PREMIUM TAG (same as /starter-guide) ---------------- */
.tag {
    display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 980px; line-height: 1; white-space: nowrap; font-style: normal;
}
.tag-premium { position: relative; color: #1d4ed8; background: #fff; }
.tag-premium::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
    background: linear-gradient(90deg, #2563eb, #38cc75);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.tag-premium i { color: #2563eb; font-size: 10px; }
.tag-premium span { background: linear-gradient(90deg, #2563eb, #15803d); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- HERO ---------------- */
.ag-hero {
    margin-top: -76px; padding: 150px 22px 90px; text-align: center; overflow: visible;
    background: linear-gradient(180deg, #f7f9ff 0%, #eaf0ff 55%, #f5f5f7 100%); color: #1d1d1f;
}
.ag-hero .eyebrow { color: var(--ag-deep); }
.ag-hero h1 {
    margin: 10px auto 0; max-width: 860px;
    font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance;
}
.ag-hero .lede { margin: 18px auto 0; max-width: 640px; font-size: clamp(18px, 2vw, 22px); line-height: 1.35; color: #4b5675; letter-spacing: -.01em; text-wrap: balance; }
.ag-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.ag-meta span {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 980px; font-size: 13.5px; font-weight: 600; color: #424245;
    background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.ag-meta i { color: var(--ag); }
.ag-meta i.ok { color: var(--ok); }

/* Picker card */
.ag-picker {
    position: relative; margin: 44px auto 0; max-width: 860px; text-align: left;
    background: #fff; border-radius: 28px; padding: 30px 30px 28px;
    box-shadow: 0 40px 90px -50px rgba(29, 78, 216, .45), 0 0 0 1px rgba(0, 0, 0, .05);
}
.ag-picker .step-lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ag-deep); }
.ag-picker h2 { margin-top: 6px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.ag-picker .sub { margin-top: 6px; font-size: 15.5px; color: #6e6e73; }
.sw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.sw-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 124px;
    padding: 16px 12px; border-radius: 18px; background: #f5f5f7; border: 0; cursor: pointer; font: inherit; color: #1d1d1f;
    box-shadow: inset 0 0 0 2px transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.sw-card:hover { transform: translateY(-3px); background: #fff; box-shadow: inset 0 0 0 2px var(--ag), 0 20px 40px -28px rgba(37, 99, 235, .5); }
.sw-card.selected { background: #fff; box-shadow: inset 0 0 0 2px var(--ag), 0 0 0 5px rgba(37, 99, 235, .14); }
.sw-card img { height: 40px; width: auto; max-width: 84%; object-fit: contain; }
.sw-card span { font-size: 14px; font-weight: 600; }
.ag-select { margin-top: 18px; }
.ag-select label { display: block; font-size: 13.5px; font-weight: 600; color: #6e6e73; margin-bottom: 8px; }
.ag-select .wrap { position: relative; }
.ag-select select {
    width: 100%; appearance: none; -webkit-appearance: none; font: inherit; font-size: 15.5px; font-weight: 500; color: #1d1d1f;
    padding: 14px 44px 14px 16px; border-radius: 14px; border: 0; background: #f5f5f7; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .08); cursor: pointer;
}
.ag-select select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ag); background: #fff; }
.ag-select .wrap i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #86868b; pointer-events: none; }

/* Callouts */
.ag-callout {
    display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px 14px 18px; border-radius: 16px;
    font-size: 14.5px; line-height: 1.5; color: #1d1d1f; background: #eaf1ff; box-shadow: inset 4px 0 0 var(--ag); text-align: left;
}
.ag-callout > i { color: var(--ag); margin-top: 3px; flex: none; }
.ag-callout.warn { background: #fff6e8; box-shadow: inset 4px 0 0 #f7a54a; }
.ag-callout.warn > i { color: #d97706; }
.ag-callout.ok { background: #eefaf2; box-shadow: inset 4px 0 0 var(--ok); }
.ag-callout.ok > i { color: var(--ok); }
.ag-callout a { color: var(--ag); font-weight: 600; }
.ag-callout a:hover { text-decoration: underline; }
.ag-callout p + p { margin-top: 6px; }

/* ---------------- PANELS ---------------- */
.ag-panel { padding-top: 90px; padding-bottom: 100px; overflow: visible; }
.ag-panel .detail-inner { max-width: 860px; }
.detail .eyebrow { color: var(--ag-deep); }
.detail .lede { margin: 14px auto 0; max-width: 680px; font-size: 17px; line-height: 1.5; color: #6e6e73; letter-spacing: -.01em; }
.detail .lede a, .ag-step p a, .ag-faq p a { color: var(--ag); }
.detail .lede a:hover, .ag-step p a:hover, .ag-faq p a:hover { text-decoration: underline; }
.ag-lead {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 980px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft);
}
.ag-lead.soon { color: #b45309; background: #fff1dc; }

/* Steps */
.ag-steps { display: grid; gap: 16px; margin-top: 40px; text-align: left; }
.ag-step { background: #fff; border-radius: 24px; padding: 26px 28px 28px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 20px 50px -40px rgba(0, 0, 0, .3); }
.detail:not(.detail-alt) .ag-step { background: #f5f5f7; box-shadow: none; }
.ag-step .head { display: flex; align-items: flex-start; gap: 16px; }
.ag-step .num {
    flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 17px; font-weight: 700;
    background: linear-gradient(135deg, var(--ag), #60a5fa); color: #fff;
}
.ag-step .head > div { flex: 1; min-width: 0; }
.ag-step h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.ag-step .desc { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: #515154; letter-spacing: -.01em; }
.ag-step .desc strong, .ag-callout strong { color: #1d1d1f; }
.ag-step code, .ag-callout code, .ag-before code, .ag-faq code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: rgba(0, 0, 0, .06); padding: 1px 6px; border-radius: 6px;
}
.ag-step .body { margin-left: 56px; }
.done-btn {
    flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 14px;
    border: 0; background: #fff; color: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .1); transition: all .2s var(--ease);
}
.detail-alt .done-btn { background: #fff; }
.done-btn:hover { box-shadow: inset 0 0 0 2px var(--ok); color: var(--ok); }
.done-btn.is-done { background: var(--ok); color: #fff; box-shadow: inset 0 0 0 2px var(--ok); }
.ag-shot { margin: 18px 0 0; cursor: zoom-in; }
.ag-shot img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .06); background: #fff; }
.ag-list { list-style: none; padding: 0; margin: 12px 0 0; }
.ag-list li { position: relative; padding-left: 22px; margin-top: 6px; font-size: 15px; line-height: 1.5; color: #515154; }
.ag-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ag); }
.ag-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ag-cred { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.detail-alt .ag-cred { background: #f5f5f7; box-shadow: none; }
.ag-cred b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ag-deep); }
.ag-cred span { display: block; margin-top: 4px; font-size: 14.5px; color: #515154; }
.ag-download {
    margin-top: 18px; padding: 26px 22px; border-radius: 20px; text-align: center; color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #60a5fa);
}
.ag-download .btn-fill { background: #fff; color: var(--ag-deep); font-size: 16px; padding: 12px 26px; }
.ag-download .btn-fill:hover { background: #eaf1ff; }
.ag-download p { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .8); }

/* Sticky progress */
.ag-progress {
    position: sticky; top: 84px; z-index: 30; display: flex; align-items: center; gap: 14px; margin: 0 0 8px; padding: 10px 14px 10px 12px; border-radius: 980px;
    background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05); text-align: left;
}
.ag-progress .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 980px; background: var(--ag-soft); color: var(--ag-deep); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ag-progress .track { flex: 1; height: 8px; border-radius: 980px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.ag-progress .fill { height: 100%; width: 0; border-radius: 980px; background: linear-gradient(90deg, var(--ag), #22c55e); transition: width .35s var(--ease); }
.ag-progress .cnt { font-size: 13.5px; font-weight: 600; color: #515154; white-space: nowrap; }

/* Before you start */
.ag-before { margin-top: 28px; padding: 22px 26px 24px; border-radius: 22px; background: #fff6e8; text-align: left; }
.ag-before h3 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ag-before h3 i { color: #d97706; }
.ag-before ul { list-style: none; padding: 0; margin: 12px 0 0; }
.ag-before li { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; font-size: 15px; line-height: 1.5; color: #515154; }
.ag-before li i { color: #d97706; margin-top: 4px; width: 18px; text-align: center; flex: none; }
.ag-before strong { color: #1d1d1f; }

/* Mini steps (Ascend) */
.ag-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; text-align: left; }
.ag-mini div { background: #fff; border-radius: 18px; padding: 20px 20px 22px; }
.ag-mini b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ag-soft); color: var(--ag-deep); font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.ag-mini p { font-size: 15px; line-height: 1.5; color: #515154; }
.ag-mini strong { color: #1d1d1f; }

/* Done banner */
.ag-done { margin-top: 28px; padding: 40px 28px; border-radius: 26px; text-align: center; color: #fff; background: linear-gradient(135deg, #15803d, #22c55e); }
.ag-done .ico { font-size: 40px; margin-bottom: 10px; }
.ag-done h3 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.01em; }
.ag-done p { margin: 10px auto 0; max-width: 520px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.ag-done .btn-fill { margin-top: 22px; background: #fff; color: #15803d; }
.ag-done .btn-fill:hover { background: #eefaf2; }

/* FAQ (same as /integrations) */
.ag-faq { margin: 40px auto 0; max-width: 760px; text-align: left; }
.ag-faq h3.ttl { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 16px; text-align: center; }
.ag-faq details { background: #fff; border-radius: 18px; padding: 0 22px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.ag-faq details + details { margin-top: 10px; }
.ag-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.ag-faq summary::-webkit-details-marker { display: none; }
.ag-faq summary::after { content: "\2b"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 500; background: #f5f5f7; color: #1d1d1f; transition: transform .25s var(--ease); }
.ag-faq details[open] summary::after { transform: rotate(45deg); }
.ag-faq p { margin: -4px 0 20px; font-size: 15.5px; line-height: 1.55; color: #515154; letter-spacing: -.01em; }

/* Help (dark) */
.ag-help { background: #000; color: #f5f5f7; padding: 110px 22px 120px; }
.ag-help .eyebrow { color: #93c5fd; }
.ag-help h3 { color: #f5f5f7; }
.ag-help .lede { color: #a1a1a6; }
.ag-help .ctas { margin-top: 30px; }
.ag-help .btn-fill { background: #f5f5f7; color: #1d1d1f; }
.ag-help .btn-fill:hover { background: #fff; }
.ag-help .btn-line { color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(245, 245, 247, .7); }
.ag-help .btn-line:hover { background: #f5f5f7; color: #1d1d1f; }

/* Lightbox */
#lightbox { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#lightbox.is-open { display: flex; }
#lightbox img { max-width: 100%; max-height: 88vh; border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
#lightbox-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 26px; line-height: 1; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; }
#lightbox-close:hover { background: rgba(255, 255, 255, .28); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 734px) {
    .ag-hero { padding: 120px 16px 70px; }
    .ag-picker { padding: 22px 18px 20px; border-radius: 22px; }
    .sw-grid { grid-template-columns: repeat(2, 1fr); }
    .ag-panel { padding-left: 16px; padding-right: 16px; }
    .ag-step { padding: 20px 18px 22px; border-radius: 20px; }
    .ag-step .body { margin-left: 0; }
    .ag-creds, .ag-mini { grid-template-columns: 1fr; }
    .ag-progress { top: 76px; gap: 10px; padding: 8px 12px 8px 8px; }
    .ag-progress .badge span.sw-name { display: none; }
    .ag-help { padding: 80px 16px 90px; }
}
