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

:root { --sg: #38cc75; --sg-deep: #15803d; --sg-soft: #c9f2d9; --sg-ink: #0f3d24; }

/* ---------------- TAGS (Free / Premium) ---------------- */
.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-free { background: rgba(0, 0, 0, .06); color: #424245; }
.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; }
.mh-print .tag-free, .sg-dark .tag-free { background: rgba(255, 255, 255, .12); color: #d1d1d6; }
.sg-dark .tag-premium { background: #2a2a2e; }
h3 .tag, h4 .tag { margin-left: 10px; position: relative; top: -3px; }

/* ---------------- HERO ---------------- */
.sg-hero {
    margin-top: -76px; padding: 150px 22px 0; text-align: center; overflow: hidden;
    background: linear-gradient(180deg, #f3fbf6 0%, #dff5e8 50%, #bfe8d0 100%);
    color: #1d1d1f;
}
.sg-hero .eyebrow, .detail .eyebrow { color: var(--sg-deep); }
.sg-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;
}
.sg-hero .lede {
    margin: 18px auto 0; max-width: 660px; font-size: clamp(18px, 2vw, 23px); line-height: 1.35;
    color: #2f5a40; letter-spacing: -.01em; text-wrap: balance;
}
.sg-hero .ctas { margin-top: 26px; }
.sg-hero .btn-fill { background: #1d1d1f; color: #fff; }
.sg-hero .btn-fill:hover { background: var(--sg-deep); }
.sg-hero .btn-line { color: #1d1d1f; box-shadow: inset 0 0 0 1px #1d1d1f; }
.sg-hero .btn-line:hover { background: #1d1d1f; color: #fff; }
.sg-legend { margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 14px; color: #2f5a40; }
.sg-legend span { display: inline-flex; align-items: center; gap: 8px; }

.sg-stage { position: relative; height: 662px; margin: 44px auto 0; width: min(1000px, 100%); }
.sg-stage .glow {
    position: absolute; left: 50%; bottom: -10%; width: 900px; height: 600px; transform: translateX(-50%);
    background: radial-gradient(55% 60% at 50% 100%, rgba(56, 204, 117, .45) 0, rgba(56, 204, 117, .16) 40%, rgba(56, 204, 117, 0) 72%);
    opacity: 0; transition: opacity 1.2s var(--ease);
}
.is-play .sg-stage .glow { opacity: 1; }
.sg-stage .phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.sg-stage .phone .screen img { object-position: top; }

/* Checklist card (left of phone) */
.start-card {
    position: absolute; left: calc(50% - 480px); top: 90px; width: 300px;
    padding: 18px 18px 14px; border-radius: 22px; color: #1d1d1f; text-align: left;
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 40px 80px -40px rgba(10, 80, 40, .45), inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(0, 0, 0, .04);
}
.start-card .sc-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--sg-deep); }
.start-card .sc-sub { margin-top: 4px; font-size: 12px; color: #5f6f66; }
.sc-item { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; font-weight: 500; color: #3a3a3c; }
.sc-item .box {
    width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
    box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18); background: #fff; color: #fff; transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.sc-item .box svg { width: 12px; height: 12px; opacity: 0; transform: scale(.6); transition: opacity .25s var(--ease), transform .35s var(--ease); }
.sc-item .box svg path { stroke-dasharray: 22; stroke-dashoffset: 22; }
.sc-item.on .box { background: var(--sg); box-shadow: inset 0 0 0 1.5px var(--sg); }
.sc-item.on .box svg { opacity: 1; transform: none; }
.sc-item.on .box svg path { animation: draw .4s var(--ease) forwards; }
.sc-item.on span { color: #86868b; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.sc-item .tag { margin-left: auto; font-size: 9px; padding: 4px 7px; }

/* Floating chips (right of phone) */
.sg-stage .float-chip { z-index: 2; opacity: 0; transform: translateY(10px) scale(.9); }
.chip-shared { top: 24%; right: calc(50% - 165px - 180px); }
.chip-linked { top: 38%; right: calc(50% - 165px - 150px); }
.chip-shared .chip-ic { background: linear-gradient(135deg, #2563eb, var(--sg)); }
.chip-linked .chip-ic { background: var(--sg-deep); }
.is-play .chip-shared { animation: chipPop .7s var(--ease) 2.4s forwards; }
.is-play .chip-linked { animation: chipPop .7s var(--ease) 3.1s forwards; }
.sg-hero .replay { background: rgba(0, 0, 0, .08); color: #1d1d1f; }

/* ---------------- START HERE (4 steps) ---------------- */
.sg-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; text-align: left; }
.sg-step { position: relative; display: flex; flex-direction: column; background: #f5f5f7; border-radius: 22px; padding: 24px 22px 22px; text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.sg-step:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(0, 0, 0, .35); }
.sg-step .num {
    width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--sg-soft), var(--sg)); color: var(--sg-ink); font-weight: 700; font-size: 17px;
}
.sg-step h4 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.sg-step p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: #6e6e73; letter-spacing: -.01em; flex: 1; }
.sg-step .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sg-step .go { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--sg-deep); }
.sg-step .go::after { content: " \2192"; }

/* ---------------- TWO-COLUMN STEP SECTIONS ---------------- */
.sg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 40px; text-align: left; }
.sg-two.flip .sg-copy { order: 2; }
.sg-two.flip .sg-shots { order: 1; }
.sg-copy h4 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.sg-copy > p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: #424245; letter-spacing: -.01em; }
.sg-ol { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: step; }
.sg-ol li { position: relative; padding-left: 40px; margin-top: 14px; font-size: 16px; line-height: 1.5; color: #424245; letter-spacing: -.01em; counter-increment: step; }
.sg-ol li::before {
    content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--sg-ink); background: var(--sg-soft);
}
.sg-ol li strong { color: #1d1d1f; }
.sg-ol .tag { font-size: 9.5px; padding: 4px 7px; position: relative; top: -2px; margin-left: 4px; }

.sg-callout {
    margin-top: 22px; padding: 14px 16px 14px 18px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; color: #1d1d1f;
    background: #eefaf2; box-shadow: inset 4px 0 0 var(--sg);
}
.sg-callout b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; color: var(--sg-deep); }
.sg-callout.warn { background: #fff6e8; box-shadow: inset 4px 0 0 #f7a54a; }
.sg-callout.warn b { color: #b45309; }
.sg-callout.blue { background: #eaf1ff; box-shadow: inset 4px 0 0 #2563eb; }
.sg-callout.blue b { color: #1d4ed8; }
.sg-callout a { color: var(--blue); }
.sg-callout a:hover { text-decoration: underline; }

/* Screenshot cards (framed app captures) */
.sg-shots { display: grid; gap: 18px; }
.sg-shots.pair { grid-template-columns: 1fr 1fr; align-items: start; }
.shot { margin: 0; }
.sg-shots:not(.pair) > .shot { max-width: 440px; margin: 0 auto; }
.shot img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .05); }
.shot figcaption { margin-top: 10px; font-size: 13px; color: #6e6e73; text-align: center; }
.sg-phones { display: flex; justify-content: center; gap: 28px; align-items: flex-start; }
.sg-phones .phone { --pw: 236px; flex: 0 0 auto; }
.sg-phones figure { margin: 0; text-align: center; }
.sg-phones figcaption { margin-top: 12px; font-size: 13px; color: #6e6e73; }
.sg-dark .sg-phones figcaption, .sg-dark .shot figcaption { color: #a1a1a6; }

/* Dark section (templates) */
.sg-dark { background: #1d1d1f; color: #f5f5f7; }
.sg-dark .eyebrow { color: var(--sg); }
.sg-dark h3, .sg-dark .sg-copy h4 { color: #f5f5f7; }
.sg-dark .sg-copy > p, .sg-dark .sg-ol li { color: #c7c7cc; }
.sg-dark .sg-ol li strong { color: #fff; }
.sg-dark .sg-ol li::before { background: rgba(56, 204, 117, .18); color: var(--sg); }
.sg-dark .sg-callout { background: #2a2a2e; color: #e5e5ea; }
.sg-dark .sg-callout b { color: var(--sg); }
.sg-dark .fine { color: #a1a1a6; }

/* Unlocks pills */
.sg-unlocks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sg-unlocks a {
    display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 980px;
    background: #fff; color: #1d1d1f; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); text-decoration: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.sg-unlocks a:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); transform: translateY(-1px); }
.sg-unlocks a .tag { font-size: 9px; padding: 3px 6px; }

/* ---------------- MAP (know your way around) ---------------- */
.sg-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 44px; text-align: left; }
.sg-map .card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 20px 22px; }
.sg-map .card p { flex: 1; }
.sg-map .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; background: #fff; color: var(--sg-deep); font-size: 17px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.detail-alt .sg-map .ico { background: #f5f5f7; }
.sg-map h4 { font-size: 18px; }
.sg-map p { font-size: 14px; }
.sg-map .tag { margin-top: 12px; font-size: 9.5px; padding: 4px 7px; }

/* ---------------- QUICK ANSWERS ---------------- */
.sg-qa { margin: 40px auto 0; max-width: 820px; text-align: left; }
.sg-qa details { border-top: 1px solid rgba(0, 0, 0, .1); }
.sg-qa details:last-child { border-bottom: 1px solid rgba(0, 0, 0, .1); }
.sg-qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 4px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.sg-qa summary::-webkit-details-marker { display: none; }
.sg-qa summary::after { content: "+"; margin-left: auto; font-size: 24px; font-weight: 300; color: #86868b; transition: transform .3s var(--ease); }
.sg-qa details[open] summary::after { transform: rotate(45deg); }
.sg-qa .ans { padding: 0 4px 22px 4px; font-size: 16px; line-height: 1.55; color: #424245; letter-spacing: -.01em; max-width: 720px; }
.sg-qa .ans a { color: var(--blue); }
.sg-qa .ans a:hover { text-decoration: underline; }
.sg-qa .tag { font-size: 9.5px; padding: 4px 7px; }

/* ---------------- CLOSING ---------------- */
.sg-lede { margin: 14px auto 0; max-width: 620px; font-size: 17px; line-height: 1.47; color: #6e6e73; letter-spacing: -.01em; }
#next .btn-fill { background: #1d1d1f; color: #fff; }
#next .btn-fill:hover { background: var(--sg-deep); }
#next .btn-line { color: #1d1d1f; box-shadow: inset 0 0 0 1px #1d1d1f; }
#next .btn-line:hover { background: #1d1d1f; color: #fff; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1068px) {
    .start-card { left: 12px; width: 260px; }
    .chip-shared, .chip-linked { right: 12px; }
    .sg-path { grid-template-columns: 1fr 1fr; }
    .sg-map { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 734px) {
    .sg-hero { padding-top: 120px; }
    .sg-stage { height: 518px; }
    .start-card { display: none; }
    .chip-linked { display: none; }
    .chip-shared { top: 18%; right: 6px; }
    .sg-path, .sg-map { grid-template-columns: 1fr; }
    .sg-two { grid-template-columns: 1fr; gap: 28px; }
    .sg-two.flip .sg-copy { order: 1; }
    .sg-two.flip .sg-shots { order: 2; }
    .sg-shots.pair { grid-template-columns: 1fr; }
    .sg-phones { gap: 14px; }
    .sg-phones .phone { --pw: 150px; }
    .sg-phones figcaption { font-size: 12px; }
    h3 .tag { display: inline-flex; margin: 10px 0 0; top: 0; }
    .sg-qa summary { font-size: 16px; }
}
