/* FlowStack round 3: light first, see-through header, one accent colour, no shadows or glows.
   Loaded after style.css; the html prefix makes these win over the Customizer's inline colours. */

/* ---------- colours */
html:root, html .is-night {
  --bg: #100f15;
  --bg-2: #15141c;
  --surface: #1a1922;
  --surface-2: #23222d;
  --line: rgba(228, 224, 255, .1);
  --line-strong: rgba(228, 224, 255, .24);
  --text: #bfbccb;
  --muted: #918ea3;
  --head: #f5f3ee;
  --link: #b3adff;
  --ok: #5fd0a6;
  --warn: #e7b45c;
  --shadow: none;
  --glass: rgba(16, 15, 21, .97);
}
html:root {
  --accent: #6457ff;
  --accent-ink: #fff;
  --s2: #6457ff;
  --s3: #6457ff;
  --s4: #d0892a;
  --spectrum: linear-gradient(90deg, var(--accent), var(--accent));
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --header-space: 70px;
}
html:root[data-theme="light"] {
  --bg: #fbfaf7;
  --bg-2: #f3f1ea;
  --surface: #ffffff;
  --surface-2: #f4f2ec;
  --line: rgba(28, 27, 23, .12);
  --line-strong: rgba(28, 27, 23, .28);
  --text: #45433d;
  --muted: #6b6860;
  --head: #16150f;
  --link: #463bcf;
  --ok: #0b7a55;
  --warn: #8a5a00;
  --shadow: none;
  --glass: rgba(251, 250, 247, .97);
}
::selection { background: var(--accent); color: #fff; }

/* ---------- header: see-through at the top of the page, a plain bar once you scroll */
.site-header { padding-top: 0; border-bottom: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.site-header.is-scrolled { background: var(--glass); border-bottom-color: var(--line); pointer-events: auto; }
.header-bar, .site-header.is-scrolled .header-bar { min-height: 68px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.read-progress { left: 0; right: 0; bottom: -9px; border-radius: 0; }
.menu a { border-radius: 8px; }
.menu .sub-menu { border-radius: 10px; box-shadow: none; }
.icon-btn { border-radius: 10px; }
@media (max-width: 900px) {
  .site-nav { left: 0; right: 0; border-radius: 12px; box-shadow: none; }
}
@media (max-width: 640px) {
  .header-bar { padding-left: 0; }
}

/* ---------- plainer shapes */
.btn { border-radius: 10px; transition: background-color .2s, border-color .2s, color .2s; }
.btn-primary:hover { filter: none; background: color-mix(in srgb, var(--accent) 86%, #000); border-color: color-mix(in srgb, var(--accent) 86%, #000); }
/* The FlowStack ring is the brand icon: always these four colours, in both modes. */
.brand-mark, html:root .brand-mark, html .is-night .brand-mark { background: conic-gradient(from 200deg, #6457ff, #b45cff, #ff6b7a, #ffc24d, #6457ff); }
.search-form input { border-radius: 10px; }
.svc-icon, .tile, .contact-list .icon { border-radius: 10px; }
.detail-icon, .detail-head .tile { border-radius: 14px; }

/* ---------- no glows, gradients or shadows */
.hero::after, .product-card::before, .page-head::before, .page-head::after, .cta-panel::before, .cta-panel::after, .card-art::before, .card-art::after { display: none; }
.hero::before { opacity: .45; }
.cta-panel { background: var(--surface); }
.card-art { background: var(--surface-2); }
.card-art.art-1 { background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.card-art.art-2 { background: color-mix(in srgb, var(--s4) 14%, var(--surface-2)); }
.card-art.art-3 { background: color-mix(in srgb, var(--head) 7%, var(--surface-2)); }
.post-card:hover, .detail-side, .contact-form { box-shadow: none; }
.post-card:hover, .product-card:hover, .product-card:focus-within { transform: none; translate: none; }
.badge-live::before { box-shadow: none; animation: none; }
input:focus, select:focus, textarea:focus { box-shadow: none; outline: 2px solid var(--link); outline-offset: 1px; }
.entry-content blockquote { border-image: none; border-left-color: var(--accent); }
.entry-content pre { background: #171816; color: #ecebe4; }
.footer-word { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: color-mix(in srgb, var(--head) 7%, transparent); }
.lost .lost-code { background: none; color: var(--line-strong); -webkit-text-stroke: 0; }
.steps::before { background: var(--line-strong); }
.hero-tags .icon, html:root[data-theme="light"] .hero-tags .icon { color: var(--link); }
.svc-row:hover .svc-icon, .svc-row:focus-visible .svc-icon, .detail-icon { color: var(--link); }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .w { animation-name: kl-fade; }
}

/* ---------- free tools: a drawing on every card */
.fst-list.fs3-tools { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.fs3-tools .fs3-card { gap: 6px; padding: 0 0 20px; overflow: hidden; border-radius: 12px; background: var(--surface); }
.fs3-tools .fs3-card:hover { transform: none; border-color: var(--line-strong); }
.fs3-art { display: block; margin: 0 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--head); line-height: 0; }
.fs3-art svg { display: block; width: 100%; height: auto; aspect-ratio: 320 / 170; }
.fs3-art .a { fill: var(--accent); stroke: var(--accent); }
.fs3-art .w { stroke: #fff; }
.fs3-art .s { stroke: var(--link); stroke-width: 3; }
.fs3-art .d { fill: var(--link); stroke: none; }
.fs3-tools .fs3-card strong, .fs3-tools .fs3-card span, .fs3-tools .fs3-card .fs3-go { padding-inline: 20px; }
.fs3-tools .fs3-card strong { font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: -.02em; }
.fs3-tools .fs3-card .fs3-go { margin-top: 8px; font-style: normal; font-weight: 600; font-size: .93rem; color: var(--link); }
.fs3-card .fs3-go::after { content: " \2192"; }
.entry-content .fst-tool { border-radius: 12px; }
.fst-tool .fst-input, .fst-tool .fst-stats div { border-radius: 8px; }

/* ---------- dark mode: a little more depth between page, section and card */
html:root:not([data-theme="light"]) { --accent: #6f63ff; }
html:root:not([data-theme="light"]) .section-tint { background: var(--bg-2); }
html:root:not([data-theme="light"]) .btn-primary:hover { background: #8076ff; border-color: #8076ff; }
html:root:not([data-theme="light"]) .hero::before { opacity: .3; }
html:root:not([data-theme="light"]) .menu .current-menu-item > a { background: var(--surface-2); }
html:root:not([data-theme="light"]) .product-card, html:root:not([data-theme="light"]) .post-card, html:root:not([data-theme="light"]) .service-row { border-color: var(--line); }
html:root:not([data-theme="light"]) .product-card:hover, html:root:not([data-theme="light"]) .post-card:hover { border-color: var(--line-strong); background: #1e1d27; }
html .is-night.cta-panel, html .cta-panel.is-night { background: #1a1922; border-color: rgba(228, 224, 255, .14); }
html .site-footer.is-night, html .is-night .footer-bottom { border-color: rgba(228, 224, 255, .1); }

/* ---------- product cards: a picture of the product on top */
.product-card { padding: 0 24px 22px; }
.product-card:not(:has(.product-art)) { padding-top: 24px; }
.product-art { margin: 0 -24px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); line-height: 0; overflow: hidden; }
.product-art svg { display: block; width: 100%; height: auto; aspect-ratio: 400 / 210; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .product-art svg { transform: translateY(-4px); }
.product-art .pa-win { fill: var(--surface); stroke: var(--line-strong); }
.product-art .pa-rule { fill: none; stroke: var(--line); }
.product-art .pa-line { fill: var(--line-strong); }
.product-art .pa-ink { fill: color-mix(in srgb, var(--head) 46%, transparent); }
.product-art .pa-soft { fill: var(--surface-2); }
.product-art .pa-soft2 { fill: var(--line); }
.product-art .pa-card { fill: var(--surface); stroke: var(--line-strong); }
.product-art .pa-on { stroke: var(--accent); stroke-width: 1.5; }
.product-art .pa-acc { fill: var(--accent); }
.product-art .pa-acc-soft { fill: color-mix(in srgb, var(--accent) 15%, var(--surface)); }
.product-art .pa-w { fill: #fff; } .product-art .pa-w2 { fill: rgba(255, 255, 255, .6); }
.product-art .pa-c1 { fill: #ff8f9b; } .product-art .pa-c2 { fill: #f0b54a; } .product-art .pa-ok { fill: #3fbf8f; }
.product-art .pa-t { fill: #fff; font: 700 8px/1 var(--body); letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .product-art svg { transition: none; } .product-card:hover .product-art svg { transform: none; } }
