/* Shopify analytics demo pages. Builds on dashboard-guide.css (dg-* classes). */
.sd-page { color: #0c3441; }

/* "how it's built" pipeline */
.sd-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 10px; counter-reset: sd; }
.sd-flow li { position: relative; list-style: none; padding: 26px 24px 24px; border: 1px solid #d7e8e4; background: #fff; counter-increment: sd; }
.sd-flow li:first-child { border-radius: 18px 0 0 18px; }
.sd-flow li:last-child { border-radius: 0 18px 18px 0; background: #0c3441; border-color: #0c3441; }
.sd-flow li + li { border-left: 0; }
.sd-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 30px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #16846e; color: #fff; font-weight: 800; font-size: .9rem; }
.sd-flow small { display: block; margin-bottom: 14px; color: #11846d; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sd-flow small::before { content: "0" counter(sd) " · "; }
.sd-flow h3 { margin: 0 0 8px; color: #0c3441; font-size: 1.2rem; font-weight: 800; }
.sd-flow p { margin: 0; color: #536c72; font-size: .94rem; line-height: 1.55; }
.sd-flow li:last-child small { color: #97dfc4; }
.sd-flow li:last-child h3 { color: #fff; }
.sd-flow li:last-child p { color: #c9dcdc; }
.sd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sd-chips span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: .8rem; font-weight: 700; }
.sd-note { margin-top: 26px; padding: 18px 22px; border-left: 4px solid #16846e; border-radius: 0 12px 12px 0; background: #f4f8fa; }
.sd-note p { margin: 0; font-size: 1rem; }

/* question list */
.sd-questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.sd-questions li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid #dbe6e8; color: #2f4b55; font-size: 1rem; line-height: 1.45; }
.sd-questions li span { color: #11846d; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }

/* is / isn't */
.sd-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sd-compare article { padding: 28px 26px; border: 1px solid #d7e8e4; border-radius: 20px; background: #fff; }
.sd-compare h3 { margin: 0 0 14px; color: #0c3441; font-size: 1.2rem; font-weight: 800; }
.sd-compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sd-compare li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: #2f4b55; font-size: .97rem; line-height: 1.5; }
.sd-compare li i { color: #16846e; }
.sd-compare .sd-no li i { color: #9aa9ad; }
.sd-compare .sd-other { background: #0c3441; border-color: #0c3441; }
.sd-compare .sd-other h3 { color: #fff; }
.sd-compare .sd-other p { color: #c9dcdc; font-size: .97rem; margin: 0 0 12px; }

/* steps */
.sd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.sd-steps li { padding: 26px; border-radius: 18px; background: #fff; border: 1px solid #d7e8e4; }
.sd-steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 10px; background: #e3f3ee; color: #0e6756; font-weight: 800; }
.sd-steps h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; color: #0c3441; }
.sd-steps p { margin: 0; font-size: .96rem; }

/* FAQ */
.sd-faq { max-width: 820px; border-top: 2px solid #0c3441; }
.sd-faq details { border-bottom: 1px solid #dbe6e8; }
.sd-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; color: #0c3441; font-size: 1.08rem; font-weight: 800; cursor: pointer; list-style: none; }
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after { content: "+"; color: #16846e; font-size: 1.4rem; line-height: 1; }
.sd-faq details[open] summary::after { content: "–"; }
.sd-faq details p { margin: 0 0 18px; max-width: 70ch; }

/* form states */
.sd-status { margin: 12px 0 0; color: #0e6756; font-weight: 700; }
.sd-status:empty { display: none; }
.sd-status.is-error { color: #8f3420; }
.sd-sent { padding: 6px 0 2px; }
.sd-sent i { display: block; margin-bottom: 10px; color: #16846e; font-size: 2.2rem; }
.sd-sent h3 { margin: 0 0 8px; color: #0c3441; font-size: 1.35rem; font-weight: 800; }
.sd-sent p { margin: 0 0 10px; color: #48616a; }
.sd-form-fallback { display: none; margin: 0; padding: 14px 16px; border-radius: 10px; background: #f4f8fa; color: #2f4b55; font-size: .95rem; }
.sd-form-fallback.is-visible { display: block; }
.sd-footnote { margin: 34px 0 0; color: #536c72; font-size: .98rem; }
.sd-footnote a { color: #0b755f; font-weight: 700; }

/* access page */
.sd-access-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: #eef6ef; }
.sd-access-hero h1 { margin: 0 0 14px; color: #0c3441; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.sd-access-main { padding: 40px 0 clamp(64px, 7vw, 100px); }
.sd-card { max-width: 860px; margin-bottom: 16px; padding: clamp(22px, 3vw, 34px); border: 1px solid #d7e8e4; border-radius: 20px; background: #fff; }
.sd-card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: #0c3441; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.sd-card h2 b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #e3f3ee; color: #0e6756; font-size: .95rem; flex: none; }
.sd-card p, .sd-card li { color: #48616a; font-size: 1rem; line-height: 1.65; }
.sd-link { overflow-wrap: anywhere; margin: 6px 0 14px; padding: 14px 16px; border: 1px dashed #b9d0cc; border-radius: 10px; background: #f4f8fa; color: #0c3441 !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem !important; }
.sd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dg-button--ghost { background: #fff; color: #0c3441; border: 1px solid #c6d8d9; }
.dg-button--ghost:hover, .dg-button--ghost:focus-visible { background: #f4f8fa; color: #0c3441; }
.sd-card ol { padding-left: 1.2em; margin: 0; }
.sd-card ol li { margin: 6px 0; }
.sd-try { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.sd-try li { margin: 0 !important; padding: 12px 14px; border-radius: 10px; background: #f4f8fa; }
.sd-card[hidden], [hidden] { display: none !important; }

@media (max-width: 900px) {
  .sd-flow { grid-template-columns: 1fr; }
  .sd-flow li, .sd-flow li:first-child, .sd-flow li:last-child { border-radius: 0; border-left: 1px solid #d7e8e4; }
  .sd-flow li:first-child { border-radius: 18px 18px 0 0; }
  .sd-flow li:last-child { border-radius: 0 0 18px 18px; }
  .sd-flow li + li { border-top: 0; }
  .sd-flow li:not(:last-child)::after { content: "↓"; right: auto; left: 24px; top: auto; bottom: -15px; }
  .sd-questions, .sd-compare, .sd-steps { grid-template-columns: 1fr; }
  .sd-questions li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- v2: business-outcome page ---- */
.sd-page .dg-section h2, .sd-page .dg-cta h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); letter-spacing: -.03em; }
.sd-page .dg-heading { margin-bottom: 30px; }
.sd-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 6vw, 84px); background: #eef6ef; }
.sd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sd-hero h1 { max-width: 560px; margin: 0 0 18px; color: #0c3441; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.sd-lede { max-width: 560px; margin: 0 0 26px; color: #46616a; font-size: 1.1rem; line-height: 1.7; }
.sd-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-proof { list-style: none; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid #cfe2dc; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sd-proof strong { display: block; color: #0c3441; font-size: 1.05rem; font-weight: 800; }
.sd-proof span { display: block; margin-top: 2px; color: #536c72; font-size: .88rem; line-height: 1.45; }

.sd-chat { position: relative; border-radius: 20px; background: #fff; border: 1px solid #d7e8e4; box-shadow: 0 24px 55px rgba(12, 52, 65, .14); overflow: hidden; }
.sd-chat-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #e3eeec; background: #f7fbfa; }
.sd-chat-top span { width: 9px; height: 9px; border-radius: 50%; background: #d3e2df; }
.sd-chat-top em { margin-left: 8px; color: #6b8188; font-size: .8rem; font-style: normal; font-weight: 700; }
.sd-chat-body { padding: 20px; display: grid; gap: 14px; }
.sd-q { justify-self: end; max-width: 85%; margin: 0; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: #0c3441; color: #fff; font-size: .97rem; line-height: 1.5; }
.sd-a { padding: 16px 18px; border-radius: 16px 16px 16px 4px; background: #f4f8fa; color: #2f4b55; font-size: .95rem; line-height: 1.55; }
.sd-a p { margin: 0 0 10px; }
.sd-a p:last-child { margin: 10px 0 0; }
.sd-a table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 10px; overflow: hidden; }
.sd-a th, .sd-a td { padding: 8px 10px; border-bottom: 1px solid #e3eeec; text-align: left; }
.sd-a th { color: #6b8188; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sd-a td:not(:first-child), .sd-a th:not(:first-child) { text-align: right; }
.sd-a .sd-low { color: #b4472f; font-weight: 800; }
.sd-chat-tag { position: absolute; right: 14px; bottom: 10px; color: #9aa9ad; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.sd-compare2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sd-compare2 article { padding: 28px; border-radius: 20px; border: 1px solid #d7e8e4; background: #fff; }
.sd-compare2 h3 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; color: #0c3441; }
.sd-compare2 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sd-compare2 li { position: relative; padding-left: 28px; color: #2f4b55; line-height: 1.5; }
.sd-compare2 li::before { position: absolute; left: 0; top: 0; font-family: "bootstrap-icons"; }
.sd-before li::before { content: "\F62A"; color: #9aa9ad; }
.sd-after { background: #0c3441 !important; border-color: #0c3441 !important; }
.sd-after h3 { color: #fff !important; }
.sd-after li { color: #d9e8e6 !important; }
.sd-after li::before { content: "\F26E"; color: #97dfc4; }

.sd-workflow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 3px solid #16846e; }
.sd-workflow li { position: relative; padding: 26px 24px 8px 0; }
.sd-workflow li + li { padding-left: 24px; border-left: 1px solid #d7e8e4; }
.sd-workflow li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: #16846e; box-shadow: 0 0 0 4px #f4f8fa; }
.sd-workflow li + li::before { left: 24px; }
.sd-when { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: #e3f3ee; color: #0e6756; font-size: .78rem; font-weight: 800; }
.sd-workflow h3 { margin: 0 0 8px; color: #0c3441; font-size: 1.15rem; font-weight: 800; }
.sd-workflow p { margin: 0; font-size: .97rem; }

.sd-try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sd-small-title { margin: 24px 0 10px !important; color: #0c3441 !important; font-size: .9rem !important; font-weight: 800; }
.sd-chips-light { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sd-chips-light li { padding: 8px 14px; border-radius: 999px; background: #f4f8fa; border: 1px solid #d7e8e4; color: #2f4b55; font-size: .92rem; }
.sd-fine { margin-top: 18px !important; color: #6b8188 !important; font-size: .9rem !important; }

.sd-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sd-use { position: relative; display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid #d7e8e4; border-radius: 20px; background: #fff; }
.sd-use > i { color: #15836d; font-size: 1.7rem; }
.sd-use h3 { margin: 16px 0 8px; color: #0c3441; font-size: 1.2rem; font-weight: 800; }
.sd-use p { margin: 0 0 18px; font-size: .97rem; }
.sd-use--live { border: 2px solid #16846e; }
.sd-badge { position: absolute; top: 20px; right: 20px; padding: 4px 10px; border-radius: 999px; background: #16846e; color: #fff; font-size: .72rem; font-weight: 800; }
.sd-use-link { margin: -6px 0 16px; color: #0b755f; font-size: .92rem; font-weight: 700; }
.sd-use-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 10px; background: #f4f8fa; color: #0c3441; font-weight: 800; font-size: .94rem; text-decoration: none; border: 1px solid #d7e8e4; transition: background .15s, color .15s; }
.sd-use-btn:hover, .sd-use-btn:focus-visible { background: #16846e; border-color: #16846e; color: #fff; }

/* section on other pages linking here */
.sd-promo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: #0c3441; color: #fff; }
.sd-promo h2 { color: #fff !important; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.sd-promo p { color: #c9dcdc; margin: 0 0 20px; font-size: 1.04rem; line-height: 1.65; }
.sd-promo .dd-eyebrow, .sd-promo .sd-eyebrow { display: block; margin-bottom: 12px; color: #97dfc4; font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sd-promo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sd-promo li { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; font-size: .97rem; }
.sd-promo li i { color: #97dfc4; margin-right: 8px; }
.sd-promo .dg-button { background: #97dfc4; color: #0c3441; }
.sd-promo .dg-button:hover { background: #fff; color: #0c3441; }

@media (max-width: 900px) {
  .sd-hero-grid, .sd-try-grid, .sd-compare2, .sd-promo { grid-template-columns: 1fr; }
  .sd-uses { grid-template-columns: 1fr; }
  .sd-workflow { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid #16846e; }
  .sd-workflow li, .sd-workflow li + li { padding: 4px 0 22px 24px; border-left: 0; }
  .sd-workflow li::before, .sd-workflow li + li::before { top: 8px; left: -9px; }
  .sd-proof { grid-template-columns: 1fr; gap: 12px; }
}
.sd-hs-frame { min-height: 360px; }
.sd-promo-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px; background: #97dfc4; color: #0c3441 !important; font-weight: 800; text-decoration: none; }
.sd-promo-btn:hover, .sd-promo-btn:focus-visible { background: #fff; }
