/* CareNotes /integrations : detail page styles layered on sample3.css (same system as /morning-huddle). */

:root { --in: #2563eb; --in-deep: #1d4ed8; --in-soft: #dbe7ff; }

/* ---------------- 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; }
h3 .tag, h4 .tag { margin-left: 10px; position: relative; top: -3px; }
p .tag { font-size: 9.5px; padding: 4px 7px; position: relative; top: -2px; margin-left: 4px; }
.in-link .tag-premium { background: #2a2a2e; }

/* ---------------- HERO ---------------- */
.in-hero {
    margin-top: -76px; padding: 150px 22px 0; text-align: center; overflow: hidden;
    background: linear-gradient(180deg, #f7f9ff 0%, #eaf0ff 50%, #dbe6ff 100%);
    color: #1d1d1f;
}
.in-hero .eyebrow { color: var(--in-deep); }
.in-hero h1 {
    margin: 10px auto 0; max-width: 900px;
    font-size: clamp(40px, 6vw, 76px); font-weight: 700; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance;
}
.in-hero .lede {
    margin: 18px auto 0; max-width: 660px; font-size: clamp(18px, 2vw, 23px); line-height: 1.35;
    color: #4b5675; letter-spacing: -.01em; text-wrap: balance;
}
.in-hero .ctas { margin-top: 26px; }
.in-hero .btn-fill { background: #1d1d1f; color: #fff; }
.in-hero .btn-fill:hover { background: var(--in); }
.in-hero .btn-line { color: #1d1d1f; box-shadow: inset 0 0 0 1px #1d1d1f; }
.in-hero .btn-line:hover { background: #1d1d1f; color: #fff; }
.in-hero .replay { background: rgba(0, 0, 0, .08); color: #1d1d1f; }
.in-hero .vis-sync { margin-top: 40px; }
.in-hero .sync-lines path { stroke: rgba(29, 78, 216, .3); }

/* ---------------- PHOTO ---------------- */
.in-photo { background: #000; }
.in-photo figure { position: relative; margin: 0; max-height: 720px; overflow: hidden; }
.in-photo img { width: 100%; height: 100%; max-height: 720px; object-fit: cover; display: block; }
.in-photo figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 22px 34px; text-align: center; color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .6) 100%);
}
.in-photo figcaption strong { display: block; font-size: clamp(22px, 2.8vw, 34px); font-weight: 600; letter-spacing: -.01em; }
.in-photo figcaption span { display: block; margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .8); }

/* ---------------- SHARED ---------------- */
.detail .eyebrow { color: var(--in-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, .in-card p a, .in-copy p a, .in-copy li a, .in-faq p a, .in-more a { color: var(--in); }
.detail .lede a:hover, .in-card p a:hover, .in-copy p a:hover, .in-copy li a:hover, .in-faq p a:hover, .in-more a:hover { text-decoration: underline; }

/* ---------------- WHAT SYNCS ---------------- */
.in-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; text-align: left; }
.in-card { position: relative; background: #f5f5f7; border-radius: 22px; padding: 26px 22px 28px; }
.detail-alt .in-card { background: #fff; }
.in-card .ico {
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; font-size: 18px;
    background: linear-gradient(135deg, var(--in), #60a5fa); color: #fff;
}
.in-card .when { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--in-deep); }
.in-card h4 { margin-top: 6px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.in-card p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: #6e6e73; letter-spacing: -.01em; }

/* ---------------- BACK INTO THE CHART ---------------- */
.in-split { display: grid; grid-template-columns: 1fr .9fr; gap: 44px; align-items: center; margin-top: 44px; text-align: left; }
.in-copy h4 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.in-copy p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: #515154; letter-spacing: -.01em; }
.in-copy ul { margin: 16px 0 0; padding: 0; list-style: none; }
.in-copy li { position: relative; padding-left: 26px; margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: #515154; }
.in-copy li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; font-size: 12px; color: #30a14e; }
.in-shot { margin: 0; }
.in-shot img {
    display: block; width: 100%; height: auto; border-radius: 22px;
    box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05);
}
.in-shot figcaption { margin-top: 10px; font-size: 13px; color: #6e6e73; text-align: center; }

/* ---------------- SUPPORTED SYSTEMS ---------------- */
.in-systems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; text-align: left; }
.in-sys {
    display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 20px; border-radius: 20px; background: #f5f5f7; color: inherit; text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.in-sys:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .35); }
.in-sys .logo { height: 40px; display: flex; align-items: center; }
.in-sys .logo img { max-height: 34px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.in-sys .logo.text { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.in-sys .logo.text small { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 10px; background: #1d1d1f; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.in-sys .name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.in-sys .caps { display: flex; flex-wrap: wrap; gap: 6px; }
.in-sys .cap { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 980px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07); color: #424245; }
.in-sys .cap.soon { color: #86868b; }
.in-sys .go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--in); }
.in-sys-ask { background: #eef3ff; }
.in-sys-ask .logo.text small { background: var(--in); }
.in-wide { max-width: 1120px; }
.in-more { margin: 30px auto 0; max-width: 760px; font-size: 15px; line-height: 1.55; color: #515154; }
.in-more strong { color: #1d1d1f; }

/* ---------------- HOW LINKING WORKS (DARK) ---------------- */
.in-link { background: #000; color: #f5f5f7; padding: 120px 22px 130px; }
.in-link .eyebrow { color: #93c5fd; }
.in-link h3 { color: #f5f5f7; }
.in-link .lede { color: #a1a1a6; }
.in-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px auto 0; text-align: left; }
.in-step { border-radius: 22px; padding: 26px 24px 28px; background: #1c1c1e; }
.in-step .num {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--in), #60a5fa);
}
.in-step h4 { margin-top: 16px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.in-step p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: #a1a1a6; letter-spacing: -.01em; }
.in-step p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.in-link .fine { color: #86868b; }
.in-link .fine a { color: #d1d1d6; }
.in-link .ctas { margin-top: 36px; }
.in-link .btn-fill { background: #f5f5f7; color: #1d1d1f; }
.in-link .btn-fill:hover { background: #fff; }
.in-link .btn-line { color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(245, 245, 247, .7); }
.in-link .btn-line:hover { background: #f5f5f7; color: #1d1d1f; }

/* ---------------- FAQ ---------------- */
.in-faq { margin: 40px auto 0; max-width: 760px; text-align: left; }
.in-faq details { background: #fff; border-radius: 18px; padding: 0 22px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.in-faq details + details { margin-top: 10px; }
.in-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.in-faq summary::-webkit-details-marker { display: none; }
.in-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); }
.in-faq details[open] summary::after { transform: rotate(45deg); }
.in-faq p { margin: -4px 0 20px; font-size: 15.5px; line-height: 1.55; color: #515154; letter-spacing: -.01em; max-width: 640px; }

/* ---------------- CLOSER ---------------- */
.in-closer .btn-fill { background: #1d1d1f; color: #fff; }
.in-closer .btn-fill:hover { background: var(--in); }
.in-closer .btn-line { color: #1d1d1f; box-shadow: inset 0 0 0 1px #1d1d1f; }
.in-closer .btn-line:hover { background: #1d1d1f; color: #fff; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1068px) {
    .in-cards, .in-systems { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 734px) {
    .in-hero { padding-top: 120px; }
    .in-cards, .in-systems, .in-steps { grid-template-columns: 1fr; }
    .in-split { grid-template-columns: 1fr; gap: 28px; }
    .in-photo img { min-height: 420px; }
    .in-photo figcaption { padding-top: 80px; }
    .in-photo figcaption strong { font-size: 22px; }
    .in-link { padding: 90px 22px 100px; }
    h3 .tag { display: inline-flex; margin: 10px 0 0; top: 0; }
}
