/* ==========================================================================
   Salla for Developers — VARIATION C: "Platform Overview"
   Light, formal, editorial. Structured like a technical overview / whitepaper:
   generous whitespace, strong typographic hierarchy, restrained colour,
   two-column section layout, gentle motion only.
   ========================================================================== */
:root {
  --paper: #FBFBF8;
  --surface: #FFFFFF;
  --ink: #14232A;
  --ink-2: #4B565F;
  --ink-3: #8B939B;
  --rule: #E6E4DD;
  --rule-2: #D7D4CB;
  --petrol: #004A57;
  --petrol-soft: #EDF4F4;
  --accent: #007E86;
  --max: 1120px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --ease: cubic-bezier(.33,1,.68,1);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
[class*="hgi-"], [class*="hgi-"]::before, [class*="hgi-"]::after { letter-spacing: normal !important; }
.hgi-stroke::before, .hgi-stroke::after { font-family: "hgi-stroke-rounded" !important; }
code { background: none !important; padding: 0 !important; border-radius: 0 !important; }

html { font-family: 'PingARLT','PT Sans',system-ui,-apple-system,sans-serif; font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink-2); line-height: 1.62; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; line-height: 1.18; letter-spacing: -.018em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ol, ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
table { border-collapse: collapse; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--petrol); color: #fff; padding: .55rem 1rem; border-radius: 4px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.eyebrow { display: inline-block; font: 600 .74rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

/* ---- masthead ---- */
.masthead { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 500; font-size: 1rem; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; }
.brand svg { color: var(--petrol); }
.masthead__nav { display: flex; align-items: center; gap: 1.6rem; }
.masthead__nav > a { color: var(--ink-2); font-weight: 500; font-size: .9rem; }
.masthead__nav > a:hover { color: var(--ink); text-decoration: none; }
.masthead__act { border: 1px solid var(--rule-2); border-radius: 4px; padding: .5rem .9rem; color: var(--ink) !important; font-weight: 600 !important; }
.masthead__act:hover { border-color: var(--petrol); background: var(--petrol-soft); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 2.9rem; padding-inline: 1.4rem; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--surface); color: var(--ink); font: 600 .95rem/1 'PingARLT', sans-serif; cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease); }
.btn:hover { text-decoration: none; border-color: var(--petrol); }
.btn--primary { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.btn--primary:hover { background: #003a45; border-color: #003a45; }

/* ---- hero ---- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--rule); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 20ch; margin-top: 1.1rem; }
.hero .deck { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.hero__act { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }
.facts { display: flex; flex-wrap: wrap; gap: .55rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .9rem; color: var(--ink-2); }
.facts li { position: relative; padding-left: 1rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---- section: two-column (label / body) ---- */
.sec { display: grid; grid-template-columns: 12rem 1fr; gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rule); }
.sec__head { position: sticky; top: 6rem; align-self: start; }
.sec__n { display: block; font: 600 .78rem/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); margin-bottom: .7rem; }
.sec__head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.sec__lead { font-size: 1.08rem; color: var(--ink-2); max-width: 64ch; }
.sec__body > * + * { margin-top: 2rem; }

/* ---- table ---- */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
table { width: 100%; font-size: .93rem; min-width: 40rem; }
thead th { text-align: left; padding: .85rem 1.1rem; font: 600 .72rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule); background: var(--paper); }
tbody td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 600; color: var(--ink); width: 34%; }
tbody td:not(:first-child) { color: var(--ink-2); }

/* ---- grouped platform list ---- */
.grp + .grp { margin-top: 2.5rem; }
.grp > h3 { font: 600 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: .7rem; border-bottom: 1px solid var(--rule-2); }
.grp__row { display: grid; grid-template-columns: 16rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); transition: background .15s var(--ease); }
.grp__row:hover { text-decoration: none; background: var(--petrol-soft); box-shadow: -.75rem 0 0 var(--petrol-soft), .75rem 0 0 var(--petrol-soft); }
.grp__row > span:first-child { font-weight: 600; font-size: .95rem; }
.grp__row > span:last-child { color: var(--ink-2); font-size: .9rem; }
.more { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; }
.more .hgi { transition: transform .2s var(--ease); }
.more:hover .hgi { transform: translateX(3px); }

/* ---- definitions ---- */
.defs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.def { border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); padding: 1.5rem; }
.def h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.def p { font-size: .93rem; color: var(--ink-2); }

/* ---- code figure ---- */
.code { margin: 0; border: 1px solid var(--rule-2); border-radius: 6px; overflow: hidden; background: var(--surface); }
.code figcaption { padding: .7rem 1.1rem; font: 600 .74rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule); background: var(--paper); }
.code pre { margin: 0; padding: 1.1rem 1.25rem; font-family: var(--mono); font-size: .86rem; line-height: 1.75; color: var(--ink); overflow-x: auto; }
.code__copy { display: block; width: 100%; text-align: left; padding: .75rem 1.25rem; border: 0; border-top: 1px solid var(--rule); background: var(--paper); color: var(--accent); font: 600 .82rem/1 var(--mono); letter-spacing: .04em; cursor: pointer; }
.code__copy:hover { background: var(--petrol-soft); }
.code__copy.is-done { color: var(--petrol); }

/* ---- steps ---- */
.steps { counter-reset: st; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
.steps > li { counter-increment: st; position: relative; padding: 1.4rem 1.5rem 1.4rem 4rem; border-bottom: 1px solid var(--rule); }
.steps > li:last-child { border-bottom: 0; }
.steps > li::before { content: counter(st, upper-roman); position: absolute; left: 1.5rem; top: 1.5rem; font: 600 .85rem/1 var(--mono); color: var(--ink-3); }
.steps h3 { font-size: 1.02rem; }
.steps p { margin-top: .35rem; font-size: .93rem; color: var(--ink-2); }

/* ---- support list ---- */
.support { display: grid; gap: .85rem; }
.support li { padding-left: 1.1rem; position: relative; font-size: .96rem; color: var(--ink-2); }
.support li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.support strong { color: var(--ink); font-weight: 600; }

/* ---- CTA ---- */
.cta { text-align: center; padding-block: clamp(4rem, 9vw, 7rem); }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta p { margin-top: .9rem; color: var(--ink-2); }
.cta__act { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

/* ---- footer ---- */
.foot { background: var(--surface); border-top: 1px solid var(--rule); }
.foot__in { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.foot__cols h4 { font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.foot__cols a { display: block; color: var(--ink-2); font-size: .9rem; padding: .25rem 0; }
.foot__cols a:hover { color: var(--ink); text-decoration: none; }
.foot__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-top: 1.5rem; }
.brand--sm { color: var(--ink-3); font-weight: 600; font-size: .85rem; gap: .45rem; }
.brand--sm svg { color: var(--ink-3); }
.foot__by { margin-left: auto; font: 600 .78rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---- motion ---- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1.5rem); background: var(--ink); color: var(--paper); padding: .55rem 1.1rem; border-radius: 999px; font-size: .84rem; font-weight: 600; opacity: 0; pointer-events: none; z-index: 200; transition: opacity .25s, transform .25s; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .masthead__nav > a:not(.masthead__act) { display: none; }
  .sec { grid-template-columns: 1fr; gap: 1.25rem; }
  .sec__head { position: static; }
  .defs { grid-template-columns: 1fr; }
  .grp__row { grid-template-columns: 1fr; gap: .2rem; }
  .grp__row:hover { box-shadow: none; }
}
@media (max-width: 560px) {
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}
