/* KWANA public site. International (Swiss) typographic style: a 12-column grid,
   large tight sans-serif type, hairline rules, flat colour and no decoration.
   System fonts only, so the pages make no third-party requests. */

:root {
  color-scheme: light;
  --mint: #e2ece9;
  --teal: #5e9b9a;
  --teal-deep: #3a6e6d;
  --charcoal: #2c303e;
  --coral: #f26b5b;
  --ink: #16181f;
  --muted: #5b6070;
  --line: #16181f;
  --hair: #d3dbd9;
  --page: #ffffff;
  --gutter: clamp(20px, 4vw, 48px);
  --gap: clamp(16px, 2.2vw, 32px);
  --sans: "Helvetica Neue", Helvetica, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip:focus { top: 10px; color: #fff; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* Small uppercase label used for section numbers and captions. */
.label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.label b { color: var(--ink); font-weight: 700; }

/* ---------- Header ---------- */

header.site {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
nav.main { display: flex; gap: 6px 26px; flex-wrap: wrap; }
nav.main a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- Hero ---------- */

.hero { background: var(--mint); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: clamp(40px, 7vw, 96px); padding-bottom: 0; }
.hero .label { margin-bottom: clamp(20px, 3vw, 36px); display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); display: inline-block; }
.hero h1 {
  grid-column: 1 / -1;
  font-size: clamp(42px, 8.6vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 clamp(28px, 5vw, 64px);
  max-width: 11.5em;
}
.hero h1 em { font-style: normal; color: var(--teal-deep); }
.hero .lead {
  grid-column: 1 / span 7;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
  margin: 0;
  color: var(--charcoal);
}
.hero .cta {
  grid-column: 9 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-end;
}
.facts {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.facts div { grid-column: span 3; padding: 16px 0 20px; }
.facts dt { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.facts dd { margin: 4px 0 0; font-weight: 500; font-size: 16px; line-height: 1.4; }
dl.facts { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 15px 20px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.button::after { content: "\2192"; font-size: 18px; line-height: 1; transition: transform 0.15s; }
.button:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.button:hover::after { transform: translateX(4px); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost::after { content: "\2193"; }
.button.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.ghost:hover::after { transform: translateY(3px); }

/* ---------- Sections ---------- */

section { padding: clamp(56px, 8vw, 120px) 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 64px); row-gap: 16px; }
.section-head .label { grid-column: 1 / span 3; padding-top: 0.9em; }
.section-head h2 {
  grid-column: 4 / -1;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0;
  max-width: 16em;
}
.section-head .sub {
  grid-column: 4 / span 7;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  margin: 8px 0 0;
}

/* Numbered feature index. */
.index { list-style: none; margin: 0; padding: 0; row-gap: 0; }
.index li {
  grid-column: span 3;
  border-top: 1px solid var(--line);
  padding: 16px 0 clamp(28px, 4vw, 48px);
}
.index .n { font-size: 13px; letter-spacing: 0.08em; color: var(--teal-deep); font-weight: 700; display: block; margin-bottom: clamp(20px, 3vw, 44px); font-variant-numeric: tabular-nums; }
.index h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
.index p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.index.three li { grid-column: span 4; }

/* Dark band. */
.band { background: var(--ink); color: #fff; }
.band .label { color: #9aa3b5; }
.band .label b { color: #fff; }
.band .section-head .sub { color: #b9c0cf; }
.band .index li { border-top-color: #4a4f60; }
.band .index .n { color: var(--teal); }
.band .index p { color: #b9c0cf; }
.band a { color: #fff; }
.band a:hover { color: var(--teal); }
.platforms {
  list-style: none; margin: 0 0 clamp(40px, 6vw, 80px); padding: 0;
  border-top: 1px solid #4a4f60;
}
.platforms li {
  grid-column: span 2;
  padding: 14px 0;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.platforms li small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa3b5; margin-top: 2px; }

/* Contact. */
.contact { background: var(--teal-deep); color: #fff; padding-bottom: clamp(48px, 7vw, 96px); }
.contact .label { color: #cfe3e1; }
.contact .label b { color: #fff; }
.contact .section-head .sub { color: #e2ece9; }
.contact .mail {
  display: block;
  color: #fff;
  font-size: clamp(26px, 6.4vw, 92px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding-top: clamp(16px, 2.4vw, 32px);
  overflow-wrap: anywhere;
}
.contact .mail:hover { color: var(--mint); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }

/* ---------- Document pages (support, privacy, terms, 404) ---------- */

.doc { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 120px); }
.doc .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.doc .wrap > * { grid-column: 5 / span 7; min-width: 0; }
.doc .wrap > h1 {
  grid-column: 1 / -1;
  font-size: clamp(42px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 clamp(16px, 2vw, 24px);
}
.doc .wrap > .meta {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(32px, 5vw, 64px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
/* Each h2 hangs in the left columns beside the first block of its section. */
.doc .wrap > h2 {
  grid-column: 1 / span 4;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.doc .wrap > h2 + * {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.doc h3 { font-size: 18px; margin: 24px 0 6px; letter-spacing: -0.01em; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--teal-deep); }
.note {
  background: var(--mint);
  border-left: 4px solid var(--teal-deep);
  padding: 16px 20px;
  margin: 0 0 20px !important;
  font-size: 16px;
}
table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 0 0 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hair); }
th { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line); }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */

footer.site {
  background: var(--page);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(32px, 4vw, 56px) 0 28px;
  font-size: 15px;
}
footer.site a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); }
footer.site a:hover { border-bottom-color: var(--ink); }
footer.site .cols { display: flex; gap: 32px 64px; flex-wrap: wrap; justify-content: space-between; }
footer.site address { font-style: normal; line-height: 1.5; }
footer.site address strong { display: block; margin-bottom: 4px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 48px; align-content: start; }
footer.site .legal {
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 960px) {
  .hero .lead { grid-column: 1 / -1; }
  .hero .cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; margin-top: 28px; }
  .hero .cta .button { flex: 1 1 240px; }
  .facts div { grid-column: span 6; border-bottom: 1px solid rgba(22, 24, 31, 0.18); }
  .facts div:nth-last-child(-n+2) { border-bottom: 0; }
  .section-head .label { grid-column: 1 / -1; padding-top: 0; }
  .section-head h2, .section-head .sub { grid-column: 1 / -1; }
  .index li { grid-column: span 6; }
  .index.three li { grid-column: 1 / -1; }
  .index .n { margin-bottom: 18px; }
  .platforms li { grid-column: span 4; }
  .doc .wrap > *, .doc .wrap > h2 { grid-column: 1 / -1; }
  .doc .wrap > h2 + * { margin-top: 12px; padding-top: 0; border-top: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  header.site { position: static; }
  nav.main { gap: 2px 20px; }
  .index li { grid-column: 1 / -1; }
  .platforms li { grid-column: span 6; }
  footer.site ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .button::after { transition: none; }
}

@media print {
  header.site { position: static; }
  .hero, .band, .contact { background: #fff; color: #000; }
}
