/* WinKlok website — static, no dependencies.
   Theme: #39657c with whitish / greyish acrylic surfaces over a slowly moving blurred backdrop. */

:root {
  --brand: #39657c;
  --brand-900: #1d3441;
  --brand-800: #274a5c;
  --brand-600: #4a7a92;
  --brand-400: #7aa3b8;
  --brand-200: #b9d0dc;
  --brand-100: #dfeaf0;
  --ink: #13232b;
  --ink-2: #24404e;
  --ink-3: #38505e;
  --brand-text: #2a4f63;
  --glass: rgba(247, 250, 251, 0.82);
  --glass-strong: rgba(250, 252, 253, 0.93);
  --glass-edge: rgba(255, 255, 255, 0.62);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 24px 50px -24px rgba(12, 32, 44, 0.55);
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --maxw: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--brand-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-800); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-900); }
:focus-visible { outline: 3px solid #0f5c85; outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- moving acrylic backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(135deg, #274a5c 0%, #39657c 48%, #46778f 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.85; will-change: transform; }
.blob.b1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -16vmax; background: radial-gradient(circle at 35% 35%, #bcd2de, #6f9bb2 55%, transparent 72%); animation: drift1 34s ease-in-out infinite alternate; }
.blob.b2 { width: 44vmax; height: 44vmax; right: -12vmax; top: 6vmax; background: radial-gradient(circle at 50% 50%, #eef3f6, #aebfc9 50%, transparent 72%); opacity: 0.55; animation: drift2 41s ease-in-out infinite alternate; }
.blob.b3 { width: 48vmax; height: 48vmax; left: 12vmax; bottom: -26vmax; background: radial-gradient(circle at 50% 50%, #1d3441, #274a5c 50%, transparent 72%); opacity: 0.9; animation: drift3 38s ease-in-out infinite alternate; }
.blob.b4 { width: 30vmax; height: 30vmax; right: 8vmax; bottom: -6vmax; background: radial-gradient(circle at 50% 50%, #9fc0d1, #5f8aa3 55%, transparent 72%); opacity: 0.7; animation: drift4 29s ease-in-out infinite alternate; }
.blob.b5 { width: 26vmax; height: 26vmax; left: 38vmax; top: 22vmax; background: radial-gradient(circle at 50% 50%, #d6dee3, #9aa9b2 55%, transparent 72%); opacity: 0.45; animation: drift5 46s ease-in-out infinite alternate; }
.grain {
  position: absolute; inset: 0; opacity: 0.10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-16vmax, 12vmax, 0) scale(0.92); } }
@keyframes drift3 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(18vmax, -10vmax, 0) scale(1.2); } }
@keyframes drift4 { from { transform: translate3d(0, 0, 0) scale(0.9); } to { transform: translate3d(-12vmax, -12vmax, 0) scale(1.15); } }
@keyframes drift5 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-10vmax, 14vmax, 0) scale(1.25); } }

/* ---------- glass surfaces ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
}

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 12px; z-index: 50; padding-top: 12px; }
.nav-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 13px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 0.97rem; font-weight: 550; }
.nav-links a:hover { background: rgba(57, 101, 124, 0.12); color: var(--ink); }
.nav-links a[aria-current="page"] { background: rgba(57, 101, 124, 0.16); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(57, 101, 124, 0.25); background: rgba(255, 255, 255, 0.55); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; min-height: 46px; border-radius: 999px; font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(29, 52, 65, 0.85); }
.btn-primary:hover { background: var(--brand-900); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.6); color: var(--ink); border-color: rgba(57, 101, 124, 0.3); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.9); color: var(--ink); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
code, kbd { font-family: var(--mono); font-size: 0.88em; background: rgba(57, 101, 124, 0.12); padding: 0.12em 0.4em; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.hero-copy { padding: clamp(26px, 4vw, 48px); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.facts li { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); background: rgba(57, 101, 124, 0.12); padding: 6px 12px; border-radius: 999px; }

/* ---------- product mock (pure HTML / SVG, no screenshots) ---------- */
.mock-wrap { display: grid; place-items: center; position: relative; }
.panel { width: min(100%, 380px); color: #e9f1f5; border-radius: 16px; padding: 14px 14px 18px; background: linear-gradient(160deg, rgba(34, 52, 64, 0.94), rgba(22, 36, 46, 0.95)); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 70px -30px rgba(6, 20, 29, 0.9), 0 1px 0 rgba(255, 255, 255, 0.12) inset; position: relative; user-select: none; }
.p-tabs { display: flex; gap: 4px; margin-bottom: 14px; overflow: hidden; }
.p-tabs span { font-size: 0.72rem; padding: 6px 9px; border-radius: 8px; color: #b7cad5; white-space: nowrap; }
.p-tabs span.on { background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 650; }
.p-date { font-size: 1.15rem; font-weight: 650; margin: 0 4px 10px; }
.p-month { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 6px; font-size: 0.9rem; color: #cfdde5; }
.p-grid { display: grid; grid-template-columns: 22px repeat(7, 1fr); gap: 2px 0; align-items: center; }
.p-grid .wd, .p-grid .wk { font-size: 0.68rem; color: #8fb0c2; text-align: center; }
.p-grid .wk { color: #7fb4d2; }
.d { position: relative; aspect-ratio: 1; display: grid; place-items: center; font-size: 0.85rem; color: #eef4f7; }
.d.out { color: #8ea6b4; }
.d svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.d.today::before { content: ""; position: absolute; inset: 9.5%; border-radius: 50%; background: #3f87ad; }
.d.today { color: #fff; font-weight: 700; }
.d span { position: relative; }
.hovercard { position: absolute; left: 50%; top: 23%; transform: translateX(-34%); width: 270px; border-radius: 12px; padding: 10px 8px 8px; background: #2c4251; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.7); font-size: 0.8rem; }
.hovercard .hc-date { color: #a9c0cd; font-weight: 600; padding: 0 8px 6px; }
.hovercard .row { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.hovercard .row:first-of-type { background: rgba(255, 255, 255, 0.07); }
.hovercard .bar { width: 4px; align-self: stretch; border-radius: 2px; }
.hovercard .bar.peacock { background: #039be5; }
.hovercard .bar.basil { background: #0b8043; }
.hovercard .bar.grape { background: #8e24aa; }
.hovercard .t { font-weight: 650; color: #fff; line-height: 1.25; }
.hovercard .s { color: #a9c0cd; font-size: 0.74rem; }

/* ---------- sections ---------- */
section { padding: 44px 0; }
.section-head { max-width: 700px; margin-bottom: 28px; }
.section-head .lead { margin-bottom: 0; }
.grid { display: grid; gap: 18px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.99rem; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: linear-gradient(145deg, #4a7a92, #2b5166); color: #fff; box-shadow: 0 10px 18px -10px rgba(29, 52, 65, 0.9); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel-glass { padding: clamp(24px, 3.4vw, 40px); }
.checks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px; border-radius: 6px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.9 2.9 6-6.2' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.scope { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(57, 101, 124, 0.2); margin-bottom: 12px; }
.scope code { display: inline-block; margin-bottom: 6px; }
.scope p { margin: 0; font-size: 0.97rem; color: var(--ink-2); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; background: var(--brand); color: #fff; }
.steps strong { display: block; }
.steps p { margin: 0; color: var(--ink-2); }

details { padding: 4px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 650; padding: 16px 28px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p, details ul { color: var(--ink-2); margin-top: 0; }

.cta { text-align: center; padding: clamp(32px, 5vw, 56px); }
.cta .btn-row { justify-content: center; }

/* ---------- document pages (privacy / terms / contact) ---------- */
.doc-hero { padding: 44px 0 8px; }
.doc-hero .glass { padding: clamp(26px, 4vw, 44px); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-3); font-size: 0.95rem; margin: 0; }
.doc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; padding: 24px 0 56px; }
.doc-layout.single { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 104px; padding: 18px 14px; max-height: calc(100vh - 128px); overflow: auto; }
.toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); margin: 0 10px 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 0.93rem; line-height: 1.35; }
.toc a:hover { background: rgba(57, 101, 124, 0.12); }
.toc a[aria-current="true"] { background: rgba(57, 101, 124, 0.18); color: var(--ink); font-weight: 650; }
.doc { padding: clamp(24px, 4vw, 48px); }
.doc h2 { font-size: 1.55rem; margin-top: 2.1em; padding-top: 0.2em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.7em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.45em; }
.callout { padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(57, 101, 124, 0.12); border-left: 4px solid var(--brand); margin: 1.2em 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border-radius: var(--radius-sm); border: 1px solid rgba(57, 101, 124, 0.25); background: rgba(255, 255, 255, 0.55); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.96rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(57, 101, 124, 0.18); }
th { background: rgba(57, 101, 124, 0.12); color: var(--ink); font-weight: 680; }
tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }
.contact-card { padding: 26px; }
.doc-layout.single > div > * + * { margin-top: 18px; }
.contact-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-card p { color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 0 0 28px; }
.foot { padding: 28px clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink-2); }
.foot p { font-size: 0.93rem; color: var(--ink-3); margin: 8px 0 0; max-width: 46ch; }
.legal { width: fit-content; max-width: 100%; margin: 18px auto 0; padding: 8px 18px; text-align: center; color: var(--ink-2); font-size: 0.88rem; border-radius: 999px; background: var(--glass-strong); }

/* ---------- motion helpers ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-bar { border-radius: 24px; flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; margin-left: 0; padding-top: 6px; }
  .js .nav-links.open { display: flex; }
  .nav-links { flex-wrap: wrap; width: 100%; margin-left: 0; }
  .nav-links a { padding: 12px 14px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hovercard { width: 240px; transform: translateX(-42%); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
@media (prefers-contrast: more) {
  :root { --glass: rgba(255, 255, 255, 0.97); --ink-2: #172c38; --ink-3: #243b48; --brand-text: #1d3b4c; }
}
@media print {
  .backdrop, .site-header, .site-footer .foot, .toc, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .glass { background: #fff; box-shadow: none; border: 0; backdrop-filter: none; }
  .doc-layout { display: block; }
}
