/* Kosso Nutrition claim-check
   Design tokens follow KN-DESIGN-SYSTEM.md: sky blue accent, green CTA,
   condensed uppercase display, clean sans body, white ground, navy bands. */

:root {
  --blue: #65beec;
  --blue-d: #3aa9e0;
  --blue-tint: #eaf6fd;
  --green: #09ad69;
  --green-d: #069f61;
  --green-tint: #e9f7f0;
  --ink: #101014;
  --ink-2: #33363d;
  --muted: #707070;
  --line: #e7e9ee;
  --tile: #f4f4f6;
  --red: #be2a3e;
  --red-tint: #fdeef0;
  --navy: linear-gradient(160deg, #0b1422, #0a1019, #0c1f30);

  --sans: "Inter", "acumin-pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cond: "Archivo", "Archivo Narrow", "Haettenschweiler", "Arial Narrow", Impact, var(--sans);

  --shell: 1180px;
  --rail: 232px;
  --head-h: 62px;
  --r: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; }
body {
  font-family: var(--sans); overflow-wrap: break-word;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue-d); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 700; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r) 0; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ── header ─────────────────────────────────────────────────────── */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  z-index: 60; will-change: transform;
}

.head {
  position: sticky; top: 0; z-index: 55;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head__in {
  max-width: var(--shell); margin: 0 auto; padding: 0 18px;
  height: var(--head-h); display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand img { height: 26px; width: auto; display: block; }
.brand span {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
@media (max-width: 800px) { .brand span { display: none; } }

.langs { display: flex; gap: 4px; background: var(--tile); padding: 4px; border-radius: 999px; }
.langs a {
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; color: var(--ink); line-height: 1;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.langs a:hover { background: #fff; text-decoration: none; }
.langs a[aria-current="true"] { background: var(--blue); color: #fff; }

.btn-print, .btn-nav {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; transition: transform .16s var(--ease), background .16s var(--ease);
}
.btn-print:hover, .btn-nav:hover { background: #000; transform: translateY(-1px); text-decoration: none; }
.btn-nav { display: none; }
@media (max-width: 1000px) { .btn-nav { display: inline-flex; } .btn-print { display: none; } }

/* ── shell ──────────────────────────────────────────────────────── */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 18px; }
.cols { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 46px; align-items: start; }
.cols > * { min-width: 0; }
main { min-width: 0; }
@media (max-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ── rail nav ───────────────────────────────────────────────────── */
.rail { position: sticky; top: calc(var(--head-h) + 22px); padding: 26px 0 40px; }
.rail__t {
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.rail a {
  display: flex; gap: 9px; align-items: baseline; padding: 6px 10px; border-radius: 9px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 600; line-height: 1.35;
  border-left: 2px solid transparent; transition: background .16s var(--ease), color .16s var(--ease);
}
.rail a:hover { background: var(--tile); text-decoration: none; }
.rail a em { font-style: normal; color: var(--blue); font-weight: 800; font-size: 11px; min-width: 15px; }
.rail a.on { background: var(--blue-tint); color: var(--ink); font-weight: 800; }
.rail a.on em { color: var(--blue-d); }

@media (max-width: 1000px) {
  .rail {
    position: fixed; inset: 0 auto 0 0; width: min(84vw, 320px); z-index: 70;
    background: #fff; border-right: 1px solid var(--line); padding: 20px 16px 40px;
    overflow-y: auto; transform: translateX(-102%); transition: transform .3s var(--ease);
    box-shadow: 0 0 60px rgba(0, 0, 0, .18);
  }
  .rail.open { transform: none; }
  .rail a { padding: 11px 10px; font-size: 15px; }
  .rail__close {
    display: block; width: 100%; margin-bottom: 14px; padding: 10px; border: 0; cursor: pointer;
    background: var(--tile); border-radius: 10px; font: inherit; font-weight: 800; text-transform: uppercase;
    font-size: 12px; letter-spacing: .06em;
  }
  .scrim {
    position: fixed; inset: 0; background: rgba(10, 16, 25, .5); z-index: 65;
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }
  .scrim.on { opacity: 1; pointer-events: auto; }
}
@media (min-width: 1001px) { .rail__close, .scrim { display: none; } }

/* ── hero ───────────────────────────────────────────────────────── */
.hero { padding: 44px 0 6px; }
.kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue-d); margin-bottom: 12px;
}
h1 {
  font-family: var(--cond); font-weight: 800; font-stretch: 78%; font-variation-settings: "wdth" 78; text-transform: uppercase;
  font-size: clamp(40px, 8vw, 76px); line-height: .94; letter-spacing: .004em;
}
h1 .t2 { color: var(--blue); display: block; }
.rule { width: 38px; height: 2px; background: var(--blue); margin: 16px 0 18px; }
.lede { font-size: 17.5px; color: var(--muted); max-width: 60ch; }

.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.meta span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--tile); padding: 6px 11px; border-radius: 999px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: 12px;
  font-weight: 800; font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--green); color: #fff; transition: transform .16s var(--ease), background .16s var(--ease);
}
.cta:hover { background: var(--green-d); transform: translateY(-1px); text-decoration: none; }
.cta i { font-style: normal; transition: transform .2s var(--ease); }
.cta:hover i { transform: translateX(3px); }
.cta--ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.cta--ghost:hover { background: var(--ink); color: #fff; }

/* ── dark band ──────────────────────────────────────────────────── */
.band {
  position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .84);
  border-radius: 18px; padding: 24px 26px; margin: 30px 0 6px; font-size: 15.5px;
}
.band::after {
  content: ""; position: absolute; top: -90px; right: -60px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(101, 190, 236, .3), transparent 65%); pointer-events: none;
}
.band b { color: var(--blue); }
.band strong { color: #fff; }

/* ── checker ────────────────────────────────────────────────────── */
.checker { background: var(--tile); border-radius: 18px; padding: 24px; margin: 30px 0 10px; }
.checker h2 { margin: 0 0 6px; }
.checker p { color: var(--muted); font-size: 14.5px; max-width: 58ch; }
.checker__field { position: relative; margin-top: 16px; }
.checker__field input {
  width: 100%; font: inherit; font-size: 16px; padding: 16px 50px 16px 18px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.checker__field input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(101, 190, 236, .22); }
.checker__field svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); opacity: .35; }
.checker__out { margin-top: 14px; display: grid; gap: 10px; }
.res {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  background: #fff; border-radius: 12px; padding: 14px 16px; border-left: 5px solid var(--line);
  animation: pop .26s var(--ease) both;
}
.res--red { border-left-color: var(--red); }
.res--green { border-left-color: var(--green); }
.res--none { border-left-color: var(--blue); }
.res__tag {
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 7px; white-space: nowrap;
}
.res--red .res__tag { background: var(--red-tint); color: var(--red); }
.res--green .res__tag { background: var(--green-tint); color: var(--green-d); }
.res--none .res__tag { background: var(--blue-tint); color: var(--blue-d); }
.res__term { font-weight: 800; }
.res__why { font-size: 14.5px; color: var(--ink-2); }
@keyframes pop { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ── sections ───────────────────────────────────────────────────── */
.sec { padding: 40px 0 4px; scroll-margin-top: calc(var(--head-h) + 16px); }
h2 {
  font-family: var(--cond); font-weight: 800; font-stretch: 80%; font-variation-settings: "wdth" 80; text-transform: uppercase;
  font-size: clamp(27px, 4.4vw, 38px); line-height: 1.03; letter-spacing: .004em;
}
h2 .nr { color: var(--blue); margin-right: 6px; }
.sec__sub { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.sec > .rule { margin: 12px 0 20px; }
h3 { font-family: var(--cond); font-weight: 800; font-stretch: 82%; font-variation-settings: "wdth" 82; text-transform: uppercase; font-size: 22px; letter-spacing: .006em; }

.sec p + p, .sec p + ul, .sec ul + p { margin-top: 12px; }
.sec ul { padding-left: 20px; }
.sec ul li { margin-bottom: 8px; }
.sec ul li::marker { color: var(--blue); }

/* steps */
.steps { display: grid; gap: 14px; margin-top: 4px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.step__n {
  width: 44px; height: 44px; border-radius: 13px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
}
.step h3 { font-family: var(--sans); font-weight: 800; font-size: 16.5px; text-transform: none; letter-spacing: 0; margin-bottom: 3px; }
.step p { color: var(--ink-2); }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.pills span {
  background: var(--red-tint); color: var(--red); border-radius: 10px; padding: 7px 13px;
  font-size: 13.5px; font-weight: 700;
}

/* cards */
.card {
  border: 1.5px solid var(--line); border-left-width: 5px; border-radius: var(--r);
  padding: 16px 18px; margin: 14px 0; background: #fff;
}
.card--red { border-left-color: var(--red); }
.card--green { border-left-color: var(--green); }
.card--blue { border-left-color: var(--blue); }
.card h4 {
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px;
}
.card--red h4 { color: var(--red); }
.card--green h4 { color: var(--green-d); }
.card--blue h4 { color: var(--blue-d); }

/* checklist */
.check { list-style: none; counter-reset: c; padding: 0; margin-top: 6px; }
.check li {
  counter-increment: c; position: relative; padding-left: 44px; margin-bottom: 13px;
}
.check li::before {
  content: counter(c); position: absolute; left: 0; top: -1px; width: 29px; height: 29px;
  border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center;
  font-size: 13.5px; font-weight: 800;
}

/* tables */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border: 1.5px solid var(--line); border-radius: var(--r); margin: 14px 0 6px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 540px; }
th {
  background: var(--ink); color: #fff; text-align: left; padding: 11px 14px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fafbfc; }
td:first-child { font-weight: 700; }

/* library */
.lib-head { background: var(--navy); position: relative; overflow: hidden; color: #fff; border-radius: 18px; padding: 26px; margin: 44px 0 8px; }
.lib-head::after {
  content: ""; position: absolute; top: -90px; right: -60px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(101, 190, 236, .32), transparent 65%);
}
.lib-head h2 { color: #fff; position: relative; }
.lib-head p { color: rgba(255, 255, 255, .74); margin-top: 8px; max-width: 62ch; position: relative; }

.lib-filter { position: relative; margin: 16px 0 4px; }
.lib-filter input {
  width: 100%; font: inherit; font-size: 15px; padding: 13px 16px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff;
}
.lib-filter input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(101, 190, 236, .2); }

.prod { margin-top: 26px; scroll-margin-top: calc(var(--head-h) + 16px); }
.prod__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.prod__h h3 { font-size: 23px; }
.prod__h span { color: var(--muted); font-size: 13px; font-weight: 600; }
.prod.hide { display: none; }

table.lib { min-width: 560px; }
table.lib th:first-child { background: var(--red); width: 44%; }
table.lib th:last-child { background: var(--green); }
table.lib td:first-child { color: var(--red); font-weight: 600; }
table.lib td:last-child { color: #0a6b45; font-weight: 600; }
table.lib td { position: relative; }

.copy {
  position: absolute; top: 7px; right: 7px; border: 0; background: var(--green-tint); color: var(--green-d);
  font: inherit; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 7px; cursor: pointer; opacity: 0;
  transition: opacity .16s var(--ease), background .16s var(--ease);
}
td:hover .copy, .copy:focus-visible { opacity: 1; }
.copy.done { background: var(--green); color: #fff; opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }

/* faq */
.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 40px 15px 0; position: relative;
  font-weight: 700; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--blue-d); }
.faq__a { padding: 0 0 17px; color: var(--ink-2); max-width: 72ch; }
.faq details[open] .faq__a { animation: fade .28s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* footer */
.foot { background: #0a0c10; color: rgba(255, 255, 255, .72); margin-top: 60px; }
.foot__in { max-width: var(--shell); margin: 0 auto; padding: 40px 18px 56px; display: grid; gap: 22px; }
.foot img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.foot__note { font-size: 13.5px; max-width: 78ch; }
.foot__row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; }
.foot__contact { color: #fff; font-weight: 700; font-size: 14.5px; }
.foot__slogan { font-family: var(--cond); font-weight: 800; font-stretch: 80%; font-variation-settings: "wdth" 80; text-transform: uppercase; color: #fff; font-size: 20px; letter-spacing: .02em; }

.totop {
  position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; z-index: 50;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22); opacity: 0; pointer-events: none;
  transform: translateY(8px); transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.totop.on { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { text-decoration: none; background: #000; }

/* reveal — only when JS is running, so the document is readable without it */
.js .rv { opacity: 0; transform: translateY(14px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 28px; }
  .band, .checker, .lib-head { padding: 18px; border-radius: 14px; }
  .step { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .step__n { width: 38px; height: 38px; font-size: 17px; }
  .cta { width: 100%; justify-content: center; }
}

/* tables as stacked cards on phones */
@media (max-width: 700px) {
  .tw { overflow: visible; border: 0; border-radius: 0; }
  table, table.lib { min-width: 0; width: 100%; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr {
    border: 1.5px solid var(--line); border-radius: 13px; margin-bottom: 10px; overflow: hidden; background: #fff;
  }
  tbody tr:nth-child(even) td { background: transparent; }
  td { border: 0; padding: 13px 15px; }
  td + td { border-top: 1.5px solid var(--line); }
  td::before {
    content: attr(data-l); display: block; margin-bottom: 5px;
    font-size: 9.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
  }
  td:not([data-l])::before { display: none; }
  table.lib td:first-child { background: var(--red-tint); }
  table.lib td:last-child { background: var(--green-tint); }
  table.lib td:first-child::before { color: var(--red); }
  table.lib td:last-child::before { color: var(--green-d); }
  .copy { position: static; opacity: 1; display: inline-block; margin-top: 9px; }
}

/* print */
@media print {
  .head, .rail, .progress, .totop, .btn-print, .btn-nav, .langs, .scrim, .copy, .checker__field, .lib-filter, .cta-row, .skip { display: none !important; }
  body { font-size: 10pt; line-height: 1.5; }
  .cols { display: block; }
  .shell { max-width: none; padding: 0; }
  .sec { padding: 12px 0 0; break-inside: auto; }
  h1 { font-size: 34pt; }
  h2 { font-size: 17pt; break-after: avoid; }
  h3, .prod__h { break-after: avoid; }
  .tw { overflow: visible; border: 0; }
  table { min-width: 0; font-size: 8.6pt; }
  tr, .card, .step, .check li { break-inside: avoid; }
  .band, .lib-head { background: #0b1422 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .foot { background: #fff; color: var(--muted); border-top: 2px solid var(--ink); margin-top: 24px; }
  .foot img { filter: none; }
  .foot__slogan, .foot__contact { color: var(--ink); }
  .faq details { break-inside: avoid; }
  .faq__a { display: block !important; }
  .js .rv, .rv { opacity: 1 !important; transform: none !important; }
  a { color: inherit; }
}
