/* Cloud Konnekt — shared site styles.
   Most layout and colour lives inline on each page (as in the original design).
   This file holds page basics, the navigation, and the responsive rules that
   inline styles can't express. */

:root {
  --ck-ink: #12161f;
  --ck-muted: #5a6070;
  --ck-paper: #f7f5f0;
  --ck-sand: #efece5;
  --ck-rule: #e2ded5;
  --ck-blue: #00729c;
  --ck-blue-dark: #005a7c;
  --ck-sky: #38b6e6;
  --ck-font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ck-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ck-font);
  color: var(--ck-ink);
  background: var(--ck-paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ck-blue); }
a:hover { color: var(--ck-blue-dark); }
:focus-visible { outline: 3px solid var(--ck-sky); outline-offset: 2px; }
[id] { scroll-margin-top: 88px; }

.ck-skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ck-ink); color: #fff; font-weight: 600; text-decoration: none;
}
.ck-skip:focus { top: 12px; color: #fff; }

@keyframes cktype { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ckpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Navigation ---------- */
.ck-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ck-paper);
  border-bottom: 1px solid var(--ck-rule);
}
.ck-nav {
  max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 72px; display: flex; align-items: center; gap: 32px;
}
.ck-brand {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  text-decoration: none; color: var(--ck-ink);
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
}
.ck-brand:hover { color: var(--ck-ink); }
.ck-brand img { width: 32px; height: 32px; }
.ck-nav-links { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.ck-nav-links a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ck-muted);
}
.ck-nav-links a:hover { color: var(--ck-ink); background: var(--ck-sand); }
.ck-nav-links a[aria-current="page"] { color: var(--ck-ink); background: var(--ck-sand); font-weight: 600; }
.ck-nav-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: 10px; background: var(--ck-blue); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
}
.ck-nav-cta:hover { background: var(--ck-blue-dark); color: #fff; }
.ck-menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid #8a8f9c; border-radius: 10px; background: #fff;
  align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.ck-mobile-menu {
  border-top: 1px solid var(--ck-rule); padding: 8px 16px 20px;
  display: flex; flex-direction: column; background: var(--ck-paper);
}
.ck-mobile-menu[hidden] { display: none; }
.ck-mobile-menu a {
  display: flex; align-items: center; min-height: 52px; font-size: 18px; font-weight: 600;
  text-decoration: none; color: var(--ck-ink); border-bottom: 1px solid var(--ck-rule);
}
.ck-mobile-menu a[aria-current="page"] { color: var(--ck-blue); }
.ck-mobile-menu .ck-mobile-cta {
  margin-top: 16px; justify-content: center; height: 52px; border: 0; border-radius: 10px;
  background: var(--ck-blue); color: #fff; font-size: 16px;
}
@media (max-width: 1023px) {
  .ck-nav-links, .ck-nav-cta { display: none; }
  .ck-menu-btn { display: flex; }
}
@media (min-width: 1024px) {
  .ck-mobile-menu { display: none !important; }
}
/* Tablet landscape / small laptops: keep the desktop row, just tighter. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .ck-nav { gap: 20px; padding: 0 24px; }
  .ck-nav-links { gap: 2px; }
  .ck-nav-links a { padding: 0 9px; font-size: 14px; }
  .ck-nav-cta { padding: 0 16px; font-size: 14px; }
}

/* ---------- Responsive flow rows (gateway diagram, how-it-works flow) ---------- */
.ck-flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.ck-flow-link { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; padding: 16px 0; }
.ck-flow-arrow { display: block; transform: rotate(90deg); }
.ck-flow-gap { display: flex; justify-content: center; padding: 12px 0; }
@media (min-width: 900px) {
  .ck-flow--900 { flex-direction: row; }
  .ck-flow--900 .ck-flow-link { flex: 0 0 132px; flex-direction: column; gap: 8px; padding: 0 8px; }
  .ck-flow--900 .ck-flow-arrow { transform: none; }
}
@media (min-width: 960px) {
  .ck-flow--960 { flex-direction: row; }
  .ck-flow--960 .ck-flow-gap { flex: 0 0 56px; align-items: center; padding: 0; }
  .ck-flow--960 .ck-flow-arrow { transform: none; }
}

/* ---------- FAQ (details/summary) ---------- */
.ck-faq { border-bottom: 1px solid var(--ck-rule); }
.ck-faq > summary {
  list-style: none; cursor: pointer;
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-size: 18px; font-weight: 600; color: var(--ck-ink);
}
.ck-faq > summary::-webkit-details-marker { display: none; }
.ck-faq > summary::after { content: '+'; flex: 0 0 auto; font-size: 22px; font-weight: 400; color: var(--ck-muted); }
.ck-faq[open] > summary::after { content: '\2212'; }
.ck-faq > p { margin: 0; padding: 0 0 20px; max-width: 640px; font-size: 16px; line-height: 26px; color: var(--ck-muted); }

/* ---------- Forms ---------- */
.ck-field {
  height: 48px; border-radius: 6px; border: 1px solid #667085; background: #171b23; color: #f7f5f0;
  padding: 0 14px; font: inherit; font-size: 16px; width: 100%;
}
textarea.ck-field { height: auto; padding: 12px 14px; line-height: 24px; resize: vertical; min-height: 104px; }
select.ck-field { padding: 0 12px; }
.ck-field:focus { border-color: var(--ck-sky); outline: 2px solid var(--ck-sky); outline-offset: 0; }
.ck-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-pill { position: relative; }
.ck-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px;
  font-size: 15px; cursor: pointer; background: transparent; color: #f7f5f0; border: 1px solid #667085;
}
.ck-pill input:checked + span { background: #f7f5f0; color: var(--ck-ink); border-color: #f7f5f0; font-weight: 600; }
.ck-pill input:focus-visible + span { outline: 3px solid var(--ck-sky); outline-offset: 2px; }
.ck-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ck-form-error { margin: 0; font-size: 14px; color: #ffb4a8; }
.ck-form-error[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Dashboard demo (use cases) ---------- */
.ck-dash-body { min-height: 780px; }
@media (min-width: 600px) { .ck-dash-body { min-height: 700px; } }
@media (min-width: 900px) { .ck-dash-body { min-height: 600px; } }
