/* sgapps.io homepage (TODOs/sgapps-io-home-saas, D14 / D29): the design of the data mock
   public/scripts/modules/elements/theme-arctic/sgapps-io-home-data-mock.html, scoped under .sgh (the page's root
   element in app/modules/index/views/index.tpl) because the site theme (RegalRoyal) styles bare elements.
   Light theme, as the rest of the site. Markup: app/modules/index/lib/home-layouts.js; behaviour:
   public/scripts/modules/sgapps/elements/home.js. Brand accent lime #a6bb11, blue only for the developer band. */

/* ---------- the site theme (RegalRoyal: `.regal-royal a / a:hover / p / h1-h4 / ul / li / button / input`, red links,
   red-orange hover backgrounds, indented paragraphs, the Ubuntu heading font, button gradients) neutralised inside the
   homepage. Specificity 0-2-x / 0-3-x: above the theme (0-1-1, 0-2-1), below the components below (#sgh …).
   Not inside the slides (`sgapps-slider-slide`): their content is the owner's configuration (D9) and keeps the
   theme's look — e.g. the "Try It" `rr-button`s of the featured slides. */
.regal-royal .sgh a:not(sgapps-slider-slide *), .regal-royal .sgh a:not(sgapps-slider-slide *):visited { color: inherit; padding: 0; border-radius: 0; text-decoration: none; }
.regal-royal .sgh a:not(sgapps-slider-slide *):hover, .regal-royal .sgh a:not(sgapps-slider-slide *):focus { background: none; color: inherit; text-shadow: none; text-decoration: none; }
.regal-royal .sgh p:not(sgapps-slider-slide *) { text-indent: 0; padding: 0; margin: 0; }
.regal-royal .sgh h1:not(sgapps-slider-slide *), .regal-royal .sgh h2:not(sgapps-slider-slide *), .regal-royal .sgh h3:not(sgapps-slider-slide *), .regal-royal .sgh h4:not(sgapps-slider-slide *) { font-family: inherit; margin: 0; }
.regal-royal .sgh ul:not(sgapps-slider-slide *), .regal-royal .sgh ol:not(sgapps-slider-slide *) { margin: 0; padding: 0 0 0 1.3em; }
.regal-royal .sgh ul li:not(sgapps-slider-slide *), .regal-royal .sgh ol li:not(sgapps-slider-slide *) { line-height: inherit; list-style-position: outside; }
.regal-royal .sgh button:not(sgapps-slider-slide *), .regal-royal .sgh input:not(sgapps-slider-slide *) { font: inherit; margin: 0; text-shadow: none; background-image: none; box-shadow: none; }
.regal-royal .sgh button:not(sgapps-slider-slide *):hover, .regal-royal .sgh button:not(sgapps-slider-slide *):focus, .regal-royal .sgh button:not(sgapps-slider-slide *):active { background-image: none; box-shadow: none; text-shadow: none; }
.regal-royal .sgh input[type="search"]:not(sgapps-slider-slide *):hover, .regal-royal .sgh input[type="search"]:not(sgapps-slider-slide *):focus { border-color: var(--line); }

#sgh { --lime: #a6bb11; --lime-d: #6f7d0a; --lime-soft: #f0f3dc; --on-lime: #111; --blue: #4a6cf7; --blue-soft: #e8edff; --ink: #15171a; --muted: #5d636b; --line: #e3e5e8; --line-soft: #f0f1f2; --bg: #f6f7f4; --surface: #fff; --surface-2: #fafbf7; --term: #0f1412; --term-ink: #cfe3c5; --term-muted: #7f8f86; --term-line: #24302a; --dark: #14171a; --dark-2: #1c2024; --dark-line: #2c3238; --dark-ink: #eef1ea; --dark-muted: #a9b0a6; --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(20, 30, 10, .06); color-scheme: light; }
#sgh, #sgh * { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
#sgh { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
#sgh a:not(sgapps-slider-slide *) { color: inherit; }
#sgh img { max-width: 100%; }
#sgh svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#sgh .wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
#sgh header.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
#sgh header.top .wrap { display: flex; align-items: center; gap: 10px; height: 64px; }
#sgh .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
#sgh .logo span { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
#sgh nav.main { margin-left: auto; display: flex; gap: 2px; font-size: 14px; }
#sgh nav.main a { text-decoration: none; color: var(--muted); padding: 10px 9px; border-radius: 8px; white-space: nowrap; }
#sgh nav.main a:hover { color: var(--ink); background: var(--surface-2); }
#sgh .icon-btn { min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: inherit; font-size: 14px; }
#sgh .icon-btn kbd { font: 11px ui-monospace, monospace; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
#sgh .menu-btn { display: none; }
#sgh .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; font-family: inherit; }
#sgh .btn-lime { background: var(--lime); color: var(--on-lime); }
#sgh .btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
#sgh .btn-ghost:hover { border-color: var(--muted); }
#sgh .btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
#sgh .searchbar { display: none; border-top: 1px solid var(--line); background: var(--surface); }
#sgh .searchbar.open { display: block; }
#sgh .searchbar .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; }
#sgh .searchbar input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
#sgh .searchbar input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
#sgh section.band { padding: 56px 0; }
#sgh section.band.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#sgh section.band.dark { background: var(--dark); color: var(--dark-ink); }
#sgh .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime-d); }
#sgh h2:not(sgapps-slider-slide *) { font-size: 28px; line-height: 1.2; margin: 6px 0 8px; letter-spacing: -.01em; }
#sgh .lead { color: var(--muted); margin: 0 0 24px; max-width: 780px; font-size: 15.5px; }
#sgh .dark .lead, #sgh .dark .muted { color: var(--dark-muted); }
#sgh .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
#sgh .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--lime-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--lime-d); }
#sgh .ico img { width: 26px; height: 26px; object-fit: contain; }
#sgh .chips { display: flex; flex-wrap: wrap; gap: 6px; }
#sgh .chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
#sgh .chip.lime { background: var(--lime-soft); color: var(--lime-d); border-color: rgba(166, 187, 17, .45); font-weight: 700; }
#sgh .cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#sgh .more { margin-top: auto; padding-top: 4px; color: var(--lime-d); font-weight: 600; font-size: 13.5px; text-decoration: none; }
#sgh .dark .more { color: var(--lime); }
#sgh .also { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
#sgh .also a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; background: var(--surface); color: var(--ink); }
#sgh .clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#sgh .clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#sgh .rot { transition: opacity .35s; }
#sgh .rot.out { opacity: 0; }
#sgh .hero { padding: 44px 0 34px; }
#sgh .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: center; }
#sgh .hero h1 { font-size: 40px; line-height: 1.15; margin: 8px 0 14px; letter-spacing: -.02em; }
#sgh .hero p.sub { margin: 0 0 22px; color: var(--muted); font-size: 16.5px; max-width: 580px; }
#sgh .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
#sgh .alt-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0 4px 0 2px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 8px; }
#sgh .alt-link svg.i { width: 18px; height: 18px; color: var(--lime-d); }
#sgh .alt-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
#sgh .alt-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
#sgh .points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
#sgh .points div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--muted); }
#sgh .points b { color: var(--ink); display: block; }
#sgh .viz { background: var(--term); color: var(--term-ink); border-radius: 16px; border: 1px solid var(--term-line); box-shadow: var(--shadow); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; }
#sgh .viz-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--term-line); color: var(--term-muted); }
#sgh .viz-top i { width: 10px; height: 10px; border-radius: 50%; background: #2f3a33; display: inline-block; }
#sgh .viz-top span { margin-left: 8px; }
#sgh .viz-top .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
#sgh .viz-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
#sgh .viz-body { padding: 14px 16px 16px; }
#sgh .ballsbar { position: relative; height: 120px; overflow: hidden; background: var(--dark); border-bottom: 1px solid var(--dark-line); }
#sgh .ballsbar canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#sgh .ballsbar .typing { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 30%; max-width: calc(100% - 32px); padding: 6px 12px; border-radius: 6px; background: rgba(12, 128, 120, .9); color: #fff; font: 13px/1.5 ui-monospace, "Ubuntu Mono", Menlo, monospace; white-space: pre-wrap; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
#sgh .ballsbar .typing::after { content: "|"; color: yellow; animation: blink 1s steps(1) infinite; }
#sgh .ballsbar .typing u a { color: inherit; }
@keyframes blink { 50% { opacity: 0; } }
#sgh .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#sgh .req { margin: 14px 0 0; border: 1px solid var(--term-line); border-radius: 10px; overflow: hidden; }
#sgh .req div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 7px 12px; border-top: 1px solid var(--term-line); }
#sgh .req div:first-child { border-top: 0; }
#sgh .req .k { color: var(--term-muted); }
#sgh .req .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sgh .req .ok { color: var(--lime); }
#sgh .rs { position: relative; height: 306px; border-radius: 16px; overflow: hidden; background: #14171a; box-shadow: var(--shadow); }
#sgh .rs.sm { height: 280px; }
#sgh .rs sgapps-slider { width: 100% !important; height: 100% !important; }
#sgh .rs sgapps-slider-slide { width: 100% !important; height: 100% !important; }
#sgh .rs sgapps-slider .sgapps-slider--controls-previous, #sgh .rs sgapps-slider .sgapps-slider--controls-next { width: 44px; height: 44px; padding: 0; border-radius: 50% !important; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .45); font-size: 22px; line-height: 42px; text-align: center; opacity: 1; }
#sgh .rs sgapps-slider .sgapps-slider--controls-previous, #sgh .rs sgapps-slider:hover .sgapps-slider--controls-previous { left: 12px; }
#sgh .rs sgapps-slider .sgapps-slider--controls-next, #sgh .rs sgapps-slider:hover .sgapps-slider--controls-next { right: 12px; }
#sgh .rs sgapps-slider .sgapps-slider--controls-previous::before { content: "‹"; }
#sgh .rs sgapps-slider .sgapps-slider--controls-next::before { content: "›"; }
#sgh .how .viz { max-width: 760px; margin: 22px auto 0; }
#sgh .cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#sgh .pcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
#sgh .pcard.feat { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(166, 187, 17, .16); }
#sgh .pcard h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
#sgh .pcard p { margin: 0; color: var(--muted); font-size: 14px; }
#sgh .ticks { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
#sgh .ticks li { margin: 5px 0; padding-left: 22px; position: relative; }
#sgh .ticks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--lime-d); border-bottom: 2px solid var(--lime-d); transform: rotate(-45deg); }
#sgh .pcard .foot { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#sgh .freemium { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
#sgh .badge-new { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--on-lime); }
#sgh .how { margin-top: 44px; }
#sgh .how h3 { margin: 0; font-size: 20px; }
#sgh .how .how-lead { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
#sgh .how .how-caption { max-width: 760px; margin: 10px auto 0; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
#sgh .flow { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
#sgh .flow::before { content: ""; position: absolute; top: 20px; left: calc(16.66% + 6px); right: calc(16.66% + 6px); height: 2px; background: linear-gradient(90deg, var(--lime) 0 50%, transparent 0) 0 0 / 10px 2px repeat-x; }
#sgh .flow li { position: relative; text-align: center; font-size: 14px; color: var(--muted); }
#sgh .flow .n { position: relative; z-index: 1; width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--surface); }
#sgh .flow b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
#sgh .modes { margin: 30px auto 0; max-width: 760px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
#sgh .seg { display: flex; padding: 4px; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
#sgh .seg button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#sgh .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
#sgh .mode-panel { padding: 14px 6px 4px; font-size: 14px; color: var(--muted); }
#sgh .mode-panel b { color: var(--ink); }
#sgh .mode-panel ul { margin: 8px 0 0; padding-left: 18px; }
#sgh .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#sgh a.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 9px; text-decoration: none; color: var(--muted); font-size: 14px; transition: border-color .15s, transform .15s; }
#sgh section.white a.card { background: var(--surface-2); }
#sgh a.card:hover { border-color: var(--lime); transform: translateY(-2px); }
#sgh a.card b.t { color: var(--ink); font-size: 16px; line-height: 1.3; }
#sgh .card-top { display: flex; align-items: center; gap: 10px; }
#sgh .apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
#sgh .app { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
#sgh section.white .app { background: var(--surface-2); }
#sgh .app .head { display: flex; gap: 12px; align-items: center; }
#sgh .app .head img { width: 40px; height: 40px; object-fit: contain; flex: none; }
#sgh .app .head b { color: var(--ink); font-size: 15px; line-height: 1.3; display: block; }
#sgh .app .acts { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
#sgh .slider { position: relative; border-radius: 18px; overflow: hidden; touch-action: pan-y; }
#sgh .slider .track { display: flex; transition: transform .5s ease; }
#sgh .feat-card { flex: 0 0 100%; min-height: 300px; padding: 40px 72px; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; align-items: center; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 60%), linear-gradient(135deg, var(--c1, #2c3a12), var(--c2, #14171a)); }
#sgh .feat-card .txt { display: flex; flex-direction: column; gap: 12px; }
#sgh .feat-card .cat { color: rgba(255, 255, 255, .7); }
#sgh .feat-card b { font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
#sgh .feat-card p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 560px; }
#sgh .feat-card .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
#sgh .feat-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
#sgh .feat-card .art { width: 200px; height: 200px; border-radius: 40px; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transform: rotate(-4deg); }
#sgh .feat-card .art img { width: 120px; height: 120px; object-fit: contain; }
#sgh .slider .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .35); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#sgh .slider .nav:hover { background: rgba(0, 0, 0, .55); }
#sgh .slider .prev { left: 14px; }
#sgh .slider .next { right: 14px; }
#sgh .dots { display: flex; justify-content: center; gap: 2px; margin-top: 10px; }
#sgh .dots button { width: 44px; height: 32px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#sgh .dots button::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: var(--line); transition: width .25s, background .25s; }
#sgh .dots button[aria-current="true"]::before { width: 26px; background: var(--lime); }
#sgh .dots .pp { color: var(--muted); }
#sgh .dots .pp svg.i { width: 16px; height: 16px; }
#sgh .dots .pp::before { display: none; }
#sgh .about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
#sgh .highlight { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--term); color: var(--term-ink); font: 14px/1.5 ui-monospace, Menlo, monospace; border: 1px solid var(--term-line); }
#sgh .highlight .p { color: var(--lime); margin-right: 8px; }
#sgh .dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#sgh .dir a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; font-size: 13px; color: var(--muted); }
#sgh .dir a:hover { background: var(--surface); border-color: var(--line); }
#sgh .dir img { width: 28px; height: 28px; object-fit: contain; margin-top: 2px; }
#sgh .dir b { display: block; color: var(--ink); font-size: 14px; }
#sgh .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#sgh .rows a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 13px; color: var(--muted); }
#sgh section.white .rows a { background: var(--surface-2); }
#sgh .rows a:hover { border-color: var(--lime); }
#sgh .rows img { width: 32px; height: 32px; object-fit: contain; }
#sgh .rows b { display: block; color: var(--ink); font-size: 14.5px; }
#sgh .rows .arr { color: var(--lime-d); font-weight: 700; }
#sgh .dark .eyebrow { color: #9fb2ff; }
#sgh .dark a.card { background: var(--dark-2); border-color: var(--dark-line); color: var(--dark-muted); }
#sgh .dark a.card b.t { color: var(--dark-ink); }
#sgh .dark a.card:hover { border-color: #7d96ff; }
#sgh .dark .ico { background: rgba(125, 150, 255, .14); }
#sgh .dark .chip { background: rgba(255, 255, 255, .05); border-color: var(--dark-line); color: var(--dark-muted); }
#sgh .dark .highlight { background: var(--dark-2); border-color: var(--dark-line); }
#sgh .dark .highlight .p { color: #9fb2ff; }
#sgh .logos-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
#sgh .logos-wrap h3 { margin: 0 0 4px; font-size: 18px; }
#sgh .logos-wrap p.d { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
#sgh .logos { display: flex; flex-wrap: wrap; gap: 10px; }
#sgh .logos a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 14px; }
#sgh section.white .logos a { background: var(--surface-2); }
#sgh .logos a:hover { border-color: var(--lime); }
#sgh .logos img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
#sgh details.other { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
#sgh details.other summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
#sgh details.other .dir { padding: 6px 0 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#sgh #results { padding: 36px 0 56px; }
#sgh #results .rows { margin-top: 16px; }
#sgh .cta-band { background: var(--dark); color: var(--dark-ink); padding: 48px 0; }
#sgh .cta-band .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
#sgh .cta-band h2 { margin: 0 0 6px; }
#sgh .cta-band p { margin: 0; color: var(--dark-muted); max-width: 640px; }
#sgh .cta-band .ctas { margin-left: auto; }
#sgh .cta-band .btn-ghost { background: transparent; color: var(--dark-ink); border-color: #3a423c; }
#sgh footer.site { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 14px; color: var(--muted); }
#sgh .f-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 24px; }
#sgh .f-grid h4 { margin: 0 0 10px; font-size: 13px; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; }
#sgh .f-grid ul { list-style: none; margin: 0; padding: 0; }
#sgh .f-grid li a { display: inline-block; padding: 5px 0; text-decoration: none; }
#sgh .f-grid li a:hover { color: var(--ink); }
#sgh .f-brand p { margin: 10px 0 0; max-width: 300px; }
#sgh .f-brand address { margin-top: 12px; font-style: normal; }
#sgh .f-brand address a { display: inline-flex; align-items: flex-start; gap: 8px; padding: 4px 0; text-decoration: none; }
#sgh .f-brand address a:hover { color: var(--ink); }
#sgh .f-brand address svg.i { width: 16px; height: 16px; margin-top: 3px; color: var(--lime-d); }
#sgh .f-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
#sgh .show-all { display: none; width: 100%; margin-top: 12px; }
#sgh [hidden] { display: none !important; }
#sgh nav.main .m-only { display: none; }
@media (max-width: 1320px) {
	#sgh nav.main a.opt { display: none; }
	#sgh .search-btn .lbl, #sgh .search-btn kbd { display: none; }
}
@media (max-width: 960px) {
	#sgh .hero-grid, #sgh .about-grid, #sgh .logos-wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	#sgh .hero h1 { font-size: 34px; }
	#sgh .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#sgh details.other .dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#sgh .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	#sgh .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
	#sgh .menu-btn { display: inline-flex; }
	#sgh .search-btn .lbl, #sgh .search-btn kbd { display: none; }
	#sgh header.top .wrap { gap: 8px; }
	#sgh header.top .signin { display: none; }
	#sgh nav.main { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; padding: 8px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
	#sgh nav.main.open { display: flex; }
	#sgh nav.main a, #sgh nav.main a.opt { display: block; padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
	#sgh nav.main .m-only { display: block; }
	#sgh .search-btn { margin-left: auto; }
	#sgh .cards2, #sgh .grid3, #sgh .points, #sgh .rows, #sgh .dir, #sgh details.other .dir { grid-template-columns: minmax(0, 1fr); }
	#sgh .hero { padding-top: 28px; }
	#sgh .hero h1 { font-size: 29px; }
	#sgh .hero-grid .ctas { display: grid; grid-template-columns: 1fr 1fr; }
	#sgh .hero-grid .ctas .btn:first-child { grid-column: 1 / -1; }
	#sgh .hero-grid .ctas .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 8px 12px; }
	#sgh .sec-head { grid-template-columns: minmax(0, 1fr); gap: 0; }
	#sgh section.band { padding: 40px 0; }
	#sgh h2 { font-size: 24px; }
	#sgh .flow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	#sgh .flow::before { top: 21px; bottom: 21px; left: 20px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--lime) 0 50%, transparent 0) 0 0 / 2px 10px repeat-y; }
	#sgh .flow li { text-align: left; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; }
	#sgh .flow .n { margin: 0; grid-row: span 2; }
	#sgh .feat-card { grid-template-columns: minmax(0, 1fr); padding: 28px 22px 30px; min-height: 360px; align-content: start; }
	#sgh .feat-card .art { order: -1; width: 84px; height: 84px; border-radius: 20px; }
	#sgh .feat-card .art img { width: 56px; height: 56px; }
	#sgh .feat-card b { font-size: 22px; }
	#sgh .slider .nav { top: auto; bottom: 14px; transform: none; }
	#sgh .slider .prev { left: auto; right: 66px; }
	#sgh .cta-band .ctas { margin-left: 0; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
	#sgh .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#sgh .ballsbar { height: 96px; }
	#sgh .rs, #sgh .rs.sm { height: 340px; }
	#sgh .ballsbar .typing { min-width: 80%; font-size: 12px; }
	.js #sgh .collapsible:not(.expanded) > :nth-child(n+7) { display: none; }
	.js #sgh .show-all { display: flex; }
}
@media (max-width: 400px) {
	#sgh header.top .wrap { gap: 6px; }
	#sgh header.top .btn-lime { white-space: normal; max-width: 128px; min-height: 44px; padding: 4px 10px; line-height: 1.15; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	#sgh .ballsbar .typing::after { animation: none; }
	html { scroll-behavior: auto; }
	#sgh .rot { transition: none; }
	#sgh a.card { transition: none; }
}

/* ---------- parts the server renderer adds (not in the mock) */
#sgh .searchbar .wrap { display: flex; gap: 8px; }
#sgh .alt-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
#sgh .gap-top { margin-top: 18px; }
#sgh .grid3.gap-top { margin-top: 20px; }
#sgh .gap-bottom { margin-bottom: 22px; }
#sgh .rs-fallback { margin: 0; height: 100%; overflow: auto; border-radius: 0; }
#sgh .rs-fallback ul { margin: 0; padding: 0; list-style: none; display: inline; }
#sgh .rs-fallback li { margin: 0 0 6px; }
#sgh .rs.feat { height: auto; min-height: 306px; background: transparent; box-shadow: none; }
#sgh .rs.feat .rs-fallback { height: auto; }
#sgh .rs.mounted .rs-fallback { display: none; }
#sgh .dir .nolink { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--muted); }
#sgh .dir .nolink img { width: 28px; height: 28px; object-fit: contain; margin-top: 2px; }
#sgh .dir .nolink b { display: block; color: var(--ink); font-size: 14px; }
#sgh .f-bottom .pay { display: inline-flex; gap: 6px; align-items: center; }
#sgh .f-bottom .langs { margin-left: auto; display: flex; gap: 4px; }
#sgh .f-bottom .langs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
#sgh .f-bottom .langs a[aria-current="true"] { border-color: var(--lime); color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { #sgh .f-bottom .langs { margin-left: 0; } }
#sgh .rs.feat.mounted { height: 306px; min-height: 0; background: #14171a; box-shadow: var(--shadow); }
@media (max-width: 820px) { #sgh .rs.feat.mounted { height: 340px; } }


/* ---------- hover / focus of the buttons and links (the mock relied on the browser defaults) */
#sgh .btn-lime:hover { background: #b8cf14; color: var(--on-lime); }
#sgh .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
#sgh .btn:focus-visible, #sgh .icon-btn:focus-visible, #sgh nav.main a:focus-visible, #sgh .seg button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
#sgh .icon-btn:hover { border-color: var(--muted); background: var(--surface-2); }
#sgh .also a:hover, #sgh .logos a:hover { border-color: var(--lime); }
#sgh .more:hover, #sgh footer.site a:hover { text-decoration: underline; text-underline-offset: 3px; }
#sgh .dark a.card:hover { background: var(--dark-2); }
#sgh .cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .06); color: var(--dark-ink); }

/* ---------- pricing page (/pricing/, D29.3; from the round-1 mock sgapps-io-home-saas-mock.html) */
#sgh .pricing h1 { font-size: 34px; line-height: 1.2; margin: 6px 0 10px; letter-spacing: -.02em; }
#sgh .pricing .lead { margin-bottom: 12px; }
#sgh .vary { margin: 0 0 24px; padding: 12px 16px; max-width: 780px; border-left: 3px solid var(--lime); background: var(--lime-soft); border-radius: 0 10px 10px 0; color: var(--ink); font-size: 14.5px; }
#sgh .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#sgh .plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
#sgh .plan.pop { border: 2px solid var(--lime); box-shadow: 0 0 0 3px rgba(166, 187, 17, .16); }
#sgh .plan h3 { margin: 0; font-size: 18px; }
#sgh .price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
#sgh .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
#sgh .plan ul { margin: 0 0 8px; padding: 0; list-style: none; font-size: 14px; }
#sgh .plan li { padding: 7px 0; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 10px; }
#sgh .plan li span { color: var(--muted); text-align: right; }
#sgh .plan .btn { margin-top: auto; }
#sgh .btn-dark { background: var(--ink); color: var(--surface); }
#sgh .btn-dark:hover { background: #2a2e33; color: var(--surface); }
#sgh .sub-h { font-size: 22px; margin: 34px 0 12px; }
#sgh .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
#sgh table.extra { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
#sgh table.extra th, #sgh table.extra td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }
#sgh table.extra th { background: var(--surface-2); font-size: 12.5px; color: var(--muted); border-top: 0; }
#sgh table.extra td:nth-child(2) { white-space: nowrap; font-weight: 600; }
#sgh .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#sgh .faq div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--muted); }
#sgh .faq b { color: var(--ink); display: block; margin-bottom: 4px; }
@media (max-width: 820px) {
	#sgh .plans, #sgh .faq { grid-template-columns: minmax(0, 1fr); }
	#sgh .pricing h1 { font-size: 28px; }
}
@media (max-width: 560px) {   /* the "above the plan" table as stacked rows on the phone (no sideways scrolling) */
	#sgh table.extra { min-width: 0; }
	#sgh table.extra thead { display: none; }
	#sgh table.extra tr { display: block; padding: 10px 0; border-top: 1px solid var(--line-soft); }
	#sgh table.extra tr:first-child { border-top: 0; }
	#sgh table.extra td { display: block; border-top: 0; padding: 2px 14px; }
	#sgh table.extra td:first-child { font-weight: 700; color: var(--ink); }
	#sgh table.extra td:last-child { color: var(--muted); font-size: 13px; }
}
#sgh a.head { text-decoration: none; color: inherit; border-radius: 8px; }
#sgh a.head:hover b { text-decoration: underline; text-underline-offset: 3px; }
#sgh a.head:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- /contact/ and the documents under it (TODOs/sgapps-io-contact-restyle C1–C4) */
#sgh .contact-page h1, #sgh .doc h1 { font-size: 34px; line-height: 1.2; margin: 6px 0 10px; letter-spacing: -.02em; }
#sgh .channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 28px; }
#sgh .ch { display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-align: left; color: var(--muted); font-size: 13.5px; cursor: pointer; text-decoration: none; }
#sgh .ch:hover { border-color: var(--lime); }
#sgh .ch b { display: block; color: var(--ink); font-size: 15px; }
#sgh .ch span span { overflow-wrap: anywhere; }
#sgh .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#sgh .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; color: var(--muted); font-size: 14.5px; }
#sgh .box h2 { font-size: 18px; margin: 0 0 10px; color: var(--ink); }
#sgh .box h2.gap-top { margin-top: 20px; }
#sgh .box p { margin: 0 0 12px; }
#sgh .box b { color: var(--ink); }
#sgh .box .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
#sgh .box .more svg.i { width: 16px; height: 16px; }
#sgh ul.links { list-style: none; margin: 0; padding: 0; }
#sgh ul.links li a { display: inline-block; padding: 5px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
#sgh ul.links li a:hover { text-decoration-color: var(--lime); }

#sgh .crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
#sgh .crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
#sgh .crumbs a:hover { color: var(--ink); }
#sgh .doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
#sgh .doc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px; font-size: 15.5px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
#sgh .doc h2 { font-size: 24px; margin: 28px 0 10px; }
#sgh .doc h3 { font-size: 19px; margin: 24px 0 8px; }
#sgh .doc h4 { font-size: 16px; margin: 20px 0 6px; }
#sgh .doc p { margin: 0 0 14px; }
#sgh .doc ul, #sgh .doc ol { margin: 0 0 14px; padding-left: 1.4em; }
#sgh .doc li { margin: 4px 0; }
#sgh .doc a { color: var(--lime-d); text-decoration: underline; text-underline-offset: 3px; }
#sgh .doc a:hover { color: var(--ink); }
#sgh .doc img, #sgh .doc video { max-width: 100%; height: auto; }
#sgh .doc iframe { max-width: 100%; }
#sgh .doc code { font: 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 5px; }
#sgh .doc pre { background: var(--term); color: var(--term-ink); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
#sgh .doc pre code { background: none; border: 0; padding: 0; color: inherit; }
#sgh .doc blockquote { margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--lime); background: var(--lime-soft); border-radius: 0 8px 8px 0; }
#sgh .doc table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 14px; display: block; overflow-x: auto; }
#sgh .doc th, #sgh .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
#sgh .doc th { background: var(--surface-2); }
#sgh .doc hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
#sgh .doc .doc-note { margin: 0 0 18px; padding: 10px 14px; background: var(--lime-soft); border-radius: 10px; font-size: 14px; }
#sgh .doc-card { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 12px; }
#sgh .doc-card p { margin: 0; }
#sgh .channels.small { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; }
#sgh .channels.small .ch { min-height: 0; padding: 10px 12px; border-radius: 10px; }
#sgh .channels.small .ico { width: 32px; height: 32px; border-radius: 9px; }
#sgh .doc-card .addr { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
#sgh .doc-card .addr svg.i { width: 16px; height: 16px; margin-top: 2px; color: var(--lime-d); }
#sgh .doc-card .btn { width: 100%; }
@media (max-width: 960px) {
	#sgh .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#sgh .doc-grid { grid-template-columns: minmax(0, 1fr); }
	#sgh .doc-card { position: static; }
}
@media (max-width: 820px) {
	#sgh .contact-grid, #sgh .channels { grid-template-columns: minmax(0, 1fr); }
	#sgh .contact-page h1, #sgh .doc h1 { font-size: 28px; }
	#sgh .doc { padding: 20px 18px; }
}
#sgh .cta-band .all-contacts { margin-top: 12px; }
#sgh .cta-band .all-contacts a { color: var(--lime); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#sgh .cta-band .all-contacts a:hover { color: #fff; }
