/* ══════════════════════════════════════
   v1.29.0 — Digital Signage section (RingCast Signage; renamed v1.35.0), EN + /es/
   Builds on css/style.css variables and components.
   ══════════════════════════════════════ */

.sg-page { --sg-max: 1240px; }

/* Section sub-nav + language switch */
.sg-subnav { position: sticky; top: 68px; z-index: 150; background: rgba(13,20,32,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.sg-subnav-in { max-width: var(--sg-max); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 22px; min-height: 50px; flex-wrap: wrap; }
.sg-subnav-name { font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green); white-space: nowrap; }
.sg-subnav-links { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.sg-subnav-links a { color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 500; padding: 14px 12px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.sg-subnav-links a:hover { color: var(--text); }
.sg-subnav-links a.on { color: var(--text); border-bottom-color: var(--accent); }
.sg-lang { display: flex; gap: 2px; font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .08em; border: 1px solid var(--border); border-radius: 20px; padding: 3px; }
.sg-lang span, .sg-lang a { padding: 4px 11px; border-radius: 16px; text-decoration: none; }
.sg-lang span.on { background: rgba(0,198,255,.14); color: var(--accent); }
.sg-lang a { color: var(--muted); }
.sg-lang a:hover { color: var(--text); }

/* Hero */
.sg-hero { position: relative; max-width: var(--sg-max); margin: 0 auto; padding: 64px 40px 56px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.sg-hero::before { content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: min(760px, 100%); height: 480px; background: radial-gradient(ellipse at center, rgba(0,229,160,.12) 0%, transparent 70%); pointer-events: none; z-index: -1; }
.sg-hero-slim { grid-template-columns: minmax(0, 1fr); padding-bottom: 36px; }
.sg-hero-slim .sg-hero-text { max-width: 860px; }
.sg-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .98; letter-spacing: .03em; margin-bottom: 18px; }
.sg-hero h1 .hl { background: linear-gradient(90deg, var(--green), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sg-lede { color: var(--muted); font-size: 1.06rem; line-height: 1.75; max-width: 600px; margin-bottom: 30px; }
.sg-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.sg-crumbs { font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sg-crumbs a { color: var(--muted); text-decoration: none; }
.sg-crumbs a:hover { color: var(--accent); }
.sg-crumbs i { font-style: normal; opacity: .5; }
.sg-crumbs span { color: var(--text); }

/* Screenshots */
.sg-shot { margin: 0; }
.sg-shot a { display: block; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface); box-shadow: 0 18px 50px rgba(0,0,0,.45); transition: border-color .2s, transform .2s; }
.sg-shot a:hover { border-color: rgba(0,198,255,.5); transform: translateY(-2px); }
.sg-shot img { display: block; width: 100%; height: auto; }
.sg-shot figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.sg-hero-shot a { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,198,255,.08); }

/* Overview */
.sg-prose { max-width: 820px; color: var(--text); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.sg-muted { color: var(--muted); }
.sg-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.sg-value p { margin-bottom: 0; }
.sg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sg-steps { list-style: none; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.sg-steps .step { display: flex; gap: 20px; align-items: center; padding: 20px 22px; margin: -1px 0 0 0; }
.sg-steps .step-num { margin: 0; font-size: 2.4rem; color: var(--accent); opacity: .7; }
.sg-steps .step p { font-size: .98rem; color: var(--text); }
.sg-more { margin-top: 18px; }
.sg-more a, .sg-note a { color: var(--accent); text-decoration: none; }
.sg-more a:hover, .sg-note a:hover { text-decoration: underline; }
.sg-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.sg-note { color: var(--muted); font-size: .84rem; margin-top: 22px; line-height: 1.6; }

/* Features */
.sg-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sg-toc a { font-size: .78rem; color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 20px; padding: 5px 13px; transition: color .2s, border-color .2s; }
.sg-toc a:hover { color: var(--accent); border-color: var(--accent); }
.sg-feats { padding-top: 24px; }
.sg-feat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border); scroll-margin-top: 130px; }
.sg-feat:first-child { border-top: none; padding-top: 16px; }
.sg-feat.sg-flip .sg-feat-text { order: 2; }
.sg-feat h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: .04em; line-height: 1.05; margin-bottom: 14px; }
.sg-feat p { color: var(--muted); font-size: .98rem; line-height: 1.75; }
.sg-feat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }

/* Get started */
.sg-warn { border: 1px solid rgba(255,107,43,.5); background: rgba(255,107,43,.08); border-left: 4px solid var(--warn); border-radius: 4px; padding: 18px 22px; margin-bottom: 28px; max-width: 900px; }
.sg-warn .sg-warn-title { display: block; color: var(--warn); font-family: 'Bebas Neue', sans-serif; font-size: 1.45rem; letter-spacing: .05em; font-weight: 400; margin-bottom: 4px; }
.sg-warn p { color: var(--text); font-size: .94rem; }
.sg-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; background: var(--card); }
.sg-req td:first-child { white-space: nowrap; width: 1%; font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: var(--accent); }
.sg-req td:not(:first-child) { color: var(--text); font-size: .9rem; line-height: 1.6; }
.sg-steps-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 8px; }
.sg-split > * { min-width: 0; }
.sg-step { display: flex; gap: 20px; padding: 22px; border: 1px solid var(--border); margin-top: -1px; background: rgba(17,25,38,.6); }
.sg-step .step-num { margin: 0; font-size: 2.4rem; color: var(--accent); opacity: .7; min-width: 46px; }
.sg-step > div { min-width: 0; }
.sg-step h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.35rem; letter-spacing: .05em; margin-bottom: 6px; }
.sg-step p { color: var(--muted); font-size: .92rem; line-height: 1.65; }
.sg-step code, .sg-prose code { font-family: 'JetBrains Mono', monospace; font-size: .84em; color: var(--green); }
.sg-code { margin-top: 12px; background: #050910; border: 1px solid var(--border); border-radius: 4px; padding: 12px 14px; overflow-x: auto; }
.sg-code code { font-family: 'JetBrains Mono', monospace; font-size: .82rem; color: var(--green); white-space: pre; }

/* Docs */
.sg-members { border: 1px solid rgba(0,198,255,.35); background: rgba(0,198,255,.06); border-radius: 4px; padding: 16px 20px; color: var(--text); font-size: .94rem; max-width: 900px; }
.sg-members a { color: var(--accent); }
.sg-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.sg-doc p { margin-bottom: 12px; }
.sg-tag { font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.sg-doc-meta { font-family: 'JetBrains Mono', monospace; font-size: .74rem !important; color: var(--muted); }
.sg-doc-btn { padding: 10px 22px; font-size: .78rem; }

/* CTA + licence line */
.sg-cta-wrap { padding-top: 40px; }
.sg-cta-wrap .sg-note { margin-top: 10px; }
.sg-license { border-top: 1px solid var(--border); }
.sg-license p { max-width: var(--sg-max); margin: 0 auto; padding: 18px 40px; font-size: .82rem; color: var(--muted); }
.sg-license a { color: var(--accent); }

/* Responsive */
@media (max-width: 1000px) {
  .sg-hero, .sg-split, .sg-feat { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sg-feat.sg-flip .sg-feat-text { order: 0; }
  .sg-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-values { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sg-subnav { top: 68px; }
  .sg-subnav-in { padding: 0 16px; gap: 10px; }
  .sg-subnav-name { display: none; }
  .sg-subnav-links a { padding: 12px 8px; font-size: .8rem; }
  .sg-hero { padding: 40px 20px 36px; }
  .sg-license p { padding: 16px 20px; }
  .sg-docs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sg-strip { grid-template-columns: minmax(0, 1fr); }
  .sg-req td:first-child { white-space: normal; }
}
.sg-how-shot { max-width: 440px; justify-self: center; }
.sg-strip .sg-shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.sg-feat.sg-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.sg-feat.sg-flip .sg-feat-pics { order: 1; }
.sg-feat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-feat-more img { aspect-ratio: 4 / 3; object-fit: contain; background: #050910; }
@media (max-width: 1000px) {
  .sg-feat.sg-flip { grid-template-columns: minmax(0, 1fr); }
  .sg-feat.sg-flip .sg-feat-pics { order: 0; }
  .sg-feat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sg-subnav-in { flex-wrap: nowrap; }
  .sg-subnav-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .sg-subnav-links::-webkit-scrollbar { display: none; }
  .sg-subnav-links a { white-space: nowrap; }
  .sg-lang span.on { display: none; }
  .sg-lang { flex-shrink: 0; }
}
footer.pro-footer .sg-license { width: 100%; flex: 0 0 100%; align-self: stretch; }
footer.pro-footer .sg-license p { text-align: center; }
/* v1.35.0: RingCast Signage 0.8.0 — four value points, "New in 0.8" badge, hosted-edition note */
.sg-values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .sg-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sg-values { grid-template-columns: minmax(0, 1fr); } }
.sg-new { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 9px; border-radius: 12px; font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); border: 1px solid var(--green); background: rgba(0,229,160,.08); white-space: nowrap; }
.sg-hosted { margin-top: 28px; padding: 16px 20px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; background: rgba(0,198,255,.05); color: var(--muted); line-height: 1.65; }
.sg-hosted strong { color: var(--text); }
.sg-hosted a { color: var(--accent); }
.sg-feat-text a { color: var(--accent); }
