/* ==========================================================================
 * SWD Toolkit — base: font, tokens, page shell, reset, buttons, shared bits.
 *
 * The 2026 Sky Web Design site: a night sky (navy #141A2C) with faint column
 * lines, sky-blue accent, a sky→violet gradient and Onest throughout.
 *
 * Every widget root carries `swd swd-{slug}`; rules are written `.swd .x`
 * (0,2,0) so they beat Hello's resets, while Elementor's control CSS
 * (0,3,0+) still wins. Token names never reuse Elementor's container
 * variables (--display, --gap, --width, --padding-*, --content-width).
 * ======================================================================== */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--bg: #141A2C;
	--card: #1F2740;
	--card-2: #29324F;
	--edge: rgba(255, 255, 255, .09);
	--cream: #F3F5F9;
	--ink: #141A2C;
	--muted: #AEB6C8;
	--muted-d: #55607A;
	--acc: #5CC8FF;
	--acc-d: #38B2F5;
	--grad: linear-gradient(90deg, #5CC8FF 0%, #7FA8FF 45%, #B58CFF 100%);
	--f: "Onest", ui-sans-serif, system-ui, sans-serif;
	--wrap: 1266px;
	--gut: clamp(16px, 4vw, 40px);
	--r-xl: 40px;
	--l-web: #5CC8FF;
	--l-plugin: #7CF0C0;
	--l-app: #C3A6FF;
	--l-host: #9FB4D8;
}

/* ---------- page shell (only on pages built with SWD widgets) ---------- */
html:has(body.swd-site) { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: hidden; }
body.swd-site { margin: 0; background: var(--bg); color: #fff; font: 400 17px/1.5 var(--f); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.swd-site .site-main, body.swd-site .page-content, body.swd-site main#content { margin: 0; padding: 0; max-width: none; width: 100%; }
body.swd-site .page-header { display: none; }
/* GetPaid prints its payment modal on every page; its own CSS loads only with a form. */
#getpaid-payment-modal:not(.show) { display: none; }
body.swd-site .elementor-widget:not(:last-child) { margin-block-end: 0; }
body.swd-site .e-con { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; }

.swd-lines { position: fixed; inset: 0; z-index: 1; pointer-events: none; display: flex; justify-content: center; }
.swd-lines i { width: min(22.5vw, 324px); border-left: 1px solid rgba(150, 165, 200, .09); }
.swd-lines i:last-child { border-right: 1px solid rgba(150, 165, 200, .09); }
.swd-skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; z-index: 300; }
.swd-skip:focus { left: 8px; }

/* ---------- widget reset ---------- */
.swd { position: relative; font-family: var(--f); color: #fff; line-height: 1.5; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
.swd *, .swd *::before, .swd *::after { box-sizing: border-box; }
.swd img { display: block; max-width: 100%; }
.swd a { color: inherit; }
.swd :where(h1, h2, h3, h4) { margin: 0; font-family: var(--f); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; text-wrap: balance; color: inherit; text-transform: none; }
.swd :where(p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.swd :where(ul, ol) { padding: 0; list-style: none; }
.swd :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
.swd :where(label, legend, output) { text-transform: none; letter-spacing: inherit; }
.swd :focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }

.swd .wrap { position: relative; z-index: 2; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.swd .center { text-align: center; }
.swd .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.swd .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 14px; font-family: var(--f); font-size: 17px; font-weight: 500; line-height: 1; letter-spacing: -.02em; text-decoration: none; text-transform: none; white-space: nowrap; border: 0; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.swd .btn svg { width: 16px; height: 16px; transition: transform .2s; }
.swd .btn:hover svg { transform: translate(2px, -2px); }
.swd .btn--lg { height: 58px; padding: 0 30px; font-size: 20px; }
.swd .btn--sm { height: 46px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
.swd .btn--acc { background: var(--acc); color: var(--ink); }
.swd .btn--acc:hover { background: #fff; color: var(--ink); }
.swd .btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.swd .btn--line:hover { background: #fff; color: var(--ink); }
.swd .btn--ink { background: var(--ink); color: #fff; }
.swd .btn--ink:hover { background: var(--acc); color: var(--ink); }
.swd .btn--white { background: #fff; color: var(--ink); }
.swd .btn--white:hover { background: var(--acc); }

/* ---------- cursor tags ---------- */
.swd .tag { position: absolute; left: var(--x); top: var(--y); z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 7px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink); white-space: nowrap; animation: swd-float 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.swd .tag svg { width: 11px; height: 11px; fill: currentColor; }
.swd .tag--sky { background: var(--acc); }
.swd .tag--mint { background: #7CF0C0; }
.swd .tag--violet { background: #C3A6FF; }
.swd .tag--grey { background: #C9CFDC; }
.swd .tag--static { animation: none; }
@keyframes swd-float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(14px, -10px); } 66% { transform: translate(-8px, 8px); } }

/* ---------- shared bits ---------- */
.swd .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.swd .mark { display: block; aspect-ratio: 883 / 1116; background: #fff; -webkit-mask: url("../img/sky-mark-mask.svg") left center / auto 100% no-repeat; mask: url("../img/sky-mark-mask.svg") left center / auto 100% no-repeat; }
.swd .live { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3BE38F; box-shadow: 0 0 0 4px rgba(59, 227, 143, .2); animation: swd-pulse 2.4s infinite; }
@keyframes swd-pulse { 50% { box-shadow: 0 0 0 8px rgba(59, 227, 143, 0); } }

@media (max-width: 640px) {
	.swd .btn--lg { height: 54px; font-size: 18px; padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.swd *, .swd *::before, .swd *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
	html:has(body.swd-site) { scroll-behavior: auto; }
}

/* ==========================================================================
 * Inner pages (1.1.0): accent per layer, section rhythm, section head, ticks.
 * ======================================================================== */
.swd[data-accent="web"] { --a: var(--l-web); --a2: #7FA8FF; }
.swd[data-accent="plugin"] { --a: var(--l-plugin); --a2: #5CC8FF; }
.swd[data-accent="app"] { --a: var(--l-app); --a2: #B58CFF; }
.swd[data-accent="host"] { --a: var(--l-host); --a2: #5CC8FF; }
.swd[data-accent="grad"] { --a: var(--acc); --a2: #B58CFF; }
.swd.inr { padding: clamp(80px, 9vw, 150px) 0 0; scroll-margin-top: 90px; }
.swd .lic { width: 22px; height: 22px; flex: none; }

/* section head: heading left, intro right (or stacked) */
.swd .ih { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.swd .ih--stack { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.swd .ih__chip { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--edge); font-size: 14px; font-weight: 500; color: #C9D1E3; }
.swd .ih__chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--a, var(--acc)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a, var(--acc)) 22%, transparent); }
.swd .ih__h { font-size: clamp(34px, 4.3vw, 60px); }
.swd .ih__intro { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 560px; }
.swd .ih--stack .ih__intro { margin-top: 4px; }

.swd .ticks { display: grid; gap: 10px; }
.swd .ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: #DCE2EF; }
.swd .ticks .lic { width: 18px; height: 18px; margin-top: 2px; color: var(--a, var(--acc)); stroke-width: 2.2; }

@media (max-width: 860px) {
	.swd .ih { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
