/* getschedii.com showcase — <sg-gallery> + <sg-showcase>. Reads the home page's animated
   tokens (--ink, --ink2, --muted, --hair, --glass, --acc) with dark fallbacks for the
   static feature pages. */
sg-gallery, sg-showcase { display: block; }

/* ── gallery ─────────────────────────────────────────────────────────────── */
.sg-g { --sg-acc: var(--acc, #5dd5e0); width: 100%; }
.sg-frame {
  position: relative; border-radius: 14px; overflow: hidden; background: #0b1220;
  border: 1px solid var(--hair, rgba(255,255,255,0.1));
  box-shadow: 0 40px 90px rgba(0,0,0,0.45), 0 0 0 1px rgba(6,182,212,0.10), 0 0 60px rgba(6,182,212,0.10);
  transform: perspective(1400px) rotateX(0) rotateY(0); transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s;
}
.sg-g:hover .sg-frame { transform: perspective(1400px) rotateX(1.5deg) rotateY(-2.5deg) translateY(-4px); box-shadow: 0 50px 110px rgba(0,0,0,0.5), 0 0 0 1px rgba(6,182,212,0.25), 0 0 80px rgba(6,182,212,0.18); }
.sg-row--flip .sg-g:hover .sg-frame { transform: perspective(1400px) rotateX(1.5deg) rotateY(2.5deg) translateY(-4px); }
.sg-chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: rgba(15,23,42,0.96); border-bottom: 1px solid rgba(255,255,255,0.06); }
.sg-chrome i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.sg-chrome i:nth-child(1) { background: #f87171aa; } .sg-chrome i:nth-child(2) { background: #fbbf24aa; } .sg-chrome i:nth-child(3) { background: #34d399aa; }
.sg-url { margin-left: 10px; flex: 1; min-width: 0; height: 18px; line-height: 18px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,0.05); color: #94a3b8; font: 11px/18px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0f172a; }
.sg-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.035); transition: opacity .8s ease, transform 5.5s cubic-bezier(.2,.8,.2,1); }
.sg-stage img.is-on { opacity: 1; transform: scale(1); }
.sg-under { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.sg-tabs { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; }
/* the gallery is empty until showcase.js (deferred) fills it: hold its frame + tab row so
   nothing below it moves (CLS 0.09-0.14 on feature pages, audit 2026-10-19) */
sg-gallery:not(.sg-g) { display: block; width: 100%; aspect-ratio: 16 / 10; padding-top: 30px; margin-bottom: 130px; }
.sg-tab {
  position: relative; overflow: hidden; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted, #94a3b8); background: var(--glass, rgba(255,255,255,0.05)); border: 1px solid var(--hair, rgba(255,255,255,0.1));
  border-radius: 999px; padding: 8px 12px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.sg-tab:hover { color: var(--ink, #f8fafc); }
.sg-tab.is-on { color: var(--sg-acc); border-color: rgba(6,182,212,0.55); background: rgba(6,182,212,0.08); }
.sg-tab.is-solo { cursor: default; }
.sg-tab::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, #06b6d4, #5dd5e0); }
.sg-g.is-playing .sg-tab.is-on::after { animation: sgProgress 4.2s linear forwards; }
.sg-g.is-paused .sg-tab.is-on::after { animation-play-state: paused; }
@keyframes sgProgress { from { width: 0 } to { width: 100% } }

/* ── plan chip ───────────────────────────────────────────────────────────── */
.sg-planwrap { opacity: 0; transform: translateY(4px); }
.sg-planwrap.is-in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.sg-plan { position: relative; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13px; line-height: 1.3; color: var(--ink2, #cbd5e1); background: var(--glass, rgba(255,255,255,0.05)); }
.sg-plan--paid::before { /* gradient hairline: cyan → violet */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, #06b6d4, #8b5cf6 60%, #06b6d4);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.sg-plan__badge { font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--acc, #5dd5e0); background: rgba(6,182,212,0.13); border-radius: 999px; padding: 6px 10px; }
.sg-plan__price { color: var(--ink, #f8fafc); }
.sg-plan__price b { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.sg-plan__alt { color: var(--muted, #94a3b8); font-size: 12px; }
.sg-plan--pro::before { background: linear-gradient(120deg, #8b5cf6, #06b6d4 60%, #8b5cf6); }
.sg-plan--agency::before { background: linear-gradient(120deg, #f59e0b, #8b5cf6 55%, #06b6d4); }
.sg-plan--pro .sg-plan__badge { color: #c4b5fd; background: rgba(139,92,246,0.18); }
.sg-plan--agency .sg-plan__badge { color: #fcd34d; background: rgba(245,158,11,0.16); }
.sg-plan__notes { list-style: none; margin: 4px 0 0; padding: 0 0 0 6px; display: flex; flex-direction: column; gap: 4px; }
.sg-plan__notes li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted, #94a3b8); }
.sg-plan__notes li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--acc, #5dd5e0); opacity: .7; }
.sg-keylink { color: var(--acc, #5dd5e0); font-weight: 600; text-decoration: none; }
.sg-plan--mini { padding: 3px; font-size: 12px; vertical-align: middle; }

/* ── home showcase ───────────────────────────────────────────────────────── */
.sg-show { padding: clamp(72px, 10vh, 128px) clamp(20px, 6vw, 96px); border-top: 1px solid var(--hair, rgba(255,255,255,0.1)); color: var(--ink, #f8fafc); }
.sg-head { max-width: 1200px; margin: 0 auto clamp(48px, 7vh, 88px); display: flex; flex-direction: column; gap: 16px; }
.sg-kicker { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--acc, #5dd5e0); }
.sg-head h2 { margin: 0; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 850; }
.sg-head h2 em, .sg-page h3 em { font-style: italic; color: var(--acc, #5dd5e0); text-shadow: 0 0 24px var(--accGlow, rgba(6,182,212,0.35)); padding-right: .05em; }
.sg-lede { margin: 0; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ink2, #cbd5e1); }
.sg-key { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: var(--muted, #94a3b8); }
.sg-key__item { display: inline-flex; align-items: center; gap: 8px; }
.sg-rows { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(72px, 12vh, 140px); }
.sg-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.sg-row.is-in { opacity: 1; transform: none; }
.sg-row--flip .sg-copy { order: 2; }
.sg-copy { display: flex; flex-direction: column; gap: 26px; }
.sg-eyebrow { display: flex; align-items: center; gap: 12px; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--acc, #5dd5e0); }
.sg-eyebrow i { width: 28px; height: 1px; background: var(--accent-ring, rgba(6,182,212,0.5)); }
.sg-count { color: var(--ink, #f8fafc); font-weight: 800; } .sg-count span { color: var(--muted, #94a3b8); font-weight: 600; }
.sg-page { display: flex; flex-direction: column; gap: 10px; }
.sg-page + .sg-page { padding-top: 22px; border-top: 1px solid var(--hair, rgba(255,255,255,0.1)); }
.sg-page h3 { margin: 0; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 850; text-wrap: balance; }
.sg-page h3 a { color: var(--ink, #f8fafc); text-decoration: none; }
.sg-page p { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.55; color: var(--ink2, #cbd5e1); }
.sg-open { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--acc, #5dd5e0); text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hair, rgba(255,255,255,0.1)); background: var(--glass, rgba(255,255,255,0.05)); transition: transform .2s, border-color .2s; }
.sg-open:hover { transform: translateX(3px); border-color: rgba(6,182,212,0.5); }

@media (max-width: 640px) {
  /* pill rows stay on one line: a swipeable strip, no scrollbar, an edge fade */
  .sg-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .sg-tabs::-webkit-scrollbar { display: none; }
  .sg-tab { flex: none; white-space: nowrap; }
}
@media (max-width: 899px) {
  .sg-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sg-row--flip .sg-copy { order: 0; }
  .sg-copy { gap: 18px; }
  .sg-g:hover .sg-frame, .sg-row--flip .sg-g:hover .sg-frame { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-row, .sg-stage img, .sg-frame, .sg-planwrap { transition: none !important; transform: none !important; }
  .sg-tab::after { animation: none !important; }
}

/* ── home "how it connects" (<sg-flow>) ──────────────────────────────────── */
sg-flow { display: block; }
sg-flow:not(.sg-flow) { min-height: 760px; } /* hold the space until showcase.js fills it */
.sg-flow { padding: clamp(72px, 10vh, 128px) clamp(20px, 6vw, 96px); border-top: 1px solid var(--hair, rgba(255,255,255,0.1)); color: var(--ink, #f8fafc); box-sizing: border-box; }
.sg-flow__head { max-width: 1200px; margin: 0 auto clamp(36px, 5vh, 56px); display: flex; flex-direction: column; gap: 14px; }
.sg-flow__kicker { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--acc, #5dd5e0); }
.sg-flow__head h2 { margin: 0; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 850; text-wrap: balance; }
.sg-flow__head h2 em { font-style: italic; color: var(--acc, #5dd5e0); text-shadow: 0 0 24px var(--accGlow, rgba(6,182,212,0.35)); padding-right: .05em; }
.sg-flow__head p { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--ink2, #cbd5e1); }
.sg-flow__body { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; }
.sg-flow__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sg-flow__steps li { display: block; }
.sg-flow .sg-flow__step {
  width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; align-items: baseline; text-align: left;
  padding: 14px 16px 16px; border-radius: 14px; font: inherit; letter-spacing: normal; text-transform: none;
  color: var(--muted, #94a3b8); background: transparent; border: 1px solid transparent;
}
.sg-flow .sg-flow__step:hover { color: var(--ink, #f8fafc); background: var(--glass, rgba(255,255,255,0.04)); }
.sg-flow .sg-flow__step.is-on { color: var(--ink, #f8fafc); background: var(--glass2, rgba(255,255,255,0.05)); border-color: rgba(6,182,212,0.45); box-shadow: 0 10px 30px rgba(6,182,212,0.08); }
.sg-flow__n { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--acc, #5dd5e0); }
.sg-flow__verb { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; color: inherit; display: inline-flex; align-items: center; gap: 8px; }
.sg-flow__plan { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: #8b5cf6; background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.4); padding: 3px 6px; border-radius: 6px; }
.sg-flow__line { grid-column: 2; font-size: 14.5px; line-height: 1.5; color: var(--ink2, #cbd5e1); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s ease, opacity .35s ease, margin .45s ease; }
.sg-flow__step.is-on .sg-flow__line { max-height: 6em; opacity: 1; margin-top: 4px; }
.sg-flow.is-playing .sg-flow__step.is-on::after { animation: sgProgress 4.2s linear forwards; }
.sg-flow.is-paused .sg-flow__step.is-on::after { animation-play-state: paused; }
.sg-flow__caption { display: none; margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2, #cbd5e1); }
@media (max-width: 899px) {
  .sg-flow__body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* a swipe strip of steps above the screen; the active step's line shows under the screen */
  .sg-flow__steps { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 8px; mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .sg-flow__steps::-webkit-scrollbar { display: none; }
  .sg-flow__steps li { flex: none; }
  .sg-flow .sg-flow__step { width: auto; grid-template-columns: auto auto; padding: 10px 14px; border-color: var(--hair, rgba(255,255,255,0.1)); }
  .sg-flow__verb { font-size: 15px; }
  .sg-flow__line { display: none; }
  .sg-flow__caption { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-flow__line { transition: none !important; }
}
