/* clyqra. — färger hämtade från loggan */
:root {
  --navy: #1e2547;
  --navy-deep: #151a36;
  --blue: #5b9af5;
  --blue-wash: #eaf2fe;
  --ink: #1e2547;
  --ink-muted: #5a6080;
  --line: #e4e6ee;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --radius: 20px;
  --max: 1120px;
  --font: 'Poppins', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.dot { color: var(--blue); }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; z-index: 20;
}
.skip:focus { top: 16px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { flex: none; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-muted); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.nav .lang a { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.nav .lang a[aria-current="true"] { background: var(--navy); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 8px 24px rgba(30, 37, 71, .2); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero { position: relative; padding: 120px 0 110px; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; z-index: -1;
  width: 520px; height: 520px; right: -140px; top: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(91, 154, 245, .35), rgba(91, 154, 245, 0) 70%);
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0; text-wrap: balance; }
.hero .label { margin-bottom: 20px; }
h1 { font-size: clamp(44px, 7.4vw, 92px); max-width: 13ch; }
h2 { font-size: clamp(32px, 4.6vw, 54px); max-width: 18ch; }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-muted); max-width: 40ch; margin: 28px 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: 110px 0; }
.section-head { display: grid; gap: 20px; margin-bottom: 56px; }
.section-head p { color: var(--ink-muted); max-width: 52ch; margin: 0; font-size: 18px; }
.label { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0; }

.about { background: var(--bg-soft); }

/* Knyte */
.product-card {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  border-radius: 32px;
  padding: 72px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(91, 154, 245, 0);
  transition: box-shadow .25s, transform .25s;
}
/* Kanten ritas ovanpå molnet, så den syns hela vägen runt */
.product-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 2px solid transparent;
  transition: border-color .25s;
}
.product-card:hover, .product-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(91, 154, 245, .22), 0 28px 60px -28px rgba(30, 37, 71, .6);
}
.product-card:hover::after, .product-card:focus-visible::after { border-color: var(--blue); }
.product-card:focus-visible { outline: none; }
.card-nudge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #c9d8fd;
  text-shadow: 0 1px 12px rgba(18, 21, 58, .5);
}
.card-nudge .arrow { transition: transform .2s; }
.product-card:hover .card-nudge { color: #fff; }
.product-card:hover .card-nudge .arrow, .product-card:focus-visible .card-nudge .arrow { transform: translateX(4px); }
/* Molnet är Knytes atmosfär (atmosphere-formation.ts), ritad på clyqras marinblå */
.product-card > * { position: relative; }
.product-card > .cloud {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 80% 50%;
  pointer-events: none; user-select: none;
  transform: scale(1.02);
  transition: transform 1100ms cubic-bezier(.2, .7, .2, 1);
}
.product-card:hover > .cloud { transform: scale(1.08); }
/* Hörnmarkeringar som på Knytes plattor */
.product-card > .crop {
  position: absolute; inset: 22px; pointer-events: none;
  --c: rgba(255, 255, 255, .35);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px 14px,
    linear-gradient(var(--c), var(--c)) top right / 14px 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px 14px,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 14px,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 14px;
  background-repeat: no-repeat;
}
.product-card .label { color: #c9d8fd; text-shadow: 0 1px 12px rgba(18, 21, 58, .5); }
.product-logo { height: 52px; width: auto; margin: 20px 0 28px; }
.product-card h2 { color: #fff; text-shadow: 0 1px 24px rgba(18, 21, 58, .6); font-size: clamp(28px, 3.4vw, 40px); }
.product-card p { color: #c3c8e2; margin: 20px 0 28px; max-width: 46ch; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.features li {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(30, 37, 71, .45); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 16px; padding: 18px 20px; font-size: 15px; color: #e6e9f6;
}
.features li::before {
  content: ''; flex: none; width: 10px; height: 10px; margin-top: 8px;
  border-radius: 50%; background: var(--blue);
}
.features strong { display: block; color: #fff; font-weight: 600; }

/* Om oss */
.team-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 56px; }
.team-intro .section-head { margin-bottom: 0; }
.team-intro .story p { color: var(--ink-muted); margin: 0 0 18px; font-size: 18px; }
.team-intro .story p:last-child { margin-bottom: 0; }
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.founder {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px;
  transition: border-color .2s, box-shadow .2s;
}
.founder:hover { border-color: #cfd3e3; box-shadow: 0 18px 40px -24px rgba(30, 37, 71, .35); }
.founder-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.avatar {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 21px; letter-spacing: -0.02em;
  overflow: hidden;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.has-photo { width: 84px; height: 84px; border-radius: 22px; background: var(--bg-soft); }
.avatar.has-photo::after { display: none; }
.avatar::after {
  content: ''; position: absolute; right: 9px; bottom: 11px;
  width: 9px; height: 8px; border-radius: 50%; background: var(--blue);
}
.founder .role { margin: 4px 0 0; font-size: 15px; font-weight: 500; color: var(--blue); }
.founder .bio { color: var(--ink-muted); margin: 0 0 28px; font-size: 16px; }
.founder-contact { list-style: none; margin: auto 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.founder-contact a {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink);
  overflow-wrap: anywhere;
}
.founder-contact a:hover { color: var(--blue); }
.founder-contact svg { flex: none; width: 18px; height: 18px; color: var(--ink-muted); }

/* Kontakt */
.contact { text-align: center; }
.contact .section-head { justify-items: center; margin-bottom: 40px; }
.contact h2 { margin: 0 auto; }
.mail {
  display: inline-block;
  font-size: clamp(24px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em;
  text-decoration: none; color: var(--navy);
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: 100% 3px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 4px; transition: background-size .2s;
  overflow-wrap: anywhere;
}
.mail:hover { background-size: 100% 100%; color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--ink-muted); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 28px; height: 28px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .founders, .team-intro { grid-template-columns: 1fr; }
  .team-intro { gap: 28px; }
  .product-card { grid-template-columns: 1fr; padding: 48px 32px; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  .logo img { height: 28px; }
  .hero { padding: 72px 0 80px; }
  .hero::after { width: 320px; height: 320px; right: -160px; top: 0; }
  .section { padding: 80px 0; }
  .founder { padding: 26px; }
  .product-card { padding: 40px 22px; border-radius: 24px; }
}
@media (max-width: 400px) {
  .nav .hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow, .mail, .product-card, .product-card > .cloud, .card-nudge .arrow { transition: none; }
  .product-card:hover, .product-card:focus-visible { transform: none; }
  .product-card:hover > .cloud { transform: scale(1.02); }
}
